/* Poppins — auto-hébergé (sous-ensembles latin) */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/poppins-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/poppins-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/poppins-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/poppins-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/poppins-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/poppins-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/poppins-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/poppins-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/poppins-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/poppins-800-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins Fallback';src:local('Arial');size-adjust:112%;ascent-override:93%;descent-override:31%;line-gap-override:0%}


/* =================================================================
   Le Droit d'Investir — feuille de styles
   Palette : cyan #52CDEF · teal #1884A4 · deep #076E8E
   Police : Poppins
   ================================================================= */

:root {
  /* Brand */
  --cyan: #52cdef;
  --cyan-light: #e7f8fd;
  --teal: #1884a4;
  --deep: #076e8e;
  --deep-dark: #0a3f51;

  /* Accent (premium gold) */
  --gold: #f4b740;
  --gold-dark: #e09419;

  /* Neutrals */
  --ink: #14313c;
  --body: #46606b;
  --muted: #5a7079;
  --line: #e3edf1;
  --bg: #ffffff;
  --bg-tint: #f1f9fc;
  --white: #ffffff;

  /* Effects */
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(10, 63, 81, 0.06);
  --shadow: 0 14px 40px rgba(10, 63, 81, 0.10);
  --shadow-lg: 0 30px 70px rgba(10, 63, 81, 0.18);
  --ring: 0 0 0 4px rgba(82, 205, 239, 0.35);

  --maxw: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); font-weight: 700; }

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

ul { padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ----------------------------- Layout ---------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(3.5rem, 2rem + 7vw, 7rem) 0; }
.section--tint { background: var(--bg-tint); }
.section__narrow { max-width: 820px; margin-inline: auto; }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--body); }
.section__narrow p { margin-top: 1rem; }

