/* ═══════════════════════════════════════════════════════════════
   christinerousselin.fr, habillage partagé des pages secondaires
   (mentions légales, politique de confidentialité, et à venir : bilan, calculateur).
   Même système que index.html : bleu pétrole du logo, corail, crème,
   Cormorant Garamond pour les titres, Plus Jakarta Sans pour le texte.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --cream:   #FAF8F5;
  --cream-2: #F1EDE7;
  --paper:   #FFFDFB;
  --ink:     #155472;
  --ink-2:   #4A5C6A;
  --ink-3:   #75858F;
  --line:    rgba(21,84,114,.12);
  --coral:   #FF9071;
  --coral-deep: #C8532E;
  --peach:   #FFC7AE;
  --dark:    #0F2E40;
  --dark-2:  #163D52;
  --on-dark: #F3EEE7;
  --on-dark-2: rgba(243,238,231,.72);
  --ft: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --fb: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --r-xl: 28px; --r-lg: 22px; --r-md: 14px;
  --nav-h: 64px;
  --z-nav: 30; --z-menu: 40; --z-grain: 50; --z-banner: 60;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--cream); color: var(--ink);
  font-family: var(--fb); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
strong { font-weight: 600; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--ft); font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.55rem; line-height: 1.15; }
p { text-wrap: pretty; }
.sub { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
/* Paragraphes justifiés (demande de Chris), avec césure française */
.sub, .legal p, .legal li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--fb); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  padding: 8px 8px 8px 22px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer;
  color: var(--dark); background: var(--coral);
  box-shadow: 0 16px 32px -12px rgba(200,83,46,.62), 0 5px 12px -4px rgba(200,83,46,.35);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -12px rgba(200,83,46,.68), 0 8px 16px -6px rgba(200,83,46,.4); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0; background: rgba(15,46,64,.14); transition: transform .45s var(--ease); }
.btn .ic svg { width: 15px; height: 15px; }
.btn:hover .ic { transform: translate(2px,-1px); }
.btn-nav { padding: 6px 6px 6px 18px; font-size: .9rem; }
.btn-nav .ic { width: 28px; height: 28px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem;
  color: var(--ink); text-decoration: none; padding: 8px 4px;
  background: linear-gradient(var(--coral-deep), var(--coral-deep)) no-repeat 0 100% / 0 2px;
  transition: background-size .5s var(--ease);
}
.btn-text:hover { background-size: 100% 2px; }
.btn-text svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn-text:hover svg { transform: translateX(3px); }
.btn-text.back svg { transform: rotate(180deg); }
.btn-text.back:hover svg { transform: rotate(180deg) translateX(3px); }

/* ── Navigation ── */
.nav-wrap { position: sticky; top: 14px; z-index: var(--z-nav); padding: 14px 24px 0; }
nav.main {
  max-width: 1200px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 24px; border-radius: 999px;
  background: rgba(250,248,245,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line), 0 22px 48px -18px rgba(21,84,114,.38), 0 6px 14px -6px rgba(21,84,114,.16);
}
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; }
.brand-name { font-family: var(--ft); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.brand-sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.links { display: flex; gap: 2px; }
.links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .3s var(--ease), background .3s var(--ease); }
.links a:hover, .links a[aria-current] { color: var(--ink); background: rgba(21,84,114,.06); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.short { display: none; }
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px; background: rgba(250,248,245,.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.menu a { font-family: var(--ft); font-weight: 600; font-size: 2.2rem; line-height: 1.2; color: var(--ink); text-decoration: none; padding: 8px 0; transform: translateY(24px); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.menu.is-open a { transform: none; opacity: 1; }
.menu a:nth-child(1) { transition-delay: .05s } .menu a:nth-child(2) { transition-delay: .1s } .menu a:nth-child(3) { transition-delay: .15s }
.menu a:nth-child(4) { transition-delay: .2s } .menu a:nth-child(5) { transition-delay: .25s } .menu a:nth-child(6) { transition-delay: .3s } .menu a:nth-child(7) { transition-delay: .35s }
.menu a.btn { font-family: var(--fb); font-size: 1rem; font-weight: 600; line-height: 1.2; align-self: flex-start; margin-top: 28px; padding: 8px 8px 8px 22px; transform: translateY(24px); opacity: 0; transition: transform .7s var(--ease) .4s, opacity .5s var(--ease) .4s; }
.menu.is-open a.btn { transform: none; opacity: 1; }

/* ── Lueurs de fond (mêmes halos que la page d'accueil, en version courte) ── */
.page-head, main.page { position: relative; }
.page-head::before, .page-head::after, main.page::after { content: ''; position: absolute; pointer-events: none; z-index: -1; border-radius: 50%; }
.page-head::before { right: -16%; top: -30%; width: 64vw; height: 64vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(255,199,174,.85), rgba(255,199,174,0)); }
.page-head::after  { left: -24%; bottom: -60%; width: 56vw; height: 56vw; max-width: 780px; max-height: 780px; background: radial-gradient(closest-side, rgba(140,190,215,.5), rgba(140,190,215,0)); }
main.page::after   { right: -22%; bottom: -10%; width: 58vw; height: 58vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, rgba(255,199,174,.6), rgba(255,199,174,0)); }

/* ── Sombre : pied de page ── */
.dark { background: var(--dark); color: var(--on-dark); }
footer { padding: 64px 0 36px; border-top: 2px solid rgba(255,144,113,.75); }
.foot-top { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.foot-logo { width: 220px; opacity: .95; }
.foot-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.foot-nav a { font-size: .9rem; color: var(--on-dark-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; transition: color .3s var(--ease), background .3s var(--ease); }
.foot-nav a:hover { color: var(--on-dark); background: rgba(255,255,255,.06); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--on-dark-2); }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a { color: var(--on-dark-2); text-decoration: none; }
.foot-legal a:hover, .foot-legal a[aria-current] { color: var(--on-dark); }

/* ── Bannière cookies (texte et logique inchangés) ── */
#cookie-banner {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-banner);
  background: var(--paper); color: var(--ink); border-radius: 18px; padding: 16px 20px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(38,35,31,.35); font-size: .92rem;
}
#cookie-banner .inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#cookie-banner .inner > span { flex: 1; min-width: 220px; color: var(--ink-2); }
#cookie-banner a { color: var(--coral-deep); font-weight: 600; }
#cookie-banner .acts { display: flex; gap: 8px; flex-shrink: 0; }
#cookie-banner button { font-family: var(--fb); font-size: .88rem; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; border: 0; }
#cookie-banner .ok { background: var(--coral); color: var(--dark); }
#cookie-banner .no { background: transparent; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }

@media (prefers-reduced-motion: reduce) {
  .menu, .menu a, .menu a.btn, .btn, .btn-text, .burger span { transition: none !important; }
}
@media (max-width: 900px) {
  .links { display: none; }
  .burger { display: block; }
  .page-head::before { right: -45%; width: 110vw; height: 110vw; }
  .page-head::after { left: -55%; width: 110vw; height: 110vw; }
  main.page::after { width: 110vw; height: 110vw; }
  footer { padding: 48px 0 28px; }
  .foot-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav-wrap { padding: 10px 12px 0; }
  nav.main { padding-left: 16px; height: 58px; gap: 12px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.2rem; white-space: nowrap; }
  .full { display: none; } .short { display: inline; }
  .btn-nav { display: none; } /* le menu garde l'appel « On en parle ? » */
  #cookie-banner { left: 10px; right: 10px; bottom: 10px; }
}
