/* ==========================================================================
   IA Top — feuille de style (direction éditoriale)
   --------------------------------------------------------------------------
   1. Couleurs et réglages de la marque (à modifier ici)
   2. Polices
   3. Bases
   4. Éléments communs (boutons, rubriques, titres)
   5. En-tête et menu
   6. Sections de la page (dans l'ordre)
   7. Pied de page
   8. Pages secondaires (mentions légales)
   9. Mise en page tablette et ordinateur
   10. Animations et préférence « réduire les animations »
   ========================================================================== */

/* 1. COULEURS ET RÉGLAGES DE LA MARQUE ------------------------------------ */
:root {
  --papier: #F3EEE5;      /* fond principal */
  --lin: #E7E0D3;         /* fonds alternés */
  --encre: #16130F;       /* texte principal, sections sombres */
  --graphite: #5D5850;    /* texte secondaire sur fond clair */
  --grege: #B5AEA2;       /* texte secondaire sur fond sombre */
  --vermillon: #E0482A;   /* accent : flèches, I et A, bloc rendez-vous */

  --filet: rgba(22, 19, 15, 0.16);
  --filet-fort: #16130F;
  --focus: var(--vermillon);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-h: 68px;
  --gutter: 20px;
  --section-y: clamp(5rem, 12vw, 10rem);
}

/* 2. POLICES (fichiers dans assets/fonts, licence OFL) -------------------- */
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 550;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 550;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 3. BASES ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--papier);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain de papier, très léger, sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.01em; }
em { font-style: italic; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus { outline: none; }

::selection { background: var(--encre); color: var(--papier); }

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--encre);
  color: var(--papier);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 4. ÉLÉMENTS COMMUNS ----------------------------------------------------- */
.ia { color: var(--vermillon); }

.arrow {
  display: inline-block;
  width: 0.9em;
  height: 0.79em;
  color: var(--vermillon);
}

/* Titres de section en très grand serif ; la partie en italique fait l'accent */
.h-xl {
  font-size: clamp(2.6rem, 8.4vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

/* Rubrique : filet + numéro + sur-titre, comme dans un magazine */
.rubrique {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.rubrique::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
.rubrique .eyebrow { color: var(--graphite); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-ink { background: var(--encre); color: var(--papier); }
.btn-ink:hover { background: var(--vermillon); color: var(--encre); }
.btn-lg { min-height: 58px; padding: 1rem 1.6rem; font-size: 1.0625rem; }
.btn-icon { width: 1.15em; height: 1.15em; transition: transform 0.25s ease; }
.btn:hover .btn-icon { transform: translateX(4px); }

.link-line {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.link-line:hover { text-decoration-color: var(--vermillon); text-decoration-thickness: 2px; }

/* 5. EN-TÊTE ET MENU ------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(243, 238, 229, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(243, 238, 229, 0.96);
  border-bottom-color: var(--filet);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(243, 238, 229, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.header-inner { display: flex; align-items: center; gap: 1rem; height: 100%; }
.brand { display: block; flex: none; margin-right: auto; padding: 6px 0; }
.brand img { width: auto; height: 30px; }

.header-cta { display: none; min-height: 42px; padding: 0.55rem 1rem; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-right: -6px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--encre);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle-bars { position: relative; display: block; width: 22px; height: 10px; }
.nav-toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { top: 4.25px; transform: rotate(-45deg); }

/* Menu mobile : panneau plein écran */
.nav { display: none; }
.js .nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem var(--gutter) 3rem;
  background: var(--papier);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.menu-open .nav { visibility: visible; opacity: 1; transition: opacity 0.25s ease, visibility 0s; }
.menu-open { overflow: hidden; }
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--filet);
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-num {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--vermillon);
}
.nav-cta { align-self: flex-start; }

/* 6. SECTIONS ------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section-y); }
.section-lin { background: var(--lin); }

.section-encre {
  --focus: var(--vermillon);
  background: var(--encre);
  color: var(--papier);
}
.section-encre .rubrique .eyebrow { color: var(--grege); }

.section-vermillon {
  --focus: var(--encre);
  background: var(--vermillon);
  color: var(--encre);
}
.section-vermillon .rubrique .eyebrow { color: var(--encre); }

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 0.75rem);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--filet-fort);
  border-bottom: 1px solid var(--filet);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-top-mid { display: none; }

.hero-grid {
  display: grid;
  gap: 3rem;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-h1 { display: block; letter-spacing: normal; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "";
  width: 0.6rem; height: 0.6rem;
  background: var(--vermillon);
  flex: none;
}
.hero-title {
  display: block;
  font-size: clamp(3.4rem, 20vw, 11rem);
  font-weight: 380;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.hero-title .line-in { display: inline-block; }
.hero-title .line:nth-child(2) { padding-left: 0.12em; }

.hero-foot {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
}
.hero-lead {
  max-width: 30rem;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }

.hero-media { margin: 0; max-width: 420px; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: url("../assets/img/monogramme.svg") center / 52% no-repeat, var(--lin);
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent; /* masque le texte alternatif si l'image manque */
}
.portrait-img.is-missing { display: none; }
.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--filet-fort);
  font-size: 0.8125rem;
}
.portrait-caption strong { font-weight: 600; }
.portrait-caption span { color: var(--graphite); text-align: right; }

