/* ==========================================================================
   GEITPE Maintenance — Feuille de style principale
   ========================================================================== */

:root {
    --navy: #0e2438;
    --navy-2: #123049;
    --ink: #16212c;
    --steel: #55636f;
    --steel-light: #7c8a96;
    --accent: #0f7c82;
    --accent-dark: #0a5f64;
    --accent-light: #e2f2f1;
    /* Jaune sécurité industrielle — touche d'énergie ponctuelle, jamais une
       grande surface, et clairement distinct de l'orange (couleur du
       concurrent IRMA Global) : clin d'œil aux équipements HSE/EPI. */
    --accent-2: #f0b429;
    --accent-2-dark: #c9930f;
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --bg-soft-2: #eef1f4;
    --border: #e5e8eb;
    --white: #ffffff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(14, 36, 56, 0.06);
    --shadow-md: 0 10px 30px rgba(14, 36, 56, 0.1);
    --shadow-lg: 0 24px 60px rgba(14, 36, 56, 0.16);
    --font-head: 'Archivo', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --container: 1240px;
}

* { box-sizing: border-box; }
/* overflow-x:clip (et non "hidden") : bloque le débordement horizontal du
   menu mobile hors-écran sans créer de conteneur de défilement, ce qui
   casserait le header "position: sticky". */
html { scroll-behavior: smooth; overflow-x: clip; }
/* Empêche le header collant (sticky) de recouvrir la cible d'un lien-ancre
   (ex: "En savoir plus" vers une fiche service) au moment du défilement. */
[id] { scroll-margin-top: 100px; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.18;
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--steel); }
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.icon { width: 22px; height: 22px; }

/* --------------------------------------------------------------------- */
/* Boutons                                                                */
/* --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
}
.btn-ic { width: 17px; height: 17px; transition: transform .2s ease; }
.btn:hover .btn-ic { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(15,124,130,.32); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 14px 30px rgba(15,124,130,.4); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(14,36,56,.2); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* --------------------------------------------------------------------- */
/* Topbar + header                                                       */
/* --------------------------------------------------------------------- */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.85);
    font-size: 13.5px;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    gap: 20px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--accent); }
