/* ============================================================
   SEKA TRAVAUX — Design system « Grande Vitesse »
   Direction artistique : cinématographique, marine profond,
   typographie surdimensionnée, filets « rails », accents acier.
   ------------------------------------------------------------
   Sommaire :
   01. Variables & reset
   02. Typographie
   03. Layout (conteneurs, sections, grille)
   04. Header / navigation
   05. Boutons & liens
   06. Hero
   07. Chiffres clés
   08. Cartes expertises
   09. Réalisations
   10. Sections Groupe / Parc / RSE / Recrutement
   11. Footer
   12. Curseur, préloader, utilitaires d'animation
   13. Pages intérieures
   14. Responsive
   ============================================================ */

/* ---------- 01. VARIABLES & RESET ---------- */
:root {
  /* Couleurs SEKA */
  --noir: #0C141D;            /* fond profond (marine quasi noir) */
  --marine: #1B2A3A;          /* bleu marine SEKA */
  --marine-panel: #14202D;    /* panneaux / cartes */
  --acier: #2E80C0;           /* bleu acier SEKA */
  --acier-clair: #5FA8DE;     /* acier lumineux (hover, détails) */
  --blanc: #FFFFFF;
  --gris: #EAF2F9;            /* gris clair SEKA */
  --gris-70: rgba(234, 242, 249, 0.72);
  --gris-45: rgba(234, 242, 249, 0.45);
  --vert: #2E7D52;            /* vert Cap Vert (fil génie écologique) */
  --vert-clair: #46A876;      /* vert lisible sur fond sombre */
  --ligne: rgba(234, 242, 249, 0.14);  /* filets fins */

  /* Typographie */
  --font-titre: 'Space Grotesk', sans-serif;
  --font-texte: 'Inter', sans-serif;

  /* Échelle fluide */
  --t-hero: clamp(2.6rem, 7.2vw, 6.2rem);
  --t-h2: clamp(2rem, 4.6vw, 3.8rem);
  --t-h3: clamp(1.3rem, 2.4vw, 1.9rem);
  --t-manifeste: clamp(1.5rem, 3.4vw, 2.9rem);
  --t-chiffre: clamp(2.4rem, 5.4vw, 4.6rem);
  --t-body: clamp(0.98rem, 1.1vw, 1.08rem);
  --t-small: 0.82rem;

  /* Rythme */
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 84px;

  /* Mouvements */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

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

html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--noir);
  color: var(--gris);
  font-family: var(--font-texte);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--acier); color: var(--blanc); }

/* ---------- 02. TYPOGRAPHIE ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--blanc);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-titre);
  font-size: var(--t-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--acier-clair);
}
/* Petit filet « rail » avant chaque eyebrow */
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--acier);
  box-shadow: 0 4px 0 rgba(46, 128, 192, 0.45); /* double filet = rails */
}
.eyebrow--vert { color: var(--vert-clair); }
.eyebrow--vert::before { background: var(--vert); box-shadow: 0 4px 0 rgba(46, 125, 82, 0.45); }

.h2 { font-size: var(--t-h2); max-width: 18ch; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--gris-70); max-width: 56ch; }
.texte { color: var(--gris-70); max-width: 60ch; }
.accent-acier { color: var(--acier-clair); }
.accent-vert { color: var(--vert-clair); }

/* ---------- 03. LAYOUT ---------- */
.conteneur { width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }
.section--bordure { border-top: 1px solid var(--ligne); }

.section-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* ---------- 04. HEADER ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.45s var(--ease), height 0.45s var(--ease),
              border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* État compact au scroll (classe ajoutée en JS) */
.header.est-compact {
  height: 64px;
  background: rgba(12, 20, 29, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--ligne);
}

.logo { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-titre); }
.logo img { height: 40px; width: auto; }
.logo-texte { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; color: var(--blanc); }
.logo-texte span { color: var(--acier-clair); }
.logo-groupe {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gris-45); display: block; margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--gris-70);
  position: relative; padding: 0.35rem 0; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--acier-clair); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a.actif { color: var(--blanc); }
.nav a:hover::after, .nav a.actif::after { transform: scaleX(1); transform-origin: left; }

