@font-face {
    font-family: 'Noto Sans';
    src: url(fonts/NotoSans-VariableFont_wdth\,wght.ttf);
}

@font-face {
    font-family: 'Noto Sans Italic';
    src: url(fonts/NotoSans-Italic-VariableFont_wdth\,wght.ttf);
}

@font-face {
    font-family: 'Lexend';
    src: url(fonts/Lexend-VariableFont_wght.ttf);
}

html {
  scroll-behavior: smooth;
}

:root {
    --max-width: 1200px;
    --default-margin: calc((100vw - var(--max-width)) / 2);
    --margin: 50px;
    --upper-nav-background: #ffffff;
    --upper-nav-color: #111;
    --bottom-nav-background: #1a1a1a;
    --mobile-menu-background: #FFF;
    --hover-color: #7e9dc5;
    --accent-color: #d08a44ff;
    --accent-hover: #8e5828;
    --text-light: #FFFFFF;
    --font-main: 'Lexend', sans-serif;
}

footer .footer-bottom a {
    color: #CCC;
    margin-left: 20px;
    text-decoration: none;
}

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

body {
   font-family: 'Noto Sans', sans-serif;
   width: 100vw;
   overflow-x: hidden;
}

.navbar {
    display: grid;
    width: 100%;
    max-width: var(--max-width);
    /* Le 'auto' à gauche et à droite gère le centrage parfait automatiquement */
    margin: 0 auto; 
}

@media screen and (max-width: 1300px) {
    .navbar {
        /* Plus besoin de recalculer la largeur ! */
        /* On réduit juste la largeur maximale pour créer l'espace sur les côtés */
        max-width: calc(100% - (var(--margin) * 2));
    }
}

.navbar .upper {
    display: flex;
    width: 100%;
    height: 100px;
}

.background {
    position: absolute;
    width: 100vw;
    z-index: -1;
}

.navbar .upper .background {
    left: 0;
    height: 100px;
    background-color: var(--upper-nav-background);
}

.navbar .upper .left {
    display: flex;
    width: 50%;
}

.navbar .upper .left .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar .upper .left .logo img {
    max-width: 250px;
}

.navbar .upper .right {
    display: flex;
    width: 50%;
    align-items: center;
    gap: 2rem;
    justify-content: flex-end;
}

.navbar .upper .right .tel {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar .upper .right a {
    text-decoration: none;
    color: var(--upper-nav-color);
}

.navbar .upper .right .soumission {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar .bottom {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    position: relative;
    z-index: 10;
}

/* État sticky géré par position:sticky sur .navbar-section — voir bloc desktop ci-dessous */
.navbar .bottom .background {
    position: absolute;
    /* On le plaque au bord gauche du viewport en sortant du conteneur */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    width: 101vw;
    height: 50px;
    background-color: var(--bottom-nav-background);
    z-index: 0;
}
.navbar .bottom .links {
    display: flex;
    height: 100%;
    align-items: center;
}

.navbar .bottom .links span {
    display: flex;
    align-items: center;
}

.navbar .bottom .links a, .navbar .bottom .links span {
    display: flex;
    align-items: center;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    height: 100%;
    padding: 0 1rem;
    text-transform: uppercase;
    transition: .2s ease-in-out;
}

.navbar .bottom .links a, .navbar .bottom .links .not-active {
    color: #FFFF;
}

.navbar .bottom .links a.not-active:hover {
    color: var(--hover-color);
}

.navbar .bottom .links span.not-active:hover {
    color: var(--hover-color);
}

/* S'assure que le lien ou span actif a un fond blanc et un texte noir */
.navbar .bottom .links a.active,
.navbar .bottom .links span.active {
    font-weight: 600;
    background-color: #FFF !important;
    color: #000 !important; /* Force la couleur noire sur le texte principal */
}

/* Force également la flèche à devenir noire lorsque le parent est actif */
.navbar .bottom .links span.active .arrow {
    color: #000 !important;
}

.navbar .bottom .links span {
    cursor: pointer;
    align-items: center;
}

.navbar .bottom .links span .arrow {
    font-size: 0.70rem;
    margin-left: 0.25rem;
}



/* Le texte à l'intérieur du bouton */
.diamond-plate span {
  white-space: nowrap;
  position: relative;
  z-index: 2;
  color: #000000;
  font-family: 'Noto Sans', sans-serif; /* Correction : virgule traînante supprimée */
}

.soumission-mobile-btn .diamond-plate {

    display: flex;
    align-items: center;
    justify-content: center;

}

.soumission-mobile-btn .diamond-plate span {

    font-size: 0.8rem;    

}

.navbar .bottom .links a.diamond-plate {
  padding: 0; /* Supprime le padding par défaut pour que le bouton puisse gérer son propre padding */
}

.navbar .bottom .links span .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.navbar .bottom .links span .dropdown img {
    width: 50px;
    height: auto;
    margin-right: 20px;
}

.navbar .bottom .links span .dropdown .line {
    height: 1px;
    background-color: #ccc;
    margin: 5px 0;
}

.navbar .bottom .links span .dropdown a {
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  margin: 10px 5px;
  border-radius: 2px;
  border: 1px solid #FFF;
}

.navbar .bottom .links span .arrow {
    display: inline-block; /* Permet la transformation géométrique */
    margin-left: 5px;      /* Petit espace sympa entre le texte et la flèche */
    transition: transform 0.3s ease-in-out; /* Rend la rotation fluide */
}

/* 2. Quand on survole le SPAN (Nos services), on fait tourner la flèche */


.navbar .bottom .links span .dropdown a:hover {
  background-color: #fffefe;
  border: 1px solid #CCC;
}

/* --- LE DROPDOWN (Caché par défaut) --- */
.navbar .bottom .links .dropdown {
    position: absolute;
    top: 100%; /* Ajustez selon la hauteur de votre navbar */
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Empêche de cliquer dessus quand il est caché */
    transform: translateY(-10px); /* Petit effet de glissement vers le haut */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    
    /* Vos styles actuels (background, border, etc.) restent ici */
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 10000 !important;
}

/* --- LA FLÈCHE (Par défaut) --- */
.navbar .bottom .links span .arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
}

/* ----------------------------------------------------
   LES ÉTATS QUAND LE MENU EST OUVERT (Classe .open)
------------------------------------------------------- */

/* Le dropdown fait un Fade-In */
.navbar .bottom .links span.open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* On réactive les clics */
    transform: translateY(0); /* Il reprend sa place défilée */
}