/* Bandeau des paires I → A */
.pairs {
  overflow: hidden;
  background: var(--encre);
  color: var(--papier);
  border-block: 1px solid var(--encre);
}
.pairs-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  padding: 1.35rem var(--gutter);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pairs-track li { display: flex; align-items: center; }
.pairs-track .arrow { margin: 0 0.35em 0 0.3em; }
.pairs-track li::after {
  content: "";
  width: 0.35em; height: 0.35em;
  margin-left: 2rem;
  border-radius: 50%;
  background: var(--grege);
  opacity: 0.5;
}
.pairs-track .arrow { width: 0.8em; height: 0.7em; }
.js .pairs-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-inline: 0; gap: 0; }
.js .pairs-track li { margin-right: 2.5rem; }

/* --- 01. Pour qui --- */
.split { display: grid; gap: 1.75rem; margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.split-aside {
  max-width: 26rem;
  font-size: 1.125rem;
  color: var(--graphite);
}

.columns-3 { display: grid; }
.col {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--filet-fort);
}
.col-num {
  display: block;
  margin-bottom: 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--vermillon);
}
.col h3 { margin-bottom: 1rem; max-width: 16ch; }
.col p { color: var(--graphite); }

/* --- 02. Situations : liste en index --- */
.index-list { margin-top: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--filet-fort); }
.index-row {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--filet-fort);
}
.index-row h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; }
.index-arrow { display: none; width: 44px; height: 44px; color: var(--vermillon); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.index-row:hover .index-arrow { transform: translateX(10px); }
.label {
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}
.index-answer p:not(.label) { max-width: 30rem; font-size: 1.0625rem; }

/* --- 03. Ce que j'apporte (fond encre) --- */
.apport-grid { display: grid; gap: 3rem; }
.photo-close {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--lin);
}
.photo-close.no-photo::before {
  /* monogramme typographique si la photo manque */
  content: "IA";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(8rem, 30vw, 16rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--encre);
}
.photo-close .portrait-img { object-position: 50% 42%; }
.apport-text .h-xl { margin-bottom: clamp(3rem, 7vw, 4.5rem); }
.pillars { display: grid; }
.pillar {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(243, 238, 229, 0.28);
}
.pillar h3 { margin-bottom: 0.75rem; font-style: italic; font-size: 1.875rem; }
.pillar p { color: var(--grege); }

/* --- 04. Formats --- */
.formats { display: grid; margin-top: clamp(3rem, 7vw, 5rem); }
.format { padding: 1.5rem 0 2rem; border-top: 2px solid var(--encre); }
.format h3 { margin-bottom: 0.75rem; font-size: 1.75rem; }
.format p { color: var(--graphite); }

