/* ============================================================
   Histoire d'encre — feuille de styles
   Charte : teal #326C78 · corail #EA888D · blanc
   Typo : Cormorant Garamond (titres) · Tangerine (script) · Libre Baskerville (corps)
   Inspirations : aéré, chaleureux, inclusif, photos humaines, soulignés corail.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --teal: #326C78;
  --teal-dark: #234f59;
  --teal-soft: #e3eef0;
  --coral: #EA888D;
  --coral-dark: #d86f75;
  --coral-soft: #fbe9ea;
  --white: #ffffff;
  --cream: #fbf8f4;
  --ink: #2c3133;
  --muted: #5f6b6e;
  --border: #e8e1d8;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Tangerine", "Brush Script MT", cursive;
  --font-body: "Libre Baskerville", Georgia, serif;

  /* échelle d'espacement 4/8/16/24/32/48 */
  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(35, 79, 89, 0.10);
  --shadow-sm: 0 4px 14px rgba(35, 79, 89, 0.08);
  --maxw: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  /* texture papier très subtile (anti-aplat) */
  background-image:
    radial-gradient(rgba(50,108,120,0.025) 1px, transparent 1px),
    radial-gradient(rgba(234,136,141,0.02) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--coral-dark); }
ul { list-style: none; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--teal-dark); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin-bottom: var(--s3); }
.script { font-family: var(--font-script); font-weight: 400; color: var(--coral); line-height: 1; }

/* eyebrow (sur-titre script) */
.eyebrow {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--coral);
  display: inline-block;
  margin-bottom: var(--s1);
}

/* soulignés corail décoratifs (inspiration Alexia) */
.underline-accent { position: relative; display: inline-block; }
.underline-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 8px; border-radius: 8px;
  background: var(--coral-soft);
  z-index: -1;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
section { padding: var(--s8) 0; }
.section-cream { background: var(--cream); }
.section-teal { background: var(--teal); color: #eaf2f3; }
.section-teal h2, .section-teal h3 { color: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.measure { max-width: 70ch; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-body); font-size: 1rem; line-height: 1;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--teal); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--coral); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: var(--s3) 0;
}
.brand { display: flex; align-items: center; }
.brand img { height: 72px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--s5); }
.nav-links a { color: var(--ink); font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.disabled { color: #b7bcbd; cursor: not-allowed; }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--teal); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
/* halo d'encre décoratif derrière le hero */
.hero::before {
  content: ""; position: absolute; top: -120px; right: -140px; width: 420px; height: 420px;
  background: radial-gradient(circle, var(--coral-soft) 0%, transparent 70%);
  border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -160px; left: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, var(--teal-soft) 0%, transparent 70%);
  border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--s7);
  padding: var(--s8) 0; position: relative; z-index: 1;
}
/* accueil : hero "Bienvenue" remonté un peu */
.hero-home .hero-grid { padding-top: var(--s5); }
.hero-text h1 { margin-bottom: var(--s4); }
.hero-text .lead { margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; z-index: 1; }
/* cadre décalé derrière l'image hero */
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--coral); border-radius: var(--radius-lg); z-index: 0;
}

/* entrée échelonnée au chargement */
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: riseIn .7s cubic-bezier(.2,.7,.3,1) backwards; }
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3) { animation-delay: .25s; }
.hero-text > *:nth-child(4) { animation-delay: .35s; }
.hero-media { animation: riseIn .8s cubic-bezier(.2,.7,.3,1) .2s backwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-media { animation: none; }
  html { scroll-behavior: auto; }
}
.hero-quote {
  position: relative; font-family: var(--font-serif); font-size: clamp(1.4rem,2.6vw,2rem);
  font-style: italic; color: var(--teal); max-width: 26ch; padding-left: var(--s5); margin-top: var(--s4);
  border-left: 3px solid var(--coral);
}
.hero-quote::before {
  content: "\201C"; position: absolute; left: 8px; top: -18px;
  font-family: var(--font-script); font-size: 4rem; color: var(--coral); opacity: .55; line-height: 1;
}

/* ---------- Cartes ---------- */
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card-body h3 { color: var(--teal-dark); }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* univers : grande carte image + texte */
.univers { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.univers-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.univers-card img { aspect-ratio: 16/10; object-fit: cover; }
.univers-card .inner { padding: var(--s5); }
.univers-card h3 { margin-bottom: var(--s2); }

/* bénéfices (icônes) */
.benefit { text-align: center; padding: var(--s4); }
.benefit .ic {
  width: 64px; height: 64px; margin: 0 auto var(--s3);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
}
.benefit .ic svg { width: 30px; height: 30px; }

/* étapes / méthode */
.steps { counter-reset: step; display: grid; gap: var(--s4); }
.step { display: flex; gap: var(--s4); align-items: flex-start; }
.step .num {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--coral); color: #fff; font-family: var(--font-serif);
  font-size: 1.4rem; display: grid; place-items: center;
}
.step h3 { margin-bottom: var(--s1); }

/* pour qui : pills */
.audience { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s5); }
.audience-col { background: var(--white); border:1px solid var(--border); border-radius: var(--radius); padding: var(--s5); }
.audience-col h3 { margin-bottom: var(--s3); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill { background: var(--teal-soft); color: var(--teal-dark); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }

/* tarifs */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
.price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s6) var(--s5); text-align: center; box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: var(--coral); box-shadow: var(--shadow); }
.price-card .amount { font-family: var(--font-serif); font-size: 2.4rem; color: var(--teal); margin: var(--s2) 0; }
.price-card ul { display: grid; gap: var(--s2); margin: var(--s4) 0; text-align: left; }
.price-card li { display: flex; gap: var(--s2); align-items: flex-start; color: var(--muted); }
.price-card li::before { content: "✦"; color: var(--coral); }