/* La flèche tourne quand c'est ouvert */
.navbar .bottom .links span.open .arrow {
    transform: rotate(-180deg);
}

.navbar .bottom .links span.not-active {
    cursor: pointer;
    user-select: none; /* Empêche de surligner le texte par erreur en double-cliquant */
}

.navbar .upper .right .hamburger {
    position: absolute;
    right: var(--margin);
}

.carousel-btn {
    display: none !important;
}

.navbar .bottom .links .active {
    color: #000 !important;
}

.diamond-plate  {
  display: inline-block;
  padding: 16px 36px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2c3e50; 
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* OPTIMISATION CRITIQUE : On n'anime QUE la transformation et l'ombre, pas le background */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Force le GPU à gérer l'animation pour éviter les saccades */
  will-change: transform, box-shadow;
  backface-visibility: hidden;

  /* Bordure fine pour renforcer l'effet métallique */
  border: 1px solid #00000069; 

  /* Superposition du dégradé (au-dessus) et de l'image (en-dessous) */
  background: 
    linear-gradient(
      145deg,
      rgb(255, 255, 255) 0%,
      rgba(241, 242, 246, 0.747) 30%,
      rgba(247, 247, 247, 0.808) 50%,
      rgba(220, 223, 228, 0.815) 70%,
      rgb(206, 212, 218) 100%
    ),
    url(icons/background-diamond-plate.webp);
    
  background-size: cover;
  background-position: center; 

  /* Ombre portée douce */
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hamburger {
    display: none; /* Caché par défaut, s'affiche avec le hamburger */
}

.mobile-menu {
        display: none; /* Caché par défaut, s'affiche avec le hamburger */
}

/* ==========================================================================
   INTERFACES MOBILES ET TABLETTES (Remplace l'ancien bloc @media 800px)
   ========================================================================== */

@media screen and (max-width: 800px) {


    .navbar-section {
        position: sticky !important;
        top: 0;
        z-index: 99;
    }

    .mobile-menu {
        display: block; /* Caché par défaut, s'affiche avec le hamburger */
    }

    .navbar .mobile-menu {
        display: none; /* Caché par défaut, s'affiche avec le hamburger */
    }

    /* Masquer la barre de navigation du bas sur mobile */
    .navbar .bottom {
        display: none;
    }

    /* Permettre d'afficher le bouton hamburger à droite */
    .navbar .upper .right {
        display: flex;
    }
    .navbar .upper .right .tel,
    .navbar .upper .right .soumission {
        display: none; /* Cache le bouton et le tel du header pour faire place au hamburger */
    }

    /* --- BOUTON HAMBURGER --- */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 100; /* Reste au-dessus de tout */
    }

    .hamburger .bar {
        width: 100%;
        height: 3px;
        background-color: #000000; /* Assorti à votre thème */
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    /* ANIMATION : Transformation du Hamburger en "X" */
    .hamburger.is-active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .hamburger.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);

    }


    /* --- MENU SUR SLIDE LATÉRAL --- */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Caché à droite à l'état initial */
        width: 320px; /* Largeur confortable */
        height: 100vh;
        background-color: var(--mobile-menu-background); /* Fond noir comme la version Desktop */
        z-index: 90;
        padding: 120px 30px 40px 30px; /* Laisse de l'espace en haut pour le logo/bouton */
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animation de slide fluide */
    }

    /* État ouvert : Glisse à l'écran */
    .mobile-menu.is-open {
        right: 0;
    }

    /* --- LIENS DU MENU MOBILE --- */
    .mobile-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-links a, 
    .mobile-dropdown-toggle span {
        display: block;
        color: #000;
        font-family: 'Noto Sans', sans-serif;
        font-size: 1.1rem;
        font-weight: 500;
        text-decoration: none;
        text-transform: uppercase;
        cursor: pointer;
        user-select: none;
    }

    .mobile-links a.active {
        color: #dea358ff;
        font-weight: 600;
    }

    /* --- DROPDOWN MOBILE (Même design que Desktop) --- */
    .mobile-dropdown-toggle {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mobile-dropdown-toggle span {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Place la flèche bien à droite */
    }

    .mobile-dropdown-toggle .arrow {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    /* Le panneau déroulant hérite des styles de bordure/couleur du Desktop */
    .mobile-dropdown {
        max-height: 0; /* Caché par défaut */
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background-color: #ffffff; /* Fond blanc comme sur desktop */
        border: 0 solid #ccc;     /* Pas de bordure tant qu'il est fermé */
        border-radius: 6px;
        margin-top: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
    }

    /* Contenu interne identique au desktop */
    .mobile-dropdown a {
        display: flex !important;
        align-items: center;
        color: #333 !important; /* Texte sombre */
        font-size: 0.85rem;
        text-transform: none; /* Texte plus naturel pour les sous-services */
        padding: 0.75rem 1rem !important;
        gap: 15px;
    }

    .mobile-dropdown img {
        width: 40px;
        height: auto;
    }

    .mobile-dropdown .line {
        height: 1px;
        background-color: #ccc; /* Même ligne de séparation */
        margin: 0 10px;
    }

    /* --- ÉTATS OUVERTS DU DROPDOWN MOBILE --- */
    .mobile-dropdown-toggle.open .mobile-dropdown {
        max-height: 300px; /* S'ouvre progressivement */
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        padding: 5px 0;
        border: 1px solid #ccc; /* Bordure grise identique au bureau */
    }

    /* La flèche se retourne */
    .mobile-dropdown-toggle.open .arrow {
        transform: rotate(-180deg);
    }

    /* Bloc téléphone en bas du menu mobile */
    .mobile-tel {
        margin-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }
    .mobile-tel a {
        color: #dea358ff;
        font-size: 1.2rem;
    }
}

/* On garde votre règle pour les tout petits écrans */
@media screen and (max-width: 500px) {
    .navbar .upper .left .logo img {
        max-width: 150px;
    }
}


/* L'effet de reflet lumineux dynamique (apparaît au survol) */
.diamond-plate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
  z-index: 1;
}

