/* Garderie des Petits Gouverneurs. Cut-paper sheets, crown edges, logo colours. */

@font-face { font-family: "Bagel Fat One"; src: url("../fonts/bagel-fat-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --ink: #1B2A8A;
    --ink-deep: #121C63;
    --red: #D3202B;
    --red-deep: #9C141D;
    --gold: #FFC52E;
    --gold-deep: #D99A00;
    --pink: #FFD3E6;
    --pink-strong: #FF8CC0;
    --sky: #BFE6FF;
    --grass: #2FAE73;
    --white: #FFFFFF;
    --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
    --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
    --edge: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--body); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3.1rem, 8.6vw, 6.6rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-bottom: .4em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sheet-ink :focus-visible { outline-color: var(--gold); }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 38em; margin-bottom: 2.2rem; }
.link { font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.link:hover { color: var(--red); }
.sub-title { font-size: 1.9rem; margin: 3.4rem 0 1.2rem; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--white); padding: .6em 1em; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Buttons press in like a toy block */
.btn {
    display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
    font: 400 1.2rem/1.2 var(--display); padding: .8em 1.35em; border-radius: 18px 22px 20px 16px;
    background: var(--btn); color: var(--btn-text); box-shadow: 0 6px 0 var(--btn-shade);
    transition: transform .22s var(--bounce), box-shadow .22s var(--bounce);
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 9px 0 var(--btn-shade); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--btn-shade); transition-duration: .06s; }
.btn-red { --btn: var(--red); --btn-text: var(--white); --btn-shade: var(--red-deep); }
.btn-white { --btn: var(--white); --btn-text: var(--ink); --btn-shade: var(--ink); }
.btn-small { font-size: 1rem; padding: .62em 1em; box-shadow: 0 4px 0 var(--btn-shade); }
.btn-small:hover { box-shadow: 0 6px 0 var(--btn-shade); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.head {
    position: sticky; top: 0; z-index: 20; background: var(--white);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 8px max(20px, calc((100% - 1160px) / 2));
    box-shadow: 0 3px 0 rgba(27, 42, 138, .12);
}
.head-logo { flex: none; }
.head-logo img { width: 170px; }
.head-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.head-nav ul { display: flex; gap: 2px 16px; flex-wrap: wrap; }
.head-nav ul a { display: block; padding: 6px 2px; font-weight: 700; font-size: 1.02rem; text-decoration: none; transition: color .15s; }
.head-nav ul a:hover { color: var(--red); }
.head-lang { font-size: 1rem; font-weight: 700; text-underline-offset: 3px; }
.head-toggle { display: none; font: 400 1.05rem var(--display); color: var(--white); background: var(--ink); border: 0; border-radius: 14px; padding: .55em .95em; cursor: pointer; }

/* Hero */
.hero { background: var(--sky); overflow: hidden; padding-top: clamp(28px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.hero-text { position: relative; z-index: 1; padding-bottom: clamp(64px, 7vw, 96px); }
.hero h1 { color: var(--red); text-shadow: .045em .045em 0 var(--gold); margin-bottom: .32em; }
.hero-lead { font-size: 1.32rem; line-height: 1.5; max-width: 30em; margin-bottom: 1.6rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 30px; font-size: 1rem; font-weight: 700; }
.hero-facts li { background: var(--white); padding: .28em .8em; border-radius: 999px; }
.hero-facts li:nth-child(2) { transform: rotate(-1deg); }
.hero-art { position: relative; margin-right: calc((100vw - min(1160px, 100vw - 40px)) / -2); align-self: stretch; display: flex; align-items: flex-end; }
.hero-art svg { width: 100%; overflow: visible; }
.hero-hint { position: absolute; right: max(24px, calc((100vw - 1160px) / 2)); bottom: calc(var(--edge) + 6px); color: var(--white); font: 400 1.05rem var(--display); }

.kid { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: 50% 100%; }
.kid:focus-visible .kid-body { outline: none; filter: drop-shadow(0 0 6px var(--white)); }
.kid.is-hopping { animation: hop .62s var(--bounce); }
.kid-crown { transform-box: fill-box; transform-origin: 50% 100%; }
.kid.is-hopping .kid-crown { animation: crown-pop .62s ease-out; }
.kid:hover .kid-crown { transform: translateY(-5px) rotate(-5deg); transition: transform .25s var(--bounce); }
@keyframes hop { 0%, 100% { transform: translateY(0) scaleY(1); } 18% { transform: translateY(4px) scaleY(.93); } 52% { transform: translateY(-58px) scaleY(1.04); } }
@keyframes crown-pop { 40% { transform: translateY(0); } 60% { transform: translateY(-20px) rotate(10deg); } 100% { transform: translateY(0); } }

.float { transform-box: fill-box; transform-origin: center; animation: drift 7s ease-in-out infinite alternate; }
.float-b { animation-duration: 9s; animation-delay: -2s; }
.float-c { animation-duration: 11s; animation-delay: -5s; }
.float-d { animation-duration: 6s; animation-delay: -3s; }
@keyframes drift { from { transform: translate(-6px, 4px) rotate(-5deg); } to { transform: translate(8px, -8px) rotate(6deg); } }

/* Sheets: full-bleed paper with a crown cut along the top */
.sheet { position: relative; background: var(--sheet); color: var(--sheet-text, var(--ink)); padding-block: clamp(56px, 8vw, 104px); }
.sheet::before {
    content: ""; position: absolute; left: 0; right: 0; top: calc(var(--edge) * -1 + 1px); height: var(--edge);
    background: var(--sheet); pointer-events: none;
    -webkit-mask: url("../img/edge.svg") repeat-x left bottom / 108px var(--edge);
    mask: url("../img/edge.svg") repeat-x left bottom / 108px var(--edge);
}
.sheet-white { --sheet: var(--white); }
.sheet-gold { --sheet: var(--gold); }
.sheet-ink { --sheet: var(--ink); --sheet-text: var(--white); }
.sheet-pink { --sheet: var(--pink); }
.sheet-sky { --sheet: var(--sky); }

/* Paper pieces landing */
[data-reveal] { transition: opacity .35s ease-out, transform .6s var(--bounce); }
[data-reveal].is-waiting { opacity: 0; transform: translateY(26px) rotate(-2.5deg) scale(.95); }

/* About */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-top p { max-width: 34em; }
.quote { background: var(--red); color: var(--white); padding: clamp(28px, 4vw, 46px); border-radius: 30px 44px 26px 50px; transform: rotate(1.6deg); box-shadow: 10px 12px 0 var(--gold); }
.quote blockquote { font: 400 clamp(1.8rem, 3.5vw, 2.7rem)/1.16 var(--display); margin-bottom: .6em; }
.quote figcaption { font-weight: 700; }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.values li { padding: 22px; border-radius: 22px; }
.values li:nth-child(1) { background: var(--sky); border-radius: 26px 16px 30px 18px; }
.values li:nth-child(2) { background: var(--pink); border-radius: 16px 30px 18px 28px; }
.values li:nth-child(3) { background: #FFE9A8; border-radius: 30px 18px 24px 16px; }
.values li:nth-child(4) { background: #CDEEDC; border-radius: 18px 26px 16px 30px; }
.values strong { display: block; font: 400 1.5rem/1.15 var(--display); margin-bottom: .4em; }
.values span { display: block; font-size: 1.05rem; line-height: 1.5; }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.trust dt { font-weight: 700; font-size: 1.2rem; margin-bottom: .2em; color: var(--red); }
.trust dd { font-size: 1.05rem; line-height: 1.5; }

.partners { columns: 2; column-gap: 36px; font-size: 1.05rem; }
.partners li { break-inside: avoid; padding-block: .35em; }
.partners strong { display: block; }

/* Groups: a height chart. Each group stands taller than the last. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
.step { display: flex; flex-direction: column; }
.step-kid { align-self: center; margin-bottom: -3px; }
.step-1 .step-kid { width: 92px; }
.step-2 .step-kid { width: 112px; }
.step-3 .step-kid { width: 132px; }
.step-card { background: var(--white); padding: 24px; border-radius: 26px 26px 8px 8px; }
.step-1 .step-card { min-height: 320px; }
.step-2 .step-card { min-height: 356px; }
.step-3 .step-card { min-height: 392px; }
.step-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .35em; color: var(--red); }
.step-count { font-weight: 700; font-size: 1.02rem; line-height: 1.4; }
.step-focus { font-size: 1.12rem; line-height: 1.4; }
.step-card ul { font-size: 1.04rem; line-height: 1.45; }
.step-card li { padding-left: 1.3em; position: relative; margin-bottom: .35em; }
.step-card li::before { content: ""; position: absolute; left: 0; top: .42em; width: .68em; height: .68em; background: var(--gold); border-radius: 50%; }
.groups-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 30px; align-items: center; background: var(--ink); color: var(--white); padding: 24px 28px; border-radius: 8px 8px 26px 26px; margin-top: 8px; }
.groups-foot p:last-child { margin-bottom: 0; }

/* Order of the day */
.sheet-ink h2 { color: var(--gold); }
.agenda { columns: 2; column-gap: 56px; }
.agenda li { break-inside: avoid; display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 14px; padding-block: 15px; border-top: 2px dashed rgba(255, 255, 255, .28); }
.agenda time { font-weight: 700; color: var(--gold); font-size: 1rem; line-height: 1.45; padding-top: .2em; }
.agenda strong { display: block; font: 400 1.42rem/1.18 var(--display); margin-bottom: .2em; }
.agenda span { display: block; font-size: 1.04rem; line-height: 1.45; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery li { aspect-ratio: 4 / 3; }
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery figure { position: relative; height: 100%; overflow: hidden; background: var(--sky); border-radius: 24px; }
.gallery li:nth-child(odd) figure { border-radius: 28px 16px 30px 20px; }
.gallery li:nth-child(even) figure { border-radius: 16px 30px 18px 28px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--bounce); }
.gallery figure:hover img { transform: scale(1.05) rotate(-1deg); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; background: var(--white); border-radius: 12px; padding: .3em .7em; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.gallery figcaption span { display: block; font-weight: 400; font-size: .9rem; }

/* Parents */
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.voices li { position: relative; background: var(--white); padding: 26px; border-radius: 28px 28px 28px 6px; }
.voices li:nth-child(2) { margin-top: 28px; border-radius: 28px 28px 6px 28px; }
.voices blockquote { font-size: 1.15rem; line-height: 1.5; margin-bottom: .8em; }
.voice-who { font-weight: 700; margin: 0; font-size: 1rem; }
.voice-tag { display: inline-block; background: var(--gold); padding: .1em .65em; border-radius: 8px; font-weight: 700; font-size: .92rem; margin-bottom: .8em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.map { display: block; position: relative; overflow: hidden; border-radius: 26px 18px 30px 20px; margin-bottom: 26px; text-decoration: none; }
.map svg { width: 100%; transition: transform .45s var(--bounce); }
.map:hover svg { transform: scale(1.04); }
.map span { position: absolute; left: 12px; bottom: 12px; background: var(--white); padding: .3em .8em; border-radius: 12px; font-weight: 700; font-size: 1rem; }
.contact-list > div { padding-block: 10px; }
.contact-list dt { font-weight: 700; color: var(--ink-deep); font-size: 1rem; }
.contact-list dd { font-size: 1.15rem; overflow-wrap: anywhere; }
.closed { margin-top: 10px; }
.closed summary { cursor: pointer; font-weight: 700; padding-block: 6px; }
.closed ul { padding-left: 1.1em; list-style: disc; font-size: 1.02rem; }

/* Forms */
.form { background: var(--white); padding: clamp(22px, 3.5vw, 36px); border-radius: 30px 22px 34px 24px; }
.form h3 { font-size: 2rem; margin-bottom: .3em; }
.form-tinted { background: #EAF6FF; }
.form-note { font-size: 1rem; margin-bottom: 1.1em; }
.form-note-strong { background: #FFE9A8; padding: .7em 1em; border-radius: 14px; font-size: 1rem; }
.form-alert { background: var(--red); color: var(--white); padding: .7em 1em; border-radius: 14px; font-weight: 700; }
.field { margin-bottom: 16px; }
.field label, .days > legend { display: block; font-weight: 700; margin-bottom: 5px; font-size: 1.02rem; padding: 0; }
.field-optional { font-weight: 400; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: end; }
.field-error { color: var(--red); font-weight: 700; font-size: 1rem; margin: 5px 0 0; }
input, select, textarea { font: inherit; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 14px; padding: .5em .75em; transition: box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--gold); }
.field [aria-invalid="true"] { border-color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.form > fieldset > legend { font: 400 1.5rem var(--display); padding: 0; margin-bottom: 12px; }
.days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.days > legend { float: left; width: 100%; }
.days .field-error { width: 100%; }
.day { position: relative; cursor: pointer; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day span { display: block; padding: .42em .85em; background: var(--white); border: 2.5px solid var(--ink); border-radius: 13px; font-weight: 700; transition: transform .2s var(--bounce), background .15s; }
.day input:checked + span { background: var(--ink); color: var(--white); transform: translateY(-2px) rotate(-1.5deg); }
.day input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.consent { margin-bottom: 18px; font-size: 1.02rem; }
.consent > label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.consent p { margin: 8px 0 0 32px; }

/* Inner pages */
.sub-hero { background: var(--sky); padding-block: clamp(44px, 7vw, 80px) calc(clamp(44px, 7vw, 80px) + var(--edge)); }
.sub-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); color: var(--red); text-shadow: .045em .045em 0 var(--gold); margin-bottom: .3em; max-width: 15em; }
.sub-hero .lead { margin-bottom: 0; }
.sub-hero-center { text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.sub-hero-center .wrap { display: flex; flex-direction: column; align-items: center; }
.sub-hero-center .lead { margin-bottom: 1.6rem; }
.end-kid { width: 120px; margin-bottom: 10px; }

.wait-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.wait-side .sub-title:first-child { margin-top: 0; }
.wait-steps { counter-reset: step; }
.wait-steps li { counter-increment: step; position: relative; padding: 0 0 16px 50px; line-height: 1.45; }
.wait-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--gold); border-radius: 50%; font-family: var(--display); }

.policy-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.policy-toc { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; }
.policy-toc .sub-title { margin-top: 0; font-size: 1.4rem; }
.policy-toc li { padding-block: 3px; font-size: 1rem; line-height: 1.35; }
.policy-toc a { text-underline-offset: 3px; }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.85rem; margin: 1.7em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .25em; }

/* Footer */
.foot { padding-block: 60px 24px; font-size: 1.04rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 32px; }
.foot-name { font: 400 1.6rem/1.15 var(--display); color: var(--gold); margin-bottom: .3em; }
.foot address { font-style: normal; overflow-wrap: anywhere; }
.foot a { text-underline-offset: 3px; }
.foot li { padding-block: 2px; }
.foot-legal { margin-top: 36px; font-size: .95rem; }

@media (max-width: 1080px) {
    .head-toggle:not([hidden]) { display: block; }
    .head-nav.is-collapsible { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); padding: 12px 20px 22px; flex-direction: column; align-items: flex-start; box-shadow: 0 8px 0 rgba(27, 42, 138, .12); }
    .head-nav.is-collapsible.is-open { display: flex; }
    .head-nav.is-collapsible ul { flex-direction: column; width: 100%; }
    .head-nav.is-collapsible ul a { font-size: 1.25rem; padding: 9px 0; }
    .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .groups-foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    :root { --edge: 26px; }
    .hero-grid, .about-top, .contact-grid, .wait-grid, .policy-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-text { padding-bottom: 8px; }
    .hero-art { margin-inline: -20px; }
    .hero-hint { right: 20px; }
    .quote { transform: rotate(.8deg); box-shadow: 7px 8px 0 var(--gold); }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .step { flex-direction: row; align-items: flex-end; }
    .step-1 .step-card, .step-2 .step-card, .step-3 .step-card { min-height: 0; padding: 20px; flex: 1; min-width: 0; border-radius: 22px; }
    .step-1 .step-kid, .step-2 .step-kid, .step-3 .step-kid { display: none; }
    .groups-foot { border-radius: 22px; margin-top: 16px; }
    .agenda { columns: 1; }
    .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -20px; padding: 4px 20px 14px; }
    .gallery li, .gallery li:nth-child(1) { flex: 0 0 82%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
    .voices { grid-template-columns: minmax(0, 1fr); }
    .voices li:nth-child(2) { margin-top: 0; }
    .policy-toc { position: static; max-height: none; }
    .policy-toc ul { columns: 2; column-gap: 20px; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    body { font-size: 1.0625rem; }
    .wrap { width: calc(100% - 32px); }
    .hero-art { margin-inline: -16px; }
    .gallery { margin-inline: -16px; padding-inline: 16px; }
    .hero-lead, .lead { font-size: 1.16rem; }
    .btn-row .btn { flex: 1 1 100%; }
    .values, .trust, .field-pair { grid-template-columns: minmax(0, 1fr); }
    .partners { columns: 1; }
    .agenda li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .policy-toc ul { columns: 1; }
    .head-logo img { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
    .head, .foot, .form, .hero-art { display: none; }
    .sheet::before { display: none; }
}