/* Burger mobile */
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--blanc); transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 05. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-titre); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.04em; padding: 1rem 1.9rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}
.btn .fleche { transition: transform 0.35s var(--ease); }
.btn:hover .fleche { transform: translateX(5px); }

.btn--plein { background: var(--acier); color: var(--blanc); }
.btn--plein:hover { background: var(--acier-clair); }
.btn--contour { border-color: rgba(234, 242, 249, 0.35); color: var(--blanc); }
.btn--contour:hover { border-color: var(--blanc); background: rgba(234, 242, 249, 0.06); }
.btn--vert { background: var(--vert); color: var(--blanc); }
.btn--vert:hover { background: var(--vert-clair); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-titre); font-size: 0.9rem; font-weight: 500;
  color: var(--acier-clair); letter-spacing: 0.04em;
}
.lien-fleche .fleche { transition: transform 0.35s var(--ease); }
.lien-fleche:hover .fleche { transform: translateX(5px); }

/* ---------- 06. HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 24s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}
/* Overlay dégradé marine — cinématographique */
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,20,29,0.55) 0%, rgba(12,20,29,0.15) 40%, rgba(12,20,29,0.92) 100%),
    linear-gradient(90deg, rgba(27,42,58,0.55) 0%, rgba(27,42,58,0) 60%);
}

.hero-contenu { max-width: 980px; }
.hero h1 {
  font-size: var(--t-hero);
  margin: 1.4rem 0 1.6rem;
}
.hero h1 em { font-style: normal; color: var(--acier-clair); }
.hero .lead { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* Indicateur de scroll */
.scroll-indicateur {
  position: absolute; right: var(--gutter); bottom: clamp(4rem, 9vh, 7rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gris-45); writing-mode: vertical-rl;
}
.scroll-indicateur::after {
  content: ""; width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--acier-clair), transparent);
  animation: scroll-pulse 2.2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 07. CHIFFRES CLÉS ---------- */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-block: 1px solid var(--ligne);
}
.chiffre {
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.2rem, 2.5vw, 2.4rem);
  border-left: 1px solid var(--ligne);
}
.chiffre:first-child { border-left: 0; }
.chiffre-valeur {
  font-family: var(--font-titre); font-size: var(--t-chiffre);
  font-weight: 700; color: var(--blanc); line-height: 1;
  letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 0.1em;
}
.chiffre-valeur .unite { font-size: 0.42em; color: var(--acier-clair); font-weight: 500; }
.chiffre-libelle { margin-top: 0.7rem; font-size: 0.88rem; color: var(--gris-45); }

/* ---------- 08. CARTES EXPERTISES ---------- */
.expertises-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ligne); /* joints fins entre cartes */
  border: 1px solid var(--ligne);
}
.carte-expertise {
  position: relative; overflow: hidden;
  background: var(--marine-panel);
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 1.8rem;
  isolation: isolate;
}
.carte-expertise img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45; filter: saturate(0.85);
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
  will-change: transform;
}
.carte-expertise::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,20,29,0.1) 30%, rgba(12,20,29,0.94) 100%);
}
.carte-expertise:hover img { transform: scale(1.07); opacity: 0.65; }

.carte-num {
  font-family: var(--font-titre); font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--acier-clair); margin-bottom: auto;
}
.carte-expertise--vert .carte-num { color: var(--vert-clair); }
.carte-expertise h3 { font-size: var(--t-h3); margin-bottom: 0.7rem; }
.carte-expertise p {
  font-size: 0.92rem; color: var(--gris-70);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin 0.6s var(--ease);
}
.carte-expertise:hover p, .carte-expertise:focus-within p {
  max-height: 200px; opacity: 1; margin-bottom: 1rem;
}
.carte-expertise .lien-fleche { margin-top: 0.4rem; }
.carte-expertise--vert .lien-fleche { color: var(--vert-clair); }

/* ---------- 09. RÉALISATIONS ---------- */
.projets-grille {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.projet { position: relative; overflow: hidden; display: block; }
.projet--l { grid-column: span 7; aspect-ratio: 16 / 10; }
.projet--m { grid-column: span 5; aspect-ratio: 4 / 3.4; }
.projet img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease); will-change: transform;
}
.projet:hover img { transform: scale(1.06); }
.projet-legende {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(12,20,29,0.9));
  transform: translateY(12px); opacity: 0.92;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.projet:hover .projet-legende { transform: translateY(0); opacity: 1; }