/* Comportement au Survol (Hover) */
.diamond-plate:hover {
  color: #1a252f;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 24px rgba(22, 28, 45, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* Déclenchement du reflet de lumière au survol */
.diamond-plate:hover::before {
  left: 150%;
  transition: left 0.75s ease-in-out; /* Optimisé : on n'anime que 'left' */
}

/* Comportement au Clic (Active) */
.diamond-plate:active {
  transform: translateY(1px);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
    
  /* CORRECTION OPTIMISATION : On garde la même structure de background (avec l'image) 
     mais on assombrit légèrement le dégradé pour l'effet enfoncé sans faire sauter l'image */
  background: 
    linear-gradient(
      145deg,
      rgba(228, 231, 235, 0.8) 0%,
      rgba(220, 223, 228, 0.85) 100%
    ),
    url(icons/background-diamond-plate.webp);
  background-size: cover;
  background-position: center;
}

.scroll-test {
    height: 200vw;
}

/* =============================================================
   BARRE NOIRE FIXE — BUREAU SEULEMENT (> 800px)
   Apparaît avec un slide top→bottom APRÈS que la navbar
   complète a quitté le viewport. Gérée par IntersectionObserver
   dans script.js (classe .is-stuck sur .navbar-section).
   ============================================================= */
@keyframes slideInFromTop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slideOutToTop {
    from { transform: translateY(0);     opacity: 1; }
    to   { transform: translateY(-100%); opacity: 0; }
}

/* Ghost : copie visuelle de la barre noire qui anime la sortie
   pendant que la vraie navbar reprend sa place dans le flux */
.navbar-bottom-ghost {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--bottom-nav-background);
    z-index: 98;
    pointer-events: none;
    animation: slideOutToTop 0.35s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}


@media screen and (min-width: 801px) {
    /* Navbar complète fixée en haut (upper caché derrière le viewport) */
    .navbar-section.is-stuck {
        position: fixed;
        top: -100px;
        left: 0;
        width: 100%;
        z-index: 99;
    }

    /* Entrée : glisse depuis le haut */
    .navbar-section.is-stuck .navbar .bottom {
        animation: slideInFromTop 0.38s cubic-bezier(0.33, 1, 0.68, 1) both;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
    }

}

/* ========== CARROUSEL STYLES ========== */
/* --- Variables globales --- */


/* --- Le Conteneur Principal (Hero Banner) --- */
   section .card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-content: space-between;
    
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 550px;
    max-height: 850px;
    
    padding: 4rem 10%;
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--accent-color);
    font-family: var(--font-main);
    background-image: 
        linear-gradient(to right, rgba(167, 105, 48, 0.3) 0%, rgba(167, 105, 48, 1) 60%),
        url('img/card-img-2.webp');
    
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

/* --- Bloc Supérieur (Titres) --- */
section .card .top {
    z-index: 2;
    max-width: 700px;
}