/* testimonials */
.quote-card {
  background: var(--white); border-radius: var(--radius); padding: var(--s5);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.quote-card p { font-style: italic; color: var(--ink); }
.quote-card .who { font-style: normal; color: var(--teal); font-size: .95rem; margin: 0; }

/* Carousel témoignages */
.carousel { max-width: 720px; margin: 0 auto; }
.carousel-track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .quote-card {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; min-height: 190px;
}
.carousel-track > .quote-card p { font-size: 1.15rem; line-height: 1.7; }
.carousel-track > .quote-card .who { margin-top: var(--s3); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s5); }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); color: var(--teal); font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, transform .2s;
}
.carousel-btn:hover { background: var(--teal); color: #fff; transform: translateY(-1px); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: var(--border); cursor: pointer; transition: background .2s, transform .2s;
}
.carousel-dots button[aria-current="true"] { background: var(--coral); transform: scale(1.25); }

/* FAQ accordion */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: var(--s2); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: var(--s4); font-family: var(--font-serif); font-size: 1.2rem; color: var(--teal-dark);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 56px;
}
.faq-q:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.faq-q .chevron { transition: transform .25s ease; flex: 0 0 auto; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .inner { padding: 0 var(--s4) var(--s4); color: var(--muted); }

/* CTA / formulaire */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s7); align-items: start; }
.contact-info p { color: #d7e6e8; }
.contact-info a { color: #fff; font-weight: bold; }
.form { background: var(--white); border-radius: var(--radius-lg); padding: var(--s6); box-shadow: var(--shadow); }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-size: .95rem; color: var(--ink); margin-bottom: var(--s1); font-family: var(--font-body); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--teal-soft); border-color: var(--teal);
}
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.form-status { margin-top: var(--s3); font-size: .95rem; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--coral-dark); }

/* placeholder note (aide Magali) */
.placeholder-tag {
  display: inline-block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--coral-dark); background: var(--coral-soft);
  padding: 3px 10px; border-radius: 6px; margin-bottom: var(--s2);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #cfe0e3; padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.site-footer h4 { color: #fff; font-family: var(--font-serif); margin-bottom: var(--s3); font-size: 1.3rem; }
.site-footer a { color: #cfe0e3; }
.site-footer a:hover { color: var(--coral); }
.footer-brand .script { font-size: 2.6rem; color: #fff; }
.footer-brand p { color: #a9c4c8; max-width: 32ch; }
.footer-list { display: grid; gap: var(--s2); }
.socials { display: flex; gap: var(--s3); margin-top: var(--s3); }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: var(--coral); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: var(--s6); padding-top: var(--s4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); font-size: .88rem; color: #9fbabf; }

/* ---------- Page légale ---------- */
.legal { padding: var(--s8) 0; }
.legal .container { max-width: 800px; }
.legal h2 { margin: var(--s6) 0 var(--s3); font-size: 1.6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: var(--s4); margin-bottom: var(--s3); }

/* ---------- Bandeau consentement RGPD ---------- */
.consent-banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 1000;
  width: calc(100% - 32px); max-width: 760px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--s4);
  display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
}
.consent-banner p { margin: 0; font-size: .92rem; color: var(--muted); flex: 1 1 320px; }
.consent-banner a { text-decoration: underline; }
.consent-actions { display: flex; gap: var(--s2); flex: 0 0 auto; }
.consent-actions .btn { padding: 10px 20px; min-height: 40px; font-size: .92rem; }
@media (max-width: 520px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }

/* ---------- Blog (contenu article WordPress) ---------- */
.post-content { font-size: 1.08rem; }
.post-content p { margin-bottom: var(--s4); }
.post-content h2 { font-size: 1.7rem; margin: var(--s6) 0 var(--s3); }
.post-content h3 { font-size: 1.35rem; margin: var(--s5) 0 var(--s2); }
.post-content img { border-radius: var(--radius); margin: var(--s4) 0; }
.post-content a { text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--coral); padding-left: var(--s4); margin: var(--s4) 0;
  font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--teal);
}
.post-content ul, .post-content ol { padding-left: var(--s4); margin-bottom: var(--s4); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--s2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  /* le texte (titre/accroche) passe avant l'image */
  .hero-text { order: 0; }
  .hero-media { order: 1; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .contact-wrap { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 760px) {
  section { padding: var(--s7) 0; }
  .hero-home .hero-grid, .hero .hero-grid { padding-top: var(--s5); }
  /* menu mobile : déroulé SOUS le header, masqué de façon fiable (plus de débordement) */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s2) var(--s4) var(--s4);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .2s ease, visibility .2s ease;
  }
  .nav-links.open { max-height: 80vh; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 2px; border-bottom: 1px solid rgba(50,108,120,.08); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  /* logo réduit sur mobile pour ne pas saturer le header */
  .brand img { height: 52px; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .univers, .audience, .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* images : on retire le cadre décalé (clutter + débordement) */
  .hero-media::before { display: none; }
  .hero-media img { width: 100%; }
  /* formulaire moins serré */
  .form { padding: var(--s4); }
  /* citations / quotes : moins d'indent */
  .hero-quote { padding-left: var(--s4); }
  /* titres section un peu plus compacts */
  .center[style] { margin-bottom: var(--s5) !important; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn,
  .card-body .btn,
  .price-card .btn,
  .form .btn,
  .section-teal .btn { width: 100%; justify-content: center; }
  h1 { font-size: 2.1rem; }
  .eyebrow { font-size: 2.2rem; }
  .form { padding: var(--s4) var(--s3); }
}
