/* ==========================================================================
   anais.dumoutier.fr — feuille de style unique
   Palette dérivée de l'identité d'Anaïs : sauge (blob du logo),
   dégradé soleil→corail→violet (mains), lavande (portrait), encre bleu-vert.
   ========================================================================== */

/* ---- Police auto-hébergée (RGPD : aucun appel externe).
   Outfit est la police du site d'origine. ---- */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Jetons : palette du site d'origine (thème cupcake) ---- */
:root {
  --paper: #FAF7F5;
  --paper-tint: #F1ECE7;
  --lavender: #EFEAF8;
  --card: #FFFFFF;
  --ink: #291334;
  --ink-soft: #66566F;
  --line: #E7E2DF;
  --mint: #65C3C8;
  --mint-ink: #35989E;
  --pink: #EF9FBC;
  --pink-soft: #F9E3EC;
  --sage: #9ECDAD;
  --sage-deep: #3E8163;
  --coral: #DE7BA4;
  --violet: #A47FD3;
  --sun: #EFBA5F;
  --grad: linear-gradient(100deg, #EFBA5F, #DE7BA4 48%, #A47FD3);
  --radius: 18px;
  --shadow: 0 10px 30px -18px rgba(41, 19, 52, .28);
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.4rem); color: var(--mint-ink); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }

a { color: var(--mint-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2rem);
}

/* ---- En-tête ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .97);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 30px; height: 30px; }

.brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: clamp(.4rem, 2vw, 1.4rem); flex-wrap: wrap; }

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem .2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--pink);
}

.site-nav .nav-cta {
  background: var(--pink);
  border-radius: 999px;
  padding: .45rem 1.05rem;
  color: var(--ink);
  border-bottom: none;
}

.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] {
  background: #E288AD;
  color: var(--ink);
  border-bottom: none;
}

/* Sélecteur de langue */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.lang-switch a {
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border-radius: 8px;
}

.lang-switch a:hover { color: var(--ink); background: var(--paper-tint); }

.lang-switch a[aria-current] {
  color: var(--ink);
  background: var(--paper-tint);
  box-shadow: inset 0 -2px 0 0 var(--pink);
}

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--mint); border-color: var(--mint); color: #17434A; }
.btn-primary:hover { color: #17434A; }
.btn-ghost { background: transparent; color: var(--ink); }

/* ---- Héros ---- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: .35em; }

.hero .subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--mint-ink);
  margin-bottom: 1.1rem;
}

.hero .lead { font-size: 1.12rem; max-width: 34em; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--pink-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  border-radius: 999px;
  padding: .35rem .95rem;
  margin-bottom: 1.2rem;
}

.chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}

.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* Portrait dans une forme organique, écho du blob du logo */
.hero-portrait { position: relative; justify-self: center; }

.hero-portrait .blob {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 58% 42% 55% 45% / 52% 48% 55% 45%;
  background: var(--lavender);
  box-shadow: var(--shadow);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -14px -18px 14px 18px;
  border-radius: 45% 55% 48% 52% / 55% 45% 52% 48%;
  background: var(--sage);
  opacity: .35;
  z-index: -1;
}

.sparkle {
  position: absolute;
  font-size: 1.3rem;
  line-height: 1;
}

.sparkle-1 { top: -6px; right: 8px; color: var(--sun); }
.sparkle-2 { bottom: 18px; left: -14px; color: var(--coral); font-size: 1rem; }
.sparkle-3 { top: 40%; right: -20px; color: var(--violet); font-size: .85rem; }

/* Faits clés sous le héros */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1rem;
  row-gap: .4rem;
}

.facts li {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  border-radius: 999px;
  padding: .4rem 1.1rem;
}

.facts li strong { font-weight: 700; }

.facts li:nth-child(4n+1) { background: #FBEFC9; }
.facts li:nth-child(4n+2) { background: #DDF3E4; }
.facts li:nth-child(4n+3) { background: #EAE4F9; }
.facts li:nth-child(4n+4) { background: #F9E3EC; }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 7vw, 4.5rem) 0; }

.section-tint { background: var(--paper-tint); }

.section-lavender { background: var(--lavender); }

.section-intro { max-width: 44em; }

/* Panneau « nouveau chapitre » */
.chapter .container {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.chapter img { width: 100%; max-width: 260px; }

/* Cartes qualités */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.2rem;
}

.card h3 { margin-bottom: .35rem; }

.card .accent { display: block; width: 34px; height: 3px; border-radius: 2px; margin-bottom: .9rem; }

.card:nth-child(4n+1) .accent { background: var(--sun); }
.card:nth-child(4n+2) .accent { background: var(--coral); }
.card:nth-child(4n+3) .accent { background: var(--violet); }
.card:nth-child(4n+4) .accent { background: var(--sage); }

.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Liste objectifs */
.goal-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .9rem 2rem;
}

.goal-list li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  font-weight: 600;
  font-size: 1.04rem;
}

.goal-list li::before { content: "✓"; color: #2F9E63; font-weight: 700; }

/* ---- Frise parcours ---- */
.timeline {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--grad);
  opacity: .55;
}

.timeline > li {
  position: relative;
  padding: 0 0 2rem 2.2rem;
}

.timeline > li:last-child { padding-bottom: .2rem; }

.timeline > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--tlc, var(--sage-deep));
}