section .card .top .title1 {
    /* Taille fluide entre 1.1rem (mobile) et 1.5rem (bureau) */
    font-size: clamp(1.1rem, 1vw + 0.8rem, 1.5rem);
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

section .card .top .title2 {
    /* Taille fluide entre 2.2rem (mobile) et 4.5rem (bureau) */
    font-size: clamp(2.2rem, 4vw + 1.2rem, 4.5rem);
    color: var(--text-light);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Bloc Inférieur (Texte & Boutons) --- */
section .card .bottom {
    grid-row: 3; /* Force le bloc à rester tout en bas */
    z-index: 2;
    max-width: 600px;
    margin-top: auto;
}

section .card .bottom .title3 {
    /* Taille fluide entre 1.5rem (mobile) et 2.2rem (bureau) */
    font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
    color: var(--text-light);
    font-weight: 400;
    margin: 0 0 2rem 0;
}

/* --- Zone des Boutons --- */
section .card .bottom .links {
    display: flex;
    flex-wrap: wrap; /* Permet d'aller à la ligne si l'écran est trop étroit */
    gap: 1.2rem;
    align-items: center;
}

/* Style commun des boutons */
section .card .bottom .links a {
    display: inline-block;
    text-decoration: none;
    font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.1rem);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    white-space: nowrap; /* Évite que le texte du bouton se coupe en deux */
}

/* Bouton Devis */
section .card .bottom .links .devis {
    background-color: var(--text-light);
    color: var(--accent-color);
    padding: 0.9rem 2.2rem;
    padding: calc(0.9rem - 2px) calc(2.2rem - 2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--text-light);
}

section .card .bottom .links .devis:hover {
    background-color: transparent;
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Bouton En savoir plus */
section .card .bottom .links .en-savoir-plus {
    color: var(--text-light);
    padding: calc(0.9rem - 2px) calc(2.2rem - 2px);
    border: 2px solid var(--text-light);
    background-color: transparent;
}

section .card .bottom .links .en-savoir-plus:hover {
    background-color: var(--text-light);
    color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- L'image d'illustration ultra-adaptative --- */
section .card img {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 50%; /* Occupe la moitié droite de l'écran sur PC */
    object-fit: cover; /* Recadre proprement sans déformer */
    object-position: left center; /* Cadre sur la gauche de l'image */
    opacity: 0.85;
    pointer-events: none;
    
    /* Fondu transparent pour fusionner l'image avec le fond marron à gauche */
}

section .card .title2 strong {
    border-bottom: 0.6rem solid #ffc400;
}

/* --- AJUSTEMENTS SMARTPHONES (Écrans inférieurs à 768px) --- */
@media screen and (max-width: 800px) {
    section .card {
        height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Aligne le haut en haut, le bas en bas */
        align-items: center; /* Centre horizontalement TOUT le contenu de la card */
        text-align: center;
        padding: 3.5rem 1.5rem;
    }

    /* On annule le positionnement absolu pour laisser le Flexbox centrer naturellement */
    section .card .top, 
    section .card .bottom {
        position: relative;
        top: unset;
        bottom: unset;
        left: unset;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centre les textes et les boutons à l'intérieur du bloc */
        justify-content: center;
    }

    section .card .top {
        margin-bottom: auto; /* Pousse le bloc du bas vers le bas s'il y a de la place */
    }

    section .card .bottom {
        margin-top: 2rem;
    }

    section .card .bottom .title3 {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }

    /* Centre la zone des boutons */
    section .card .bottom .links {
        flex-direction: column; 
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }

    /* Boutons pleine largeur et centrés */
    section .card .bottom .links a {
        width: 100%; 
        max-width: 300px; /* Évite que les boutons soient trop immenses sur les grands téléphones */
        box-sizing: border-box;
    }

    /* L'image passe en arrière-plan complet et discret */
    section .card img {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.40; /* Plus discret pour maximiser le contraste du texte centré */
        object-fit: cover;
        object-position: center;
        
       
    }
}

/* --- AJUSTEMENT GRAND ÉCRAN (Écrans supérieurs à 1400px) --- */
@media screen and (min-width: 1400px) {
    section .card {
        padding: 5rem 15%; /* Plus d'espace sur les côtés pour faire respirer le design */
    }
}

@media screen and (min-width: 801px) {
    /* Cibler la barre du bas UNIQUEMENT quand elle est en mode fixe (stuck) */
    .navbar-section.is-stuck .navbar {
        margin: 0;             /* Supprime le centrage '0 auto' */
        margin-left: -2rem;
        padding-left: 50px;    /* Ajoute un espacement de sécurité sur le bord gauche */
        min-width: 100vw;
        width: 100vw;       /* Permet à la barre d'occuper tout l'espace disponible */
    }

    /* Optionnel : Si vous voulez que les dropdowns (comme "Nos services") s'alignent 
       correctement sans sortir de l'écran, on s'assure qu'ils se basent sur le lien parent */
    .navbar-section.is-stuck .navbar .bottom .links {
        justify-content: flex-start; /* Force l'alignement des liens au début (gauche) */
    }
}

section .skill-card {
    display: flex;
    flex-direction: column;
}

section .skill-card .upper {
    display: flex;
    justify-content: center;
    width: 100%;
}

section .skill-card .upper .single-card {
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    position: relative;
    width: calc(50% - 80px);
    background-color: #111;
    height: 30rem;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
}

section .skill-card .upper .center-option {
    display: flex;
    align-items: center;
    justify-content: center;
}

section .skill-card .upper .center {
    width: 100%;
    padding: 100px 30px !important;
    padding-top: 120px;
}

section .skill-card .upper .center p {
    font-size: 20px;
    color: #FFF;
}

section .skill-card .upper .first-img {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),  url(img/structure.webp);
    background-size: cover;
}

section .skill-card .upper .second-img {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),  url(img/city.webp);
    background-size: cover;
}


section .skill-card .upper .single-card h1 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border-top-left-radius: 10px;
    color: #FFF;
    font-size: 20px;
    background-color: var(--accent-color);
    display: inline-block;
    position: absolute;
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%);
    top: 0;
    left: 0;
    z-index: 10;
    padding: 10px 25px;
}

section .skill-card .upper .single-card .left {
    z-index: 10;
    display: flex;
    align-items: center;
    color: #FFF;
    font-size: 20px;
    width: 50%;
    height: 100%;  
    /* Optionnel : Empêche la dernière ligne d'être étirée de façon bizarre */
    text-align-last: left;
}

section .skill-card .upper .single-card img {
    transition: .6s ease-in-out;
}

section .skill-card .upper .single-card .left p strong {
    font-size: 25px;
}

section .skill-card .upper .single-card .right {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
}

section .skill-card .upper .single-card.first img {
    max-width: 50rem;
}

section .skill-card .upper .single-card.second img {
    max-width: 400px;
}

section .skill-card .bottom {
    display: flex;
    align-items: center;
    justify-content: center;
}

section .skill-card .bottom .single-card {
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    position: relative;
    width: calc(100% - 120px);
    background-color: #111;
    height: 30rem;    
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}


section .skill-card .bottom .left {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

section .skill-card .bottom .left img {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 20px);
    height: calc(100% + 40px);
    object-fit: cover;
}

/* Fondu de l'image vers le texte (gauche = photo, droite = texte noir) */
section .skill-card .bottom .left::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 40%, rgb(17, 17, 17) 100%);
    pointer-events: none;
}

section .skill-card .bottom .right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    width: 50%;
    height: 100%;
    color: #FFF;
    align-items: center;
    position: relative;
}

section .skill-card .bottom h1 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border-top-right-radius: 10px;
    color: #FFF;
    font-size: 20px;
    background-color: var(--accent-color);
    display: inline-block;
    position: absolute;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20px 100%, 0% calc(100% - 20px));
    top: 0;
    right: 0;
    z-index: 10;
    padding: 10px 25px;
}

section .skill-card .bottom .right p  {
    font-size: 20px;
}

section .skill-card .bottom .right a {
    color: #FFF;
    text-decoration: none;
    border: 2px solid #FFF;
    padding: 11px 31px;
    font-size: 20px;
    border-radius: 30px;
    font-weight: 600;
    position: absolute;
    bottom: 0;
    right: 0;
    transition: .2s ease-in-out;
}

section .skill-card .bottom .right a:hover {
    background-color: #FFF;
    color: #000;
}

