/* Eminenzia — charte : marine #2C3E56, gris clair #EEEEEE, gris #5D6A7C */

:root {
  --navy: #2C3E56;
  --navy-deep: #223144;
  --navy-soft: #5D6A7C;
  --grey-bg: #EEEEEE;
  --grey-line: #DEDFE2;
  --white: #FFFFFF;
  --ink: #1B2635;
  --text: #414D5E;
  --accent: #8A5A6B;
  --maxw: 1140px;
  --r: 4px;
  /* Archivo pour le texte (grotesque sobre), Spectral pour les titres
     (serif de Production Type, fonderie parisienne, dessinée pour l'écran) */
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Titres en serif : peu de tracking négatif, les serifs ne supportent pas le resserrement */
h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.13;
  margin: 0 0 0.42em;
  text-wrap: balance;
}

/* Échelle modulaire ~1.32 — franche, pour que le titre domine vraiment */
h1 { font-size: clamp(2.6rem, 5.4vw, 4.15rem); }
h2 { font-size: clamp(1.95rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.28; }

/* h4 reste en sans : c'est un libellé, pas un titre éditorial */
h4 { font-family: var(--font); font-weight: 600; color: var(--ink); margin: 0 0 0.5em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Libellés de données (page contact) — casse normale, pas de capitales trackées */
.field-label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy-soft);
  margin: 0 0 4px;
}

/* Métadonnée d'article : une date réelle, pas un intitulé décoratif */
.card-meta {
  font-size: 0.85rem; color: var(--navy-soft);
  margin: 0 0 10px;
}

/* Le chapô porte le poids : nettement plus grand que le corps de texte */
.lead {
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  padding: 6px 0; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--navy); text-decoration: none; border-bottom-color: var(--grey-line); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }

/* Le CTA du menu est un bouton : il ne suit pas les règles de lien de .nav */
.nav a.btn { border-bottom: 0; padding: 11px 22px; }
.nav a.btn-primary { color: #fff; border: 1px solid var(--navy); }
.nav a.btn-primary:hover { color: #fff; background: var(--navy-deep); border-color: var(--navy-deep); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; margin-right: -10px;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform .25s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--r);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid var(--navy); cursor: pointer; transition: .18s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--grey-bg); text-decoration: none; }

.arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
}
.arrow::after { content: "→"; transition: transform .18s; }
.arrow:hover { text-decoration: none; }
.arrow:hover::after { transform: translateX(4px); }

/* ---------- Sections ----------
   Rythme volontairement inégal : respirations larges sur les moments forts,
   resserrées sur les passages de service. */
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-lg { padding: clamp(104px, 14vw, 180px) 0; }
.section-tight { padding: clamp(46px, 6vw, 70px) 0; }
.section-grey { background: var(--grey-bg); }
.section-navy { background: var(--navy); color: #C9D1DC; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.head { max-width: 720px; margin-bottom: clamp(38px, 4.5vw, 62px); }
.head p { font-size: 1.12rem; margin-bottom: 0; }

/* ---------- Duo éditorial ----------
   Remplace la grille de cartes identiques : deux volets pleine largeur,
   image et texte alternés, séparés par un filet. */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--grey-line);
  margin-top: clamp(40px, 5vw, 64px);
}
.duo:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.duo > img { border-radius: var(--r); border: 1px solid var(--grey-line); width: 100%; }
/* Volet inversé : le texte passe à gauche, l'image à droite.
   L'image étant première dans le DOM, il faut la repousser avec order. */
.duo-alt { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
.duo-alt > img { order: 1; }
.duo h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.duo .kicker {
  font-size: 1.08rem; color: var(--navy); font-weight: 500;
  margin: 0 0 18px; line-height: 1.5;
}
.duo p { font-size: 1rem; }
.duo .arrow { margin-top: 6px; }

/* Déclaration pleine largeur : une respiration entre deux sections denses */
.statement { text-align: left; }
.statement h2 { max-width: 18ch; }
.statement p { max-width: 68ch; }
.statement .lead { margin-bottom: 1.2em; }

/* ---------- Liste éditoriale ----------
   Remplace les grilles de cartes-icône-titre-texte répétées. */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 clamp(32px, 4vw, 60px);
}
.entry {
  padding: 28px 0;
  border-top: 1px solid var(--grey-line);
}
.entry h3 { font-size: 1.22rem; margin-bottom: 8px; }
.entry p { font-size: 0.97rem; margin: 0; }

/* Photo d'appui dans un volet du parcours : source en 620px, donc bornée
   pour rester nette (au-delà, le manque de définition se verrait). */