.banner {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-block: 1px solid var(--filet-fort);
}
.banner-text {
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.banner .btn { justify-self: start; }

/* --- 05. Parcours --- */
.stats { display: grid; margin: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem); }
.stat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--filet-fort);
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(6rem, 30vw, 13rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-label {
  max-width: 11rem;
  padding-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: right;
}
.stat-label::before {
  content: "";
  display: block;
  width: 1.5rem; height: 2px;
  margin: 0 0 0.6rem auto;
  background: var(--vermillon);
}

.chrono { display: grid; gap: 1.5rem; }
.chrono-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.timeline { border-bottom: 1px solid var(--filet); }
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--filet);
}
.timeline time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--encre);
}
.timeline li:last-child time { color: var(--vermillon); }
.timeline p { font-size: 1.0625rem; }

.engagements {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding: 1.75rem;
  border: 1px solid var(--filet-fort);
  background: var(--papier);
}
.engagements-title {
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.engagements-list { display: grid; }
.engagements-list li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid var(--filet);
}
.engagements-list li:first-child { border-top: 0; padding-top: 0.25rem; }
.eng-logo { display: flex; align-items: center; justify-content: center; height: 64px; }
.eng-logo img { width: auto; max-width: 100%; max-height: 52px; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.engagements-list li:hover .eng-logo img { transform: scale(1.06); }
.eng-type {
  display: block;
  height: auto;
  padding: 0.3rem 0 0.3rem 0.75rem;
  border-left: 3px solid var(--vermillon);
  font-family: var(--serif);
  font-size: 0.875rem;
  line-height: 1.1;
}
.eng-type em { display: block; }
.eng-text { font-family: var(--serif); font-size: 1.125rem; line-height: 1.25; }
@media (min-width: 768px) {
  .engagements-list li { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; }
  .eng-text { font-size: 1.25rem; }
}

/* --- 06. Méthode --- */
.method { position: relative; display: grid; margin-top: clamp(3rem, 7vw, 5rem); }
.method-letter {
  font-family: var(--serif);
  font-size: clamp(7rem, 34vw, 15rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.method-a { justify-self: end; font-style: italic; color: var(--vermillon); }
.method-line { display: none; }
.method-steps {
  position: relative;
  display: grid;
  margin: 2rem 0;
  border-left: 1px solid var(--encre);
}
.step { position: relative; padding: 0 0 2.25rem 1.75rem; }
.step:last-child { padding-bottom: 0.25rem; }
.step::before {
  content: "";
  position: absolute;
  left: -5px; top: 0.35rem;
  width: 9px; height: 9px;
  background: var(--encre);
}
.step:last-child::before { background: var(--vermillon); }
.step-num {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--graphite);
}
.step h3 { margin-bottom: 0.6rem; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.025em; }
.step p { max-width: 22rem; color: var(--graphite); }

/* --- 07. Cas client --- */
.case { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 7vw, 5rem); }
.case-card {
  align-self: start;
  padding: 1.75rem;
  border: 1px solid var(--filet-fort);
  background: var(--papier);
}
.case-logo { display: block; width: auto; height: 84px; margin-bottom: 1.5rem; }
.case-name {
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.case-card dl div { display: grid; gap: 0.1rem; padding: 0.75rem 0; border-top: 1px solid var(--filet); }
.case-card dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}
.case-card dd { font-weight: 500; }
.case-steps { display: grid; }
.case-step { padding: 1.5rem 0 2rem; border-top: 1px solid var(--filet-fort); }
.case-step h3 { margin-bottom: 0.75rem; font-size: 1.75rem; }

/* --- Témoignage (fond encre, pleine largeur) --- */
.testimonial {
  margin: 0;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: var(--encre);
  color: var(--papier);
}
.testimonial blockquote p {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 4.5rem);
  font-weight: 350;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.testimonial blockquote em { color: var(--vermillon); }
.testimonial figcaption {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1rem;
  max-width: 34rem;
  border-top: 1px solid rgba(243, 238, 229, 0.3);
  font-size: 0.9375rem;
  color: var(--grege);
}
.testimonial cite { font-style: normal; font-weight: 600; color: var(--papier); }

/* --- 08. FAQ --- */
.faq-layout { display: grid; gap: 3rem; }
.faq-list { border-bottom: 1px solid var(--filet-fort); }
.faq-item { border-top: 1px solid var(--filet-fort); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 20px; height: 1.5px;
  background: var(--encre);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-item summary::before { transform: rotate(90deg); }
.faq-item[open] summary::before { transform: rotate(0deg); }
.faq-item summary:hover::before,
.faq-item summary:hover::after { background: var(--vermillon); }
.faq-item[open] summary { font-style: italic; }
.faq-item p { max-width: 38rem; padding: 0 0 1.75rem; font-size: 1.0625rem; color: var(--graphite); }

/* --- 09. Rendez-vous (fond vermillon) --- */
.rdv-grid { display: grid; gap: 3rem; }
.rdv-title {
  font-size: clamp(3.4rem, 15vw, 12rem);
  font-weight: 380;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.rdv-lead {
  max-width: 30rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
}
.cal-box {
  position: relative;
  min-height: 600px;
  padding: 1.25rem 0.75rem 0.5rem;
  background: var(--papier);
  box-shadow: 0 30px 60px -30px rgba(22, 19, 15, 0.45);
  overflow: hidden;
}
.cal-box.is-ready { min-height: 0; }
.cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin: 0 0.5rem 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--encre);
}
.cal-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.05; letter-spacing: -0.02em; }
.cal-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.cal-meta li { display: flex; align-items: center; gap: 0.5rem; }
.cal-meta li::before { content: ""; width: 0.45rem; height: 0.45rem; background: var(--vermillon); }
.cal-embed { position: relative; z-index: 1; width: 100%; min-height: 520px; }
.cal-box.is-ready .cal-embed { min-height: 0; }
.cal-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--graphite);
}
.cal-box.is-ready .cal-loading { display: none; }
.cal-noscript { position: relative; z-index: 2; padding: 2rem; text-align: center; }
.cal-fallback { margin-top: 1rem; font-size: 0.9375rem; }
.cal-fallback a { font-weight: 600; }