/* ==========================================================================
   SKILL-CARD RESPONSIVE (Tablettes et mobiles ≤ 800px)
   ========================================================================== */

@media screen and (max-width: 960px) {


    section .skill-card {
        margin-top: 20px;
        padding: 0 18px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    section .skill-card .upper,
    section .skill-card .bottom {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* ── Carte générique ──────────────────────────────────────────────────── */
    section .skill-card .upper .single-card,
    section .skill-card .bottom .single-card {
        width: 100%;
        height: auto;
        min-height: unset;
        flex-direction: column;
        margin: 0;
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
    }

    /* ── Titre h1 absolu ──────────────────────────────────────────────────── */
    section .skill-card .single-card h1 {
        font-size: 13px;
        padding: 6px 22px 6px 16px;
        top: 12px;
        left: 0;
    }

    /* ── IMAGE : remonte en hero (order: -1) ──────────────────────────────── */
    section .skill-card .upper .single-card .right {
        width: 100%;
        margin-top: 90px;
        max-height: 200px;
        overflow: hidden;
        order: -1;          /* ← l'image passe AVANT .left dans le flux */
        flex-shrink: 0;
    }

                 /* ── IMAGE : remonte en hero (order: -1) ──────────────────────────────── */
    section .skill-card .upper .single-card .img-special {
        max-height: none;
        display: flex;
        justify-content: center;
    }

    section .skill-card .upper .single-card .right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* ── TEXTE : padding généreux ─────────────────────────────────────────── */
    section .skill-card .upper .single-card .left {
        width: 100%;
        height: auto;
        padding: 48px 20px 28px 20px; /* 48px haut = place pour h1 absolu */
        font-size: 15px;
        display: flex;
        flex-direction: column;
    }

    section .skill-card .upper .single-card .left p {
        font-size: 15px;
        line-height: 1.7;
    }

    section .skill-card .upper .single-card .left p strong {
        font-size: 22px;
    }

    /* ── Cartes bg-image (Structures ext. & Projets spécialisés) ─────────── */
    section .skill-card .upper .center-option {
        min-height: 240px;
    }

    section .skill-card .upper .center {
        padding: 52px 20px 28px 20px;
        width: 100%;
    }

    section .skill-card .upper .center p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* ── CARTE DU BAS — Rénovation ────────────────────────────────────────── */
    section .skill-card .bottom .single-card {
        flex-direction: column;
    }

    section .skill-card .bottom .left {
        width: 100%;
        height: 210px;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
        border-radius: 0;
    }

    section .skill-card .bottom .left img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;

    }

    section .skill-card .bottom .left::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
        pointer-events: none;
    }

    /* Zone texte : padding haut pour le h1, bas pour le bouton */
    section .skill-card .bottom .right {
        width: 100%;
        height: auto;
        padding: 48px 20px 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    section .skill-card .bottom .right p {
        font-size: 15px;
        line-height: 1.7;
    }

    section .skill-card .bottom h1 {
        font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
        border-top-left-radius: 10px;
        color: #FFF;
        font-size: 20px;
        background-color: var(--accent-color);
        display: inline-block;
        position: absolute;
        clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%);
        top: 0;
        left: 0;
        z-index: 10;
        padding: 10px 25px;
        width: fit-content;
    }

    /* Bouton dans le flux (plus de position absolute) */
    section .skill-card .bottom .right a {
        align-self: flex-end;
        position: static;    /* annule tout position:absolute éventuel */
        font-size: 14px;
        padding: 10px 24px;
        white-space: nowrap;
        border-radius: 40px;
    }
}

@media screen and (max-width: 440px) {

    section .skill-card .upper .single-card .special {
        margin-top: 40px;
    }

    section .skill-card .upper .single-card.center-option.second-img h1 {
        width: 250px
    }

}


.ruban-endroits {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
    color: #FFF;
    font-family: 'Lexend';
    background-color: #000;
}

@media screen and (max-width: 500px) {
.ruban-endroits {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 10px 0;
        color: #FFF;
        font-family: 'Lexend';
        font-size: 12px;
        background-color: #000;
    }
}


@media screen and (max-width: 350px) {
.ruban-endroits {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 10px 0;
        color: #FFF;
        font-family: 'Lexend';
        font-size: 10px;
        background-color: #000;
    }
}

/* ==========================================================================
   INTRO-TEXT
   ========================================================================== */

.intro-text {
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    width: calc(100% - 120px);
    margin: 70px auto 0;
    gap: 1.25rem;
    padding: 0 60px;
    position: relative;
}

/* Ligne verticale accent à gauche */
.intro-text::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 2px;
}

.intro-text h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #111;
    line-height: 1.2;
    padding-left: 24px;
}

.intro-text h1 span {
    color: var(--accent-color);
}

.intro-text p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #444;
    padding-left: 24px;
    max-width: 780px;
}

@media screen and (max-width: 850px) {
    .intro-text {
        width: calc(100% - 60px);
        margin: 50px auto 0;
        padding: 0 30px;
    }
    .intro-text::before {
        left: 30px;
    }
}

@media screen and (max-width: 580px) {
    .intro-text {
        width: calc(100% - 30px);
        margin: 40px auto 0;
        padding: 0 20px;
    }
    .intro-text::before {
        left: 20px;
    }
    .intro-text h1 {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   TABLE — BANDE DE CONFIANCE
   ========================================================================== */

.table {
    display: flex;
    max-width: var(--max-width);
    width: calc(100% - 120px);
    margin: 60px auto;
    gap: 0;
    padding: 0;
    justify-content: center;
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
}

.table .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1rem;
    padding: 40px 20px;
    position: relative;
    transition: background-color 0.25s ease;
}

/* Séparateurs verticaux entre items */
.table .item + .item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255,255,255,0.12);
}

.table .item:hover {
    background-color: #1a1a1a;
}

.table .item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.table .item:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

/* Trait doré sous l'icône */
.table .item::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    margin-top: -0.25rem;
    transition: width 0.25s ease;
}

