/* ==========================================================================
   MCLDesign : feuille de style principale (v2)
   Charte : accent #145654 · fond clair #F8F5F1 · neutre #D9D4D0 · texte #020908
   Typos : Syne (h1/h2) · Ubuntu (h3/h4/p/labels) : auto-hébergées
   Grille : desktop marge 80 / gouttière 20 : mobile marge 20 / gouttière 20
   Échelle : h1 72/36 · h2 48/32 · h3 28/24 · h4 20/20 (desktop/mobile)
   p / labels = 18/16px · body large = 20px · CTA = 16px · mentions footer = 16px
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Syne';
  src: url('../assets/fonts/syne-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('../assets/fonts/syne-v24-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../assets/fonts/ubuntu-v21-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../assets/fonts/ubuntu-v21-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../assets/fonts/ubuntu-v21-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('../assets/fonts/ubuntu-v21-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables & reset ---------- */
:root {
  --accent: #145654;
  --fond-clair: #F8F5F1;
  --neutre: #D9D4D0;
  --sombre: #020908;
  --rayon: 16px;             /* corner max 16, harmonisé */
  --marge: 80px;             /* grille desktop */
  --gouttiere: 20px;
  --entete-h: 76px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);   /* Material standard easing */
}

@media (max-width: 768px) {
  :root { --marge: 20px; }   /* grille mobile */
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  background: var(--sombre);
  color: var(--fond-clair);
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: 1.125rem;       /* p = 18px partout */
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Hiérarchie typographique (desktop : mobile en dessous à 768px) */
h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 4.5rem; line-height: 1.1; overflow-wrap: break-word; }
h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 3rem; line-height: 1.15; overflow-wrap: break-word; }
h3 { font-family: 'Ubuntu', sans-serif; font-weight: 500; font-size: 1.75rem; line-height: 1.3; }
h4 { font-family: 'Ubuntu', sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.35; }

/* Body large (intros) : 20px identique desktop/mobile */
.hero__texte, .apropos__texte, .contact__texte, .fiche__intro, .erreur-404__texte {
  font-size: 1.25rem;
}

a { color: inherit; }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(64px, 9vw, 120px) var(--marge); }

.section__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.125rem;       /* label = 18px */
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(32px, 5vw, 64px);
}

/* Pages internes (projets, contact) : dégager le header fixe */
.page > .section:first-child { padding-top: calc(var(--entete-h) + clamp(40px, 6vw, 80px)); }
.page__titre { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Fil d'Ariane ---------- */
.fil-ariane { margin-bottom: clamp(24px, 4vw, 40px); }
.fil-ariane ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.fil-ariane li { display: flex; align-items: center; gap: 8px; }
.fil-ariane li:not(:last-child)::after { content: '/'; opacity: 0.4; }
.fil-ariane a { text-decoration: none; opacity: 0.6; transition: opacity var(--transition); }
.fil-ariane a:hover { opacity: 1; }
.fil-ariane li[aria-current="page"] { opacity: 0.85; font-weight: 500; }
.fil-ariane--centre ol { justify-content: center; }

/* Alternance fond sombre / fond clair */
.section--clair {
  background: var(--fond-clair);
  color: var(--sombre);
}

/* ---------- Header sticky (glassmorphisme) ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: var(--entete-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--marge) 12px;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header--verre {
  background: rgba(2, 9, 8, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(251, 251, 250, 0.08);
}

.header__logo { display: block; }
.header__logo img { width: 48px; height: auto; }

/* Bascule des variantes du logo selon le contexte */
.logo-quand-sombre { display: none; }
.header--verre .logo-quand-clair,
.page-sombre .logo-quand-clair,
body.menu-ouvert .logo-quand-clair { display: none; }
.header--verre .logo-quand-sombre,
.page-sombre .logo-quand-sombre,
body.menu-ouvert .logo-quand-sombre { display: block; }

/* ---------- Burger (cible tactile 48px : Material) ---------- */
.burger {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
}
.burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sombre);
  transition: transform var(--transition), background var(--transition), width var(--transition);
}
.burger span:last-child { width: 20px; }

.header--verre .burger span,
.page-sombre .burger span,
body.menu-ouvert .burger span { background: var(--fond-clair); }

