/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    --primary: #0f6c82; /* Bleu Paon */
    --primary-light: #1ba0bf;
    --primary-soft: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --secondary: #e6dfd3; /* Beige / Sand */
    --accent: #e2725b; /* Terracotta */
    --bg-color: #faf9f6; /* Off-white / Cream */
    --text-main: #2c302e;
    --text-light: #5a605d;
    --white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(10, 61, 56, 0.15);
    --shadow-btn: 0 8px 20px rgba(15, 108, 130, 0.25);
    --shadow-btn-hover: 0 14px 28px rgba(15, 108, 130, 0.35);

    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Empêche les décalages horizontaux causés par les animations */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%; /* Fixe la largeur pour éviter les petits sauts */
}

/* Masquer la barre de défilement (Scrollbar) partout */
html, body {
    -ms-overflow-style: none;  /* IE et Edge */
    scrollbar-width: none;  /* Firefox */
}

::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Protection anti-copie */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   RÉALISATIONS (PORTFOLIO)
   ========================================================================== */
#realisations {
    padding: 60px 0; /* Réduction du padding (était 100px) */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Cartes moins larges (était 350px) */
    gap: 20px; /* Réduction de l'espacement */
    max-width: 1000px; /* Limite la largeur totale */
    margin: 0 auto; /* Centre la grille */
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px; /* Réduction de la hauteur (était 350px) */
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, #e2725b 0%, #c85a3f 100%);
    background-size: 200% 200%;
    color: var(--white);
    box-shadow: 0 10px 26px -8px rgba(226,114,91,0.6);
    border: none;
    animation: heroDevisPulse 2.6s ease-in-out infinite, heroDevisGradient 4s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -6px rgba(226,114,91,0.75);
}

@keyframes heroDevisPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226,114,91,0.45), 0 10px 26px -8px rgba(226,114,91,0.6); }
    50% { box-shadow: 0 0 0 10px rgba(226,114,91,0), 0 10px 26px -8px rgba(226,114,91,0.6); }
}
@keyframes heroDevisGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: none;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background: var(--primary-soft);
    color: var(--white);
    padding: 10px 24px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-btn);
    border: none;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.btn-review {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 22px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.btn-review:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 114, 91, 0.3);
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--secondary);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   MODERN FLOATING HEADER (HOLOGRAPHIC GLASSMORPHISM)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;

    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    padding: 20px 24px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.header.scrolled {
    top: 0;
    background: rgba(6,10,11,0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 14px 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-soft);
    box-shadow: var(--shadow-btn);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.1;
}

.custom-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 2px;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.header .custom-logo {
    /* Suppression du mix-blend-mode qui bug sur certains navigateurs */
}

.header.scrolled .custom-logo {
    height: 60px;
}

.footer .custom-logo {
    height: 100px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.logo-text span {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu ul {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-main);
    position: relative;
    padding: 8px 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 150px; /* Prevent header overlap */
    overflow: hidden; /* Empêche l'image de fond zoomée de déborder et de faire bouger l'écran */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1);
    animation: zoomOutBg 8s ease-out forwards;
}

@keyframes zoomOutBg {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(10, 61, 56, 0.75) 100%);
    z-index: 1;
}

/* L'effet de flou a été retiré */

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero .badge {
    display: inline-block;
    padding: 8px 24px;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(5.2rem, 13.5vw, 12rem);
    line-height: 1;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--white);
    letter-spacing: 0.05em;
    font-weight: 600;
    text-shadow: 0 4px 12px rgba(0,0,0,0.55), 0 16px 40px rgba(0,0,0,0.55), 0 30px 70px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 24px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6), 0 10px 26px rgba(0,0,0,0.5);
}