/* 7. PIED DE PAGE --------------------------------------------------------- */
.site-footer {
  --focus: var(--vermillon);
  padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem;
  background: var(--encre);
  color: var(--papier);
}
.footer-brand { display: block; }
.footer-brand img { width: 100%; height: auto; }
.footer-bottom {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 238, 229, 0.25);
}
.footer-motto { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; }
.footer-links { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9375rem; color: var(--grege); }
.footer-links a { display: inline-block; padding: 0.3rem 0; color: var(--papier); text-decoration-color: rgba(243, 238, 229, 0.35); }
.footer-links a:hover { text-decoration-color: var(--vermillon); }

/* 8. PAGES SECONDAIRES ---------------------------------------------------- */
.page-simple .site-header { background: rgba(243, 238, 229, 0.96); border-bottom-color: var(--filet); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link svg { width: 1.15em; height: 1.15em; transform: scaleX(-1); }
.back-link:hover { text-decoration: underline; }

.legal { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5rem)); padding-bottom: var(--section-y); }
.legal h1 {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.legal-content { max-width: 46rem; }
.legal-content section {
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--filet-fort);
}
.legal-content h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
.legal-content p { color: var(--graphite); }
.legal-content strong { color: var(--encre); font-weight: 600; }
.legal-content a { color: var(--encre); }
.legal-content a:hover { text-decoration-color: var(--vermillon); }