.kicker {
  display: inline-block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--deep); margin-bottom: 0.85rem;
}
.kicker--light { color: var(--cyan); }
.section__head h2 { margin-bottom: 0.9rem; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--deep); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------- Buttons --------------------------- */
.btn {
  --btn-bg: var(--deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--lg { padding: 1.15rem 2.2rem; font-size: 1.08rem; }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  color: #fff; background: linear-gradient(135deg, var(--teal), var(--deep));
  box-shadow: 0 10px 24px rgba(7, 110, 142, 0.32);
}
.btn--primary:hover { box-shadow: 0 16px 32px rgba(7, 110, 142, 0.42); color:#fff; }

.btn--accent {
  color: #4a3300; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 10px 24px rgba(224, 148, 25, 0.34);
}
.btn--accent:hover { box-shadow: 0 16px 32px rgba(224, 148, 25, 0.44); color:#4a3300; }

.btn--ghost { color: var(--deep); background: transparent; border-color: var(--deep); }
.btn--ghost:hover { background: var(--deep); color: #fff; }

/* ----------------------------- Header ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 46px; width: auto; }
.header__nav { display: none; }
.header__nav ul { display: flex; gap: 1rem; align-items: center; }
.header__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.header__nav a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem; position: relative; padding: 0.3rem 0;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--cyan); transition: width 0.2s ease;
}
.header__nav a:hover { text-decoration: none; }
.header__nav a:hover::after { width: 100%; }

/* Lien « Assistant IA » mis en avant */
.nav-ai {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--cyan-light); color: var(--deep) !important; font-weight: 700;
  padding: 0.5rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.nav-ai svg { width: 16px; height: 16px; fill: var(--teal); flex: 0 0 auto; }
.nav-ai::after { display: none !important; }
.nav-ai:hover { background: var(--cyan); color: #063e50 !important; }
.nav-ai:hover svg { fill: #063e50; }
.header__cta { flex: 0 0 auto; }
/* Le bouton « Assistant IA » reste dans la barre à toutes les tailles d'écran */
.header__ai { flex: 0 0 auto; }
.header__nav-cta { display: none; }
.header__login { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--deep); white-space: nowrap; padding: 0.5rem 0.9rem; border: 2px solid var(--line); border-radius: 999px; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.header__login svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header__login:hover { border-color: var(--deep); background: var(--cyan-light); color: var(--deep); text-decoration: none; }
.header__nav-login { display: none; }

.header__burger {
  display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px;
}
.header__burger span { width: 26px; height: 3px; border-radius: 3px; background: var(--deep); transition: 0.25s ease; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Navigation repliée derrière le menu — à toutes les tailles d'écran */
.site-header.nav-open .header__nav {
  display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--line); box-shadow: var(--shadow); padding: 1rem var(--gutter) 1.4rem;
}
.site-header.nav-open .header__nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
.site-header.nav-open .header__nav li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }

/* ----------------------------- Hero ------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--cyan-light), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-tint) 100%);
  padding: clamp(2.5rem, 2rem + 5vw, 5.5rem) 0 clamp(3rem, 2rem + 5vw, 6rem);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__content { max-width: 620px; }
.hero h1 { margin: 0.4rem 0 1.1rem; }
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem); color: var(--body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.4rem; }
.hero__trust { display: grid; gap: 0.55rem; }
.hero__trust li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; color: var(--body); }
.hero__trust .i { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(7,110,142,.1); color: var(--deep); }

.badge-rating {
  display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; color: var(--ink);
  padding: 0.5rem 0.95rem; border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 500; font-size: 0.95rem;
}
.stars { color: var(--gold); letter-spacing: 1px; }

.hero__media { position: relative; justify-self: center; }
.hero__media::before {
  content: ""; position: absolute; inset: 6% 6% 0 6%;
  background: radial-gradient(circle at 50% 45%, var(--cyan), var(--teal));
  border-radius: 42% 58% 56% 44% / 52% 44% 56% 48%; filter: blur(2px); opacity: 0.92; z-index: 0;
}
.hero__media img { position: relative; z-index: 1; width: min(440px, 90%); margin-inline: auto; }

/* ----------------------------- Strip ----------------------------- */
.strip { background: linear-gradient(120deg, var(--deep-dark), var(--deep)); color: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: clamp(1.6rem, 3vw, 2.4rem) 0; text-align: center; }
.strip__item { display: grid; gap: 0.1rem; }
.strip__item strong { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; color: #fff; }
/* Enfant direct : le 4e item imbrique des <span> dans son <strong> pour porter
   la note Google, qui doit garder la taille du chiffre et non celle du libellé. */
.strip__item > span { font-size: 0.92rem; opacity: 0.92; }
.strip__item + .strip__item { border-left: 1px solid rgba(255,255,255,.18); }

/* ----------------------------- Cards ----------------------------- */
.cards { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; }
.card__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--teal)); margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------- Split ----------------------------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--text-first { grid-template-columns: 1.15fr 0.85fr; }
.split--text-first .split__media::after { right: auto; left: -14px; }
.split__media { position: relative; }
.split__media img {
  width: 100%; max-width: 460px; border-radius: 28px 28px 28px 60px;
  box-shadow: var(--shadow); margin-inline: auto;
}
.split__media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 60%; height: 60%;
  border: 3px solid var(--cyan); border-radius: 28px; z-index: -1;
}
.split__content h2 { margin: 0.5rem 0 1rem; }
.split__content p { margin-bottom: 0.9rem; }

.checklist { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 600; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* --------------------------- Abonnement -------------------------- */
.section--dark {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(82,205,239,.18), transparent 55%),
    linear-gradient(160deg, var(--deep-dark), var(--deep));
  color: rgba(255,255,255,.88);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.85); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.benefit {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.6rem; backdrop-filter: blur(4px);
}
.benefit__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.benefit__head h3 { font-size: 1.12rem; }
.benefit__value {
  flex: 0 0 auto; font-size: 0.78rem; font-weight: 700; color: var(--deep-dark);
  background: var(--cyan); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.benefit p { margin: 0; font-size: 0.97rem; color: rgba(255,255,255,.82); }
.benefit__note { display: block; font-size: 0.82rem; opacity: 0.7; margin-top: 0.3rem; }
.benefit__link { color: var(--cyan); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.benefit__link:hover { color: #fff; }

.value-total {
  margin-top: 2.2rem; text-align: center; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem);
}
.value-total > span { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; color: var(--cyan); font-weight: 700; }
.value-total strong { display: block; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); color: #fff; line-height: 1; margin: 0.4rem 0 0.9rem; }
.value-total p { max-width: 620px; margin: 0 auto 1.6rem; color: rgba(255,255,255,.82); }

/* ------------------------ Video testimonials --------------------- */
.vtestimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.vtestimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.vtestimonial__media { position: relative; aspect-ratio: 16/9; background: linear-gradient(160deg, var(--deep), var(--deep-dark)); display: grid; place-items: center; align-content: center; gap: 0.7rem; }
.vtestimonial__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vtestimonial__play { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.vtestimonial__play svg { width: 24px; height: 24px; fill: var(--deep); margin-left: 3px; }
.vtestimonial__soon { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.vtestimonial__body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.vtestimonial blockquote { font-style: italic; color: var(--ink); font-size: 1rem; flex: 1; }
.vtestimonial__name { font-weight: 700; color: var(--deep); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }

/* ---------------------------- Quotes ----------------------------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.9rem;
}
.quote .stars { font-size: 1.05rem; }
.quote blockquote { font-style: italic; color: var(--ink); font-size: 1.02rem; flex: 1; }
.quote figcaption { font-weight: 700; color: var(--deep); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.quote__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.quote__source {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 700;
  color: var(--body); background: var(--bg-tint); border: 1px solid var(--line);
  padding: 0.22rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.quote__source svg { display: block; }

/* clickable rating badge */
a.badge-rating { transition: transform 0.18s ease, box-shadow 0.18s ease; max-width: 100%; }
/* Largeur réservée : le hero est centré sous 960 px, donc une pastille qui
   s'élargit en recevant la note se décalerait vers la gauche — un décalage
   horizontal compte dans le CLS au même titre qu'un vertical. 16 rem couvrent
   le repli comme la note, jusqu'à un nombre d'avis à quatre chiffres. */
.badge-rating { min-width: 16rem; justify-content: center; }
a.badge-rating:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.section__head .btn { margin-top: 1.3rem; }
.section__head .btn .i-google { margin-right: 0.1rem; }

/* ---------------------- Note Google en direct --------------------- */
/* La note et le nombre d'avis n'existent nulle part dans le HTML : ils arrivent
   de /api/google-rating (les conditions Maps Platform n'autorisent à conserver
   durablement que le place_id). Tant que la réponse n'est pas là — et si elle
   n'arrive jamais — c'est le contenu .gr-idle qui reste affiché : il n'annonce
   ni note ni étoiles, donc rien de faux et aucune case vide. Les deux états
   tiennent sur une ligne de même hauteur : aucun décalage (CLS = 0). */
.gr-live { display: none; }
[data-gr].is-ready .gr-idle { display: none; }
[data-gr].is-ready .gr-live { display: inline; }
/* La règle globale `img, picture, svg { display: block }` mettrait le logo
   Google sur sa propre ligne et ferait grandir le bloc de 13 px à l'arrivée
   de la note. Il doit rester dans le fil du texte. */
.gr-live .i-google { display: inline-block; vertical-align: -0.14em; }

/* Étoiles partielles sans image : un fond gris et un calque doré dont la
   largeur vaut note / 5. Doit rester après .stars pour en écraser la couleur. */
.stars--live { position: relative; display: inline-block; color: rgba(11, 31, 42, 0.22); }
.stars--live::before { content: "★★★★★"; }
.stars--live > i {
  position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden;
  color: var(--gold); font-style: normal; white-space: nowrap;
}
.stars--live > i::before { content: "★★★★★"; }

/* Bandeau flottant, coin bas gauche.
   Inventaire des `position: fixed` du site avant de choisir ce coin : seul le bandeau
   de consentement y était (`inset: auto 0 0 0`, z-index 200). Il couvre tout le bas de
   l'écran tant qu'il est affiché, et c'est voulu — le consentement passe d'abord, donc
   ce bandeau-ci reste dessous et ne cherche pas à le contourner.
   Hors du flux : son apparition ne décale rien (CLS = 0, gratuitement). */
.gr-fab {
  display: none; position: fixed; z-index: 90;
  left: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  align-items: center; gap: 0.62rem;
  max-width: calc(100vw - 40px);
  padding: 0.6rem 0.95rem 0.6rem 0.8rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.86rem; line-height: 1.2; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}
/* Révélé seulement quand la note est arrivée : jamais de carte vide. */
.gr-fab[data-gr].is-ready { display: flex; animation: gr-fab-in 0.32s ease-out both; }
.gr-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
/* S'efface le temps de croiser un bouton d'appel à l'action (voir google-rating.js).
   Doit rester après :hover pour l'emporter. */
.gr-fab.is-tucked { opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; }
.gr-fab__g { flex: 0 0 auto; }
.gr-fab__body { display: grid; gap: 0.12rem; }
.gr-fab__line { display: flex; align-items: center; gap: 0.4rem; }
.gr-fab__score { font-weight: 800; font-size: 1rem; color: var(--ink); }
.gr-fab__stars { font-size: 0.82rem; }
.gr-fab__count { color: var(--body); font-size: 0.78rem; white-space: nowrap; }

@keyframes gr-fab-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gr-fab[data-gr].is-ready { animation: none; }
  .gr-fab:hover { transform: none; }
  .gr-fab.is-tucked { transform: none; }
}

/* Sous 560 px, une seule ligne compacte : le bandeau doit mordre le moins possible
   sur les boutons d'appel à l'action, qui passent en pleine largeur. */
@media (max-width: 560px) {
  .gr-fab {
    left: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 0.45rem; padding: 0.45rem 0.7rem 0.45rem 0.55rem; border-radius: 12px;
  }
  .gr-fab__g { width: 18px; height: 18px; }
  .gr-fab__body { grid-auto-flow: column; align-items: center; gap: 0.4rem; }
  .gr-fab__score { font-size: 0.92rem; }
  .gr-fab__stars { display: none; }
  .gr-fab__count { font-size: 0.75rem; }
}

/* ----------------------------- Steps ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 3vw, 2rem); counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; position: relative;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #fff; font-weight: 800; font-size: 1.3rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; }

/* ---------------------------- Pricing ---------------------------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); max-width: 880px; margin-inline: auto; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--cyan); box-shadow: var(--shadow); }
.plan__ribbon {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #4a3300; font-weight: 700;
  font-size: 0.82rem; padding: 0.4rem 1rem; border-radius: 999px; white-space: nowrap;
}
.plan__head { text-align: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.plan__head h3 { font-size: 1.3rem; color: var(--deep); }
.plan__price { display: flex; align-items: baseline; justify-content: center; gap: 0.3rem; margin: 0.6rem 0 0.2rem; }
.plan__amount { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 800; color: var(--ink); line-height: 1; }
.plan__period { color: var(--muted); font-weight: 600; }
.plan__sub { color: var(--muted); font-size: 0.95rem; }
.plan__features { display: grid; gap: 0.7rem; margin-bottom: 1.6rem; flex: 1; }
.plan__features li { position: relative; padding-left: 1.9rem; }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23076e8e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pricing__note { text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 640px; margin: 1.6rem auto 0; }

/* ------------------------------ FAQ ------------------------------ */
.faq { display: grid; gap: 0.9rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 3.2rem 1.25rem 1.5rem; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.06rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 16px; height: 16px;
  margin-top: -8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23076e8e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__body { padding: 0 1.5rem 1.4rem; }
.faq__body p { margin-bottom: 0.7rem; }
.faq__body ul { display: grid; gap: 0.4rem; padding-left: 1.2rem; list-style: disc; }
.faq__body ul li { color: var(--body); }

/* --------------------------- CTA final --------------------------- */
.cta-final {
  background:
    radial-gradient(700px 380px at 80% 0%, rgba(82,205,239,.22), transparent 60%),
    linear-gradient(150deg, var(--deep), var(--deep-dark));
  color: rgba(255,255,255,.9); padding: clamp(3.5rem, 2rem + 6vw, 6rem) 0; text-align: center;
}
.cta-final h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-final p { max-width: 620px; margin: 0 auto 2rem; }

/* ----------------------------- Footer ---------------------------- */
.site-footer { background: var(--deep-dark); color: rgba(255,255,255,.72); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p { max-width: 420px; font-size: 0.95rem; }
.footer__links h2 { color: #fff; font-size: 1.05rem; margin-bottom: 0.9rem; }
.footer__links ul { display: grid; gap: 0.55rem; }
.footer__links a { color: rgba(255,255,255,.78); }
.footer__links a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.6rem 0 2.2rem; display: grid; gap: 0.7rem; }
.footer__disclaimer { font-size: 0.8rem; color: rgba(255,255,255,.68); }
.footer__copy { font-size: 0.88rem; }
.footer__contact { font-style: normal; margin-top: 1.1rem; font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,.78); }
.footer__contact strong { color: #fff; display: block; margin-bottom: 0.15rem; }
.footer__contact a { color: rgba(255,255,255,.78); }
.footer__contact a:hover { color: var(--cyan); }

/* --------------------------- Sous-pages -------------------------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, var(--cyan-light), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-tint));
  padding: clamp(2.5rem, 2rem + 4vw, 4.5rem) 0 clamp(2rem, 1.5rem + 3vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); }
.page-hero p { color: var(--muted); margin-top: 0.6rem; }
.page-updated { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--deep); }
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin: 2.2rem 0 0.8rem; }
.prose h3 { margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { margin-bottom: 0.8rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: 0.3rem; }
.prose .note {
  background: var(--cyan-light); border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem; color: var(--ink); margin: 1.4rem 0;
}
.prose strong { color: var(--ink); }

/* --------------------------- Animations -------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------- Responsive -------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 640px; margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__trust { justify-items: center; }
  .hero__media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 380px; margin-inline: auto; }
  .cards--3, .benefits, .steps, .vtestimonials { grid-template-columns: 1fr 1fr; }
}

/* Le CTA « S'abonner » du menu déroulant : texte centré malgré le display:block */
.site-header.nav-open .header__nav li.header__nav-cta a { padding: 1rem; border-bottom: 0; color: #fff; text-align: center; }
/* « Se connecter » : centré sous le CTA, dernier élément du menu (pas de filet) */
.site-header.nav-open .header__nav li.header__nav-login a { text-align: center; border-bottom: 0; }

@media (max-width: 1160px) {
  /* Sur mobile/tablette, « Se connecter » et « S'abonner » repassent dans le menu déroulant ;
     seule la pastille « Assistant IA » reste visible dans la barre */
  .header__cta, .header__login { display: none; }
  .site-header.nav-open .header__nav-cta { display: block; margin-top: 0.9rem; }
  .site-header.nav-open .header__nav-login { display: block; }
}

@media (max-width: 680px) {
  /* Barre compacte : logo + pastille « Assistant IA » + menu sur une seule ligne */
  .header__inner { gap: 0.8rem; }
  .header__logo img { height: 40px; }
  .header__actions { gap: 0.35rem; }
  .header__ai { font-size: 0.85rem; padding: 0.6rem 0.85rem; }
  .header__ai svg { width: 15px; height: 15px; }
  .strip__grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 0.5rem; }
  .strip__item:nth-child(odd) { border-left: 0; }
  .strip__item:nth-child(3) { border-left: 0; }
  .cards--3, .benefits, .steps, .pricing, .vtestimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .header__logo img { height: 36px; }
  .header__ai { font-size: 0.8rem; padding: 0.55rem 0.75rem; gap: 0.3rem; }
  .header__burger { padding: 8px 4px; }
}

/* Très petits écrans (≤ 320 px) : logo et pastille resserrés pour garder le libellé « Assistant IA » */
@media (max-width: 359px) {
  .header__inner { gap: 0.5rem; }
  .header__logo img { height: 32px; }
  .header__actions { gap: 0.25rem; }
  .header__ai { font-size: 0.72rem; padding: 0.4rem 0.6rem; gap: 0.25rem; }
  .header__ai svg { width: 14px; height: 14px; }
}

/* ---------------------- Bandeau de consentement ------------------- */
/* Affiché tant qu'aucun choix n'est enregistré. Les deux boutons ont la même
   taille et le même poids visuel : refuser doit être aussi simple qu'accepter
   (recommandation CNIL). */
.consent {
  position: fixed; z-index: 200; inset: auto 0 0 0;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem var(--gutter) calc(1.2rem + env(safe-area-inset-bottom));
  animation: consent-in 0.32s ease-out both;
}
.consent[hidden] { display: none; }
/* Conteneur non interactif qui reçoit le focus par programme à l'ouverture :
   on neutralise l'anneau global, les deux boutons gardent le leur. */
.consent:focus, .consent:focus-visible { outline: none; box-shadow: var(--shadow-lg); }

@keyframes consent-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

.consent__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap;
}
.consent__copy { flex: 1 1 30ch; }
.consent__title { font-size: 1.05rem; margin-bottom: 0.3rem; }
.consent__text { font-size: 0.9rem; line-height: 1.6; }
.consent__text a { color: var(--deep); text-decoration: underline; }

.consent__actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.consent__btn { padding: 0.8rem 1.6rem; font-size: 0.95rem; }

@media (max-width: 680px) {
  .consent { padding-top: 1rem; }
  .consent__title { font-size: 1rem; }
  .consent__text { font-size: 0.85rem; line-height: 1.5; }
  .consent__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .consent__btn { padding: 0.8rem 0.8rem; }
}

/* Réouverture du choix depuis le pied de page */
.footer__consent {
  font: inherit; color: rgba(255,255,255,.78);
  background: none; border: 0; padding: 0;
  cursor: pointer; text-align: left;
}
.footer__consent:hover { color: var(--cyan); }