.hero-tags {
    font-size: 1.45rem;
    font-weight: 600;
    color: #4FB3B3;
    margin-bottom: 50px;
    letter-spacing: 3px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.hero-tags-dot {
    color: var(--accent);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-contact {
    display: inline-flex;
    justify-content: center;
    gap: 40px;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    padding: 18px 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.hero-contact:hover {
    background-color: rgba(0,0,0,0.4);
    transform: translateY(-5px);
}

.hero-contact a {
    display: flex;
    align-items: center;
    gap: 8px; /* Encore plus compact */
    font-weight: 500;
    font-size: 0.85rem; /* Encore une taille en moins */
}

.hero-contact i {
    color: var(--accent);
    font-size: 0.95rem; /* Icône réduite proportionnellement */
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    padding: 160px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
}

.about .lead {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.about p:not(.lead) {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.catchphrase {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    font-style: normal;
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
    line-height: 1.4;
    background: linear-gradient(90deg, rgba(226, 114, 91, 0.05) 0%, transparent 100%);
    padding-top: 10px;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.stat-item::before{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(circle at 50% 0%, rgba(27,160,191,0.16), transparent 65%);
    opacity:0;
    transition: opacity .4s ease;
}
.stat-item:hover::before{ opacity:1; }
.stat-item i{
    transition: transform .4s cubic-bezier(.2,.7,.2,1), color .3s ease;
}
.stat-item:hover i{
    transform: scale(1.18) rotate(-6deg);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.stat-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    width: 85%; /* Réduction de la taille */
    margin: 0 auto; /* Centrage dans la colonne */
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/5;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80%;
    height: 80%;
    background-color: var(--secondary);
    border-radius: var(--radius-lg);
    z-index: 1;
    transition: var(--transition);
}

.about-image-wrapper:hover .image-accent {
    transform: translate(-10px, -10px);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    padding: 160px 0;
    background-color: var(--bg-color);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 96px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.15rem;
}

.section-header .editorial-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1.4;
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrage horizontal des éléments */
    text-align: center; /* Centrage du texte */
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 61, 56, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-soft);
    box-shadow: var(--shadow-btn);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.06);
}

.service-card h3 {
    font-family: 'Lora', serif; /* Nouvelle typographie élégante similaire à Playfair */
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.service-card p {
    font-family: 'Lora', serif; /* Appliquée aussi au texte descriptif */
    color: var(--text-main); /* Assombri légèrement pour une meilleure lisibilité en serif */
    font-size: 1.05rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrage des badges/mots-clés */
    gap: 8px;
}

.tags span {
    background-color: rgba(10, 61, 56, 0.04);
    color: var(--primary-light);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.service-card:hover .tags span {
    background-color: rgba(10, 61, 56, 0.08);
}

/* ==========================================================================
   REALISATIONS SECTION
   ========================================================================== */
.realisations {
    padding: 160px 0;
    background-color: var(--white);
}

.gallery-empty-state {
    background-color: var(--bg-color);
    border: 2px dashed rgba(10, 61, 56, 0.2);
    border-radius: var(--radius-lg);
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition);
}

.gallery-empty-state:hover {
    border-color: var(--primary-light);
    background-color: rgba(10, 61, 56, 0.03);
    transform: scale(1.02);
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 24px;
}

.gallery-empty-state h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.gallery-empty-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   AVIS (TESTIMONIALS)
   ========================================================================== */
.bg-light {
    background-color: rgba(230, 223, 211, 0.45); /* Fond beige sable doux, atténué */
}

#avis {
    padding: 64px 0 90px 0; /* Marge en bas pour compenser la vague du footer */
}

#avis .section-header {
    margin-bottom: 48px;
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.avis-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 25px; /* Réduit pour être plus compact */
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    border-top: 4px solid var(--accent); /* Liseré Terracotta */
}

.avis-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.avis-stars {
    color: #ffb400; /* Or pour les étoiles */
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    gap: 4px;
}

.quote-icon {
    position: absolute;
    top: 40px;
    right: 30px;
    font-size: 3.5rem;
    color: rgba(15, 108, 130, 0.05); /* Filigrane bleu paon */
    z-index: 0;
}

.avis-text {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.avis-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   EMPTY STATE PREMIUM
   ========================================================================== */
.empty-state {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.empty-state:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.empty-state-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(226,114,91,0.35);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: none;
}

.empty-state-copy {
    flex: 1;
    text-align: left;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.empty-state-msg {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ==========================================================================
   FOOTER DYNAMIQUE
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, #094a5a 0%, #06313d 100%);
    color: var(--white);
    padding: 60px 0 24px;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading); /* Application de Playfair Display */
    border-top: 2px solid rgba(255,255,255,0.14);
}

/* Halo lumineux statique en fond */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 200, 232, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Ligne droite nette (plus de vague) */

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px; /* Réduit */
    margin-bottom: 50px; /* Réduit */
    position: relative;
}

.footer-col-brand{
    border-right: 1px solid rgba(255,255,255,0.12);
    padding-right: 40px;
}
@media (max-width: 900px){ .footer-col-brand{ border-right:none; padding-right:0; } }
.footer .custom-logo{
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.footer-cards-container {
    display: flex;
    gap: 20px;
}
.footer-card.footer-card-services{
    border-right: 1px solid rgba(255,255,255,0.12);
    padding-right: 20px;
}
@media (max-width: 900px){ .footer-card-services{ border-right:none; padding-right:0; } }

/* Cartes transparentes (Glassmorphism) */
.footer-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px; /* Réduit au lieu de 30px */
    transition: var(--transition);
}

.footer-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.footer .logo-icon {
    background-color: var(--white);
    color: var(--primary);
}

.footer .logo-text {
    color: var(--white);
}

.footer .logo-text span {
    color: rgba(255,255,255,0.7);
}

.footer-desc {
    margin-top: 24px;
    color: rgba(255,255,255,0.7);
    max-width: 350px;
    font-size: 1.15rem; /* Ajusté pour Playfair */
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-size: 1.4rem; /* Légèrement plus grand pour la lisibilité */
    margin-bottom: 24px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Liens Interactifs Magnétiques */
.interactive-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-left: -10px; /* Offset padding */
}

.interactive-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(226, 114, 91, 0.15); /* Terracotta transparent */
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.interactive-link:hover .icon-box,
.footer-card:hover .icon-box {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
}

/* Bouton Retour en haut */
.back-to-top {
    position: absolute;
    right: 40px;
    top: -30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e2725b 0%, #c85a3f 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 26px -8px rgba(226,114,91,0.6);
    transition: var(--transition);
    z-index: 10;
}

.back-to-top:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (UN-FREEZE THE SITE)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left { transform: translateX(-50px); }
.reveal.fade-right { transform: translateX(50px); }
.reveal.fade-left.active, .reveal.fade-right.active { transform: translateX(0); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid { gap: 60px; }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-cards-container {
        flex-direction: column;
    }
    .header {
        width: calc(100% - 24px);
    }
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #094a5a 0%, #06313d 100%);
        border-radius: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: none;
        border: none;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
        z-index: 2000;
        overflow: hidden;
    }
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .nav-menu-close {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    .nav-menu-close svg { width: 26px; height: 26px; }
    .nav-menu-watermark {
        position: absolute;
        right: -0.1em;
        bottom: -0.12em;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 42vw;
        line-height: 1;
        color: rgba(255,255,255,0.06);
        pointer-events: none;
        z-index: 0;
        user-select: none;
    }
    .nav-menu ul {
        position: relative;
        z-index: 1;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 34px;
    }
    .nav-menu ul a {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: clamp(2rem, 9vw, 2.8rem);
        letter-spacing: 0.01em;
        color: #fff;
        text-transform: none;
    }
    .nav-menu ul a::after { background: var(--accent); }
    .nav-menu ul a:hover, .nav-menu ul a.active { color: #fff; }
    .nav-menu ul a:hover::after, .nav-menu ul a.active::after { width: 100%; }
    .nav-menu-contact {
        position: absolute;
        bottom: 32px;
        left: 0;
        width: 100%;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-family: var(--font-body);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.25em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.5);
    }
    .nav-menu-contact a { color: rgba(255,255,255,0.5); }
    .nav-menu-contact a:hover { color: #fff; }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 16px;
    }

    .hero-contact {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .hero-tags { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 40px; }
    .btn { width: 100%; }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .header { top: 12px; }

    .empty-state {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 16px;
    }
    .empty-state-copy {
        text-align: center;
    }
}

/* ==========================================================================
   MODAL & FORMULAIRE DEVIS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content-wrapper {
    padding: 40px;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

.modal-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-badges span {
    background: none;
    color: var(--primary);
    padding: 0;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modal-badges span i { color: var(--primary); }

.form-group {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    background: #f9f9f9;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--primary);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    animation: none !important;
}
.btn-full:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.18) !important;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

.modal-success {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.modal-success.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-soft);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Footer Links spécifiques */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-links a i {
    color: var(--accent);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   SUCCESS MESSAGE PREMIUM ANIMATION
   ========================================================================== */
.modal-success {
    text-align: center;
    padding: 60px 30px;
}

.success-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    animation: fadeInUp 0.5s ease both;
}

.success-circle {
    width: 100px;
    height: 100px;
    position: relative;
}

.success-svg {
    width: 100%;
    height: 100%;
}

.success-circle-bg {
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

.success-checkmark {
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes strokeDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