.entry-photo {
  width: 100%;
  max-width: 380px;
  margin-top: 18px;
  border-radius: var(--r);
  border: 1px solid var(--grey-line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: #C9D1DC;
  padding: clamp(90px, 13vw, 150px) 0 clamp(84px, 11vw, 132px);
}
/* Photographie plein cadre + léger travelling avant */
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: url('/assets/hero-architecture.jpg') 78% 50% / cover no-repeat;
  transform: scale(1.06);
  animation: heroDrift 26s cubic-bezier(.16, 1, .3, 1) forwards;
}
/* Étalonnage marine : opaque à gauche pour le texte, transparent à droite sur l'architecture */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(95deg,
      rgba(22, 33, 47, .97) 0%,
      rgba(28, 41, 58, .94) 30%,
      rgba(36, 52, 73, .74) 54%,
      rgba(44, 62, 86, .38) 78%,
      rgba(52, 72, 99, .24) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: 22px; text-wrap: balance; }
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #C3CDDA; max-width: 560px; margin-bottom: 34px;
  line-height: 1.75;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

@keyframes heroDrift { to { transform: scale(1); } }

/* Entrée échelonnée.
   L'animation ne touche QUE la transformation, jamais l'opacité : si l'horloge
   d'animation ne tourne pas (onglet en arrière-plan, générateur d'aperçu, moteur
   de rendu sans peinture), une animation partant d'opacity:0 laisserait le
   contenu invisible pour toujours. Ici, le pire cas est un décalage de 14px. */
@keyframes riseIn {
  from { transform: translateY(14px); }
  to   { transform: none; }
}
.hero-inner > * { animation: riseIn .85s cubic-bezier(.16, 1, .3, 1) both; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .16s; }
.hero-inner > :nth-child(3) { animation-delay: .27s; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--grey-line);
  border-radius: var(--r); padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 34px rgba(44, 62, 86, 0.09); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; }
.card .kicker {
  font-size: 0.92rem; color: var(--navy-soft); font-weight: 500;
  margin: 0 0 16px; line-height: 1.5;
}
.card p { font-size: 0.97rem; }
.card .arrow { margin-top: auto; padding-top: 10px; }


/* Illustrations de cartes et de sections */
.card-illu {
  width: calc(100% + 60px);
  max-width: none;
  margin: -34px -30px 24px;
  border-radius: var(--r) var(--r) 0 0;
  border-bottom: 1px solid var(--grey-line);
}
.section-illu {
  width: 100%;
  border: 1px solid var(--grey-line);
  border-radius: var(--r);
}

/* ---------- Piliers ---------- */
.pillar { border-top: 2px solid rgba(255,255,255,.18); padding-top: 22px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar p { font-size: 0.95rem; margin: 0; color: #A9B4C2; }

/* ---------- Listes ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 0.97rem;
}
.ticks li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--navy-soft); font-weight: 700;
}
.ticks strong { color: var(--ink); }

/* ---------- Mur de logos clients ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 44px);
  align-items: center;
}
/* max-height ET max-width : les logos larges sont bridés en largeur,
   les logos hauts en hauteur — ce qui égalise leur poids optique. */
.logo-wall img {
  height: auto;
  width: auto;
  max-height: 42px;
  max-width: 124px;
  object-fit: contain;
  margin: 0 auto;
  mix-blend-mode: multiply; /* absorbe le fond blanc résiduel des fichiers sources */
  transition: transform .3s ease;
  animation: riseIn .7s cubic-bezier(.16, 1, .3, 1) both;
}
.logo-wall img:hover { transform: scale(1.04); }
.logo-wall img:nth-child(n+1) { animation-delay: calc(var(--i, 0) * 55ms); }
/* Logotypes très allongés (rapport ≳ 6:1) : le plafond commun de 124px
   les rendrait illisibles, on leur accorde plus de largeur. */
.logo-wall img.logo-wide { max-width: 178px; }


/* ---------- Cas ---------- */
.case { border-top: 1px solid var(--grey-line); padding: 26px 0 0; margin-bottom: 30px; }
.case h3 { margin-bottom: 6px; }
.case p { margin: 0; font-size: 0.97rem; }

/* ---------- Témoignages ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
}
.quote { margin: 0; }
.quote blockquote {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
/* Le guillemet ouvrant fait office de signe, pas d'ornement */
.quote blockquote p::before { content: "« "; color: var(--navy-soft); }
.quote blockquote p::after  { content: " »"; color: var(--navy-soft); }
.quote figcaption {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-soft);
  padding-top: 14px;
  border-top: 1px solid var(--grey-line);
}

/* Emplacement non rempli : signalé sans ambiguïté, en ligne comme à l'écran.
   Retirer data-placeholder une fois la vraie citation en place. */
.quote[data-placeholder] {
  position: relative;
  padding: 22px 24px;
  border: 1px dashed #B9BEC5;
  border-radius: var(--r);
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    rgba(93, 106, 124, .05) 9px, rgba(93, 106, 124, .05) 18px);
}
.quote[data-placeholder]::before {
  content: "Emplacement à remplir";
  display: block;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A5A6B;
  margin-bottom: 12px;
}
.quote[data-placeholder] blockquote p {
  font-family: var(--font);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--navy-soft);
}
.quote[data-placeholder] blockquote p::before,
.quote[data-placeholder] blockquote p::after { content: none; }
.quote[data-placeholder] figcaption { color: #9AA3AF; }

/* ---------- Partenaires ---------- */
.partner {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--r);
  padding: 28px 26px 30px;
}
.partner h3 { margin-bottom: 8px; font-size: 1.15rem; }
.partner p { font-size: 0.95rem; }
.partner .arrow { margin-top: auto; padding-top: 12px; }