/* 9. MISE EN PAGE TABLETTE ET ORDINATEUR ----------------------------------- */
@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
  .nav-cta { display: none; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .brand img { height: 32px; }
  .hero-top-mid { display: inline; }

  .hero-foot { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 2.5rem; }
  .hero-actions { justify-content: flex-end; }
  .hero-title .line:nth-child(2) { padding-left: 0.55em; }

  .columns-3 { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--filet-fort); }
  .col { padding: 1.75rem 1.75rem 0; border-top: 0; border-left: 1px solid var(--filet); }
  .col:first-child { padding-left: 0; border-left: 0; }

  .index-row { grid-template-columns: minmax(0, 1.15fr) 44px minmax(0, 1fr); gap: 2rem; align-items: start; padding: 2.25rem 0 2.5rem; }
  .index-arrow { display: block; margin-top: 0.35rem; }

  .pillars { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }

  .formats { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }

  .banner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }

  .stats { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
  .stat { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.5rem; padding-top: 1.5rem; }
  .stat-label { text-align: left; }
  .stat-label::before { margin-left: 0; }

  .timeline li { grid-template-columns: 8rem 1fr; gap: 2rem; padding: 1.5rem 0; }
  .timeline time { font-size: 2.25rem; }
  .timeline p { font-size: 1.1875rem; padding-top: 0.3rem; }

  .engagements { padding: 2.25rem; }
  .engagements-list { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .engagements-list li:nth-child(2) { border-top: 0; padding-top: 0.25rem; }

  .case-steps { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }

  .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1.75rem; justify-content: flex-end; }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 76px; }
  .js .nav-toggle { display: none; }
  .nav, .js .nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-list a {
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0;
  }
  .nav-list a:hover { text-decoration: underline; text-decoration-color: var(--vermillon); text-decoration-thickness: 2px; }
  .nav-num { font-size: 0.625rem; line-height: 1.2; }
  .nav-cta { display: none; }
  .menu-open { overflow: auto; }

  /* Hero : titre géant à gauche, portrait à droite */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 28%);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
  }
  .hero-title { font-size: clamp(5rem, 10.4vw, 11rem); }
  .hero-media { max-width: none; }

  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 4rem; align-items: end; }

  .apport-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .apport-media { position: sticky; top: calc(var(--header-h) + 2rem); }
  .photo-close { aspect-ratio: 4 / 5; }

  .formats { grid-template-columns: repeat(4, 1fr); }

  .chrono { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 2rem; }
  .chrono-label { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; padding-top: 1.6rem; }

  /* Méthode : I géant — quatre étapes — A géant */
  .method {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .method-letter { font-size: clamp(10rem, 19vw, 19rem); }
  .method-a { justify-self: auto; }
  .method-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin: 0;
    padding-top: 2.25rem;
    border-left: 0;
    border-top: 1px solid var(--encre);
  }
  .method-steps::after {
    /* pointe de flèche au bout du filet */
    content: "";
    position: absolute;
    right: -2px; top: -7px;
    border-left: 12px solid var(--vermillon);
    border-block: 6.5px solid transparent;
  }
  .step { padding: 0; }
  .step::before { left: 0; top: calc(-2.25rem - 5px); }
  .step-num { margin-bottom: 1rem; }

  .case { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(3rem, 6vw, 6rem); }
  .case-card { position: sticky; top: calc(var(--header-h) + 2rem); }

  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq-layout .h-xl { position: sticky; top: calc(var(--header-h) + 2rem); font-size: clamp(3rem, 5.6vw, 5.5rem); }

  .cal-box { min-height: 650px; padding: 2rem 1.5rem 0.75rem; }
  .cal-head { margin: 0 0.75rem 0.75rem; }
  .cal-embed { min-height: 560px; }
}

@media (min-width: 1440px) {
  .hero-title { font-size: 11.5rem; }
}

/* 10. ANIMATIONS ----------------------------------------------------------- */