.projet-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--acier-clair); font-family: var(--font-titre);
}
.projet-tag--vert { color: var(--vert-clair); }
.projet-titre { font-family: var(--font-titre); font-size: 1.15rem; font-weight: 500; color: var(--blanc); margin-top: 0.35rem; }
.projet-client { font-size: 0.82rem; color: var(--gris-45); margin-top: 0.2rem; }

/* Grille uniforme (page Réalisations — grand portfolio) */
.projets-grille--uniforme { grid-template-columns: repeat(3, 1fr); }
.projets-grille--uniforme .projet { grid-column: auto; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .projets-grille--uniforme { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1080px) { .projets-grille--uniforme { grid-template-columns: repeat(2, 1fr); } }

/* Avant / Après — photos entières, sans cadre, effet au survol */
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2.2rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.avant-apres .media-cadre { position: relative; overflow: hidden; }
.avant-apres .media-cadre img {
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
  will-change: transform;
}
/* L'état « avant » est légèrement éteint ; tout s'anime au survol */
.avant-apres .media-cadre[data-etiquette="Avant"] img { filter: saturate(0.55) brightness(0.85); }
.avant-apres .media-cadre:hover img { transform: scale(1.05); filter: none; }
/* Largeurs proportionnelles aux formats des photos de Rennes (même hauteur, images entières) */
.avant-apres--rennes { grid-template-columns: 2.22fr 0.56fr; align-items: stretch; }
@media (max-width: 640px) { .avant-apres--rennes { grid-template-columns: 1fr; } }
.avant-apres .media-cadre::before {
  content: attr(data-etiquette); position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--font-titre); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(12, 20, 29, 0.85); color: var(--blanc); padding: 0.45rem 0.9rem; border: 1px solid var(--ligne);
}
@media (max-width: 640px) { .avant-apres { grid-template-columns: 1fr; } }

/* Vignette cliquable : curseur + micro-indice « agrandir » */
.projet { cursor: pointer; }
.projet::before {
  content: "⤢"; position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--blanc);
  background: rgba(12, 20, 29, 0.6); border: 1px solid rgba(234,242,249,0.25); border-radius: 50%;
  opacity: 0; transform: scale(0.8); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.projet:hover::before, .projet:focus-visible::before { opacity: 1; transform: scale(1); }

/* Lightbox (agrandissement d'un chantier) */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 13, 19, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.est-ouvert { opacity: 1; visibility: visible; }
.lightbox-cadre { position: relative; max-width: 1100px; width: 100%; }
.lightbox-img {
  width: 100%; max-height: 78vh; object-fit: contain; display: block;
  border: 1px solid var(--ligne);
  transform: scale(0.96); transition: transform 0.45s var(--ease);
}
.lightbox.est-ouvert .lightbox-img { transform: scale(1); }
.lightbox-legende { margin-top: 1.1rem; text-align: left; }
.lightbox-legende .projet-tag { font-size: 0.8rem; }
.lightbox-legende .projet-titre { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-top: 0.4rem; }
.lightbox-legende .projet-client { font-size: 0.95rem; margin-top: 0.3rem; }
.lightbox-fermer {
  position: absolute; top: -3.2rem; right: 0;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid rgba(234,242,249,0.35); color: var(--blanc);
  font-size: 1.3rem; line-height: 1; transition: background-color 0.3s, border-color 0.3s;
}
.lightbox-fermer:hover { background: rgba(234,242,249,0.1); border-color: var(--blanc); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: rgba(12,20,29,0.6); border: 1px solid rgba(234,242,249,0.25); color: var(--blanc);
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s, border-color 0.3s;
}
.lightbox-nav:hover { background: var(--acier); border-color: var(--acier); }
.lightbox-prec { left: -1.5rem; }
.lightbox-suiv { right: -1.5rem; }
@media (max-width: 760px) {
  .lightbox-prec { left: 0.5rem; } .lightbox-suiv { right: 0.5rem; }
  .lightbox-fermer { top: -3rem; }
}