.ti { width: 14px; height: 14px; flex-shrink: 0; opacity: .8; }
.topbar-right { opacity: .85; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    /* Fond blanc plein (et non translucide + flou) : un "backdrop-filter"
       posé directement sur ce header créait un nouveau repère de position
       pour ses enfants en "position: fixed" (le menu-tiroir mobile). Résultat,
       une fois la page scrollée, le tiroir s'ouvrait hors de l'écran (très
       au-dessus) au lieu de rester collé à l'écran — il fallait remonter
       tout en haut de la page pour l'apercevoir. */
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(14,36,56,.08); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 72px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 19px; color: var(--navy); letter-spacing: .02em; }
.brand-text small { font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.main-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
    transition: all .2s ease;
    position: relative;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a.active { background: var(--accent-light); color: var(--accent-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none;
    background: var(--bg-soft);
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--navy);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-open { display: none; }
.nav-toggle.is-open .icon-close { display: block; }
.nav-close { display: none; }
.mobile-nav-backdrop {
    position: fixed; inset: 0; background: rgba(14,36,56,.45);
    z-index: 190; opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.mobile-nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------- */
/* Hero slider                                                           */
/* --------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 88vh;
    min-height: 620px;
    max-height: 880px;
    overflow: hidden;
    background: var(--navy);
    margin-bottom: 74px;
}
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease;
    z-index: 1;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 7s ease;
}
.hero-slide.is-active .hero-slide-bg { transform: scale(1); }
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    /* Assombrit seulement la zone où le texte est lisible (gauche) et le bas
       (pour les contrôles) ; la partie droite de la photo reste bien visible. */
    background:
        linear-gradient(100deg, rgba(7,18,30,.86) 0%, rgba(7,18,30,.6) 34%, rgba(7,18,30,.18) 58%, rgba(7,18,30,0) 74%),
        linear-gradient(0deg, rgba(7,18,30,.5) 0%, rgba(7,18,30,0) 26%);
}
.hero-inner {
    position: relative; z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}
/* Conteneur dédié au hero (et non ".container" centré) : le texte reste
   ancré à gauche à n'importe quelle largeur d'écran, au lieu de suivre
   les marges centrées qui le font paraître au milieu sur grand écran. */
.hero-inner .container {
    max-width: none;
    margin: 0;
    width: 100%;
    padding-left: clamp(24px, 6vw, 96px);
    padding-right: 24px;
}
.hero-content { max-width: 560px; padding-bottom: 40px; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a9e2de;
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(14px);
}
.hero-kicker::before { content: ''; width: 30px; height: 2px; background: var(--accent); display: inline-block; }
.hero-title {
    color: #fff;
    font-size: clamp(28px, 3.8vw, 46px);
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(18px);
}
.hero-subtitle {
    color: rgba(255,255,255,.86);
    font-size: 16.5px;
    max-width: 480px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(18px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(18px); }
.hero-slide.is-active .hero-kicker,
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-subtitle,
.hero-slide.is-active .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .8s ease .35s, transform .8s ease .35s;
}
.hero-slide.is-active .hero-title { transition-delay: .45s; }
.hero-slide.is-active .hero-subtitle { transition-delay: .55s; }
.hero-slide.is-active .hero-actions { transition-delay: .65s; }

.hero-controls {
    position: absolute;
    left: 0; right: 0; bottom: 34px;
    z-index: 5;
}
.hero-controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-dots { display: flex; gap: 12px; }
.hero-dot {
    position: relative;
    width: 52px; height: 4px;
    background: rgba(255,255,255,.3);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}
.hero-dot-fill {
    position: absolute; inset: 0;
    width: 0%;
    background: var(--accent);
    border-radius: 3px;
}
.hero-dot.is-active .hero-dot-fill { transition: width linear; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-counter {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    display: none;
}

/* --------------------------------------------------------------------- */
/* Sections génériques                                                   */
/* --------------------------------------------------------------------- */
.section { padding: 100px 0; }
.section.tight { padding: 70px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; max-width: none; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 14px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Texture "plan technique" — grille fine façon calque d'ingénierie,
   utilisée en fond des sections foncées pour éviter les aplats de couleur
   plats et donner une identité clairement industrielle/technique. */
.bp-grid { position: relative; isolation: isolate; }
.bp-grid::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 45%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 45%, transparent 100%);
}
.bp-grid > .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------- */
/* Stats — bande flottante qui chevauche le bas du hero                 */
/* --------------------------------------------------------------------- */
.stats-band {
    position: relative;
    z-index: 6;
    margin-top: -86px;
    padding: 0 0 10px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: #fff;
    border-radius: var(--radius);
    /* Même remarque que le footer : cet élément porte aussi la classe
       ".container", donc on ne touche pas au padding gauche/droite ici. */
    padding-top: 14px;
    padding-bottom: 14px;
    box-shadow: 0 24px 60px rgba(14,36,56,.22);
}
.stat-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: transform .25s ease;
    min-width: 0;
}
.stat-card > div { min-width: 0; }
.stat-card span.label,
.stat-card strong { overflow-wrap: break-word; }
.stat-card:hover { transform: translateY(-3px); }
.stat-ic {
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(15,124,130,.32);
}
.stat-card:nth-child(2) .stat-ic { background: var(--accent-2); color: var(--navy); box-shadow: 0 8px 18px rgba(240,180,41,.32); }
.stat-card:nth-child(3) .stat-ic { background: var(--navy); color: #a9e2de; box-shadow: 0 8px 18px rgba(14,36,56,.28); }
.stat-card:nth-child(4) .stat-ic { background: var(--accent-dark); color: #fff; box-shadow: 0 8px 18px rgba(10,95,100,.32); }
.stat-ic .icon { width: 22px; height: 22px; }
.stat-card strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--navy); margin-bottom: 2px; }
.stat-card span.label { display: block; font-size: 11px; font-weight: 800; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.stat-card p { display: none; }

/* --------------------------------------------------------------------- */
/* Domaines / services grid                                              */
/* --------------------------------------------------------------------- */
#services { position: relative; overflow: hidden; }
#services::before {
    content: '';
    position: absolute; top: -220px; right: -160px;
    width: 540px; height: 540px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 72%);
    z-index: 0;
    pointer-events: none;
}
#services > .container { position: relative; z-index: 1; }
.domains-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
/* Tuiles compactes : photo en haut, icône + libellé sur bandeau sombre en
   bas — quand le service n'a pas de photo dédiée, la tuile devient un aplat
   de couleur pleine (cycle navy / accent / amber) avec une grande icône, ce
   qui garde toute la rangée dynamique et cohérente. */