/* Boîte de hauteur fixe : les trois logos ont des proportions très
   différentes (IFA 2.6:1, LER 1.9:1), object-fit égalise leur poids optique.
   multiply absorbe le fond blanc du logo IFA, issu d'un JPEG opaque. */
.partner-logo {
  height: 52px;
  display: flex; align-items: center;
  margin-bottom: 22px;
}
.partner-logo img {
  max-height: 100%;
  max-width: 168px;
  width: auto; height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 44px; font-size: 1.5rem; }
.article .meta {
  font-size: 0.9rem; color: var(--navy-soft);
  padding-bottom: 22px; margin-bottom: 32px;
  border-bottom: 1px solid var(--grey-line);
}
.article .takeaway {
  background: var(--grey-bg);
  padding: 20px 24px; margin: 26px 0; border-radius: var(--r);
  font-size: 0.97rem; color: var(--ink);
}
.article .takeaway p:last-child { margin-bottom: 0; }
.article blockquote {
  margin: 34px 0; padding: 0 0 0 24px;
  border-left: 2px solid var(--accent);
  font-size: 1.2rem; color: var(--ink); font-style: italic;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.97rem;
  border: 1px solid var(--grey-line); border-radius: var(--r);
  background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(44, 62, 86, .12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--navy-soft); margin-top: 14px; }

/* ---------- Agenda Calendly ---------- */
.calendly-zone { max-width: 860px; }
.calendly-placeholder {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--r);
  padding: clamp(30px, 4vw, 46px);
}
.calendly-placeholder h3 { margin-bottom: 10px; }
.calendly-placeholder p { font-size: 0.97rem; max-width: 60ch; }
.calendly-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
#calendly-embed {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--r);
  overflow: hidden;
}

.info-block { margin-bottom: 26px; }
.info-block .field-label { margin-bottom: 4px; }
.info-block p { margin: 0; }
.info-block a { font-weight: 500; }

/* ---------- CTA bande ---------- */
.cta-band { text-align: center; }
.cta-band .head { margin: 0 auto 30px; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep); color: #93A0B1;
  padding: 60px 0 28px; font-size: 0.92rem;
}
.footer a { color: #C9D1DC; }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer img { height: 30px; width: auto; margin-bottom: 16px; }
.footer h4 {
  color: #fff; font-size: 0.8rem; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer-tag { max-width: 320px; margin: 0; }
.footer-bottom {
  padding-top: 22px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.86rem;
}

/* ---------- Cookies ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--grey-line);
  border-radius: var(--r); padding: 20px 22px;
  box-shadow: 0 14px 44px rgba(27, 38, 53, .18);
  display: none;
}
.cookie.show { display: block; }
.cookie p { font-size: 0.9rem; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 40px; font-size: 1.35rem; }
.legal h3 { margin-top: 26px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  /* Volets empilés : l'image repasse au-dessus du texte dans les deux cas */
  .duo, .duo-alt { grid-template-columns: 1fr; gap: 28px; }
  .duo-alt > img { order: -1; }

  /* Le dégradé horizontal du hero n'a plus de place sur écran étroit :
     le texte retomberait sur la partie éclairée du bâtiment. Voile vertical. */
  .hero::after {
    background: linear-gradient(178deg,
      rgba(20, 30, 43, .90) 0%,
      rgba(26, 39, 55, .78) 52%,
      rgba(20, 30, 43, .90) 100%);
  }
  .hero-media { background-position: 62% 50%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .hero { padding: 72px 0 66px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .head { margin-bottom: 34px; }

  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--grey-line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--grey-line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--grey-line); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  /* Pas de travelling ni d'entrée échelonnée : on affiche l'état final directement */
  .hero-media { animation: none; transform: scale(1); }
  .hero-inner > *,
  .logo-wall img { animation: none; opacity: 1; transform: none; }
  .logo-wall img { opacity: .62; }
}