.timeline .year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  display: block;
  color: var(--tlc, var(--ink));
}

.timeline > li:nth-child(1) { --tlc: #1E40AF; }
.timeline > li:nth-child(2) { --tlc: #C77E06; }
.timeline > li:nth-child(3) { --tlc: #C77E06; }
.timeline > li:nth-child(4) { --tlc: #CC58C6; }
.timeline > li:nth-child(5) { --tlc: #35989E; }

.timeline h3 { margin: .15rem 0 .3rem; }

.timeline p { margin: 0; color: var(--ink-soft); max-width: 40em; }

.timeline ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }

/* ---- Bandeau d'appel final ---- */
.cta-band { text-align: center; }

.cta-band .actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

.cta-band p { max-width: 36em; margin-inline: auto; }

/* ---- Savoir-faire : accordéons ---- */
.sf-group { margin-top: 2.6rem; }

.sf-group > h2 {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.35rem;
}

.sf-group > h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

details.sf {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: .7rem;
  overflow: hidden;
}

details.sf summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

details.sf summary::-webkit-details-marker { display: none; }

details.sf summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sage-deep);
  transition: transform .2s ease;
}

details.sf[open] summary::after { transform: rotate(45deg); }

details.sf[open] summary { border-bottom: 1px dashed var(--line); }

details.sf .sf-body { padding: 1rem 1.3rem 1.2rem; color: var(--ink-soft); }

details.sf .sf-body p:last-child { margin-bottom: 0; }

/* Colorimétrie des groupes, reprise des bulles de l'ancienne page
   « Mes interventions » : jaune Communication, violet ABA, rouge doux
   Autonomie, vert Émotions, orange Guidance. */
.sf-group { --sfc: var(--sage); --sfc-ink: var(--sage-deep); }
.sf-g1 { --sfc: #FDE047; --sfc-ink: #A16207; }
.sf-g2 { --sfc: #DDD6FE; --sfc-ink: #7C3AED; }
.sf-g3 { --sfc: #FECACA; --sfc-ink: #DC5F5F; }
.sf-g4 { --sfc: #BBF7D0; --sfc-ink: #16A34A; }
.sf-g5 { --sfc: #FDBA74; --sfc-ink: #EA580C; }

.sf-group > h2 { color: var(--sfc-ink); }

.sf-group > h2::after { background: color-mix(in srgb, var(--sfc) 55%, transparent); }

.sf-group details.sf {
  background: color-mix(in srgb, var(--sfc) 14%, #fff);
  border-color: color-mix(in srgb, var(--sfc) 45%, var(--line));
}

.sf-group details.sf[open] summary {
  border-bottom-color: color-mix(in srgb, var(--sfc) 60%, var(--line));
}

/* Publics accompagnés */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.chips li { list-style: none; }

.chips {
  padding: 0;
}

.chips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  font-size: .95rem;
}

/* ---- Formulaire de contact ---- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  max-width: 620px;
  box-shadow: var(--shadow);
}

.form-field { margin-bottom: 1.2rem; }

.form-field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .7rem .9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(101, 195, 200, .3);
}

.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.alert-success { background: #E4F3E9; border: 1px solid var(--sage); }

.alert-error { background: #FAE9F0; border: 1px solid var(--coral); }

/* Coordonnées directes */
.contact-direct { margin-top: 2rem; font-size: .97rem; color: var(--ink-soft); }

/* ---- Mentions légales ---- */
.legal h2 { margin-top: 2.2rem; font-size: 1.35rem; }

.legal { max-width: 46em; }

/* ---- Pied de page ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 2.2rem 0;
  margin-top: 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.site-footer a { color: var(--ink-soft); font-size: .92rem; }

/* ---- Animations d'entrée ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero .container > * {
    animation: rise .7s ease both;
  }
  .hero .hero-portrait { animation-delay: .15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .hero-portrait .blob { width: min(230px, 60vw); }
  .chapter .container { grid-template-columns: 1fr; }
  .chapter img { max-width: 190px; margin-inline: auto; }
  .facts ul { flex-direction: column; align-items: flex-start; padding-left: 0; }
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; padding-block: .7rem; gap: .4rem; }
  .site-nav { justify-content: center; }
}

/* Images issues du site d'origine */
.section-bulles { width: 92px; margin-bottom: .4rem; }
.footer-logo { width: 84px; height: auto; }