.table .item:hover::after {
    width: 56px;
}

.table .item p {
    font-family: 'Lexend', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media screen and (max-width: 850px) {
    .table {
        width: calc(100% - 60px);
        margin: 40px auto;
        flex-direction: column;
        gap: 0;
    }

    .table .item + .item::before {
        top: 0;
        left: 20%;
        width: 60%;
        height: 1px;
    }

    .table .item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 24px 30px;
        gap: 1.25rem;
    }

    .table .item::after {
        display: none;
    }

    .table .item img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .table .item p {
        text-align: left;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 580px) {
    .table {
        width: calc(100% - 30px);
        margin: 30px auto;
    }
}

.section-avis {
    background: #111;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans', sans-serif;
    margin-top: 40px;
}

   


 
.section-avis::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 40px;
    font-size: 280px;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.08;
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}
 
.avis-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}
 
.avis-label-line {
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    flex-shrink: 0;
}
 
.avis-label span {
    font-family: 'Lexend', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 500;
}
 
.avis-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}
 
.avis-stars .star {
    width: 20px;
    height: 20px;
    fill: var(--accent-color);
    flex-shrink: 0;
}
 
.avis-texte {
    font-size: 1.2rem;
    line-height: 1.75;
    color: #f0ece5;
    font-style: italic;
    max-width: 740px;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}
 
.avis-footer {
    display: flex;
    align-items: center;
    gap: 18px;
}
 
.avis-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #111;
    flex-shrink: 0;
}
 
.avis-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
 
.avis-nom {
    font-family: 'Lexend', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}
 
.avis-source {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: #888;
    font-family: 'Noto Sans', sans-serif;
}
 
.source-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
    display: inline-block;
}
 
.avis-google-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #aaa;
    font-size: 0.72rem;
    font-family: 'Lexend', sans-serif;
    letter-spacing: 0.05em;
}
 
.g-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
 
@media screen and (max-width: 850px) {
    .section-avis {
        padding: 60px 40px;
    }
 
    .avis-texte {
        font-size: 1.05rem;
    }
}
 
@media screen and (max-width: 580px) {
    .section-avis {
        padding: 50px 24px;
    }
 
    .avis-texte {
        font-size: 1rem;
    }
 
    .section-avis::before {
        font-size: 180px;
        top: 0;
        left: 10px;
    }
}
 
/* ==========================================================================
   FOOTER / CONTACT SECTION
   ========================================================================== */

.site-footer {
    background-color: #111;
    color: var(--text-light);
    font-family: 'Noto Sans', sans-serif;
    margin-top: 0;
    width: 100%;
}

/* --- BANDE CTA --- */
.footer-cta-band {
    background: linear-gradient(135deg, #f4f4f4 0%, #eaeaea 100%);
    border-top: 3px solid var(--accent-color);
    border-bottom: 1px solid #d5d5d5;
    padding: 36px 0;
}

.footer-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--margin);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-cta-label {
    font-family: 'Lexend', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.footer-cta-sub {
    font-size: 0.9rem;
    color: #666;
}

.footer-cta-btn {
    flex-shrink: 0;
}

/* --- CORPS PRINCIPAL --- */
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px var(--margin) 50px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.2fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* --- COLONNE BRAND --- */
.footer-logo {
    max-width: 190px;
    margin-bottom: 18px;
    display: block;
}

.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #888;
    font-style: italic;
    margin-bottom: 22px;
}

.footer-rbq {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 8px 14px;
    margin-bottom: 20px;
}

.footer-rbq-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-family: 'Lexend', sans-serif;
}

.footer-rbq-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    font-family: 'Lexend', sans-serif;
}

.footer-fb-btn {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    background: #1877f2;
    color: #fff;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-fb-btn:hover {
    background: #145dbf;
    transform: translateY(-2px);
}

.footer-fb-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* --- TITRES COLONNES --- */
.footer-col-title {
    font-family: 'Lexend', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(208, 138, 68, 0.25);
}

/* --- NAVIGATION --- */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-nav a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.2s ease;
    flex-shrink: 0;
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-nav a:hover::before {
    width: 12px;
}

/* --- CONTACT --- */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #bbb;
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #fff;
}

/* --- HORAIRES --- */
.footer-hours-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.footer-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.footer-hours-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.footer-hours-day {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
    font-family: 'Lexend', sans-serif;
}

.footer-hours-time {
    font-size: 0.83rem;
    color: #888;
    font-style: italic;
}

.footer-zone-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(208, 138, 68, 0.1);
    border: 1px solid rgba(208, 138, 68, 0.3);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-family: 'Lexend', sans-serif;
    letter-spacing: 0.04em;
}

.footer-main .place-column {
    display: flex;
    flex-direction: column;
}

.footer-zone-badge svg {
    width: 13px;
    height: 13px;
    stroke: var(--accent-color);
    flex-shrink: 0;
}

/* --- BAS DU FOOTER --- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px var(--margin);
    text-align: center;
    font-size: 0.82rem;
    color: #555;
    max-width: 100%;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 1000px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 640px) {
    .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 32px;
    }

    .footer-bottom {
        padding: 20px 24px;
    }

    /* Bouton demander-soumission (metal plate) — responsive mobile */
    a.diamond-plate.footer-cta-btn {
        width: 100%;
        display: block;
        font-size: 0.88rem;
        padding: 14px 20px;
        white-space: normal;
    }

    a.diamond-plate.footer-cta-btn span {
        display: block;
        position: static;
        text-align: center;
        width: 100%;
        white-space: normal;
    }
}

@media screen and (max-width: 400px) {
    a.diamond-plate.footer-cta-btn {
        font-size: 0.78rem;
        padding: 12px 16px;
    }
}

/* ==========================================================================
   STYLE DU FORMULAIRE DE SOUMISSION (VERSION PROFESSIONNELLE)
   ========================================================================== */