.domain-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4.4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: var(--shadow-sm);
}
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.domain-card-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease;
}
.domain-card:hover .domain-card-img { transform: scale(1.08); }
.domain-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(8,18,30,.92) 0%, rgba(8,18,30,.55) 42%, rgba(8,18,30,.05) 70%);
}
.domain-card.no-photo::after { display: none; }
.domain-card.no-photo { background: var(--navy); }
.domain-card.no-photo:nth-of-type(4n+2) { background: var(--accent); }
.domain-card.no-photo:nth-of-type(4n+3) { background: var(--accent-2); }
.domain-card-body { position: relative; z-index: 2; padding: 16px 14px; }
.domain-card.no-photo .domain-card-body { padding: 18px 14px; }
.domain-ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 44px;
    transition: transform .25s ease;
}
.domain-card:hover .domain-ic { transform: scale(1.1) rotate(-4deg); }
.domain-card.no-photo .domain-ic { background: rgba(255,255,255,.2); margin-bottom: 62px; }
.domain-card.no-photo:nth-of-type(4n+3) .domain-ic { color: var(--navy); }
.domain-ic .icon { width: 18px; height: 18px; }
.domain-card h3 { font-size: 14.5px; margin: 0 0 6px; color: #fff; line-height: 1.25; }
.domain-card.no-photo:nth-of-type(4n+3) h3 { color: var(--navy); }
.domain-card p { display: none; }
.domain-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; color: #fff; opacity: .85; }
.domain-card.no-photo:nth-of-type(4n+3) .domain-link { color: var(--navy); opacity: .75; }
.domain-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.domain-card:hover .domain-link svg { transform: translateX(4px); }
.domains-cta { text-align: center; margin-top: 44px; }

/* --------------------------------------------------------------------- */
/* Split image/text sections                                             */
/* --------------------------------------------------------------------- */
.split-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-section.reverse .container { direction: rtl; }
.split-section.reverse .container > * { direction: ltr; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3.1; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-media::before {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}
.split-content p { font-size: 15.5px; }
.highlight-list { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.highlight-item { display: flex; gap: 16px; align-items: flex-start; }
.highlight-ic {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 11px;
    background: var(--accent-light);
    color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center;
}
.highlight-ic .icon { width: 21px; height: 21px; }
.highlight-item h4 { font-size: 15.5px; margin-bottom: 3px; }
.highlight-item p { font-size: 14px; margin: 0; }

/* Variante sombre (fond bleu marine) : rangée compacte icône + libellé,
   sans paragraphe, façon "badges de confiance" plutôt que liste verticale. */
.split-section.on-dark {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
    position: relative;
    overflow: hidden;
}
.split-section.on-dark::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 100% 20%, #000 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 80% at 100% 20%, #000 40%, transparent 100%);
}
.split-section.on-dark .container { position: relative; z-index: 1; }
.split-section.on-dark .kicker { color: var(--accent-2); }
.split-section.on-dark .kicker::before { background: var(--accent-2); }
.split-section.on-dark h2 { color: #fff; }
.split-section.on-dark .split-content p { color: rgba(255,255,255,.68); }
.split-section.on-dark .split-media::before { border-color: var(--accent-2); }

/* --------------------------------------------------------------------- */
/* Bandeau "statement" (citation / mission) — accent plein, pas de blanc  */
/* --------------------------------------------------------------------- */
.statement-band {
    background: linear-gradient(120deg, var(--accent-dark) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
    padding: 76px 0;
}
.statement-band::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 0% 0%, #000 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 100% at 0% 0%, #000 30%, transparent 100%);
}
.statement-band::after {
    content: '';
    position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px;
    border-radius: 50%; background: rgba(255,255,255,.08);
}
.statement-band .container { position: relative; z-index: 1; text-align: center; max-width: 780px; }
.statement-band .kicker { color: #fff; opacity: .85; justify-content: center; }
.statement-band .kicker::before { background: #fff; }
.statement-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.35; margin: 0; }

/* --------------------------------------------------------------------- */
/* Domaines de compétence — variante sombre (rythme visuel de la page)    */
/* --------------------------------------------------------------------- */
.section.on-dark-panel {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
    position: relative;
    overflow: hidden;
}
.section.on-dark-panel .section-head .kicker { color: var(--accent-2); }
.section.on-dark-panel .section-head .kicker::before { background: var(--accent-2); }
.section.on-dark-panel .section-head h2 { color: #fff; }
.section.on-dark-panel .section-head p { color: rgba(255,255,255,.68); }
.expertise-card.on-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); backdrop-filter: blur(2px); }
.expertise-card.on-dark:hover { background: rgba(255,255,255,.09); }
.expertise-card.on-dark h3 { color: #fff; }
.expertise-card.on-dark li { color: rgba(255,255,255,.72); }
.expertise-card.on-dark li svg { color: var(--accent-2); }
.expertise-card.on-dark:nth-child(3n+2) .expertise-ic { background: var(--accent-2); color: var(--navy); }
.expertise-card.on-dark:nth-child(3n+3) .expertise-ic { background: #fff; color: var(--accent-dark); }
.highlight-row { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.highlight-row .highlight-item { flex-direction: column; align-items: flex-start; gap: 12px; }
.highlight-row .highlight-ic { background: rgba(255,255,255,.1); color: var(--accent-2); width: 46px; height: 46px; }
.highlight-row .highlight-item h4 { color: #fff; font-size: 14.5px; margin: 0; }

/* --------------------------------------------------------------------- */
/* Partenaire — fond clair, forte présence typographique                */
/* --------------------------------------------------------------------- */
.partner-section { background: #fff; position: relative; overflow: hidden; }
.partner-section::after {
    content: '';
    position: absolute; top: -30%; left: -8%;
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 72%);
    z-index: 0;
    pointer-events: none;
}
.partner-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.partner-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); color: #fff;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 800;
    margin-bottom: 18px;
}
.partner-badge svg { width: 15px; height: 15px; color: var(--accent-2); }
.partner-media { position: relative; }
.partner-media::before {
    content: '';
    position: absolute;
    inset: -14px -14px 14px 14px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}
.partner-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--shadow-lg); }
.partner-name { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.01em; }
.partner-content p { font-size: 15.5px; margin-bottom: 24px; }

/* --------------------------------------------------------------------- */
/* Références (projets réalisés)                                         */
/* --------------------------------------------------------------------- */
.references-section {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
    position: relative;
    overflow: hidden;
}
.references-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.references-content .kicker { color: var(--accent-2); }
.references-content .kicker::before { background: var(--accent-2); }
.references-content h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); }
.references-content p { color: rgba(255,255,255,.68); font-size: 15px; margin-bottom: 24px; }
.references-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reference-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 16px 34px rgba(0,0,0,.3);
}
.reference-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.reference-item:hover img { transform: scale(1.08); }
.reference-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,18,30,.88) 0%, rgba(8,18,30,0) 55%); }
.reference-item span { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.3; z-index: 1; }