/* Titre du hero : chaque ligne monte depuis son filet */
@keyframes line-rise {
  from { transform: translateY(105%); }
  to   { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-title .line-in { animation: line-rise 1.1s cubic-bezier(0.2, 0.75, 0.15, 1) both; }
.hero-title .line:nth-child(2) .line-in { animation-delay: 0.12s; }
.hero-kicker, .hero-foot, .hero-media, .hero-top { animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-kicker { animation-delay: 0.05s; }
.hero-media { animation-delay: 0.25s; }
.hero-foot { animation-delay: 0.4s; }

/* Bandeau des paires : défilement continu (le contenu est doublé par js/main.js) */
@keyframes marquee { to { transform: translateX(-50%); } }
.js .pairs-track { animation: marquee 38s linear infinite; }
.pairs:hover .pairs-track { animation-play-state: paused; }

/* Apparitions douces au scroll (activées par js/main.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .rubrique.reveal { transform: none; }
.js .rubrique.reveal::before { transform: scaleX(0); transition: transform 1.2s cubic-bezier(0.6, 0, 0.2, 1); }
.js .rubrique.reveal.is-visible::before { transform: scaleX(1); }
.columns-3 > .reveal:nth-child(2), .formats > .reveal:nth-child(2), .stats > .reveal:nth-child(2), .method-steps > .reveal:nth-child(2), .pillars > .reveal:nth-child(2), .case-steps > .reveal:nth-child(2) { transition-delay: 0.1s; }
.columns-3 > .reveal:nth-child(3), .formats > .reveal:nth-child(3), .stats > .reveal:nth-child(3), .method-steps > .reveal:nth-child(3), .pillars > .reveal:nth-child(3), .case-steps > .reveal:nth-child(3) { transition-delay: 0.2s; }
.formats > .reveal:nth-child(4), .method-steps > .reveal:nth-child(4), .pillars > .reveal:nth-child(4), .case-steps > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Préférence système « réduire les animations » : tout est désactivé */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .rubrique.reveal::before { transform: none; }
  .js .pairs-track { flex-wrap: wrap; justify-content: center; width: auto; gap: 0.5rem 0; padding-inline: var(--gutter); }
  .pairs-track [aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   11. IMAGES, LOGOS ET ANIMATIONS SUPPLÉMENTAIRES
   ========================================================================== */

/* Barre de progression de lecture, sous l'en-tête */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--vermillon); transform-origin: left; transform: scaleX(0); }

/* Bande des entreprises */
.logos-band { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.logos-band + .section { padding-top: clamp(4rem, 9vw, 7rem); }
.logos-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.9rem;
  margin-bottom: 0;
  border-top: 1px solid var(--encre);
}
.logos-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.logos-hint { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1; color: var(--graphite); white-space: nowrap; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1.25rem; border-top: 1px solid var(--filet); }
.logos li { border-bottom: 1px solid var(--filet); }
.logos li:nth-child(odd) { border-right: 1px solid var(--filet); }
.logo-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem 0.75rem 1.25rem;
  color: inherit;
  text-decoration: none;
}
.logo-box { display: flex; align-items: center; justify-content: center; height: 72px; }
.logo-box img {
  width: auto;
  max-width: 85%;
  max-height: 42px;
  filter: grayscale(1) brightness(0.55) contrast(1.3);
  opacity: 0.85;
  transition: filter 0.45s ease, opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.logo-box img[src*="rayoneo"], .logo-box img[src*="co-food"] { max-height: 64px; }
.logo-item:hover .logo-box img,
.logo-item:focus-visible .logo-box img { filter: none; opacity: 1; transform: scale(1.07); }
.logo-cap { display: grid; gap: 0.15rem; font-size: 0.75rem; line-height: 1.35; text-align: center; color: var(--graphite); }
.logo-cap strong { font-family: var(--serif); font-size: 1.0625rem; font-weight: 400; color: var(--encre); }
@media (min-width: 768px) {
  .logos { grid-template-columns: repeat(4, 1fr); }
  .logos li { border-right: 1px solid var(--filet); }
  .logos li:nth-child(4n) { border-right: 0; }
}
@media (min-width: 1200px) {
  .logos { grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--filet); }
  .logos li { border-bottom: 0; }
  .logos li:nth-child(4n) { border-right: 1px solid var(--filet); }
  .logos li:last-child { border-right: 0; }
}

/* Logos dans la chronologie */
.tl-logos { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.35rem; }
.tl-logos img {
  width: auto;
  height: 26px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.55) contrast(1.3);
  opacity: 0.8;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.timeline li:hover .tl-logos img { filter: none; opacity: 1; }
@media (min-width: 1024px) {
  .timeline li { grid-template-columns: 8rem minmax(0, 1fr) auto; }
  .tl-logos { grid-column: 3; grid-row: 1; justify-content: flex-end; max-width: 20rem; margin-top: 0.25rem; }
}

/* Chronologie : ligne vermillon qui avance avec le défilement */
.timeline { position: relative; }
.js .timeline::before,
.js .timeline::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--gutter) * -0.6);
  width: 2px;
}
.js .timeline::before { background: var(--filet); }
.js .timeline::after { background: var(--vermillon); transform-origin: top; transform: scaleY(var(--tl, 0)); }

