/* =========================================================
   Pratique TCC — Thérapie Cognitive et Comportementale
   Feuille de style principale (inspirée du thème Finovate)
   ---------------------------------------------------------
   1. Variables            6. Boutons
   2. Base                 7. Sections & composants
   3. Typographie          8. Pages spécifiques
   4. Header / navigation  9. Footer
   5. Hero                10. Animations & responsive
   ========================================================= */

/* 0. Police Work Sans (hébergée localement) ------------- */
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/work-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-italic.woff2") format("woff2"); }

/* 1. Variables ------------------------------------------- */
:root {
  --green: #294b44;          /* vert profond (header, sections sombres) */
  --green-deep: #243f39;     /* variation (formes décoratives, pastille active) */
  --green-ink: #234038;      /* texte principal */
  --lime: #c0e64d;           /* vert citron (CTA, cartes) */
  --lime-hover: #b2db37;
  --accent: #97c03b;         /* vert accent pour texte sur fond clair */
  --beige: #f5f4f1;          /* fonds doux */
  --white: #fff;
  --text: #2f3d3a;
  --muted: rgba(35, 64, 56, .72);
  --line: rgba(35, 64, 56, .14);
  --danger: #d6352b;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1290px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 7vw, 100px);
  --fs-h1: clamp(2rem, 1rem + 2.6vw, 2.875rem);      /* 46px desktop */
  --fs-h2: clamp(1.875rem, 1rem + 2.5vw, 2.875rem);  /* 46px desktop */
  --fs-h3: clamp(1.125rem, 1rem + .4vw, 1.25rem);    /* 20px desktop */
  --fs-body: clamp(.95rem, .9rem + .15vw, .97rem);   /* 15.5px desktop */
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.2rem);   /* 19px desktop */

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.47;
  letter-spacing: .02em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--lime); color: var(--green-ink); padding: 10px 18px; border-radius: 30px; font-weight: 500; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.content { width: min(1220px, 100% - 2 * var(--gutter)); }