body.menu-ouvert .burger span { width: 28px; }
body.menu-ouvert .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.menu-ouvert .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.nav {
  position: fixed;
  inset: 0;
  background: var(--sombre);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
body.menu-ouvert .nav { opacity: 1; visibility: visible; }
body.menu-ouvert { overflow: hidden; }

.nav ul { list-style: none; text-align: center; }
.nav li + li { margin-top: 1.4rem; }
.nav a {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--fond-clair);
  text-decoration: none;
  transition: color var(--transition);
}
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 12px;
  background: var(--fond-clair);
  color: var(--sombre);
  border-radius: var(--rayon);
  padding: calc(var(--entete-h) + 24px) calc(var(--marge) - 12px) clamp(72px, 9vw, 130px);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gouttiere);
  margin-bottom: clamp(56px, 9vw, 120px);
}

.hero__surtitre { line-height: 1.5; }

.hero__lieu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.hero__corps {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.hero__contenu { flex: 1 1 55%; min-width: 0; }

.hero__illustration {
  flex: 1 1 40%;
  max-width: 529px;
  width: 100%;
  height: auto;
  min-width: 0;
}

/* Écrans larges : image plus grande (+20%) sans resserrer le texte
   sur les résolutions intermédiaires (ex : 1024px) */
@media (min-width: 1280px) {
  .hero__contenu { flex-basis: 47%; }
  .hero__illustration { flex-basis: 48%; max-width: 635px; }
}

/* Palier tablette/petit laptop : entre le mobile empilé (≤768px) et le
   grand écran (≥1280px), le h1 à 72px n'a pas la place de respirer en
   colonne à 45-55% de large. On garde l'empilement et un h1 intermédiaire
   plutôt que de resserrer le texte en accordéon. */
@media (min-width: 769px) and (max-width: 1279px) {
  .hero__corps { flex-direction: column; }
  .hero__illustration { max-width: 420px; }
  .hero h1 { font-size: 2.75rem; }
}

.hero h1 {
  color: var(--accent);
  max-width: 18ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.hero__texte { max-width: 52ch; font-weight: 400; }

.hero__cta { margin-top: clamp(24px, 4vw, 40px); }

/* ---------- Bande chiffres (dans la carte Hero) ---------- */
.hero__stats {
  display: flex;
  border-top: 1px solid var(--neutre);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(32px, 5vw, 48px);
}

.hero__stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__stat + .hero__stat { border-left: 1px solid var(--neutre); }

.hero__stat-nombre {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent);
}
@media (max-width: 768px) {
  .hero__stat-nombre { font-size: 1.5rem; }
}

.hero__stat-legende {
  font-size: 0.875rem;
  color: var(--sombre);
}

/* Rythme typographique : passages clés en 500 dans les paragraphes légers */
.hero__texte strong, .apropos__texte strong, .contact__texte strong { font-weight: 500; }

/* ---------- À propos ---------- */
.apropos__grille {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(var(--gouttiere), 5vw, 72px);
  align-items: start;
}

.apropos__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: var(--rayon);
}

.apropos__contenu {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.apropos__contenu h2 {
  max-width: 24ch;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.apropos__texte { max-width: calc(68ch - 20px); font-weight: 300; }

.apropos__encart {
  border-left: 1px solid rgba(251, 251, 250, 0.18);
  padding-left: clamp(24px, 3vw, 40px);
}

.apropos__encart h3 { margin-bottom: clamp(16px, 2vw, 24px); }

.apropos__guides {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-weight: 300;
}
.apropos__guides li { position: relative; padding-left: 20px; }
.apropos__guides li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.apropos__creds {
  font-size: 0.875rem;
  color: rgba(251, 251, 250, 0.6);
}

/* ---------- Projets (grille 2 colonnes) ---------- */
.projets { padding-top: 0; }

.bloc-projets { padding-top: clamp(56px, 8vw, 100px); }

.bloc-projets__cat { margin-bottom: clamp(28px, 4vw, 48px); }

.bloc-projets__chevron {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 48px;
  padding: 0 4px 0 28px;
  border: 1.5px solid var(--sombre);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  color: var(--sombre);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.bloc-projets__chevron:hover {
  background: var(--sombre);
  color: var(--fond-clair);
}

.bloc-projets__chevron-icone {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--sombre);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition);
}
.bloc-projets__chevron:hover .bloc-projets__chevron-icone { border-color: var(--fond-clair); }
.bloc-projets__chevron-icone svg { width: 18px; height: 18px; }
.bloc-projets__chevron[aria-expanded="true"] .bloc-projets__chevron-icone { transform: rotate(180deg); }

.bloc-projets__corps {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bloc-projets__corps.est-ouvert { padding-top: clamp(32px, 4vw, 48px); }

.grille-projets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gouttiere);
}

