/* Charte reprise du site initiative-savoie.com : vert, rose, gris, police condensée (Titillium Web),
   hero sur photo avec carte translucide, étapes en pastilles reliées par un trait vert.
   Valeurs de couleur relevées sur une capture : à remplacer par les valeurs exactes du site. */
:root {
  color-scheme: light;
  --green: #6cc424;
  --green-deep: #3f8a0a;
  --green-text: #4a9612;
  --green-tint: #f1f8e9;
  --pink: #e0206f;
  --title: #5e5e5e;
  --ink: #4a4a4a;
  --ink-soft: #707070;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f6f7f4;
  --dark: #353535;
  --dark-ink: #f1f1f1;
  --font: "Titillium Web", "Trebuchet MS", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.05rem; line-height: 1.55; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--font); margin: 0; color: var(--title); line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--green-deep); color: #fff; padding: 10px 16px; z-index: 40; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep); }

/* Menu */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.brand { display: block; line-height: 0; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--title); border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--green); }
.menu a.cta { background: var(--green-deep); color: #fff; border-radius: 999px; padding-inline: 18px; border-bottom: 0; }
.menu a.cta:hover { background: #356f08; }
.menu a.ext::after { content: " ↗"; font-size: 0.8em; color: var(--ink-soft); }

/* Boutons */
.btn { display: inline-block; padding: 11px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--green-deep); font-size: 1rem; }
.btn.primary { background: var(--green-deep); color: #fff; }
.btn.primary:hover { background: #356f08; border-color: #356f08; }
.btn.ghost { color: var(--green-deep); background: transparent; }
.btn.ghost:hover { background: var(--green-tint); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Visuel officiel Initiative Savoie, avec un fond de secours pendant son chargement. */
.hero { background-image: url("/img/hero.jpg"), linear-gradient(115deg, #e9ddd6 0%, #cdb9ae 55%, #b9a398 100%); background-size: cover; background-position: center; border-bottom: 8px solid var(--green); padding-block: clamp(40px, 8vw, 96px); }
.hero-card { max-width: 780px; margin-inline: auto; background: rgba(255, 255, 255, 0.88); border-radius: 16px; padding: clamp(24px, 5vw, 48px); text-align: center; }
.hero-card .hero-actions { justify-content: center; }

/* Sections */
section { padding-block: clamp(44px, 7vw, 84px); }
.head { display: grid; gap: 8px; margin-bottom: 36px; max-width: 62ch; }
.head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.head p { color: var(--ink-soft); }
.head.center { margin-inline: auto; text-align: center; }
.head.tight { margin-bottom: 18px; }
.small-title { font-size: 1.4rem; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.band-light { background: var(--bg-soft); }
.no-top { padding-top: 0; }

/* Étapes : pastilles et trait vert */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 22px; align-items: start; padding-bottom: 40px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 45px; top: 96px; bottom: 0; width: 6px; background: var(--green); }
.circle { width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); display: grid; place-items: center; }
.circle svg { width: 46px; height: 46px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; padding-top: 10px; }
.steps p { color: var(--ink-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { display: block; text-align: center; padding: 0 14px; }
  .steps li .circle { margin-inline: auto; margin-bottom: 18px; }
  .steps li:not(:last-child)::after { left: calc(50% + 56px); right: calc(-50% + 56px); top: 45px; bottom: auto; width: auto; height: 6px; }
  .steps h3 { padding-top: 0; }
}

/* Chiffres */

/* Actualités */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }
.card time { font-size: 0.85rem; color: var(--ink-soft); }
.card h3 { font-size: 1.1rem; line-height: 1.25; }
.card span.more { margin-top: auto; color: var(--pink); font-weight: 600; font-size: 0.95rem; }

/* Bénévoles */
.vol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.vol-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-block: 8px 14px; font-weight: 700; }
.vol-text { color: var(--ink-soft); max-width: 52ch; }
.terr { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.terr li { border: 1px solid var(--green); background: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.95rem; color: var(--title); }
.vol-points { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.vol-points li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--pink); border-radius: 10px; padding: 16px 18px; }
.vol-points b { display: block; font-size: 1.15rem; color: var(--title); margin-bottom: 2px; }
.vol-points span { color: var(--ink-soft); }

/* FAQ */
.faq-teaser { background: var(--green-tint); }
.faq-teaser .head { margin-bottom: 20px; }
.faq-group { font-size: 1.3rem; margin: 32px 0 12px; color: var(--green-deep); }
.faq-group:first-of-type { margin-top: 8px; }
.faq-list { display: grid; gap: 10px; max-width: 780px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--title); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--pink); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 18px; color: var(--ink-soft); }
.contact-box { margin-top: 44px; max-width: 780px; background: var(--green-tint); border-radius: 12px; padding: 24px; display: grid; gap: 10px; justify-items: start; }
.contact-box h2 { font-size: 1.4rem; }

/* Partenaires */

/* Pied de page */

/* Bouton rond d'accès bénévoles, comme le bouton d'accès du site .com */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); z-index: 30; text-decoration: none; }
.fab:hover { background: var(--green-deep); }
.fab svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vol, }
@media (max-width: 560px) {
  .news,   .menu a { padding: 8px 9px; font-size: 0.92rem; }
  .steps li { grid-template-columns: 80px minmax(0, 1fr); gap: 0 16px; }
  .circle { width: 80px; height: 80px; }
  .circle svg { width: 38px; height: 38px; }
  .steps li:not(:last-child)::after { left: 37px; top: 80px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .btn, .menu a, .fab { transition: box-shadow .15s, background-color .15s, border-color .15s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Logo, titre rose du hero, menu burger */
.brand img { height: 64px; width: auto; display: block; }
.hero-card h1 { font-weight: 700; color: var(--pink); font-size: clamp(2rem, 5.6vw, 3.3rem); }
.hero-card .promise { margin-top: 10px; font-weight: 300; color: var(--green-text); font-size: clamp(1.45rem, 3.8vw, 2.3rem); line-height: 1.22; text-wrap: balance; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 38px; height: 6px; border-radius: 3px; background: var(--green); }
.burger span + span { margin-top: 7px; }
@media (max-width: 900px) {
  .top .wrap { flex-wrap: wrap; }
  .js .burger { display: block; }
  .js #menu { display: none; flex-basis: 100%; }
  .js #menu.open { display: block; }
  .js .menu { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .js .menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .js .menu a.cta { margin-top: 10px; text-align: center; border-radius: 999px; }
  .brand img { height: 56px; }
}

/* Chiffres clés */
.fig-title { font-weight: 300; color: #2f2f2f; font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin-bottom: 28px; }
.fig-title strong { display: block; font-weight: 700; color: var(--pink); }
.stats { display: grid; gap: 26px; }
.stat { display: grid; grid-template-columns: clamp(120px, 38%, 200px) minmax(0, 1fr); gap: 20px; align-items: center; }
.stat-ico { aspect-ratio: 1; border-radius: 50%; background: #f4f4f4; display: grid; place-items: center; }
.stat-ico svg { width: 52%; height: 52%; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stat-txt { text-align: center; color: #2f2f2f; font-size: 1.15rem; }
.stat-txt b { display: block; font-size: clamp(2.6rem, 8vw, 4rem); font-style: italic; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-txt span { display: block; line-height: 1.25; }
.note { margin-top: 24px; font-size: 0.85rem; color: var(--ink-soft); }
.note.left { margin-top: 14px; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .stat { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; }
  .stat-ico { width: min(180px, 100%); }
}

/* Encarts roses */
.promos { padding-block: 0 clamp(36px, 6vw, 64px); }
.promo-grid { display: grid; gap: 20px; }
.promo { border-radius: 14px; color: #fff; box-shadow: 0 18px 34px rgba(160, 20, 80, 0.2); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.promo.contact { background: linear-gradient(100deg, #e51d6e 0%, #b3144f 100%); }
.promo.photo { background: linear-gradient(rgba(226, 38, 118, 0.84), rgba(188, 22, 92, 0.9)), url("/img/accompagnement.jpg") center / cover, #d8236f; display: block; min-height: 260px; padding: 36px 28px; }
.promo-title { font-size: 1.6rem; font-weight: 300; line-height: 1.25; }
.promo-title.strong { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); max-width: 22ch; margin-block: 10px 22px; }
.promo-kicker { font-weight: 600; font-size: 0.95rem; }
.btn-white { display: inline-block; background: #fff; color: var(--green-deep); font-weight: 700; padding: 14px 26px; border-radius: 8px; text-decoration: none; }
.btn-white:hover { background: var(--green-tint); }
@media (min-width: 900px) { .promo-grid { grid-template-columns: 1fr 1.4fr; } }

/* Actualités en bande grise */
.news-sec { background: var(--bg-soft); }

/* Partenaires, membre de, accès rapide */
.part-title { font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: #8a8a8a; display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.part-title svg { width: 56px; height: 38px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.partners { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; padding: 0; margin: 0; }
.partners li { border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; color: var(--ink-soft); font-weight: 600; background: #fff; }
.member { text-align: center; padding-block: clamp(36px, 6vw, 72px); }
.member-of { color: #1e1b59; font-size: 1rem; letter-spacing: 0.02em; }
.if-logo { display: block; margin: 12px auto 26px; width: min(320px, 70%); height: auto; }
.member-strong { color: #8a8a8a; font-weight: 700; font-size: 1.45rem; line-height: 1.3; max-width: 34ch; margin-inline: auto; text-align: left; }
.member-light { color: #9a9a9a; font-weight: 300; font-size: 1.4rem; line-height: 1.35; max-width: 34ch; margin: 22px auto 0; text-align: left; }
.quick { padding-top: 0; text-align: center; }
.quick-title { font-weight: 300; color: #8a8a8a; font-size: 1.9rem; margin-bottom: 22px; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.quick-list a { color: var(--pink); font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.quick-list a:hover { text-decoration: underline; }
@media (min-width: 900px) { .quick-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Pied de page clair */
footer { padding-block: 24px 36px; text-align: center; }
.foot { display: grid; justify-items: center; gap: 18px; }
.intranet { display: inline-flex; align-items: center; gap: 12px; background: #f4f4f4; color: #777; font-weight: 700; text-decoration: none; padding: 18px 40px; border-radius: 999px; }
.intranet svg { width: 22px; height: 22px; fill: #8a8a8a; stroke: none; }
.intranet svg path { fill: none; stroke: #8a8a8a; stroke-width: 2; }
footer h2 { font-weight: 300; color: #8a8a8a; font-size: clamp(1.7rem, 4.4vw, 2.3rem); margin-top: 20px; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.soc { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-size: 1.5rem; padding: 14px 26px 14px 18px; border-radius: 10px; }
.soc svg { width: 34px; height: 34px; }
.soc svg rect { fill: #fff; }
.soc.fb { background: #04499a; }
.soc.fb svg .cut { fill: #04499a; }
.soc.in { background: #3586de; }
.soc.in svg .cut { fill: #3586de; }
address { font-style: normal; display: grid; gap: 22px; color: #222; font-size: 1.3rem; line-height: 1.7; }
address strong { font-size: 1.35rem; }
.green-link { color: var(--green); text-decoration: none; }
.green-link:hover { text-decoration: underline; }
.iso { width: 96px; height: auto; margin-top: 8px; }
.legal { margin-top: 28px; color: #8a8a8a; font-size: 1.1rem; line-height: 1.7; }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; }