.narrow { width: min(1000px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* 3. Typographie ---------------------------------------- */
h1, h2, h3, h4 { font-weight: 400; color: var(--green-ink); margin: 0 0 .5em; line-height: 1.24; letter-spacing: .01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; letter-spacing: .005em; }
p { margin: 0 0 1em; }
.lime { color: var(--accent); }
.on-dark .lime, .dark .lime, .dark-panel .lime { color: var(--lime); }
.on-dark, .dark, .dark-panel { color: rgba(255, 255, 255, .9); }
.on-dark h1, .on-dark h2, .on-dark h3, .dark h1, .dark h2, .dark h3, .dark-panel h2, .dark-panel h3 { color: #f4f3ee; }
.lead { font-size: var(--fs-lead); }
.text-center { text-align: center; }

/* Pastille / étiquette de section */
.tag {
  display: inline-flex; align-items: center;
  padding: 7px 20px;
  border: 1px solid var(--line);
  border-radius: 40px;
  font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: .02em; text-transform: uppercase;
  color: var(--green-ink); background: transparent;
  margin-bottom: 22px;
}
.on-dark .tag, .dark .tag, .dark-panel .tag { color: #fff; border-color: rgba(255, 255, 255, .28); }
.tag-row { display: flex; align-items: center; gap: 0; margin-bottom: 26px; }
.tag-row::before, .tag-row::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tag-row .tag { margin: 0; }

/* Trait décoratif après un titre */
.title-line { display: inline-block; vertical-align: middle; width: clamp(70px, 11vw, 155px); height: 1.5px; margin-left: 20px; background: var(--lime); transform-origin: left; }

/* 4. Header / navigation -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  transition: box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(20, 40, 35, .22); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1290px, 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: 11px 0;
  transition: padding .35s var(--ease);
}
.is-scrolled .header-inner { padding: 7px 0; }
.brand { display: block; flex: none; }
.brand { margin-left: clamp(0px, 2.6vw, 37px); }
.brand img { width: 184px; height: auto; transition: width .35s var(--ease); }
.is-scrolled .brand img { width: 150px; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 11px 14px; border-radius: 40px;
  color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.4; letter-spacing: 0;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.main-nav a:hover { color: var(--lime); }
.main-nav a[aria-current="page"] { background: var(--green-deep); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--beige); color: var(--green-ink);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s;
}
.icon-btn:hover { transform: scale(1.06); background: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.btn-header { padding: 14px 24px; font-size: 14.5px; }
.menu-toggle { display: none; }

/* Menu mobile */
.mobile-panel {
  position: fixed; inset: 0; z-index: 150;
  background: var(--green); color: #fff;
  padding: 26px var(--gutter) 40px;
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
}
.mobile-panel.is-open { transform: none; visibility: visible; }
.mobile-panel .panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-panel nav a {
  display: block; padding: 16px 0; font-size: 1.6rem; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mobile-panel nav a[aria-current="page"] { color: var(--lime); }
.mobile-panel .btn { margin-top: auto; align-self: flex-start; }

/* Recherche (bouton rond du header) */
.search-overlay {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(22, 42, 37, .92); backdrop-filter: blur(6px);
  display: grid; place-items: start center; padding: 14vh var(--gutter) 0;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-box { width: min(720px, 100%); }
.search-box input {
  width: 100%; border: 0; border-bottom: 2px solid var(--lime); background: transparent;
  color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); padding: 12px 0; outline: none;
}
.search-box input::placeholder { color: rgba(255, 255, 255, .5); }
.search-results { list-style: none; margin: 24px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-results a { display: block; padding: 12px 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.search-results a small { display: block; color: rgba(255,255,255,.55); font-size: 13px; }
.search-results a:hover { color: var(--lime); }
.search-close { position: absolute; top: 24px; right: var(--gutter); }

/* 5. Hero (sections sombres prolongeant le header) ------- */
.hero {
  position: relative;
  background: var(--green);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: clamp(40px, 4.5vw, 62px) 0 clamp(56px, 5.5vw, 78px);
  overflow: hidden;
  isolation: isolate;
}
.hero-wrap { position: relative; }
.hero-wrap::after { /* « queue » de bulle façon thème Finovate */
  content: ""; position: absolute; left: calc(var(--gutter) + 0px); bottom: -27px;
  width: 85px; height: 28px; background: var(--green);
  clip-path: polygon(0 0, 100% 0, 10% 100%, 0 92%);
  border-bottom-left-radius: 14px;
}
@media (min-width: 1386px) { .hero-wrap::after { left: calc((100% - var(--container)) / 2); } }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 1060px; margin-bottom: 30px; }
.hero p { max-width: 1280px; }
.hero-quote { font-size: var(--fs-lead); line-height: 1.45; color: rgba(255,255,255,.88); margin: 0 0 34px; max-width: 760px; }
.hero-quote cite { font-style: normal; color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-deco {
  position: absolute; z-index: 0; pointer-events: none;
  right: -14%; top: 50%; width: min(70vw, 900px); aspect-ratio: 1;
  transform: translateY(-50%); color: var(--green-deep); opacity: .75;
}
.hero-deco svg { width: 100%; height: 100%; animation: spin-slow 80s linear infinite; }
.page-head { /* header des pages internes sans hero */
  background: var(--green); height: clamp(16px, 2vw, 24px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.glass-card {
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 30px);
  min-height: 150px; display: flex; align-items: center;
  font-size: var(--fs-lead); font-weight: 500; color: #fff; line-height: 1.26;
  transition: transform .45s var(--ease), background .45s var(--ease);
}
.glass-card:hover { transform: translateY(-6px); background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); }

/* 6. Boutons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 50px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 1.25; letter-spacing: .01em; text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn-lime { background: var(--lime); color: var(--green-ink); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-deep); }
.btn-light { background: var(--beige); color: var(--green-ink); }
.btn-light:hover { background: var(--lime); }

/* Bouton « pilule + cercle fléché » (signature du thème) */
.btn-arrow { display: inline-flex; align-items: center; text-decoration: none; }
.btn-arrow .btn { border-radius: 50px; }
.btn-arrow .circle {
  width: 47px; height: 47px; border-radius: 50%; margin-left: 2px;
  display: grid; place-items: center; flex: none;
  transition: transform .45s var(--ease), background .35s;
}
.btn-arrow .circle svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn-arrow:hover .circle svg { transform: rotate(45deg); }
.btn-arrow:hover .btn { transform: translateX(2px); }
.btn-arrow.lime .btn, .btn-arrow.lime .circle { background: var(--lime); color: var(--green-ink); }
.btn-arrow.lime:hover .btn, .btn-arrow.lime:hover .circle { background: var(--lime-hover); }
.btn-arrow.dark .btn, .btn-arrow.dark .circle { background: var(--green); color: #fff; }
.btn-arrow.dark:hover .btn, .btn-arrow.dark:hover .circle { background: var(--green-deep); }
.btn-arrow.light .btn, .btn-arrow.light .circle { background: var(--beige); color: var(--green-ink); }
.btn-arrow.light:hover .btn, .btn-arrow.light:hover .circle { background: var(--lime); }

/* 7. Sections & composants ------------------------------ */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.bg-beige { background: var(--beige); }
.rounded-block { border-radius: var(--radius-xl); }
.inset { margin-inline: clamp(0px, .7vw, 10px); }
.section-head { text-align: center; max-width: 900px; margin: 0 auto clamp(28px, 3vw, 44px); }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 22px 0 0; }
.section-head p { color: var(--muted); }

/* Médias */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media.square { border-radius: 4px; }

/* Avec nous, vous pourrez */
.benefits { display: grid; grid-template-columns: minmax(0, 373px) 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.benefits .media { border-radius: 2px; aspect-ratio: 3 / 2; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { display: flex; align-items: center; gap: 26px; font-size: clamp(1.05rem, .9rem + .55vw, 1.32rem); font-weight: 500; color: var(--green-ink); line-height: 1.35; }
.check-list .check {
  width: 50px; height: 50px; border-radius: 50%; background: var(--beige); flex: none;
  display: grid; place-items: center; transition: background .35s var(--ease), transform .35s var(--ease);
}
.check-list .check svg { width: 14px; height: 14px; }
.check-list li:hover .check { background: var(--lime); transform: scale(1.08); }

/* Cartes expertises */
.expertise-section { background: linear-gradient(180deg, var(--beige) 0%, var(--beige) 55%, #fbfbf9 100%); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px) clamp(18px, 3.2vw, 46px); max-width: 1255px; margin-inline: auto; }
.exp-card {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 24px 20px 30px;
  box-shadow: 0 0 0 1px rgba(35, 64, 56, .03), 0 18px 40px -30px rgba(35, 64, 56, .3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s;
  display: flex; flex-direction: column;
  min-height: 295px;
}
.expertise-section .exp-card { background: #f4f3ef; }
.exp-card:hover { transform: translateY(-8px); background: #fff; box-shadow: 0 0 0 1px rgba(35,64,56,.05), 0 30px 50px -30px rgba(35,64,56,.45); }
.exp-card h3 { margin-bottom: 14px; }
.exp-card p { padding-inline: 12px; color: var(--green-ink); line-height: 1.45; margin-bottom: 16px; }
.exp-card .read-more { margin: 0 12px; padding-top: 0; color: var(--green-ink); text-underline-offset: 4px; transition: color .3s; }
.exp-card .read-more:hover { color: var(--accent); }
.exp-card.accent p, .exp-card.accent .read-more { color: var(--accent); }
.exp-card.accent .read-more:hover { color: var(--green-ink); }

/* Section « overview » sombre avec astérisque */
.dark-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--green); border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, .92);
}
.dark-panel .deco {
  position: absolute; z-index: -1; color: var(--green-deep); pointer-events: none;
  width: 760px; aspect-ratio: 1; left: 0; top: 50%; transform: translateY(-50%);
}
.dark-panel .deco svg { width: 100%; height: 100%; }
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(44px, 5.5vw, 78px) clamp(24px, 5.5vw, 118px) clamp(44px, 5.5vw, 80px) clamp(24px, 5.8vw, 85px); min-height: 795px; }
.overview .left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.overview .right { padding-top: 58px; }
.overview .right p { margin-bottom: 1.05em; }

/* Histoire */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story .media { border-radius: var(--radius-lg); min-height: 550px; }
.story .card { background: var(--green); border-radius: var(--radius-lg); padding: 30px 30px 50px; color: rgba(255,255,255,.92); display: flex; flex-direction: column; }
.story .card .tag { align-self: flex-start; color: #fff; border-color: rgba(255,255,255,.3); }
.story .card .body { margin-top: auto; }

/* Équipe */
.team-head { text-align: center; margin-bottom: clamp(36px, 4vw, 56px); }
.team-head h2 { font-size: clamp(1.5rem, 1rem + 1.3vw, 1.875rem); font-weight: 500; margin-bottom: 18px; }
.team-head p { margin: 0; }
.tag-row { max-width: 1160px; margin-inline: auto; }
.member { display: grid; grid-template-columns: minmax(0, 36%) 1fr; gap: 20px; margin-bottom: clamp(32px, 4vw, 44px); }
.member.reverse { grid-template-columns: 1fr minmax(0, 37.5%); }
.member.reverse .member-photo { order: 2; }
.member-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 540px; }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.member-photo:hover img { transform: scale(1.04); }
.member-name {
  position: absolute; left: 30px; right: 30px; bottom: 30px;
  padding: 24px 30px; border-radius: 24px;
  background: rgba(225, 215, 214, .72);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.member-name.pink { background: linear-gradient(90deg, rgba(232, 196, 199, .82), rgba(244, 160, 170, .8)); }
.member-name.grey { background: rgba(160, 160, 160, .78); }
.member-name strong { display: block; font-weight: 500; font-size: 15.5px; color: var(--green-ink); margin-bottom: 2px; }
.member-name span { display: block; font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: rgba(35, 64, 56, .68); line-height: 1.8; word-break: break-word; }

.lime-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lime); border-radius: var(--radius-lg);
  padding: clamp(24px, 2.8vw, 40px);
  color: var(--green-ink);
  display: flex; flex-direction: column;
}
.lime-card::before { /* facette translucide */
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 48%; height: 82%;
  background: rgba(255, 255, 255, .2);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 84% 92%, 3% 100%, 0 96%);
  border-radius: 0 var(--radius-lg) 0 0;
  transition: transform 1.2s var(--ease);
}
.member.reverse .lime-card::before { left: 30%; right: auto; width: 66%; height: 50%; clip-path: polygon(0 0, 100% 0, 100% 2%, 74% 92%, 2% 100%, 0 95%); }
.lime-card:hover::before { transform: translate(-8px, 6px); }
.lime-card .tag { align-self: flex-start; border-color: rgba(35, 64, 56, .25); }
.lime-card .ast-badge { position: absolute; top: clamp(24px, 2.8vw, 40px); right: clamp(24px, 2.8vw, 40px); }
.ast-badge {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; transition: transform .8s var(--ease);
}
.ast-badge svg { width: 42%; height: 42%; }
.lime-card:hover .ast-badge { transform: rotate(60deg); }
.domains { list-style: none; margin: 4px 0 14px; padding: 0; }
.domains li { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); font-weight: 600; line-height: 1.3; margin-bottom: 1.4em; max-width: 84%; }
.domains.simple li { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); font-weight: 500; margin-bottom: 1.2em; }
.domains li.soft { color: rgba(35, 64, 56, .55); font-weight: 400; margin-top: -1.35em; }
.member-contact { margin-top: auto; }
.member-contact .big { display: inline-block; font-size: clamp(1.5rem, 1rem + 1.2vw, 1.8rem); font-weight: 500; text-decoration: none; letter-spacing: .03em; margin-bottom: 10px; transition: color .3s; word-break: break-word; }
.member-contact a.big:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.member-contact .email { font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem); font-weight: 600; letter-spacing: .01em; }
.member-contact p { margin: 0 0 .4em; font-size: 15px; line-height: 1.45; }
.notice-red { color: var(--danger); font-size: 12px !important; line-height: 1.9 !important; margin-top: 30px !important; }
.notice-red b { font-weight: 700; }

/* 8. Pages spécifiques ---------------------------------- */
/* La TCC — c'est quoi */
.split-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.split-intro p { color: var(--text); margin-top: 55px; }
.split-intro h2 { padding-left: 12px; max-width: 520px; }
.video-row { display: grid; grid-template-columns: 574fr 516fr; gap: clamp(28px, 3.5vw, 50px); align-items: center; margin-top: clamp(44px, 5vw, 96px); padding-inline: clamp(0px, 2vw, 30px); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #111; }
.video-frame iframe, .video-frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame button { cursor: pointer; padding: 0; background: #000 center/cover no-repeat; }
.video-frame button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
  background: #e62117 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;
  border-radius: 14px; transition: transform .35s var(--ease);
}
.video-frame button:hover::after { transform: translate(-50%, -50%) scale(1.1); }
.video-frame .video-title { position: absolute; left: 0; right: 0; top: 0; padding: 16px 20px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); font-weight: 500; text-align: left; z-index: 1; pointer-events: none; }
.explore-card { background: var(--lime); border-radius: var(--radius-lg); padding: 30px; min-height: 390px; display: flex; flex-direction: column; justify-content: center; }
.explore-card h3 { font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem); font-weight: 400; margin-bottom: 22px; }
.explore-card p { font-size: clamp(1rem, .95rem + .2vw, 1.06rem); font-weight: 500; color: var(--green-ink); line-height: 1.3; }
.prose p { margin-bottom: 1.05em; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 40px) clamp(20px, 4vw, 60px); max-width: 1180px; margin-inline: auto; }
.icon-card {
  border: 1px solid #e6e6e2; border-radius: var(--radius-lg); background: #fff;
  padding: 30px 12px 12px;
  display: flex; flex-direction: column; min-height: 370px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.icon-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -35px rgba(35,64,56,.45); border-color: transparent; }
.icon-card .ast-badge { background: var(--lime); color: var(--green); width: 60px; height: 60px; margin-left: 18px; }
.icon-card:hover .ast-badge { transform: rotate(60deg); }
.icon-card .inner { margin-top: auto; background: var(--beige); border-radius: 18px; padding: 34px 20px 24px; min-height: 210px; font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); font-weight: 500; color: var(--green-ink); line-height: 1.45; }
.icon-card .inner h3 { font-size: clamp(1.15rem, 1rem + .3vw, 1.25rem); margin: 0 0 16px; }
.icon-card .inner p { font-size: 1rem; font-weight: 400; margin: 0; }
.icon-card.compact { min-height: 360px; }
.icon-card.compact .inner { min-height: 150px; }

.tandem { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 100px); padding: clamp(44px, 5.5vw, 80px) 30px; align-items: start; min-height: 400px; }
.tandem > div { padding-top: 6px; }
.tandem h2 { margin-bottom: 40px; max-width: 420px; }
.tandem .points { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.35; }
.tandem .points li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.tandem .points li:first-child { padding-top: 0; }

/* Comment ça marche */
.quote-lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.1rem); font-weight: 500; line-height: 1.3; color: var(--green-ink); max-width: 790px; margin-bottom: 64px; }
.example-italic { font-style: italic; }
.schema { margin: clamp(40px, 6vw, 80px) auto; background: var(--beige); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 40px); }
.schema img { margin-inline: auto; width: 100%; max-width: 900px; }
.cards-5 { display: flex; flex-wrap: wrap; justify-content: center; gap: 52px 87px; max-width: 1086px; margin-inline: auto; }
.cards-5 > * { width: calc((100% - 174px) / 3); }
@media (min-width: 1001px) {
  .cards-5 > :nth-child(4) { margin-right: 65px; }
  .cards-5 > :nth-child(5) { margin-left: 65px; }
}
.cards-5 .icon-card { min-height: 330px; padding-top: 40px; }
.cards-5 .ast-badge { margin-left: 18px; }
.cards-5 .inner { min-height: 135px; padding: 30px 20px 22px; }
.cards-5 .inner h3 { margin-bottom: 0; font-size: clamp(1.15rem, 1rem + .4vw, 1.375rem); }
.cards-5 .inner small { display: block; font-size: 14px; font-weight: 400; margin-top: 22px; }