/* Conteneur principal de la section formulaire */
section .form {
    max-width: 760px; /* Légèrement plus resserré pour une meilleure lecture */
    margin: 80px auto;
    padding: 50px;
    background-color: #ffffff;
    border: 1px solid #e1e4e8; /* Ajout d'une fine bordure structurelle */
    border-radius: 4px; /* Arrondis subtils pour un effet plus corporate */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Ombre plus discrète et haut de gamme */
    font-family: 'Noto Sans', sans-serif;
}

/* Titre principal */
section .form h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #111111;
    font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Texte explicatif d'introduction */
section .form p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    margin-top: 0;
}

/* Structure interne du formulaire */
section .form form {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Espace constant entre les blocs */
}

/* Conteneur pour chaque champ (à ajouter dans ton HTML pour un rendu propre) 
   Exemple: <div class="form-group"><label>...</label><input /></div> */
section .form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Aligne proprement le label et le champ sans tricher avec des marges négatives */
}

/* Libellés (Labels) */
section .form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c; /* Plus sombre, plus institutionnel */
    letter-spacing: 0;
}

/* Champs de saisie (Inputs, Select et Textarea) */
section .form input[type="text"],
section .form input[type="email"],
section .form input[type="tel"],
section .form select,
section .form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    color: #2d3748;
    background-color: #ffffff; /* Fond blanc classique pour plus de clarté */
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    outline: none;
}

/* Ajustement spécifique pour les listes déroulantes (Select) */
section .form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 45px;
}

/* Zone de texte multi-lignes */
section .form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Effets au focus (Institutionnel et sobre) */
section .form input:focus,
section .form select:focus,
section .form textarea:focus {
    border-color: var(--accent-color, #2b6cb0); /* Priorité à ta couleur ou un bleu corpo par défaut */
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15); 
}

/* Personnalisation du placeholder */
section .form ::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Bouton d'envoi */
section .form button[type="submit"].diamond-plate {
    align-self: flex-start;
    background-color: #1a202c; /* Couleur sombre/sérieuse par défaut si non définie */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 36px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

section .form button[type="submit"].diamond-plate:hover {
    background-color: #2d3748;
}

section .form .important {
    color: #bd2323;
}

/* ==========================================================================
   RESTYLISATION DE LA SECTION .INFO (FORMULAIRE DE CONTACT)
   ========================================================================== */

section .form .info {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e0;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 35px;
    text-align: left;
}

section .form .info-block h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(208, 138, 68, 0.2);
}

section .form .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

section .form .info-item:last-child {
    margin-bottom: 0;
}

section .form .info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    font-weight: 600;
}

section .form .info-item p,
section .form .info-item a {
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

section .form .info-item a:hover {
    color: var(--hover-color);
}

/* Alignement des horaires */
section .form .hours-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

section .form .hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #2d3748;
}

section .form .hours-row .day {
    font-weight: 500;
}

section .form .hours-row .time {
    color: #718096;
    font-style: italic;
}