/* ---------- 10. SECTIONS GROUPE / PARC / RSE / RECRUTEMENT ---------- */

/* Manifeste — très typographique */
.manifeste { font-family: var(--font-titre); font-size: var(--t-manifeste); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; color: var(--blanc); max-width: 24ch; }
.manifeste .mot-sourd { color: var(--gris-45); }

/* Deux colonnes génériques */
.deux-colonnes {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.media-cadre { position: relative; overflow: hidden; }
.media-cadre img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-cadre .parallax-img { will-change: transform; transform: scale(1.15); }

/* Liste technique (parc matériel, habilitations) */
.liste-technique { margin-top: 2rem; border-top: 1px solid var(--ligne); }
.liste-technique li {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--ligne);
  font-size: 0.95rem;
}
.liste-technique .spec { color: var(--gris-45); font-family: var(--font-titre); font-size: 0.82rem; letter-spacing: 0.08em; text-align: right; white-space: nowrap; }

/* Bloc RSE — fil vert Cap Vert */
.bloc-rse {
  border: 1px solid rgba(46, 125, 82, 0.35);
  background: linear-gradient(135deg, rgba(46, 125, 82, 0.12), rgba(20, 32, 45, 0.6));
  padding: clamp(2.5rem, 6vw, 5rem);
}

/* Références clients */
.references { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.reference {
  background: var(--marine-panel); min-height: 110px;
  display: flex; align-items: center; justify-content: center; padding: 1.4rem;
}
.reference img { max-height: 44px; width: auto; }
.reference span { font-family: var(--font-titre); font-size: 1.05rem; font-weight: 500; color: var(--gris-70); letter-spacing: 0.04em; }
/* Logos partenaires : discrets par défaut, zoom + couleurs au survol */
.logo-fondu {
  filter: grayscale(1) brightness(1.55);
  opacity: 0.65;
  transition: transform 0.55s var(--ease), filter 0.45s var(--ease), opacity 0.45s var(--ease);
  will-change: transform;
}
.reference:hover .logo-fondu, .reference:focus-visible .logo-fondu {
  filter: none; opacity: 1; transform: scale(1.15);
}

/* Piliers du groupe */
.piliers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); margin-top: 3rem; }
.pilier { background: var(--marine-panel); padding: 1.8rem 1.5rem; }
.pilier h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.pilier p { font-size: 0.85rem; color: var(--gris-45); }
.pilier--seka { outline: 1px solid var(--acier); outline-offset: -1px; }

/* CTA recrutement plein écran */
.cta-recrutement { position: relative; overflow: hidden; text-align: center; padding-block: clamp(6rem, 14vw, 11rem); }
.cta-recrutement .hero-media img { opacity: 0.35; animation: none; }
.cta-recrutement h2 { font-size: var(--t-h2); max-width: 20ch; margin-inline: auto; }

/* ---------- 11. FOOTER ---------- */
.footer { border-top: 1px solid var(--ligne); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; background: #0A111A; }
.footer-grille { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; }
.footer h5 { font-family: var(--font-titre); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gris-45); margin-bottom: 1.2rem; }
.footer a { color: var(--gris-70); font-size: 0.92rem; transition: color 0.3s; }
.footer a:hover { color: var(--blanc); }
.footer li { margin-bottom: 0.6rem; }
.footer-bas {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.78rem; color: var(--gris-45);
}
.footer-bas a { font-size: 0.78rem; color: var(--gris-45); margin-left: 1.4rem; }

/* ---------- 12. CURSEUR / UTILITAIRES ANIMATION ---------- */
.curseur {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: 36px; height: 36px; border: 1px solid rgba(95, 168, 222, 0.6);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s;
}
.curseur.est-actif { width: 64px; height: 64px; background: rgba(46, 128, 192, 0.12); }
@media (hover: none), (pointer: coarse) { .curseur { display: none; } }

/* Accessibilité : lien d'évitement + focus visible clavier */
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 999;
  background: var(--acier); color: var(--blanc);
  padding: 0.7rem 1.2rem; border-radius: 6px;
  font-family: var(--font-titre); font-size: 0.9rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--blanc); outline-offset: 2px; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--acier-clair);
  outline-offset: 3px;
  border-radius: 2px;
}