/* --------------------------------------------------------------------- */
/* Clients — bandeau défilant (logos ou texte)                          */
/* --------------------------------------------------------------------- */
.clients-section { background: var(--bg-soft); overflow: hidden; }
.clients-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.clients-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: clients-scroll 32s linear infinite;
}
.clients-marquee:hover .clients-track,
.clients-marquee.is-paused .clients-track { animation-play-state: paused; }
.clients-track.no-scroll { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
@keyframes clients-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.client-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 108px;
    padding: 0 36px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s ease;
}
.client-badge:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.client-badge img { height: 60px; width: auto; max-width: 190px; object-fit: contain; }

/* --------------------------------------------------------------------- */
/* Galerie teaser (collage flottant)                                     */
/* Colonnes flexbox à assignation explicite (pas de grille auto-placée) : */
/* aucune cellule ne peut se retrouver vide ou en décalage imprévu.       */
/* --------------------------------------------------------------------- */
.gallery-teaser-wrap { position: relative; }
.gallery-teaser-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.gt-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gt-col.gt-col-mid { margin-top: 46px; }
.gt-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 4 / 3.1; box-shadow: var(--shadow-sm); }
.gt-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.gt-item:hover img { transform: scale(1.08); }
.gt-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,36,56,0) 55%, rgba(14,36,56,.45) 100%); opacity: 0; transition: opacity .3s ease; }
.gt-item:hover::after { opacity: 1; }
.gt-cta-wrap { text-align: right; margin-top: -28px; position: relative; z-index: 3; }
.gt-cta-float {
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 16px 34px rgba(14,36,56,.22);
}