/* --- RESPONSIVE .INFO (MOBILES) --- */
@media screen and (max-width: 680px) {
    section .form .info {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    section .form .hours-row {
        justify-content: flex-start;
        gap: 15px;
    }
}

/* ==========================================================================
   RESPONSIVE - ADAPTATION ÉCRANS MOBILES
   ========================================================================== */
@media screen and (max-width: 800px) {
    section .form {
        margin: 40px var(--margin, 20px);
        padding: 30px 24px;
        border-radius: 4px;
    }

    section .form h1 {
        margin-bottom: 16px;
    }

    section .form p {
        margin-bottom: 30px;
    }

    section .form form {
        gap: 20px;
    }

    section .form button[type="submit"].diamond-plate {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 500px) {
    section .form {
        margin: 40px 15px;
        padding: 30px 24px;
        border-radius: 4px;
    }

    section .form h1 {
        margin-bottom: 16px;
    }

    section .form p {
        margin-bottom: 30px;
    }

    section .form form {
        gap: 20px;
    }

    section .form button[type="submit"].diamond-plate {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================================
   SECTION À PROPOS - STYLE ARTISAN DIRECT
   ========================================================================== */
.about-page-section {
    /* Police élégante et moderne */
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 100px 24px;
    background-color: #fcfcfd; /* Un blanc très légèrement cassé, plus doux pour les yeux */
    color: #374151;
    -webkit-font-smoothing: antialiased;
}

.about-container {
    max-width: 720px; /* Réduit légèrement de 780px à 720px : c'est la largeur d'or pour le confort de lecture (environ 70-80 caractères par ligne) */
    margin-inline: auto;
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */

.about-header {
    margin-bottom: 56px;
    border-bottom: 1px solid #f3f4f6; /* Ligne de séparation subtile */
    padding-bottom: 32px;
}

.about-header h1 {
    font-size: 2.75rem; /* Un peu plus grand pour plus d'impact */
    color: #111827;
    font-weight: 800; /* Plus épais, style éditorial */
    margin-bottom: 14px;
    letter-spacing: -0.03em; /* Lettrage plus serré pour les grands titres */
    line-height: 1.15;
}

.about-header .subtitle {
    font-size: 1.25rem;
    color: #4b5563; /* Légèrement plus sombre pour un meilleur contraste (accessibilité) */
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================================================
   CONTENU TEXTUEL
   ========================================================================== */

/* Style global des paragraphes */
.about-text-block p {
    font-size: 1.125rem; /* Augmenté à 18px pour un confort de lecture premium */
    color: #374151;
    line-height: 1.85; /* Espace respirant entre les lignes */
    margin-bottom: 32px;
}

/* Premier paragraphe "Lead" mis en valeur */
.about-text-block .intro-lead {
    font-size: 1.35rem;
    color: #111827;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Sécurité pour le dernier élément */
.about-text-block p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE (MOBILES)
   ========================================================================== */

@media screen and (max-width: 768px) {
    .about-page-section {
        padding: 64px 20px;
    }

    .about-header {
        margin-bottom: 40px;
        padding-bottom: 24px;
    }

    .about-header h1 {
        font-size: 2.1rem;
        letter-spacing: -0.02em;
    }

    .about-header .subtitle {
        font-size: 1.1rem;
    }

    .about-text-block p {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 24px;
    }

    .about-text-block .intro-lead {
        font-size: 1.2rem;
        margin-bottom: 32px;
    }
}

/* ==========================================================================
   CORRECTION SÉCURISÉE POUR LE DROPDOWN ACTIF (FOND BLANC / TEXTE NOIR)
   ========================================================================== */

/* Cible le bouton "Nos services" (span) ou tout lien actif dans la barre du bas */
.navbar .bottom .links span.active,
.navbar .bottom .links a.active {
    background-color: #FFF !important;
    color: #000000 !important;
}

/* Force également l'icône de la flèche à devenir noire lorsque le menu est actif */
.navbar .bottom .links span.active .arrow,
.navbar .bottom .links span.active i {
    color: #000000 !important;
}


/* ==========================================================================
   ██████  EFFETS SPECTACULAIRES — PAGE ENTER + HERO IMAGE REVEAL
   ========================================================================== */


/* ------------------------------------------------------------------
   1. APPARITION DES ÉLÉMENTS DE PAGE
      Chaque bloc principal arrive avec un reveal puissant en cascade.
      Aucune modification HTML requise.
   ------------------------------------------------------------------ */

/* Keyframes d'entrée */
@keyframes revealUp {
    0%   { opacity: 0; transform: translateY(40px) scale(0.97); filter: blur(4px); }
    60%  { filter: blur(0px); }
    100% { opacity: 1; transform: translateY(0)   scale(1);    filter: blur(0px); }
}

@keyframes revealLeft {
    0%   { opacity: 0; transform: translateX(-50px) scale(0.96); filter: blur(3px); }
    100% { opacity: 1; transform: translateX(0)     scale(1);    filter: blur(0px); }
}

@keyframes revealRight {
    0%   { opacity: 0; transform: translateX(50px)  scale(0.96); filter: blur(3px); }
    100% { opacity: 1; transform: translateX(0)     scale(1);    filter: blur(0px); }
}

@keyframes revealFade {
    0%   { opacity: 0; transform: scale(0.96); filter: blur(6px); }
    100% { opacity: 1; transform: scale(1);    filter: blur(0px); }
}

/* Entrée du hero card (fond + contenu) */
section .card {
    animation: revealFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Titres du hero */
section .card .top {
    animation: revealLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

section .card .bottom {
    animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* Ruban endroits */
.ruban-endroits {
    animation: revealFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

/* Section intro text */
.intro-text {
    animation: revealUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Tableau d'icônes */
.table {
    animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Cards de services */
section .skill-card .upper .single-card:first-child {
    animation: revealLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
section .skill-card .upper .single-card:last-child {
    animation: revealRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
section .skill-card .bottom .single-card {
    animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

/* Section à propos */
.about-header {
    animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.about-text-block {
    animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* Footer */
.site-footer {
    animation: revealFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Navbar — CORRIGÉE POUR LES DROPDOWNS */
.navbar-section {
    position: relative; /* Ou fixed / sticky selon votre design, indispensable pour le z-index */
    z-index: 9999;      /* Force la navbar et ses enfants à rester au-dessus de tout */
    animation: revealFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Sécurité supplémentaire pour vos menus déroulants */
.navbar-section .dropdown, 
.navbar-section .dropdown-menu {
    z-index: 10000 !important;
}

/* ==========================================================================
   BANNIÈRE DE CONFIDENTIALITÉ DIRECTE (SANS COOKIES TRAÇANTS - LOI 25)
   ========================================================================== */


.privacy-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media screen and (min-width: 768px) {
    .privacy-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }
}

.privacy-text h3 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #FFF;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.privacy-text p {
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.5;
}

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

@media screen and (max-width: 768px) {
    .privacy-buttons {
        width: 100%;
        flex-direction: column;
    }
    .privacy-btn {
        width: 100%;
    }
}

.privacy-btn {
    font-family: 'Lexend', sans-serif;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.privacy-btn.btn-primary {
    background-color:  #ffffff;
    color: #000;
}

.privacy-btn.btn-primary:hover {
    background-color: #c7c7c7;
    color: #000000;
}

.privacy-btn.btn-secondary {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #444;
}

.privacy-btn.btn-secondary:hover {
    background-color: #2a2a2a;
    color: #FFF;
}


/* ------------------------------------------------------------------
   2. EFFET "SCAN PIXEL PAR PIXEL" SUR L'IMAGE HERO
      Imite le chargement progressif ligne par ligne des vieux JPEG,
      suivi d'un fondu final spectaculaire.
   ------------------------------------------------------------------ */
@keyframes pixelScan {
    0% {
        transform: translateX(300px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes pixelScanMobile {
    0% {
        transform: translateY(-500px);
    }
    100% {

    }
}
/* Application sur l'image flottante du hero (desktop) */
section .card img {
    animation: pixelScan 2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    will-change: clip-path, filter, opacity;
    transform-origin: center;
}

/* Mobile */
@media screen and (max-width: 800px) {
    section .card img {
        animation: pixelScanMobile 2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    }
}

/* ==========================================================================
   BANNIÈRE DE CONFIDENTIALITÉ - ANIMATION FLUIDE & ÉLÉGANTE
   ========================================================================== */
.privacy-banner {
    position: fixed;
    bottom: 24px;                    /* Position finale */
    left: 50%;
    transform: translateX(-50%) translateY(120%); /* Départ : caché en bas */
    opacity: 0;
    
    width: calc(100% - 40px);
    max-width: 850px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    border-radius: 7px;
    
    /* Transition douce et premium */
    transition: 
        transform 0.65s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.65s cubic-bezier(0.32, 0.72, 0, 1);
    
    will-change: transform, opacity;
}

.privacy-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Optionnel : petit délai pour un effet plus raffiné */
.privacy-banner {
    transition-delay: 0.1s;
}