.example-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: start; margin-bottom: 34px; }
.example-head h2 { margin: 0; }
.table-wrap { max-width: 900px; margin: 0 auto 44px; overflow-x: auto; }
.cbt-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.35; letter-spacing: 0; min-width: 620px; }
.cbt-table th { background: #bcbfbd; color: #1f2826; padding: 5px 8px; font-weight: 600; text-align: center; border-bottom: 2px solid #9fa3a1; }
.cbt-table td { padding: 5px 6px; border-top: 1px solid #d7d9d7; border-left: 1px solid #d7d9d7; vertical-align: top; }
.cbt-table td:nth-child(1) { width: 34%; }
.cbt-table td:first-child { border-left: 0; color: #2b3432; }
.cbt-table tr:nth-child(odd) td { background: #f1f1f0; }
.cbt-table tbody tr { transition: background .3s; }
.cbt-table tbody tr:hover td { background: #eef5d8; }

.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1220px; margin-inline: auto; }
.cta-pair > div { border-radius: var(--radius-lg); min-height: 385px; padding: 30px; position: relative; overflow: hidden; }
.cta-pair .lime-side { background: var(--lime); display: flex; flex-direction: column; justify-content: flex-end; gap: 88px; }
.cta-pair .lime-side p { font-size: var(--fs-lead); line-height: 1.58; color: #1d2f2a; margin: 0; }
.cta-pair .dark-side { background: var(--green); padding-top: 38px; }
.cta-pair .dark-side h2 { color: var(--lime); font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem); line-height: 1.2; position: relative; z-index: 1; max-width: 100%; }
.cta-pair .dark-side .deco { position: absolute; right: -120px; bottom: -205px; width: 470px; color: var(--lime); transition: transform 1.4s var(--ease); }
.cta-pair .dark-side:hover .deco { transform: rotate(30deg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form-card { background: var(--beige); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 60px); }
.contact-form-card h1 { font-size: var(--fs-h1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--green-ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 20px; border-radius: 30px; border: 1px solid transparent; background: #fff;
  font-size: 15px; transition: border-color .3s, box-shadow .3s; outline: none;
}
.field textarea { border-radius: 20px; min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(192, 230, 77, .35); }
.consent { display: flex; gap: 12px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--green); }
.form-status { font-size: 14px; margin-top: 14px; min-height: 1.4em; color: var(--green-ink); }
.contact-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 540px; }
.contact-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call-card {
  position: absolute; left: 6%; right: 6%; bottom: 6%;
  display: flex; gap: 18px; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 60px; padding: 14px 28px 14px 14px;
  color: var(--green-ink); font-size: 15px; line-height: 1.45;
}
.call-card .phone { width: 58px; height: 58px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; }
.call-card a { font-weight: 600; }
.team-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-person { background: var(--beige); border-radius: var(--radius-lg); padding: 32px; transition: transform .45s var(--ease), background .45s; }
.contact-person:hover { transform: translateY(-6px); background: var(--lime); }
.contact-person h3 { margin-bottom: 4px; }
.contact-person .role { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 20px; }
.contact-person a { display: block; text-decoration: none; font-weight: 500; color: var(--green-ink); word-break: break-word; }
.contact-person a:hover { text-decoration: underline; }
.info-band { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: 28px 36px; margin-top: 28px; }
.info-band .ast-badge { background: var(--lime); color: var(--green); width: 60px; height: 60px; }
.info-band p { margin: 0; }
.info-band .warn { color: #ffb4ab; }

/* Articles expertises */
.article { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.article:first-of-type { border-top: 0; }
.article .side { position: sticky; top: 120px; align-self: start; }
.article .side .num { font-size: 3.2rem; color: var(--lime); line-height: 1; font-weight: 300; }
.article h2 { font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem); }
.article .body { max-width: 820px; }
.article .body p { color: var(--text); }
.article .body .excerpt { font-size: var(--fs-lead); line-height: 1.45; color: var(--green-ink); }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.toc a { padding: 10px 18px; border-radius: 40px; background: var(--beige); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--green-ink); transition: background .3s; }
.toc a:hover { background: var(--lime); }

/* 9. Footer --------------------------------------------- */
.site-footer { background: var(--green); color: rgba(255, 255, 255, .78); border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: clamp(48px, 6vw, 90px); padding: clamp(56px, 7vw, 90px) 0 30px; position: relative; overflow: hidden; isolation: isolate; }
.site-footer .deco { position: absolute; z-index: -1; right: -180px; top: -160px; width: 560px; color: var(--green-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 184px; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; font-size: 14.5px; }
.site-footer h4 { color: rgba(255,255,255,.5); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a { color: #fff; text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; font-size: 13px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* 10. Animations ---------------------------------------- */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.title-line { transform: scaleX(0); transition: transform 1.2s var(--ease) .5s; }
.is-visible .title-line, .title-line.is-visible { transform: scaleX(1); }
/* Révélation mot à mot des titres (data-split) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.split-ready.is-visible .split-word > span { transform: none; }
/* Image : rideau de dévoilement (appliqué à l'image, le cadre reste observable) */
.reveal-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s), 0s; }
.reveal-img.is-visible img { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-img img, .split-word > span, .title-line { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Responsive -------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 12px; font-size: 14px; }
  .btn-header { display: none; }
}
@media (max-width: 1000px) {
  .main-nav, .header-actions .search-trigger { display: none; }
  .menu-toggle { display: grid; }
  .btn-header { display: inline-flex; }
  .benefits, .overview, .story, .split-intro, .video-row, .tandem, .example-head, .contact-grid { grid-template-columns: 1fr; }
  .split-intro p { margin-top: 0; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .member.reverse .lime-card::before { left: auto; right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-contacts { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article .side { position: static; }
  .cards-5 { gap: 24px; }
  .cards-5 > * { width: calc((100% - 24px) / 2); }
  .story .media { aspect-ratio: 1 / 1; }
  .contact-visual { min-height: 460px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .btn-header { display: none; }
  .brand img { width: 140px; }
  .cards-3, .cards-2, .explore-grid, .cta-pair, .form-grid { grid-template-columns: 1fr; }
  .cards-5 > * { width: 100%; }
  .icon-card { min-height: 0; }
  .icon-card .inner { min-height: 0; margin-top: 40px; }
  .glass-card { min-height: 0; }
  .lime-card .ast-badge { width: 56px; height: 56px; }
  .domains li { max-width: 100%; }
  .lime-card .tag { margin-right: 64px; }
  .member-name { padding: 18px 20px; }
  .member-name span { font-size: 11.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-wrap::after { width: 100px; height: 36px; bottom: -34px; }
  .check-list li { gap: 16px; }
  .call-card { border-radius: 24px; }
  .info-band { grid-template-columns: 1fr; padding: 26px; }
  .cta-pair > div { min-height: 320px; }
  .title-line { display: block; margin: 18px 0 0; }
}


/* Ajustements responsive (tablette / mobile) ---------------- */
@media (max-width: 1000px) {
  .overview { min-height: 0; }
  .overview .right { padding-top: 0; }
  .member, .member.reverse { grid-template-columns: minmax(0, 40%) 1fr; }
  .member.reverse { grid-template-columns: 1fr minmax(0, 40%); }
  .member.reverse .member-photo { order: 2; }
  .member-photo { aspect-ratio: auto; min-height: 460px; }
  .member-name { left: 16px; right: 16px; bottom: 16px; padding: 18px 20px; }
  .member-name span { font-size: 11px; overflow-wrap: anywhere; }
  .domains li, .domains.simple li { max-width: 100%; }
  .tandem { grid-template-columns: 1fr; gap: 28px; }
  .explore-card { min-height: 0; }
  .story .media { min-height: 0; }
}
@media (max-width: 700px) {
  .member, .member.reverse { grid-template-columns: 1fr; }
  .member.reverse .member-photo { order: 0; }
  .member-photo { min-height: 0; aspect-ratio: 3 / 4; }
  .overview { display: flex; flex-direction: column; gap: 28px; }
  .overview .left { display: contents; }
  .overview .left > div:first-child { order: 1; }
  .overview .right { order: 2; }
  .overview .left > div:last-child { order: 3; }
  .cta-pair > div { min-height: 280px; }
  .cta-pair .lime-side { gap: 40px; }
  .cta-pair .dark-side { min-height: 300px; }
  .cta-pair .dark-side .deco { width: 300px; right: -90px; bottom: -150px; }
  .hero-deco { right: -45%; width: 120vw; opacity: .55; }
  .split-intro h2 { padding-left: 0; }
  .video-row { padding-inline: 0; }
  .check-list li { font-size: 1.02rem; }
}

/* Formes décoratives (astérisque/fleur) */
.deco, .hero-deco { aspect-ratio: 1; }
.deco svg, .hero-deco svg { width: 100%; height: 100%; overflow: visible; }