/* Titres : les mots montent un par un (découpage fait par js/main.js) */
.js .reveal.words { opacity: 1; transform: none; }
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.06em 0.14em; margin: -0.04em -0.06em -0.14em; }
.words .w-in { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(0.2, 0.75, 0.15, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.words.is-visible .w-in { transform: none; }

/* Témoignage : les mots s'allument au fil de la lecture */
.quote-reveal.is-split .qw { opacity: 0.2; transition: opacity 0.35s ease; }
.quote-reveal.is-split .qw.on { opacity: 1; }

/* Portraits : dévoilement au chargement + profondeur au défilement */
@keyframes curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { scale: 1.3; } to { scale: 1.08; } }
.portrait { animation: curtain 1.4s cubic-bezier(0.65, 0, 0.2, 1) 0.15s both; }
.portrait-img { scale: 1.08; translate: 0 var(--py, 0px); }
.hero .portrait-img { animation: settle 2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.photo-close .portrait-img { scale: 1.14; }

/* Boutons : balayage vermillon au survol */
.btn-ink { position: relative; overflow: hidden; isolation: isolate; }
.btn-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--vermillon);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}
.btn-ink:hover { background: var(--encre); color: var(--encre); }
.btn-ink:hover::before { transform: scaleX(1); transform-origin: left; }

/* Situations : la ligne se remplit au survol */
.index-row { position: relative; }
.index-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  background: rgba(22, 19, 15, 0.05);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.index-row:hover::before { transform: scaleY(1); }
.index-row > * { position: relative; }
.index-row h3 { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.index-row:hover h3 { transform: translateX(0.5rem); }

/* Méthode : la flèche se trace du I vers le A */
@media (min-width: 1024px) {
  .method-steps { border-top-color: transparent; }
  .method-steps::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 1px;
    background: var(--encre);
    transform-origin: left;
  }
  .js .method.draw .method-steps::before { transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.2s; }
  .js .method.draw .method-steps::after { opacity: 0; transition: opacity 0.4s ease 1.6s; }
  .js .method.draw .method-i { opacity: 0; transform: translateX(-2rem); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .method.draw .method-a { opacity: 0; transform: translateX(-2rem); transition: opacity 0.9s ease 1.5s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s; }
  .js .method.is-drawn .method-steps::before { transform: scaleX(1); }
  .js .method.is-drawn .method-steps::after,
  .js .method.is-drawn .method-letter { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-img, .photo-close .portrait-img { scale: 1; translate: none; }
  .js .method.draw .method-steps::before { transform: none; }
  .js .method.draw .method-steps::after,
  .js .method.draw .method-letter { opacity: 1; transform: none; }
  .btn-ink:hover { background: var(--vermillon); }
}