/* --------------------------------------------------------------------- */
/* CTA banner                                                            */
/* --------------------------------------------------------------------- */
.cta-banner {
    position: relative;
    padding: 90px 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cta-banner-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(10,24,39,.92) 20%, rgba(10,24,39,.6) 100%); }
.cta-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-banner-inner h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-banner-inner p { color: rgba(255,255,255,.82); margin: 0; font-size: 15.5px; }

/* --------------------------------------------------------------------- */
/* Page header (bannière interne)                                        */
/* --------------------------------------------------------------------- */
.page-header {
    position: relative;
    padding: 190px 0 78px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    margin-top: -1px;
}
.page-header-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,39,.82) 0%, rgba(10,24,39,.62) 100%); }
.page-header-inner { position: relative; z-index: 2; }
.breadcrumb { color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span:first-of-type { margin: 0 8px; }
.page-header h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.page-header-subtitle { color: rgba(255,255,255,.85); font-size: 16.5px; max-width: 560px; margin: 0; }

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); }
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    /* padding-top/bottom seulement : cet élément porte aussi la classe
       ".container" (qui donne déjà 24px de marge gauche/droite). Un
       raccourci "padding: 72px 0 48px" ici écraserait cette marge par du
       0 partout et collerait tout le contenu du footer au bord de l'écran
       sur mobile (là où le ".container" ne se centre plus tout seul). */
    padding-top: 72px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo { height: 60px; width: auto; max-width: 150px; padding: 8px 10px; border-radius: 12px; background: #fff; object-fit: contain; }
.footer-brand-mark span { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: #fff; letter-spacing: .02em; display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand-mark small { font-family: var(--font-body); font-weight: 600; font-size: 11.5px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .07em; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,.68); font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.footer-col a:hover { color: var(--accent); }
.fi { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.footer-address { align-items: flex-start !important; }
.footer-cta { align-self: flex-start; margin-top: 6px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Même remarque que .footer-top : ne pas toucher au padding gauche/droite,
       qui vient de la classe ".container" partagée sur cet élément. */
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    flex-wrap: wrap;
    gap: 10px;
}
.footer-signature a { color: rgba(255,255,255,.7); font-weight: 700; }
.footer-signature a:hover { color: var(--accent); }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.footer-social-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social-link .icon { width: 16px; height: 16px; opacity: 1; }

.mobile-call-fab {
    display: none;
    position: fixed;
    right: 18px; bottom: 18px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    align-items: center; justify-content: center;
    box-shadow: 0 12px 28px rgba(15,124,130,.45);
    z-index: 150;
}
.mobile-call-fab .icon { width: 24px; height: 24px; }

/* ==========================================================================
   Page : À propos
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { text-align: center; padding: 32px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: all .25s ease; }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.value-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.value-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; margin: 0; }
.value-card:nth-child(4n+2) .value-ic { background: var(--navy); color: #a9e2de; }
.value-card:nth-child(4n+3) .value-ic { background: #fdf2de; color: var(--accent-2-dark); }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.expertise-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow .25s ease, transform .25s ease; }
.expertise-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.expertise-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.expertise-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--navy); color: #a9e2de; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.expertise-ic .icon { width: 22px; height: 22px; }
.expertise-card:nth-child(3n+2) .expertise-ic { background: var(--accent); color: #fff; }
.expertise-card:nth-child(3n+3) .expertise-ic { background: var(--accent-2); color: var(--navy); }
.expertise-card h3 { font-size: 16.5px; margin: 0; }
.expertise-card ul { display: flex; flex-direction: column; gap: 10px; }
.expertise-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.8px; color: var(--steel); }
.expertise-card li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   Page : Services (détail)
   ========================================================================== */
.service-detail { padding: 78px 0; border-bottom: 1px solid var(--border); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail:nth-of-type(even) { background: var(--bg-soft); }
.service-detail .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-detail.no-image .container { grid-template-columns: 1fr; max-width: 780px; }
.service-detail.reverse .container { direction: rtl; }
.service-detail.reverse .container > * { direction: ltr; }
.service-detail-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-md); }
.service-detail-media.no-image {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-detail-media.no-image .icon { width: 96px; height: 96px; color: rgba(255,255,255,.32); }
.service-detail:nth-of-type(3n+2) .service-detail-media.no-image { background: var(--accent); }
.service-detail:nth-of-type(3n+3) .service-detail-media.no-image { background: var(--accent-2); }
.service-detail:nth-of-type(3n+3) .service-detail-media.no-image .icon { color: rgba(14,36,56,.3); }

.service-detail-media { position: relative; }
.service-detail-badge {
    position: absolute; top: -18px; left: -18px; z-index: 2;
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(15,124,130,.35);
}
.service-detail-badge .icon { width: 28px; height: 28px; }
.service-detail.reverse .service-detail-badge { left: auto; right: -18px; }
.service-detail:nth-of-type(3n+2) .service-detail-badge { background: var(--accent-2); color: var(--navy); box-shadow: 0 12px 26px rgba(240,180,41,.35); }
.service-detail:nth-of-type(3n+3) .service-detail-badge { background: var(--navy); color: #a9e2de; box-shadow: 0 12px 26px rgba(14,36,56,.35); }

.service-number {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-size: 12.5px; font-weight: 800;
    color: var(--accent-dark); letter-spacing: .09em; margin-bottom: 14px;
    background: var(--accent-light); padding: 6px 14px 6px 10px; border-radius: 999px;
}
.service-number::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.service-detail:nth-of-type(3n+2) .service-number { color: var(--accent-2-dark); background: #fdf2de; }
.service-detail:nth-of-type(3n+2) .service-number::before { background: var(--accent-2); }
.service-detail:nth-of-type(3n+3) .service-number { color: var(--navy); background: #e7edf2; }
.service-detail:nth-of-type(3n+3) .service-number::before { background: var(--navy); }
.service-detail h2 { font-size: clamp(22px, 2.6vw, 28px); }
.service-detail-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.service-detail-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--steel); }
.service-detail-list li svg { width: 17px; height: 17px; color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }

/* Grille compacte des prestations complémentaires (page Nos services) :
   une carte simple par prestation (icône + titre + phrase courte), sans
   grande section dédiée — garde la page dense sans la rendre interminable. */
.compact-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compact-service-card {
    padding: 30px 24px; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--border); transition: all .25s ease;
}
.compact-service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.compact-service-ic {
    width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.compact-service-ic .icon { width: 22px; height: 22px; }
.compact-service-card:nth-child(3n+2) .compact-service-ic { background: var(--navy); color: #a9e2de; }
.compact-service-card:nth-child(3n+3) .compact-service-ic { background: #fdf2de; color: var(--accent-2-dark); }
.compact-service-card h3 { font-size: 16px; margin: 0 0 8px; }
.compact-service-card p { font-size: 13.5px; margin: 0; color: var(--steel); }

.personnel-section { padding: 90px 0; }
.personnel-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hse-section {
    padding: 90px 0;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
    position: relative; overflow: hidden;
}
.hse-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hse-section .kicker { color: var(--accent-2); }
.hse-section .kicker::before { background: var(--accent-2); }
.hse-section h2 { color: #fff; }
.hse-section p { color: rgba(255,255,255,.7); }
.hse-section .service-detail-list li { color: rgba(255,255,255,.78); }
.hse-section .service-detail-list li svg { color: var(--accent-2); }
.hse-section .split-media::before { border-color: var(--accent-2); }

/* ==========================================================================
   Page : Galerie
   ========================================================================== */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
}
.gfilter {
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-weight: 700;
    font-size: 13.8px;
    color: var(--steel);
    cursor: pointer;
    transition: all .2s ease;
}
.gfilter:hover { border-color: var(--accent); color: var(--accent-dark); }
.gfilter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.g-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-soft-2);
    aspect-ratio: 4/3.1;
    transition: opacity .3s ease, transform .3s ease;
}
.g-item.filtered-out { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.08); }
.g-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, rgba(14,36,56,0) 0%, rgba(10,20,32,.86) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all .25s ease;
}
.g-item:hover .g-caption { opacity: 1; transform: translateY(0); }
.g-zoom {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(14,36,56,.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}
.g-item:hover .g-zoom { opacity: 1; }
.g-zoom svg { width: 16px; height: 16px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(8,16,26,.94);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-inner { max-width: 88vw; max-height: 82vh; position: relative; }
.lightbox-inner img { max-width: 88vw; max-height: 76vh; border-radius: 8px; display: block; margin: 0 auto; }
.lightbox-caption { color: rgba(255,255,255,.85); text-align: center; margin-top: 16px; font-size: 14.5px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.25);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

/* ==========================================================================
   Page : Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: start; }
.contact-info-card {
    background: var(--navy);
    color: rgba(255,255,255,.85);
    border-radius: var(--radius);
    padding: 40px 32px;
}
.contact-info-card h3 { color: #fff; font-size: 20px; margin-bottom: 22px; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; background: rgba(15,124,130,.18); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-info-item strong { display: block; color: #fff; font-size: 14.5px; margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { font-size: 14px; color: rgba(255,255,255,.72); }
.contact-info-item a:hover { color: var(--accent); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-map { border-radius: var(--radius); overflow: hidden; margin-top: 24px; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink);
    background: var(--bg-soft);
    transition: all .2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15,124,130,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: #e9f7ee;
    border: 1px solid #b9e6c8;
    color: #1c6b3c;
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-alert.error { background: #fdecec; border-color: #f3bcbc; color: #a52a2a; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .values-grid, .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .domains-grid { grid-template-columns: repeat(3, 1fr); }
    .compact-services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
}

/* Le menu desktop (logo + 5 liens + bouton "Nous contacter") a besoin d'au
   moins ~1000px pour tenir sans se chevaucher ; en dessous, le menu-tiroir
   mobile prend le relais plus tôt qu'avant pour éviter que le bouton ne
   déborde du cadre sur les petites tablettes / fenêtres réduites. */
@media (max-width: 1000px) {
    .topbar-right { display: none; }
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(340px, 86vw);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 100px 28px 28px;
        gap: 4px;
        z-index: 195;
        transform: translateX(100%);
        transition: transform .3s ease;
        box-shadow: -20px 0 50px rgba(0,0,0,.15);
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav a { padding: 15px 18px; font-size: 16px; border-radius: 12px; }
    .main-nav a.active { background: var(--accent-light); }
    .nav-toggle { display: flex; }
    /* Une fois le tiroir ouvert, il recouvre entièrement l'en-tête (donc le
       bouton hamburger/croix qui s'y trouve) : ce bouton devient invisible
       et impossible à cliquer à cet endroit. On le masque proprement dans
       cet état pour ne laisser qu'un seul bouton de fermeture, bien visible,
       à l'intérieur même du tiroir. */
    .nav-toggle.is-open { visibility: hidden; }
    /* Bouton de fermeture (X) bien visible en haut du tiroir mobile. */
    .nav-close {
        display: flex;
        position: absolute;
        top: 24px; right: 24px;
        width: 40px; height: 40px;
        border-radius: 50%;
        background: var(--bg-soft);
        border: none;
        align-items: center;
        justify-content: center;
        color: var(--navy);
        cursor: pointer;
    }
    .nav-close:hover { background: var(--accent-light); color: var(--accent-dark); }
    .nav-close .icon { width: 20px; height: 20px; }
    .header-actions .btn-primary.btn-sm { display: none; }
}

@media (max-width: 860px) {
    .split-section .container,
    .partner-grid,
    .service-detail .container,
    .personnel-section .container,
    .hse-section .container,
    .references-layout { grid-template-columns: 1fr !important; direction: ltr !important; }
    .split-media::before { display: none; }
    .cta-banner-inner { flex-direction: column; text-align: center; }
    .mobile-call-fab { display: flex; }
    /* Sur mobile, le bouton d'appel flottant reste fixé en bas à droite de
       l'écran ; une fois arrivé tout en bas de la page, il se superposait
       au texte de copyright du footer et le rendait illisible/coupé. On
       ajoute de l'espace sous le footer pour que le bouton ne recouvre
       jamais de contenu réel une fois qu'on a scrollé jusqu'en bas. */
    .footer-bottom { flex-direction: column; text-align: center; padding-bottom: 84px; }
    /* "Nos domaines d'intervention" (accueil) : le titre et le texte d'intro
       tiennent côte à côte sur desktop, mais deviennent illisibles (une
       colonne trop étroite) une fois compressés sur mobile/tablette. */
    .section-head.split { flex-direction: column; align-items: flex-start !important; gap: 18px; }
    .section-head.split > div { max-width: none !important; }
    .references-grid { margin-top: 30px; }
}

@media (max-width: 680px) {
    .hero { height: 92vh; }
    /* Sur mobile, 4 points de pagination + 2 flèches à leur taille desktop
       ne tiennent pas dans la largeur de l'écran : la flèche "suivant"
       débordait et se retrouvait coupée par le bord de l'écran. On réduit
       les points et les flèches pour que tout tienne, avec une marge. */
    .hero-controls { bottom: 20px; }
    .hero-controls-inner { gap: 14px; }
    .hero-dots { gap: 8px; }
    .hero-dot { width: 24px; }
    .hero-arrows { gap: 8px; }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow svg { width: 18px; height: 18px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .section { padding: 64px 0; }
    .values-grid, .expertise-grid { grid-template-columns: 1fr; }
    .domains-grid { grid-template-columns: repeat(2, 1fr); }
    .compact-services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .stats-band { margin-top: -56px; }
    /* Sur téléphone, la carte icône + texte côte à côte n'a plus assez de
       place pour des libellés longs ("Équipes formées", "Siemens Energy
       Algeria") : ils débordaient hors de la carte et étaient coupés par
       le bord de l'écran. On empile l'icône au-dessus du texte à la place,
       ce qui donne toute la largeur de la carte au texte. */
    .stat-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }
    .stat-ic { width: 38px; height: 38px; }
    .stat-ic .icon { width: 18px; height: 18px; }
    .stat-card span.label { font-size: 10.5px; }
    .stat-card strong { font-size: 15px; }
    .hero::before { display: none; }
    .gallery-teaser-grid { flex-wrap: wrap; }
    .gt-col { flex: 1 1 100%; }
    .gt-col.gt-col-mid { margin-top: 0; }
    .gt-cta-wrap { text-align: center; margin-top: 22px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .page-header { padding: 150px 0 60px; }
    .cta-banner { background-attachment: scroll; }
    .contact-form-card { padding: 26px; }
    .contact-info-card { padding: 30px 24px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
    .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
    .lightbox-close { top: 14px; right: 14px; }
}
