/* ==========================================================================
   ARCHIPOLE — Silvia Passoni, architecte à Bruxelles
   Feuille de style principale — direction graphique bold / monochrome
   ========================================================================== */

/* -------------------- Fonts -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@200;300;400;500;600&family=Jost:wght@200;300&display=swap');

/* -------------------- Design tokens -------------------- */
:root{
  --ink:            #6c757d;   /* couleur principale (ex-#0a0a0a) */
  --ink-soft:       #5b5b58;
  --paper:          #ffffff;
  --paper-alt:      #f2f2ef;
  --paper-deep:     #e7e7e2;
  --line:           #d8d8d3;
  --teal:           #007f9b; /* contraste AA avec le blanc (4,7:1) */
  --teal-dark:      #056376;
  --teal-tint:      #e1f1f3;
  --teal-bright:    #7fd3e6;   /* bleu canard éclairci : filets et icônes sur fond foncé */
  --teal-pale:      #d8f2f8;   /* bleu très pâle : texte posé sur les photos */
  --logo:           #1b87a4;   /* bleu du logo Archipole (relevé sur le fichier d'origine) */
  --white:          #ffffff;

  --font-display:   'Sora', 'Helvetica Neue', Arial, sans-serif;
  /* Logo : ITC Avant Garde Gothic si elle est installée, sinon des polices
     géométriques très proches (Century Gothic sur Windows/macOS, Jost sinon). */
  --font-logo:      'ITC Avant Garde Gothic Std', 'ITC Avant Garde Gothic', 'Century Gothic', 'Jost', 'Sora', sans-serif;
  --font-body:      'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:      1240px;
  --gutter:         clamp(1.25rem, 4vw, 3rem);
  --radius:         0px;

  --ease:           cubic-bezier(.22,.61,.36,1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);   /* texte courant : gris foncé, lisible partout */
  font-family: var(--font-body);
  font-weight: 300;            /* typographie fine sur tout le site */
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select{ font: inherit; }
svg{ display: block; }

::selection{ background: var(--ink); color: var(--paper); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* -------------------- Typography helpers -------------------- */
.kicker{
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker::before{
  content: "";
  width: 32px;
  height: 3px;
  background: var(--teal);
  display: inline-block;
}
.kicker.center{ justify-content: center; }
.section-ink .kicker{ color: var(--paper); }
.section-ink .kicker::before, .site-footer .kicker::before{ background: var(--teal-bright); }
.section-ink .brand .wordmark b, .site-footer .brand .wordmark b{ color: var(--paper); }

h1, .h1, h2, .h2, h3, .h3{ color: var(--ink); }   /* titres : couleur principale */
.section-ink h1, .section-ink h2, .section-ink h3, .hero h1{ color: var(--paper); }
/* petits titres sur fond gris pâle : gris foncé pour rester lisibles */
.section-alt h3, .section-alt .filter-btn, .service-card h3, .process-step h3{ color: var(--ink-soft); }
h1, .h1{
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-size: clamp(2rem, 8vw, 5rem);
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -.005em;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: .005em;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}
.lede{
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46em;
}
.section-ink .lede{ color: var(--paper); }

/* Centred heading flanked by thin rules — "NOS PARTENAIRES" pattern */
.rule-head{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.rule-head::before, .rule-head::after{ content:""; flex:1; height:1px; background: var(--line); }
.rule-head h2{ white-space: nowrap; text-align:center; }
.section-ink .rule-head::before, .section-ink .rule-head::after{ background: rgba(255,255,255,.2); }

/* Editorial drop-cap paragraph */
.dropcap p:first-of-type::first-letter{
  font-family: var(--font-display);
  font-weight: 300;
  float: left;
  font-size: 4.4rem;
  line-height: .8;
  padding: .1rem .4rem 0 0;
  color: var(--ink);
}
.dropcap{ columns: 2; column-gap: clamp(2rem,4vw,3.5rem); }
.dropcap p{ margin-bottom: 1.1rem; color: var(--ink-soft); break-inside: avoid; }

/* -------------------- Buttons -------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg{ width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover{ transform: translate(3px,-3px); }
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--teal); border-color: var(--teal); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--paper); }
.btn-accent{ background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-accent:hover{ background: var(--ink); border-color: var(--ink); }
.section-ink .btn-ghost{ border-color: var(--paper); color: var(--paper); }
.section-ink .btn-ghost:hover{ background: var(--paper); color: var(--ink); }
.btn:hover svg{ transform: translateX(3px); }

/* -------------------- Header -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand{ display: flex; align-items: center; gap: .85rem; }
.brand .cube{
  width: 68px; height: 68px; flex: none;
}
/* Logo « ARCHIPOLE » — proportions relevées sur le logo d'origine :
   tout en bleu, « POLE » 1,46 fois plus grand et aligné par le haut. */
.brand .wordmark{
  font-family: var(--font-logo);
  font-weight: 200;            /* Extra Light */
  color: var(--logo);
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1;
  font-size: 1.548rem;         /* 1,2rem × 1,29 */
  white-space: nowrap;
}
.brand .wordmark b{
  font-weight: 200;
  color: inherit;
  font-size: 1.46em;
  letter-spacing: .12em;
  position: relative;
  top: .22em;                  /* aligne le haut des lettres sur « ARCHI » */
  line-height: 0;
}

.main-nav{ display: flex; align-items: center; gap: 2.2rem; }
.main-nav a{
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  position: relative;
  padding: .3rem 0;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--teal);
  transition: right .25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after{ right: 0; }
.main-nav a[aria-current="page"]{ color: var(--teal-dark); }

.header-actions{ display: flex; align-items: center; gap: 1.2rem; }

/* Bouton « Prendre contact » de l'en-tête : version compacte */
.site-header .btn-accent{ height: 40px; padding: 0 1.15rem; font-size: .74rem; line-height: 1; }

/* Sélecteur de langue : menu déroulant */
.lang-menu{ position: relative; }
.lang-menu summary{
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: .4rem;
  height: 40px; padding: 0 .65rem;
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: .76rem; font-weight: 300; letter-spacing: .06em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-menu summary::-webkit-details-marker{ display: none; }
.lang-menu summary svg{ width: 16px; height: 16px; flex: none; }
.lang-menu summary .chevron{ width: 12px; height: 12px; transition: transform .2s var(--ease); }
.lang-menu[open] summary .chevron{ transform: rotate(180deg); }
.lang-menu summary:hover, .lang-menu[open] summary{ background: var(--teal); border-color: var(--teal); color: var(--white); }
.lang-menu summary:focus-visible{ outline: 3px solid var(--teal); outline-offset: 2px; }
.lang-menu ul{
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 120;
  min-width: 170px; padding: .35rem 0;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 0 12px 28px rgba(108,117,125,.14);
}
.lang-menu li a{
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem 1rem; font-size: .9rem; font-weight:  400; color: var(--ink);
}
.lang-menu li a b{ font-family: var(--font-display); font-weight: 300; font-size: .74rem; letter-spacing: .06em; width: 1.6rem; color: var(--teal-dark); }
.lang-menu li a:hover, .lang-menu li a:focus-visible{ background: var(--teal-tint); outline: none; }
.lang-menu li a[aria-current]{ background: var(--ink); color: var(--paper); }
.lang-menu li a[aria-current] b{ color: var(--paper); }

.nav-toggle{
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink);
  position: relative; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before{ position:absolute; top:-8px; }
.nav-toggle span::after{ position:absolute; top:8px; }
.nav-open .nav-toggle span{ background: transparent; }
.nav-open .nav-toggle span::before{ top:0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after{ top:0; transform: rotate(-45deg); }

/* -------------------- Footer -------------------- */
.site-footer{
  background-color: var(--ink);   /* la texture est posée plus bas */
  color: var(--paper);
  padding: 5.5rem 0 2rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.site-footer .brand .wordmark{ color: var(--paper); }
/* cube du logo éclairci sur les fonds gris (pied de page et bandeaux) */
.site-footer .brand .cube, .section-ink .brand .cube{ filter: brightness(0) invert(1); opacity: .95; }
.site-footer .brand .wordmark b, .section-ink .brand .wordmark b{ color: var(--paper); }
.footer-tag{ margin-top: 1.2rem; color: var(--paper); max-width: 30ch; font-size: .95rem; }
.footer-col h4{
  font-family: var(--font-display); font-weight: 300; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--paper); margin-bottom: 1.2rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: .75rem; }
.footer-col a{ font-size: .95rem; color: var(--paper); }
.footer-col a:hover{ color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--teal-bright); text-decoration-thickness: 2px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
  flex-wrap: wrap;
  gap: .8rem;
}

/* -------------------- Reveal on scroll -------------------- */
/* L'effet ne s'applique que si le JS tourne (classe .js sur <html>) :
   sans JS, ou si l'animation est désactivée, le contenu reste lisible. */
.js [data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js [data-reveal].is-visible{ opacity: 1; transform: none; }
.js [data-reveal-group] [data-reveal]{ transition-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce){
  .js [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* -------------------- Hero (home) -------------------- */
/* Voile des photos : gris foncé de la même famille (#212529), pour garder le texte blanc lisible */
.hero{
  position: relative;
  /* hauteur adaptée aux images du diaporama (1280 x 382 px) */
  min-height: clamp(460px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0 0;
}
.hero-bg{
  position: absolute; inset: 0;
  z-index: 0;
}
/* Diaporama : les images se succèdent en fondu */
.hero-bg img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-bg img:first-child, .hero-bg img.is-current{ opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .hero-bg img{ transition: none; }
}
/* Pastilles de navigation du diaporama */
.hero-dots{
  position: absolute; right: var(--gutter); bottom: clamp(1rem, 3vw, 2rem); z-index: 2;
  display: flex; gap: .5rem;
}
.hero-dots button{
  width: 28px; height: 4px; padding: 0; border: 0;
  background: rgba(255,255,255,.45);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero-dots button:hover{ background: rgba(255,255,255,.8); }
.hero-dots button[aria-current]{ background: var(--paper); transform: scaleY(1.8); }
.hero-dots button:focus-visible{ outline: 2px solid var(--paper); outline-offset: 4px; }
/* Aucun voile sur la photo : elle s'affiche en couleurs réelles.
   Le contraste du texte est assuré par le seul dégradé local .hero-copy::before. */
.hero-copy .lede, .hero-copy h1, .hero-copy .kicker{ text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 1px 22px rgba(0,0,0,.45); }
.hero .container{ position: relative; z-index: 1; padding-bottom: clamp(3rem, 7vw, 5.5rem); padding-top: 3rem; width: 100%; min-width: 0; }
.hero-copy{ max-width: 54rem; position: relative; }
/* dégradé sombre derrière le seul bloc de texte, fondu vers la droite */
.hero-copy::before{
  content: "";
  position: absolute;
  inset: -2.5rem -2rem -2.5rem -50vw;
  z-index: -1;
  background: linear-gradient(90deg, rgba(33,37,41,.90) 0%, rgba(33,37,41,.89) 79%, rgba(33,37,41,.48) 91%, rgba(33,37,41,0) 100%);
  pointer-events: none;
}
@media (max-width: 760px){
  /* sur mobile le texte occupe toute la largeur : le dégradé la couvre entièrement */
  .hero-copy::before{
    inset: -2rem -50vw;
    background: linear-gradient(90deg, rgba(33,37,41,.86) 0%, rgba(33,37,41,.86) 88%, rgba(33,37,41,.72) 100%);
  }
}
.hero-copy .lede{ max-width: 44rem; }
.hero-copy .kicker{ color: var(--paper); margin-bottom: 1.6rem; }
.hero-copy .kicker::before{ background: var(--teal-pale); }
.hero-copy h1{ color: var(--paper); margin-bottom: 1.6rem; }
.hero-copy h1 em{ font-style: normal; color: var(--teal-pale); }
.hero-copy .lede{ color: rgba(255,255,255,.78); margin-bottom: 2.4rem; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-ghost{ border-color: var(--paper); color: var(--paper); }
.hero-actions .btn-ghost:hover{ background: var(--paper); color: var(--ink); }
.hero-actions .btn-accent:hover{ background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* -------------------- Generic section scaffolding -------------------- */
section{ padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.section-head .kicker{ margin-bottom: 1.1rem; }
.section-head h2::after{ content:''; display:block; width: 56px; height: 3px; background: var(--teal); margin-top: 1rem; }
.section-ink .section-head h2::after{ background: var(--teal-bright); }
.section-head .lede{ margin-top: 1.1rem; }
/* -------------------- Textures de fond -------------------- *
 * Motifs dessinés en CSS (aucune image à charger), volontairement très
 * discrets : ils donnent de la matière aux grands aplats sans concurrencer
 * les photos ni le texte. Pour les atténuer ou les renforcer, jouer sur les
 * opacités ci-dessous (ex. .045 → .03).
 * ------------------------------------------------------------------------ */

/* Fond gris pâle : trame de calque d'architecte (carreaux fins) */
.section-alt{
  background-color: var(--paper-alt);
  background-image:
    linear-gradient(to right, rgba(0,127,155,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,127,155,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: center;
}
/* Fonds foncés : fines hachures diagonales */
.section-ink, .stats-strip, .site-footer{
  background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,.06) 0 1px, transparent 1px 10px);
}
.section-ink{ background-color: var(--ink); color: var(--paper); }
/* Fond blanc : semis de points, posé seulement sur les sections marquées
   .section-dots dans les maquettes (admin/templates/). */
.section-dots{
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0,127,155,.18) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center;
}
.section-ink p, .section-ink li, .section-ink span{ color: var(--paper); }

/* -------------------- Stats band (bold, full-bleed black) -------------------- */
.stats-strip{
  background-color: var(--ink);   /* la texture est posée plus haut */
  color: var(--paper);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}
.stats-strip div{
  padding: clamp(2.4rem, 5vw, 3.6rem) 1.5rem;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.16);
}
.stats-strip div:first-child{ border-left: none; }
.stats-strip strong{
  display: block; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--paper); line-height: 1;
}
.stats-strip span{ font-size: .78rem; letter-spacing:.03em; color: var(--paper); display:block; margin-top:.7rem; }

/* -------------------- Philosophy / quote block -------------------- */
.quote-block{ display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.quote-sketch-wrap{ border-left: 3px solid var(--ink); padding-left: clamp(1.2rem, 3vw, 2rem); }
.quote-sketch{ width: 100%; height: auto; display: block; }
.eyebrow-quote{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.quote-block p + p{ margin-top: 1.4rem; }
.quote-attrib{ margin-top: 1.8rem; display: flex; align-items: center; gap: 1rem; }
.quote-attrib .line{ width: 44px; height: 3px; background: var(--teal); }
.quote-attrib strong{ font-family: var(--font-display); font-weight: 300; font-size: 1rem; text-transform:uppercase; letter-spacing:.03em; }
.quote-attrib span{ display:block; font-size: .82rem; color: var(--ink-soft); }

/* -------------------- Services grid -------------------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.service-card{
  background: var(--paper);
  padding: 2.8rem 2.2rem;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.service-card:hover{ background: var(--teal-dark); color: var(--white); }
.service-card h3{ margin-bottom: .9rem; transition: color .3s var(--ease); }
.service-card:hover h3{ color: var(--teal-pale); }   /* titre en ton clair au survol */
.service-card p{ color: var(--ink-soft); font-size: .95rem; transition: color .3s var(--ease); }
.service-card:hover p{ color: var(--paper); }

/* -------------------- Process steps -------------------- */
.process-steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.process-step{ position: relative; padding-top: 1.4rem; border-top: 3px solid var(--teal); counter-increment: step; }
.process-step::before{
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display); font-weight: 300; font-size: 2.4rem; line-height: 1;
  color: var(--teal);
}
.process-step h3{ margin-top: .9rem; margin-bottom: .8rem; font-size: 1.05rem; }
.process-step p{ font-size: .92rem; color: var(--ink-soft); }

/* -------------------- Ligne du temps des missions de l'architecte -------------------- */
.mission-line{
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.2rem;
  border-left: 1px solid var(--line);
}
.mission-step{
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.mission-step:first-child{ padding-top: .4rem; }
.mission-step:last-child{ border-bottom: 0; padding-bottom: .4rem; }
/* pastille lettrée, posée sur le filet vertical */
.mission-marker{
  position: relative;
  left: -2.4rem;
  margin-right: -2.4rem;
  align-self: start;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; line-height: 1;
  transition: background .3s var(--ease);
}
.mission-step:hover .mission-marker{ background: var(--teal-dark); }
.mission-body h3{
  margin: .2rem 0 .7rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.mission-code{
  display: inline-block;
  margin-left: .5rem;
  padding: .15rem .5rem;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  vertical-align: middle;
}
.mission-body p{ margin: 0; font-size: .95rem; color: var(--ink-soft); }
.mission-note{
  margin: 1.8rem 0 0;
  font-size: .78rem; color: var(--ink-soft);
  padding-left: .9rem; border-left: 2px solid var(--teal);
}

@media (max-width: 720px){
  .mission-line{ padding-left: 0; border-left: 0; }
  .mission-step{ grid-template-columns: 1fr; gap: .9rem; }
  .mission-marker{
    left: 0; margin-right: 0;
    width: 44px; height: 44px; font-size: 1.2rem;
  }
}

/* -------------------- Aperçu des réalisations (accueil) : vignettes carrées -------------------- */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.portfolio-item{
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.portfolio-item img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.04);
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.portfolio-item:hover img{ transform: scale(1.05); filter: grayscale(0) contrast(1.02); }
.portfolio-item .tag{
  position: absolute; left: 0; bottom: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem .9rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.portfolio-item:hover .tag{ opacity: 1; transform: none; }

.portfolio-cta{ text-align: center; margin-top: 3.5rem; }

/* -------------------- Actualités (accueil) -------------------- */
.news-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.news-card{
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  padding: 1.6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.news-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 36px rgba(33,37,41,.10); }
.news-img{ margin: -1.6rem -1.6rem 1.3rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-alt); }
.news-img img{ width: 100%; height: 100%; object-fit: cover; }
.news-card time{
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark);
}
.news-card h3{ margin: .6rem 0 .7rem; font-size: 1.05rem; color: var(--ink-soft); }
.news-card p{ font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.news-card .news-link{
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-dark); border-bottom: 2px solid var(--teal); padding-bottom: .25rem; align-self: flex-start;
}
.news-card .news-link svg{ width: 14px; height: 14px; transition: transform .25s var(--ease); }
.news-card .news-link:hover svg{ transform: translateX(3px); }

/* -------------------- Galerie : filtres à gauche, photos à droite -------------------- */
.gallery-layout{
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.filter-rail{ position: sticky; top: 110px; }
.filter-rail-title{
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1rem;
}
.filter-rail .filter-bar{ display: grid; gap: .35rem; margin-bottom: 0; }
.filter-rail .filter-btn{
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  width: 100%; text-align: left; border-width: 1px;
}
.filter-rail .filter-btn .count{ font-size: .72rem; opacity: .75; letter-spacing: 0; }

/* Chaque catégorie a sa couleur d'accent (--cat, posée par la maquette).
   Au repos : un filet coloré à gauche. Au survol et à l'état actif : la
   couleur prend toute la place, sans changer la forme des boutons. */
.filter-rail .filter-btn[style*="--cat"]{ border-left: 3px solid var(--cat); }
.filter-rail .filter-btn[style*="--cat"]:hover{
  background: var(--teal-tint);
  background: color-mix(in srgb, var(--cat) 12%, #fff);
  border-color: var(--cat);
  color: var(--teal-dark);
  /* texte assombri : garde un contraste AA sur le fond teinté */
  color: color-mix(in srgb, var(--cat) 75%, #000);
}
.filter-rail .filter-btn[style*="--cat"].is-active{
  background: var(--cat); border-color: var(--cat); color: var(--white);
}
.gallery-hint{
  font-size: .82rem; color: var(--ink-soft); margin: 0 0 1.2rem;
  padding-left: .9rem; border-left: 2px solid var(--teal);
}
.gallery-hint[hidden]{ display: none; }

@media (max-width: 980px){
  .gallery-layout{ grid-template-columns: 1fr; }
  .filter-rail{ position: static; }
  .filter-rail .filter-bar{ display: flex; flex-wrap: wrap; gap: .5rem; }
  .filter-rail .filter-btn{ width: auto; }
}

/* -------------------- Filter bar (boutons) -------------------- */
.filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 3rem;
}
.filter-btn{
  padding: .65rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all .2s var(--ease);
}
.filter-btn:hover{ background: var(--teal-tint); border-color: var(--teal); color: var(--teal-dark); }
.filter-btn.is-active{ background: var(--teal); border-color: var(--teal); color: var(--white); }

/* Grille régulière : toutes les vignettes au même format carré. */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.gallery-item{ aspect-ratio: 1 / 1; }
.gallery-item{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.gallery-item img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* désaturation partielle au repos : les photos gardent un peu de couleur,
     la couleur pleine revient au survol */
  filter: grayscale(.35) contrast(1.03);
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.gallery-item:hover img{ transform: scale(1.04); filter: grayscale(0) contrast(1.02); }
.gallery-item[hidden]{ display: none; }
/* liseré de la couleur de la catégorie au survol */
.gallery-item:hover{ border-color: var(--cat, var(--teal)); box-shadow: inset 0 0 0 2px var(--cat, var(--teal)); }
.gallery-item .cat{
  position:absolute; top:0; left:0;
  background: var(--cat, var(--teal)); color: var(--white);
  font-family: var(--font-display);
  font-size: .66rem; text-transform: uppercase; letter-spacing:.06em; font-weight: 400;
  padding: .4rem .7rem;
}
.gallery-empty{ text-align:center; padding: 3rem 0; color: var(--ink-soft); display:none; }

/* -------------------- Diaporama des réalisations -------------------- *
 * Utilisé sur l'accueil et sur la page Réalisations (partial showcase.php).
 * Sans JavaScript, la première image reste visible et le diaporama se
 * comporte comme une grande photo légendée.
 * ------------------------------------------------------------------------ */
.showcase{ position: relative; }
.showcase-stage{
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}
.showcase-slide{
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.showcase-slide.is-current{ opacity: 1; visibility: visible; }
.showcase-slide > a{ display: block; width: 100%; height: 100%; cursor: zoom-in; }
.showcase-slide img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-slide figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(33,37,41,.82);
  color: var(--white);
  font-size: .88rem;
  padding: .9rem clamp(1rem, 3vw, 1.6rem);
}
/* Flèches */
.showcase-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #212529;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  z-index: 2;
}
.showcase-arrow svg{ width: 22px; height: 22px; }
.showcase-arrow.prev{ left: 0; }
.showcase-arrow.next{ right: 0; }
.showcase-arrow:hover{ background: var(--teal); border-color: var(--teal); color: var(--white); }
/* Pastilles */
.showcase-dots{
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.1rem;
}
.showcase-dots button{
  width: 26px; height: 3px;
  background: var(--line);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.showcase-dots button:hover{ background: var(--ink-soft); }
.showcase-dots button[aria-current]{ background: var(--teal); }

@media (max-width: 680px){
  .showcase-stage{ aspect-ratio: 4 / 3; }
  .showcase-arrow{ width: 40px; height: 40px; }
  .showcase-slide figcaption{ font-size: .8rem; }
}

/* Bouton et note sous l'accroche d'une page */
.intro-actions{
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem clamp(1.2rem, 3vw, 2rem);
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.intro-note{
  margin: 0;
  max-width: 46ch;
  font-size: .86rem;
  color: var(--ink-soft);
}
/* ce libellé est long : il doit pouvoir passer à la ligne sur petit écran */
.intro-actions .btn{ white-space: normal; max-width: 100%; }
.intro-actions .btn svg{ flex: none; }

/* -------------------- Solutions sur mesure (dessins d'étude) -------------------- *
 * Les plans et perspectives dessinés à la main sont présentés comme des
 * feuilles posées sur la table : fond papier, cadre fin, image entière
 * (jamais recadrée) et couleurs d'origine conservées.
 * ------------------------------------------------------------------------ */
.study-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.study-item{
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .9rem .9rem .2rem;
  cursor: zoom-in;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.study-item img{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
}
.study-item:hover{
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 16px 34px rgba(33,37,41,.12);
}
.study-caption{
  display: block;
  padding: .85rem .1rem 1rem;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  margin-top: .8rem;
}
@media (max-width: 900px){ .study-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px){ .study-grid{ grid-template-columns: 1fr; } }

/* -------------------- Pagination -------------------- */
.pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3.5rem;
}
.page-btn{
  min-width: 44px;
  height: 44px;
  padding: 0 .4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.page-btn:hover{ background: var(--teal-tint); border-color: var(--teal); color: var(--teal-dark); }
.page-btn.is-active{ background: var(--teal); border-color: var(--teal); color: var(--white); }
/* Dans la galerie des réalisations, la pagination reprend la couleur
   de la catégorie sélectionnée (--cat-active, posée par main.js). */
.gallery-col .page-btn:hover{
  background: var(--teal-tint);
  background: color-mix(in srgb, var(--cat-active, var(--teal)) 12%, #fff);
  border-color: var(--cat-active, var(--teal));
  color: var(--teal-dark);
  color: color-mix(in srgb, var(--cat-active, var(--teal)) 75%, #000);
}
.gallery-col .page-btn.is-active{
  background: var(--cat-active, var(--teal));
  border-color: var(--cat-active, var(--teal));
  color: var(--white);
}
.page-btn.nav{ width: auto; padding: 0 1.1rem; gap: .4rem; text-transform: uppercase; letter-spacing:.04em; font-size:.76rem; }
.page-btn.nav svg{ width: 14px; height: 14px; }
.page-btn:disabled{ opacity: .4; pointer-events: none; }
.page-ellipsis{ color: var(--ink-soft); padding: 0 .4rem; font-weight: 400; }

/* -------------------- Lightbox -------------------- */
.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(33,37,41,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease);
  padding: 4rem 1.5rem;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox img{ max-width: min(1100px, 100%); max-height: 82vh; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox-caption{
  position:absolute; bottom: 2rem; left:0; right:0; text-align:center; color: var(--paper);
  font-family: var(--font-display); font-size:.8rem; letter-spacing:.08em; text-transform: uppercase; font-weight: 400;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  color: var(--paper);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(250,250,250,.35);
  transition: background .2s, border-color .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: var(--teal); border-color: var(--teal); }
.lightbox-close{ top: 1.5rem; right: 1.5rem; }
.lightbox-prev{ left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg{ width: 18px; height: 18px; }

/* -------------------- Before / After -------------------- */
.ba-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  user-select: none;
}
.ba-slider img{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.ba-slider .ba-after{ clip-path: inset(0 0 0 50%); }
.ba-handle{
  position:absolute; top:0; bottom:0; left:50%;
  width: 3px; background: var(--paper);
  transform: translateX(-1.5px);
  cursor: ew-resize;
}
.ba-handle::after{
  content: "";
  position: absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.ba-handle::before{
  content: "⟷";
  position:absolute; top:50%; left:50%; transform: translate(-50%,-56%);
  z-index: 2; font-size: 1.1rem; color: var(--paper); font-weight: 400;
}
.ba-label{
  position:absolute; top: 0; z-index: 3;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 300; letter-spacing:.1em; text-transform:uppercase;
  background: var(--ink); color: var(--paper); padding: .5rem .8rem;
}
.ba-label.before{ left: 0; }
.ba-label.after{ right: 0; }
.ba-caption{ margin-top: 1.4rem; color: var(--ink-soft); font-size: .95rem; }

/* -------------------- Timeline / accordion -------------------- */
.timeline{ border-top: 3px solid var(--ink); }
.timeline-year{ border-bottom: 1px solid var(--line); }
.timeline-year button{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 0;
  text-align: left;
}
.timeline-year .year{ font-family: var(--font-display); font-weight: 300; font-size: 1.8rem; }
.timeline-year .meta{ display:flex; align-items:center; gap: 1.3rem; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing:.04em; }
.timeline-year .plus{ width: 24px; height: 24px; position: relative; flex: none; }
.timeline-year .plus::before, .timeline-year .plus::after{
  content:""; position:absolute; background: var(--ink); top:50%; left:50%;
}
.timeline-year .plus::before{ width: 16px; height: 3px; transform: translate(-50%,-50%); }
.timeline-year .plus::after{ width: 3px; height: 16px; transform: translate(-50%,-50%); transition: transform .25s var(--ease); }
.timeline-year.is-open .plus::after{ transform: translate(-50%,-50%) rotate(90deg); }
.timeline-panel{
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.timeline-panel ul{ padding: .3rem 0 1.9rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem; }
.timeline-panel li{ font-size: .92rem; color: var(--ink-soft); padding-left: 1.1rem; position: relative; }
.timeline-panel li::before{ content:""; position:absolute; left:0; top:.6em; width:6px; height:6px; background: var(--teal); }
.timeline-panel li b{ color: var(--ink); font-weight: 400; }

/* Variante compacte en onglets (chronologie des réalisations) */
.timeline.is-tabbed{ border-top: 3px solid var(--ink); }
.timeline-tabs{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  border-left: 1px solid var(--line);
}
.timeline-tab{
  display: flex; align-items: baseline; justify-content: space-between; gap: .4rem;
  padding: .7rem .8rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: left; transition: background .2s var(--ease), color .2s var(--ease);
}
.timeline-tab .year{ font-family: var(--font-display); font-weight: 300; font-size: 1.1rem; }
.timeline-tab .count{ font-size: .72rem; color: var(--ink-soft); }
.timeline-tab:hover{ background: rgba(0,0,0,.04); }
.timeline-tab.is-active{ background: var(--teal); color: var(--white); }
.timeline-tab.is-active .count{ color: inherit; opacity: .75; }
.timeline.is-tabbed .timeline-panel{ max-height: none; overflow: visible; }
.timeline-stage-head{
  padding: 1.4rem 0 .8rem; color: var(--ink-soft);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
}
.timeline-stage-head b{ font-family: var(--font-display); color: var(--teal-dark); font-weight: 300; font-size: 1.3rem; color: var(--ink); margin-right: .2rem; }
.timeline.is-tabbed .timeline-panel ul{ grid-template-columns: repeat(3, 1fr); gap: .5rem 2rem; padding: 0 0 .5rem; }

/* -------------------- Page Projets (liste par année) -------------------- */
.year-block{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.8rem, 3vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.year-block:last-child{ border-bottom: 1px solid var(--line); }
.year-block .year-head{ position: sticky; top: 110px; align-self: start; }
.year-block h2{
  color: var(--teal);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1; margin-bottom: .4rem;
}
.year-block .count{
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.year-projects{ display: grid; gap: .1rem; }
.year-projects li{
  display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem; color: var(--ink-soft);
}
.year-projects li:last-child{ border-bottom: 0; }
.year-projects .place{
  font-family: var(--font-display); font-weight: 400; color: var(--teal-dark);
  letter-spacing: .01em;
}
.year-projects li:hover{ background: var(--paper-alt); }

@media (max-width: 860px){
  .year-block{ grid-template-columns: 1fr; gap: 1rem; }
  .year-block .year-head{ position: static; display: flex; align-items: baseline; gap: .8rem; }
  .year-block h2{ margin-bottom: 0; }
  .year-projects li{ grid-template-columns: 1fr; gap: .15rem; padding: .7rem 0; }
}

/* -------------------- Pages légales -------------------- */
.legal-date{
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 1.6rem;
}
.legal-text{ max-width: 52rem; }
.legal-block{ padding: 0 0 clamp(1.6rem, 3vw, 2.4rem); }
.legal-block + .legal-block{ border-top: 1px solid var(--line); padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.legal-block h2{
  display: flex; align-items: baseline; gap: .9rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 1rem;
}
.legal-block h2 span{
  font-size: .8rem; font-weight: 400; color: var(--teal); letter-spacing: .08em; flex: none;
}
.legal-block h2::after{ content: none; }
.legal-block p{ color: var(--ink-soft); margin-bottom: 1rem; }
.legal-block p:last-child{ margin-bottom: 0; }
.legal-block a{ color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-block a:hover{ color: var(--ink-soft); }
.legal-list{ display: grid; gap: .55rem; margin: 0 0 1rem; }
.legal-list li{ position: relative; padding-left: 1.2rem; color: var(--ink-soft); }
.legal-list li::before{ content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--teal); }
.legal-list li strong{ color: var(--ink); font-weight: 400; }

/* liens légaux du pied de page */
.footer-legal{ display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-legal a{
  color: var(--paper); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--teal-bright); text-decoration-thickness: 1px;
}
.footer-legal a:hover{ text-decoration-color: var(--paper); }

/* -------------------- Credentials / about ------------------ */
.credential-list{ display:grid; gap: 1.8rem; }
.credential-item{ display:grid; grid-template-columns: 4px 1fr; gap: 1.8rem; }
.credential-item .rule{ background: var(--teal); }
.credential-item h4{ font-family: var(--font-display); color: var(--ink-soft); font-weight: 400; font-size: 1.1rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .01em; }
.credential-item p{ color: var(--ink-soft); font-size: .95rem; }

.lang-bars{ display:grid; gap: 1.2rem; }
.lang-bar b{ color: var(--ink-soft); display:flex; justify-content:space-between; font-family: var(--font-display); font-weight: 400; font-size:.85rem; text-transform:uppercase; letter-spacing:.03em; margin-bottom:.6rem; }
.lang-bar b span{ font-weight:400; color: var(--ink-soft); text-transform: none; font-family: var(--font-body); letter-spacing:0; }
.lang-track{ height: 6px; background: var(--paper-deep); overflow:hidden; }
.lang-fill{ height: 100%; background: var(--teal); }

.bio-layout{ display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.bio-media{ position: sticky; top: 110px; }
.bio-media img{ border: 1px solid var(--line); filter: grayscale(1) contrast(1.04); }

/* -------------------- Portrait (cadre décalé + cartouche) -------------------- */
.portrait{ position: relative; max-width: 330px; margin: 0; }
.portrait::before{            /* filet bleu décalé, en arrière-plan */
  content: "";
  position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem;
  border: 2px solid var(--teal);
  z-index: 0;
}
.portrait img{
  position: relative; z-index: 1;
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border: 0; filter: none;      /* portrait en couleur */
  background: var(--paper-alt);
}
.portrait figcaption{
  position: relative; z-index: 2;
  display: inline-flex; flex-direction: column; gap: .15rem;
  margin-top: -1.6rem; margin-left: -1.6rem;
  padding: .85rem 1.2rem;
  background: var(--paper);
  border-left: 3px solid var(--teal);
  box-shadow: 0 10px 30px rgba(33,37,41,.10);
}
.portrait figcaption b{
  font-family: var(--font-display); font-weight: 400; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.portrait figcaption span{ font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 980px){
  .portrait{ margin-left: 0; }
  .portrait::before{ inset: 1.2rem -1.2rem -1.2rem 1.2rem; }
  .portrait figcaption{ margin-top: -1.2rem; margin-left: -1.2rem; }
}
.bio-copy p + p{ margin-top: 1.15rem; }
.bio-copy p{ color: var(--ink-soft); }

.affiliations{ display:flex; flex-direction:column; gap: 1rem; margin-top: 2.2rem; }
.affiliations li{ display:flex; gap:.9rem; font-size:.92rem; color: var(--ink-soft); }
.affiliations li::before{ content:"—"; color: var(--teal); flex:none; font-weight: 400; }

/* -------------------- Partners strip -------------------- */
/* Logos cliquables, en grille régulière */
.partners-strip{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  gap: 1.6rem 2rem;
}
.partners-strip a{
  display: flex; align-items: center; justify-content: center;
  padding: .6rem;
  transition: transform .25s var(--ease);
}
.partners-strip a:hover{ transform: translateY(-3px); }
.partners-strip img{
  max-height: 58px; max-width: 100%; width: auto;
  filter: grayscale(1) contrast(1.05) opacity(.8);
  transition: filter .3s var(--ease);
}
.partners-strip a:hover img, .partners-strip a:focus-visible img{ filter: grayscale(0) opacity(1); }
.partners-strip a:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }

/* -------------------- Distinction / award band -------------------- */
.award-band{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  border: 3px solid var(--paper);
  padding: clamp(2rem, 5vw, 3.2rem);
}
.award-band .medal{
  width: 84px; height: 84px;
  border: 3px solid var(--teal-pale);   /* médaille en tons clairs sur le fond gris */
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.award-band .medal svg{ width: 38px; height: 38px; color: var(--teal-pale); }
.award-band h3{ color: var(--paper); font-size: clamp(1.3rem,2.6vw,1.7rem); margin-bottom: .6rem; }
.award-band p{ color: var(--paper); font-size: .95rem; }

/* -------------------- Contact ------------------- */
.contact-layout{ display:grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,5vw,5rem); }
.contact-card{ background: var(--paper-alt); border: 1px solid var(--line); padding: 2.6rem; }
.contact-row{ display:flex; gap:1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact-row:first-of-type{ padding-top: 0; }
.contact-row svg{ width: 20px; height:20px; color: var(--teal); flex:none; margin-top: .15rem; }
.contact-row h4{ font-family: var(--font-display); font-size: .74rem; font-weight: 400; text-transform:uppercase; letter-spacing:.1em; color: var(--ink-soft); margin-bottom: .35rem; }
.contact-row a, .contact-row p{ font-weight: 400; }
.map-frame{ margin-top: 1.6rem; border: 1px solid var(--line); overflow:hidden; height: 220px; }
.map-frame iframe{ width:100%; height:100%; border:0; filter: grayscale(.5) contrast(1.05); }

.field{ margin-bottom: 1.4rem; }
.field label{ display:block; color: var(--ink-soft); font-family: var(--font-display); font-size:.76rem; font-weight: 400; text-transform:uppercase; letter-spacing:.05em; margin-bottom:.6rem; }
.field input, .field textarea, .field select{
  width: 100%;
  border: 2px solid var(--line);
  background: var(--white);
  padding: .9rem 1rem;
  border-radius: var(--radius);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline: none; border-color: var(--teal); }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-note{ font-size: .82rem; color: var(--ink-soft); margin-top: 1.1rem; }
.form-success{
  display:none;
  background: var(--teal-tint);
  border: 2px solid var(--teal);
  color: var(--teal-dark);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  margin-top: 1.4rem;
  font-size: .92rem;
}
.form-success.is-visible{ display:block; }
.required-note{ font-size:.8rem; color: var(--ink-soft); margin-bottom: 1.8rem; }

/* -------------------- Page intro (inner pages) ------------------ */
.page-intro{ padding-top: 3.8rem; padding-bottom: 2rem; }
.page-intro h1{ margin-bottom: 1.5rem; }
.breadcrumb{ font-family: var(--font-display); font-size:.76rem; font-weight: 400; color: var(--ink-soft); margin-bottom: 1.8rem; text-transform: uppercase; letter-spacing:.1em; }
.breadcrumb a:hover{ color: var(--teal-dark); }

/* -------------------- CTA band -------------------- */
.cta-band{ text-align:center; }
.cta-band h2{ margin-bottom: 1.5rem; }
.cta-band .lede{ margin: 0 auto 2.4rem; }
.cta-band .hero-actions{ justify-content:center; }

/* -------------------- Responsive -------------------- */
.main-nav a{ white-space: nowrap; }
@media (max-width: 1240px){
  .main-nav{ gap: 1.4rem; }
  .header-actions{ gap: .9rem; }
}
@media (max-width: 1140px){
  .brand .cube{ width: 56px; height: 56px; }
  .main-nav{ gap: .9rem; }
  .main-nav a{ font-size: .76rem; letter-spacing: .05em; }
  .brand .wordmark{ font-size: 1.18rem; letter-spacing: .09em; }
  .header-actions{ gap: .7rem; }
  .site-header .btn-accent{ padding: 0 .9rem; font-size: .7rem; }
}
@media (max-width: 980px){
  .main-nav{ display:none; }
  .header-actions .btn-accent{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.nav-open .main-nav{
    display:flex; position:fixed; inset: 88px 0 0 0; background: var(--paper);
    flex-direction:column; padding: 2.5rem var(--gutter); gap: 1.8rem; z-index: 90;
  }
  .site-header.nav-open .main-nav a{ font-size: 1.4rem; }
  .stats-strip{ grid-template-columns: repeat(2,1fr); }
  .stats-strip div:nth-child(3){ border-left:none; }
  .stats-strip div{ border-bottom: 1px solid rgba(255,255,255,.16); }
  .quote-block{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .process-steps{ grid-template-columns: repeat(2,1fr); }
  .portfolio-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .bio-layout, .contact-layout{ grid-template-columns: 1fr; }
  .bio-media{ position:static; max-width: 360px; }
  .timeline-panel ul{ grid-template-columns: 1fr; }
  .timeline.is-tabbed .timeline-panel ul{ grid-template-columns: 1fr 1fr; }
  .dropcap{ columns: 1; }
  .award-band{ grid-template-columns: 1fr; text-align:center; justify-items:center; }
}
/* Titres : césure seulement si un mot ne tient pas sur la ligne (très petits écrans) */
h1, h2, h3{ overflow-wrap: break-word; hyphens: manual; }   /* jamais de coupure avec tiret */
@media (max-width: 600px){
  .brand{ gap: .55rem; }
  .brand .cube{ width: 44px; height: 44px; }
  .brand .wordmark{ font-size: 1.18rem; letter-spacing: .09em; }
  .header-actions{ gap: .6rem; }
  .lang-menu summary{ height: 36px; padding: 0 .5rem; gap: .3rem; }
}
@media (max-width: 380px){
  .brand{ gap: .4rem; }
  .brand .cube{ width: 26px; height: 26px; }
  .header-actions{ gap: .55rem; }
  .brand .wordmark{ font-size: 1.02rem; letter-spacing: .06em; }
  .nav-toggle{ width: 32px; }
  .lang-menu summary svg:first-child{ display: none; } /* globe masqué sur très petit écran */
  h2, .h2{ font-size: 1.55rem; }
  .btn{ white-space: normal; justify-content: center; text-align: center; padding: .9rem 1.2rem; }
  .bio-layout, .contact-layout{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px){
  .services-grid, .process-steps{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 2.2rem; }
  .field-row{ grid-template-columns: 1fr; }
  .credential-item{ grid-template-columns: 1fr; }
  .credential-item .rule{ display:none; }
  .rule-head{ flex-direction: column; }
  .rule-head h2{ white-space: normal; }
  .rule-head::before, .rule-head::after{ width: 100%; }
  .timeline-panel ul, .timeline.is-tabbed .timeline-panel ul{ grid-template-columns: 1fr; }
  .timeline-tabs{ grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .timeline-tab{ padding: .6rem .55rem; }
  .timeline-tab .year{ font-size: 1rem; }
}