.projet { margin: 0; text-decoration: none; }

.projet__visuel {
  background: var(--fond-clair);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 2px 4px 0 rgba(20, 86, 84, 0.2);
}

.projet__visuel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform var(--transition);
}
.projet:hover .projet__visuel img { transform: scale(1.02); }

.projet__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gouttiere);
  margin-top: 14px;
  font-size: 1.125rem;
}

.projet__nom { font-weight: 500; }
.projet__annee::before { content: '/'; }

.projets__lien-page {
  text-align: center;
  padding-top: clamp(48px, 7vw, 88px);
}

/* ---------- Expertise ---------- */
.expertise {
  padding-top: clamp(96px, 13vw, 160px);
  padding-bottom: clamp(96px, 13vw, 160px);
}

.expertise__titre {
  max-width: 32ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.expertise__texte {
  max-width: 68ch;
  font-weight: 300;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.expertise__cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

/* Carte retournable : div role="button" (accessible, focusable au clavier
   via js/main.js) contenant deux faces positionnées en 3D. Un <button>
   natif ici déclenche un bug de rendu Chromium (le rotateY ne s'applique
   pas sur un descendant d'un item de grille CSS) : d'où le rôle ARIA
   plutôt qu'un vrai <button>. Le clic/Entrée bascule .est-retournee, qui
   applique la rotation à .carte-expertise__interieur. */
.carte-expertise__bouton {
  display: block;
  position: relative;
  width: 100%;
  min-height: clamp(360px, 32vw, 480px);
  cursor: pointer;
  perspective: 1800px;
}
.carte-expertise__bouton:focus-visible .carte-expertise__face--avant {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carte-expertise__interieur {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.carte-expertise__bouton.est-retournee .carte-expertise__interieur { transform: rotateY(180deg); }

.carte-expertise__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(251, 251, 250, 0.18);
  border-radius: var(--rayon);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.carte-expertise__face--arriere {
  transform: rotateY(180deg);
  justify-content: center;
  gap: 20px;
}

.carte-expertise__texte {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carte-expertise__titre { display: block; }
.carte-expertise__sous-titre, .carte-expertise__num { display: block; }
.carte-expertise__num { font-size: 1.125rem; }

.carte-expertise__titre-dos {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.carte-expertise__texte-dos { font-weight: 300; }

.carte-expertise__icone-flip {
  position: absolute;
  right: clamp(24px, 3.5vw, 40px);
  bottom: clamp(24px, 3.5vw, 40px);
  width: 22px;
  height: 22px;
  opacity: 0.6;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--fond-clair);
  color: var(--sombre);
  border-radius: var(--rayon);
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px);
  max-width: 1160px;
  margin: 0 auto;
}

.faq h2 {
  color: var(--accent);
  max-width: 22ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.faq__item { border-bottom: 1px solid var(--neutre); }
.faq__item:first-of-type { border-top: 1px solid var(--neutre); }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  min-height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--accent);
}

.faq__icone {
  flex-shrink: 0;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--transition);
}
.faq__q[aria-expanded="true"] .faq__icone { transform: rotate(45deg); }

.faq__r {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__r p {
  padding: 0 4px 28px;
  max-width: 72ch;
}

/* ---------- Ils m'ont fait confiance ---------- */
.confiance {
  text-align: center;
  border-bottom: 1px solid var(--neutre);
}

.confiance h2 {
  color: var(--accent);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.confiance__logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.confiance__logos img {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

.cta h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.section--clair.cta h2 { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: var(--accent);
  color: var(--fond-clair);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 1rem;           /* CTA = 16px */
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover {
  background: var(--fond-clair); /* hover : fond blanc, texte vert bold */
  color: var(--accent);
  font-weight: 700;
  transform: translateY(-2px);
}

/* ---------- Chemin d'étapes (pointillé blanc 25% → beige au scroll) ---------- */
.chemin {
  position: relative;
  height: 240px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.chemin__trace {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
}

.chemin__base, .chemin__progres {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 0.5 10;
  stroke-linecap: round;
}
.chemin__base { stroke: rgba(251, 251, 250, 0.25); }
.chemin__progres { stroke: var(--neutre); }

.chemin__etapes { list-style: none; }

.chemin__etape {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 150px;
  text-align: center;
}

.chemin__icone {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(251, 251, 250, 0.25);
  border-radius: 50%;
  background: var(--sombre);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(251, 251, 250, 0.5);
  transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.chemin__icone svg { width: 24px; height: 24px; }

.chemin__nom {
  font-size: 0.875rem;       /* Small = 14px */
  font-weight: 400;
  line-height: 1.3;
  color: rgba(251, 251, 250, 0.5);
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), font-weight 0.4s;
}

.chemin__etape.est-atteint .chemin__icone {
  border-color: var(--neutre);
  color: var(--neutre);
}
.chemin__etape.est-atteint .chemin__nom {
  color: var(--neutre);
  font-weight: 500;
}

/* Variante fond clair (section Projets) : gris foncé à 60% pour un contraste
   RGAA suffisant (~5,2:1 sur #F8F5F1, seuil AA texte 4,5:1 / UI 3:1) */
.section--clair .chemin__base { stroke: rgba(2, 9, 8, 0.6); }
.section--clair .chemin__icone {
  border-width: 2px;
  border-color: rgba(2, 9, 8, 0.6);
  background: var(--fond-clair);
  color: rgba(2, 9, 8, 0.6);
}
.section--clair .chemin__nom { color: rgba(2, 9, 8, 0.6); }
.section--clair .chemin__etape.est-atteint .chemin__icone {
  border-color: var(--accent);
  color: var(--accent);
}
.section--clair .chemin__etape.est-atteint .chemin__nom { color: var(--accent); }
.section--clair .chemin__etapes { border-left-color: rgba(2, 9, 8, 0.6); }

@media (max-width: 860px) {
  .chemin { height: auto; }
  .chemin__trace { display: none; }
  .chemin__etapes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-left: 2px dotted rgba(251, 251, 250, 0.25);
    padding-left: 24px;
    margin-left: 23px;
  }
  .chemin__etape {
    position: static;
    transform: none;
    flex-direction: row;
    width: auto;
    text-align: left;
  }
  .chemin__icone { flex-shrink: 0; }
}

/* ---------- Fiche projet ---------- */
.fiche { max-width: 1160px; margin: 0 auto; }

.fiche h1 { margin-bottom: clamp(20px, 3vw, 32px); }

.fiche__intro {
  font-weight: 300;
  max-width: 60ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.fiche__visuel {
  background: var(--fond-clair);
  border-radius: var(--rayon);
  overflow: hidden;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.fiche__visuel img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }

.fiche__corps h2, .fiche > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.fiche__corps p {
  font-weight: 300;
  max-width: 68ch;
  margin-bottom: clamp(24px, 3.5vw, 32px);
}
.fiche__corps p:last-child { margin-bottom: clamp(36px, 5vw, 56px); }
.fiche__corps ul {
  font-weight: 300;
  max-width: 68ch;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-left: 1.2em;
}
.fiche__corps li { margin-bottom: 8px; }

.fiche__galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gouttiere);
  margin-top: 24px;
}

.fiche__retour { margin-top: clamp(48px, 7vw, 80px); }

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

/* ---------- Formulaire de contact ---------- */
.formulaire {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: clamp(32px, 5vw, 48px);
}

.champ { display: flex; flex-direction: column; gap: 10px; }

.champ label { font-weight: 500; }

.champ input, .champ textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(251, 251, 250, 0.35);
  padding: 12px 4px;
  color: var(--fond-clair);
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  transition: border-color var(--transition);
}
.champ textarea { resize: vertical; min-height: 140px; }

.champ input::placeholder, .champ textarea::placeholder { color: rgba(251, 251, 250, 0.4); }

.champ input:focus, .champ textarea:focus {
  border-bottom-color: var(--neutre);
}

.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] {
  border-bottom-color: #FF7A72;
}

.champ__erreur {
  color: #FF7A72;
  font-size: 0.875rem;       /* Small = 14px */
}

.formulaire__piege {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.formulaire .btn { align-self: flex-start; }
.formulaire .btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.formulaire__confirmation { font-weight: 500; color: var(--neutre); }

/* ---------- Page 404 ---------- */
.erreur-404 { text-align: center; }

.erreur-404__illustration {
  position: relative;
  max-width: 900px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  border-radius: var(--rayon);
  overflow: hidden;
}

.erreur-404__fond { width: 100%; display: block; }

.erreur-404__numero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(140px, 26vw, 300px);
  height: auto;
}

.erreur-404 h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 auto 12px;
  max-width: 34ch;
}

.erreur-404__texte { margin-bottom: clamp(28px, 4vw, 44px); font-weight: 300; }

/* ---------- Page contact ---------- */
.contact__texte {
  max-width: 52ch;
  font-weight: 300;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.contact__coordonnees-titre {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: clamp(48px, 7vw, 80px);
  margin-bottom: 16px;
}

.contact__coordonnees {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__coordonnees a { text-decoration: none; }
.contact__coordonnees a:hover { color: var(--neutre); }

/* ---------- Footer (3 colonnes : plan du site / info / logo) ---------- */
.footer {
  border-top: 1px solid rgba(251, 251, 250, 0.18);
  padding: clamp(40px, 6vw, 72px) var(--marge) clamp(40px, 5vw, 56px);
}

.footer__grille {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gouttiere);
  align-items: start;
}

.footer__col h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; margin-bottom: 20px; }

.footer__col ul { list-style: none; }
.footer__col li + li, .footer__col p + p { margin-top: 12px; }

.footer__col a { text-decoration: none; transition: color var(--transition); }
.footer__col a:hover { color: var(--neutre); }

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__col--logo img { margin-bottom: 16px; }

.footer__nom {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer__score { color: var(--neutre); }

.footer__credits {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 1rem;           /* mentions = 16px */
  text-align: center;
}
.footer__credits a { text-decoration: none; transition: color var(--transition); }
.footer__credits a:hover { color: var(--neutre); }
.footer__puce { color: var(--neutre); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grille-projets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grille-projets { grid-template-columns: 1fr; }
  .expertise__cartes { grid-template-columns: 1fr; }
  .apropos__grille { grid-template-columns: 1fr; }
  .apropos__portrait { max-width: 220px; }
  .apropos__contenu { grid-template-columns: 1fr; }
  .apropos__encart {
    border-left: none;
    border-top: 1px solid rgba(251, 251, 250, 0.18);
    padding-left: 0;
    padding-top: clamp(24px, 4vw, 40px);
  }

  .footer__grille { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .hero__meta { flex-direction: column; gap: 20px; }
}

/* Échelle typographique mobile (placée en dernier pour gagner la cascade
   sur les règles de base h1-h4/body définies plus haut) */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }  /* 36px */
  h2 { font-size: 2rem; }     /* 32px */
  h3 { font-size: 1.5rem; }   /* 24px */
  body { font-size: 1rem; }   /* 16px : corps de texte */

  .hero__corps { flex-direction: column; }
  .hero__illustration { max-width: 322px; }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hero :focus-visible, .faq :focus-visible {
  outline-color: var(--sombre);
}
/* Sur fond sombre, l'anneau accent (#145654 sur #020908) tombe sous 3:1 (~2,4:1) :
   on bascule sur fond-clair, qui reste lisible sur tous les fonds sombres du site. */
.page-sombre :focus-visible {
  outline-color: var(--fond-clair);
}

.lien-evitement {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--accent);
  color: var(--fond-clair);
  padding: 12px 20px;
  border-radius: var(--rayon);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.lien-evitement:focus-visible {
  top: 12px;
  outline-color: var(--fond-clair);
}