/* États initiaux des reveals (JS retire/anime) */
.reveal { opacity: 0; transform: translateY(46px); }
.reveal-gauche { opacity: 0; transform: translateX(-46px); }
.no-js .reveal, .no-js .reveal-gauche { opacity: 1; transform: none; }

/* Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-gauche { opacity: 1 !important; transform: none !important; }
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 13. PAGES INTÉRIEURES ---------- */
.hero-page {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem); overflow: hidden;
}
.hero-page h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin-top: 1.2rem; max-width: 16ch; }

.fil-ariane { font-size: 0.78rem; color: var(--gris-45); letter-spacing: 0.06em; }
.fil-ariane a:hover { color: var(--blanc); }

/* Filtres portfolio */
.filtres { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 3rem; }
.filtre {
  font-family: var(--font-titre); font-size: 0.85rem; padding: 0.6rem 1.3rem;
  border: 1px solid var(--ligne); border-radius: 999px; background: none;
  color: var(--gris-70); cursor: pointer; transition: all 0.3s var(--ease);
}
.filtre:hover { border-color: var(--acier-clair); color: var(--blanc); }
.filtre.est-actif { background: var(--acier); border-color: var(--acier); color: var(--blanc); }

/* Formulaire */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.champ { display: flex; flex-direction: column; gap: 0.45rem; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 0.82rem; font-family: var(--font-titre); letter-spacing: 0.06em; color: var(--gris-70); }
.champ input, .champ select, .champ textarea {
  background: var(--marine-panel); border: 1px solid var(--ligne);
  padding: 0.95rem 1.1rem; color: var(--blanc); font-family: var(--font-texte);
  font-size: 0.95rem; border-radius: 4px; transition: border-color 0.3s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--acier);
}
.champ .erreur-msg { font-size: 0.76rem; color: #E58B8B; display: none; }
.champ.est-invalide input, .champ.est-invalide textarea, .champ.est-invalide select { border-color: #E58B8B; }
.champ.est-invalide .erreur-msg { display: block; }

/* Citation (page Le groupe) */
.citation {
  border-left: 2px solid var(--acier);
  padding: 0.6rem 0 0.6rem 1.8rem;
  font-family: var(--font-titre); font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500; line-height: 1.45; color: var(--blanc); max-width: 46ch;
}
.citation-auteur { margin-top: 1rem; font-family: var(--font-texte); font-size: 0.85rem; color: var(--gris-45); }

/* Cartes postes (page Recrutement) */
.postes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.poste { background: var(--marine-panel); padding: 2.2rem 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; transition: background-color 0.4s var(--ease); }
.poste:hover { background: #182838; }
.poste h3 { font-size: 1.2rem; }
.poste .poste-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--acier-clair); font-family: var(--font-titre); }
.poste p { font-size: 0.9rem; color: var(--gris-70); flex-grow: 1; }

/* Carte (page Contact) */
.carte-osm { border: 1px solid var(--ligne); width: 100%; height: 420px; filter: grayscale(0.9) invert(0.92) hue-rotate(180deg); }

@media (max-width: 860px) { .postes { grid-template-columns: 1fr; } }

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .expertises-grille { grid-template-columns: repeat(2, 1fr); }
  .piliers { grid-template-columns: repeat(2, 1fr); }
  .footer-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(12, 20, 29, 0.97);
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  }
  .nav.est-ouvert { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.4rem; font-family: var(--font-titre); }
  .burger { display: block; }
  .deux-colonnes { grid-template-columns: 1fr; }
  .projet--l, .projet--m { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .formulaire { grid-template-columns: 1fr; }
  .scroll-indicateur { display: none; }
}

@media (max-width: 560px) {
  .expertises-grille { grid-template-columns: 1fr; }
  .carte-expertise { min-height: 380px; }
  .carte-expertise p { max-height: none; opacity: 1; margin-bottom: 1rem; }
  .piliers, .footer-grille { grid-template-columns: 1fr; }
  .chiffre { border-left: 0; border-top: 1px solid var(--ligne); }
  .chiffre:first-child { border-top: 0; }
}
