@font-face {
    font-family: "Fredoka";
    src: url("../fonts/fredoka-latin-variable.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* Couleurs, rayons et polices communs à toutes les pages. */
:root {
    --night: #1a1447;
    --indigo: #2a1f7a;
    --violet: #5b3df5;
    --violet-dark: #3d25c4;
    --violet-soft: #efecff;
    --sun: #ffc93c;
    --sun-dark: #e0a200;
    --coral: #ff6b6b;
    --mint: #1fc8a0;
    --sky: #3aa8ff;
    --cream: #fffaf0;
    --surface: #ffffff;
    --ink: #1d1b3a;
    --muted: #5a5878;
    --line: #e4e0f5;
    --success-bg: #dff7ec;
    --success-ink: #0c6a4e;
    --danger-bg: #ffe4e4;
    --danger-ink: #a32222;
    --radius: 1.5rem;
    --radius-small: 0.875rem;
    --shadow: 0 1px 0 rgba(29, 27, 58, 0.04), 0 14px 32px -14px rgba(43, 31, 122, 0.28);
    --shadow-lift: 0 1px 0 rgba(29, 27, 58, 0.04), 0 22px 40px -16px rgba(43, 31, 122, 0.38);
    --font-display: "Fredoka", "Arial Rounded MT Bold", "Varela Round", system-ui, sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

h1,
h2,
h3,
.section__intro { text-wrap: balance; }

h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3125rem; }

p { margin: 0 0 1rem; }

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a { color: var(--violet-dark); }
a:hover { color: var(--violet); }

:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
    border-radius: 0.375rem;
}

.container {
    width: min(100% - 2.5rem, 70rem);
    margin-inline: auto;
}

.page { padding-block: clamp(2rem, 5vw, 3.5rem); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -5rem;
    z-index: 50;
    padding: 0.625rem 1.125rem;
    font-weight: 600;
    color: var(--night);
    background: var(--sun);
    border-radius: 999px;
}

.skip-link:focus { top: 0.75rem; }

.icon {
    width: 1.5em;
    height: 1.5em;
    flex: none;
}

/* En-tête */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px -22px rgba(43, 31, 122, 0.55);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-inline-end: auto;
    text-decoration: none;
}

.brand__mark {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    transition: transform 0.3s ease;
}

.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }

.brand__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--night);
}

.brand__accent { color: var(--violet); }

.brand__tag {
    display: inline-block;
    margin-inline-start: 0.125rem;
    padding: 0.0625rem 0.4375rem 0.125rem;
    font-size: 0.72em;
    line-height: 1.2;
    vertical-align: 0.14em;
    color: var(--night);
    background: var(--sun);
    border-radius: 0.5rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.site-nav form { margin: 0; }

.site-nav__link {
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

main { flex: 1; }

.site-nav__link:hover { color: var(--violet); }

.locale-menu { position: relative; }

.locale-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 999px;
    list-style: none;
    cursor: pointer;
}

.locale-menu summary::-webkit-details-marker { display: none; }
.locale-menu summary:hover { background: #e0daff; }

.locale-menu summary .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.locale-menu ul {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 30;
    min-width: 10rem;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-lift);
}

.locale-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--ink);
    border-radius: 0.5rem;
    text-decoration: none;
}

.locale-menu a:hover { background: var(--violet-soft); }

.locale-menu a[aria-current="true"] {
    color: var(--violet-dark);
    background: var(--violet-soft);
}

/* Boutons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.625rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: var(--violet);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 5px 0 var(--violet-dark);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--violet-dark);
}

.button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--violet-dark);
}

.button .icon {
    width: 1.125em;
    height: 1.125em;
}

.button--sun {
    color: var(--night);
    background: var(--sun);
    box-shadow: 0 5px 0 var(--sun-dark), 0 14px 26px -8px rgba(0, 0, 0, 0.35);
}

.button--sun:hover {
    color: var(--night);
    box-shadow: 0 7px 0 var(--sun-dark), 0 18px 30px -8px rgba(0, 0, 0, 0.4);
}

.button--sun:active { box-shadow: 0 2px 0 var(--sun-dark); }

.button--ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.button--ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.button--ghost:active { box-shadow: inset 0 0 0 2px #ffffff; }

.button--quiet {
    color: var(--violet-dark);
    background: var(--violet-soft);
    box-shadow: none;
}

.button--quiet:hover {
    color: var(--violet-dark);
    background: #e0daff;
    box-shadow: none;
}

.button--danger {
    background: var(--danger-ink);
    box-shadow: 0 5px 0 #6f1414;
}

.button--danger:hover { box-shadow: 0 7px 0 #6f1414; }

.button--small {
    padding: 0.5rem 1.125rem;
    font-size: 1rem;
    box-shadow: 0 3px 0 var(--violet-dark);
}

.link-button {
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--violet-dark);
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}

/* Bandeau d'accueil */
.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(52rem 30rem at 88% -12%, rgba(132, 99, 255, 0.6), transparent 62%),
        radial-gradient(38rem 26rem at -6% 108%, rgba(47, 128, 255, 0.5), transparent 62%),
        linear-gradient(160deg, var(--night) 0%, var(--indigo) 52%, #4a2fd6 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.8;
    background-image:
        radial-gradient(1.5px 1.5px at 6% 18%, #ffffff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 14% 62%, #ffffff 50%, transparent 51%),
        radial-gradient(2px 2px at 22% 34%, #cfd6ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 31% 12%, #ffffff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 38% 78%, #ffffff 50%, transparent 51%),
        radial-gradient(2px 2px at 46% 26%, #ffe9a8 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 54% 8%, #ffffff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 61% 88%, #ffffff 50%, transparent 51%),
        radial-gradient(2px 2px at 69% 16%, #cfd6ff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 77% 70%, #ffffff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 84% 30%, #ffffff 50%, transparent 51%),
        radial-gradient(2px 2px at 92% 56%, #ffe9a8 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 97% 10%, #ffffff 50%, transparent 51%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2rem;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5.5rem, 10vw, 8.5rem);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.375rem 1rem 0.375rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.hero__badge .icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--sun);
}

.hero h1 {
    margin-bottom: 1.25rem;
    text-wrap: initial;
    font-size: clamp(2.5rem, 6.2vw, 4.5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.01em;
}

.hero__highlight {
    display: block;
    width: fit-content;
    padding-bottom: 0.14em;
    color: var(--sun);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8c30-8 50 6 80-1s60-6 114 0' fill='none' stroke='%23ff6b6b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.26em;
}

.hero__lead {
    max-width: 34rem;
    margin-bottom: 0;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: #dedaff;
}

.hero__idea {
    max-width: 36rem;
    margin-top: 1.75rem;
    scroll-margin-top: 6rem;
}

.hero__idea label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    color: #ffffff;
}

.hero__idea-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 16px 34px -14px rgba(8, 4, 40, 0.75);
}

.hero__idea-row:focus-within { box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.7); }

.hero__idea-row input[type="text"] {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 0.625rem 0.5rem 0.625rem 1.125rem;
    font-size: 1.0625rem;
    background: transparent;
    border: 0;
    border-radius: 999px;
}

/* Le contour de saisie est porté par la rangée entière. */
.hero__idea-row input[type="text"]:focus-visible { box-shadow: none; }
.hero__idea-row .button { flex: none; }

.hero__idea-error {
    margin: 0.625rem 0 0;
    font-weight: 600;
    color: #ffd6d6;
}

.hero__idea-note {
    margin: 0.625rem 0 0;
    font-size: 0.9375rem;
    color: #cfc9ff;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 1.75rem;
    margin-top: 2.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e6e2ff;
}

.hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__chips .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--sun);
}

.hero__art { min-width: 0; }

.hero-art {
    display: block;
    width: 100%;
    max-width: 34rem;
    height: auto;
    margin-inline: auto;
    overflow: visible;
}

.hero__wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    display: block;
    width: 100%;
    height: clamp(2.5rem, 6vw, 5.5rem);
    fill: var(--cream);
}

/* Animations de l'illustration */
.hero-art__robot { animation: cq-float 6s ease-in-out infinite; }
.hero-art__planet { animation: cq-float 9s ease-in-out infinite reverse; }
.hero-art__moon { animation: cq-float 7s ease-in-out infinite; }

.hero-art__cards {
    animation: cq-float 8s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(10, 6, 50, 0.35));
}

.hero-art__star,
.hero-art__beacon,
.sparkle {
    transform-box: fill-box;
    transform-origin: center;
}

.hero-art__star { animation: cq-pulse 2.8s ease-in-out infinite; }
.hero-art__beacon { animation: cq-pulse 2.2s ease-in-out infinite; }
.sparkle { animation: cq-twinkle 3.2s ease-in-out infinite; }
.sparkle:nth-child(2) { animation-delay: 0.6s; }
.sparkle:nth-child(3) { animation-delay: 1.2s; }
.sparkle:nth-child(4) { animation-delay: 1.8s; }
.sparkle:nth-child(5) { animation-delay: 2.4s; }
.sparkle:nth-child(6) { animation-delay: 0.9s; }

@keyframes cq-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes cq-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

@keyframes cq-peek {
    0%, 100% { transform: translateY(18px); }
    50% { transform: translateY(4px); }
}

@keyframes cq-twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.75); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--cream { background: var(--cream); }

.section__title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 3.8vw, 2.75rem);
    text-align: center;
}

.section__intro {
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    color: var(--muted);
    text-align: center;
}

.section__title:not(:has(+ .section__intro)) { margin-bottom: 2.5rem; }

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Teintes d'accent */
.tone-sun { --tone-bg: #fff0bf; --tone-ink: #8a5a00; --tone-solid: var(--sun); }
.tone-coral { --tone-bg: #ffe1e1; --tone-ink: #b12a2a; --tone-solid: var(--coral); }
.tone-mint { --tone-bg: #d3f7eb; --tone-ink: #0c7a5e; --tone-solid: var(--mint); }
.tone-sky { --tone-bg: #dbeeff; --tone-ink: #1259a8; --tone-solid: var(--sky); }
.tone-violet { --tone-bg: #e9e4ff; --tone-ink: #4a2fd0; --tone-solid: var(--violet); }

/* Tuiles */
.tile,
.card {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tile { transition: transform 0.2s ease, box-shadow 0.2s ease; }

.tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.tile--band { border-top: 6px solid var(--tone-solid); }

.tile--tinted {
    background: var(--tone-bg);
    border-color: transparent;
    box-shadow: none;
}

.tile--tinted .tile__icon { background: var(--surface); }
.tile--tinted h3 { color: var(--tone-ink); }
.tile.tile--tinted p { color: var(--ink); }

/* Le chemin pointillé qui relie les étapes d'une mission. */
.steps { position: relative; }

.steps::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 3.75rem;
    border-top: 4px dotted #cbc3f7;
}

.tile__icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.125rem;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 1.25rem;
}

.tile__icon .icon {
    width: 2.25rem;
    height: 2.25rem;
}

.tile__icon--round {
    width: 4.5rem;
    height: 4.5rem;
    margin-inline: auto;
    border-radius: 50%;
}

.tile__number {
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--tone-bg);
}

.tile p,
.card p:last-child,
.promise p,
.world p { margin-bottom: 0; }

.tile p,
.promise p { color: var(--muted); }

/* Univers */
.world {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 15rem;
    padding: 2rem;
    overflow: hidden;
    color: #ffffff;
    border-radius: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.world:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.world::before {
    content: "";
    position: absolute;
    right: -3.5rem;
    top: -3.5rem;
    width: 15rem;
    height: 15rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.world--sciences { background: linear-gradient(135deg, #ff8a4c 0%, #ff4f81 100%); }
.world--espace { background: linear-gradient(135deg, #2f80ff 0%, #5b3df5 100%); }
.world--nature { background: linear-gradient(135deg, #2fbf71 0%, #128a6a 100%); }
.world--histoire { background: linear-gradient(135deg, #e0963c 0%, #b4572e 100%); }
.world--art { background: linear-gradient(135deg, #e056c1 0%, #8a3fe0 100%); }
.world--robotique { background: linear-gradient(135deg, #20b8c9 0%, #2a6fd6 100%); }
.world--ecologie { background: linear-gradient(135deg, #8cc63f 0%, #1f9d8a 100%); }
.world--narration { background: linear-gradient(135deg, #7a5cff 0%, #e0559c 100%); }

.worlds .world {
    min-height: 13rem;
    padding: 1.5rem;
}

.worlds .world::before {
    right: -3rem;
    top: -3rem;
    width: 11rem;
    height: 11rem;
}

.worlds .world__art {
    right: 1rem;
    top: 1rem;
    width: 4.5rem;
    height: 4.5rem;
    stroke-width: 2.5;
}

.worlds .world h3 { font-size: 1.375rem; }
.worlds .world p { font-size: 1rem; }

.world__art {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    width: 7.5rem;
    height: 7.5rem;
    color: #ffffff;
    stroke-width: 2.25;
}

.world h3 {
    position: relative;
    font-size: clamp(1.5rem, 2.6vw, 1.875rem);
}

.world p {
    position: relative;
    max-width: 24rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Engagements */
.promise {
    padding: 0.5rem 1rem;
    text-align: center;
}

.promise h3 { margin-top: 1.125rem; }

/* Bandeau d'appel */
.cta-band {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(30rem 18rem at 12% 0%, rgba(255, 201, 60, 0.22), transparent 62%),
        radial-gradient(34rem 20rem at 92% 100%, rgba(47, 200, 160, 0.25), transparent 62%),
        linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
}

.cta-band__inner {
    position: relative;
    padding-block: clamp(5rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem);
}

.cta-band__wave {
    position: absolute;
    left: 0;
    top: -1px;
    display: block;
    width: 100%;
    height: clamp(2rem, 5vw, 4.5rem);
    fill: var(--surface);
}

.cta-band__robot {
    position: absolute;
    right: max(4%, calc(50% - 33rem));
    bottom: 0;
    width: 10.5rem;
    height: auto;
    animation: cq-peek 5s ease-in-out infinite;
}

.cta-band h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
}

.cta-band p {
    max-width: 36rem;
    margin-inline: auto;
    font-size: 1.125rem;
    color: #e2deff;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.cta-band__soon {
    margin: 0;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

/* Pied de page */
.site-footer {
    color: #c9c5ee;
    background: var(--night);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding-block: 1.75rem;
}

.site-footer p { margin: 0; }

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.site-footer .brand__name { color: #ffffff; }
.site-footer .brand__accent { color: var(--sun); }
.site-footer .brand__mark { width: 2rem; height: 2rem; }
.site-footer__tagline { margin-inline-end: auto; }
.site-footer__notice { font-size: 0.9375rem; }

/* Champs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.6875rem 0.9375rem;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.18);
}

.form {
    max-width: 30rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form--wide { max-width: 42rem; }
.form--center { margin-inline: auto; }

.field { margin-bottom: 1.125rem; }

.field label,
.field legend {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.field__hint {
    margin: 0.375rem 0 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.field__error {
    margin: 0.375rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--danger-ink);
}

.field--check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.field--check label {
    margin: 0;
    font-weight: 400;
}

.field--check input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--violet);
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.choices {
    display: grid;
    gap: 0.5rem;
}

.choices label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0;
    font-weight: 400;
}

.choices input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--violet);
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 1.75rem;
}

/* Une seconde façon de faire, proposée sous le bouton principal d'un formulaire. */
.form__alternative { margin-top: 1.75rem; }
.form__alternative + .form__actions { margin-top: 0.75rem; }

/* Messages */
.alert {
    margin: 1.25rem 0;
    padding: 0.875rem 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-small);
}

.alert--success {
    color: var(--success-ink);
    background: var(--success-bg);
}

.alert--danger {
    color: var(--danger-ink);
    background: var(--danger-bg);
}

/* Éléments de page */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-head h1 { margin: 0; }

.card__meta {
    font-size: 0.9375rem;
    color: var(--muted);
}

.card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.25rem;
}

.card__actions form { margin: 0; }
.card__actions a { font-weight: 600; }

.tag {
    display: inline-block;
    padding: 0.1875rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 999px;
}

.error-page { text-align: center; }

.error-page__code {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--violet);
}

/* Pastille de profil */
.avatar {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    flex: none;
    overflow: hidden;
    background: var(--tone-bg, var(--violet-soft));
    border: 4px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--tone-solid, var(--violet));
}

.avatar--small {
    width: 2.25rem;
    height: 2.25rem;
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--tone-solid, var(--violet));
}

.avatar--large {
    width: 7rem;
    height: 7rem;
}

/* Avatar composé et compagnons */
.avatar-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar-svg .is-hidden { display: none; }
.avatar-fill { fill: var(--avatar-fill, #8f7bff); }

.avatar-color--violet { --avatar-fill: #8f7bff; }
.avatar-color--sun { --avatar-fill: #ffcf4a; }
.avatar-color--mint { --avatar-fill: #45d9b2; }
.avatar-color--coral { --avatar-fill: #ff8585; }
.avatar-color--sky { --avatar-fill: #6fbcff; }
.avatar-color--pink { --avatar-fill: #ff94cb; }
.avatar-color--lime { --avatar-fill: #a8e05a; }
.avatar-color--orange { --avatar-fill: #ffa64d; }

.companion-svg {
    display: block;
    width: 100%;
    height: auto;
}

.site-nav__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.875rem 0.25rem 0.375rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--violet-soft);
    border-radius: 999px;
    text-decoration: none;
}

.site-nav__profile:hover { color: var(--violet-dark); }

/* Écrans de compte */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: stretch;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.auth__panel { align-self: center; }

.auth__intro {
    max-width: 30rem;
    font-size: 1.125rem;
    color: var(--muted);
    /* Une adresse électronique longue se coupe plutôt que d'élargir la page. */
    overflow-wrap: anywhere;
}

.auth .form { margin-top: 1.5rem; }

.auth__switch {
    margin: 1.5rem 0 0;
    color: var(--muted);
}

.auth__switch a { font-weight: 600; }

.auth__aside {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 28rem;
    padding: 2.5rem;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(22rem 16rem at 90% 0%, rgba(132, 99, 255, 0.65), transparent 65%),
        radial-gradient(20rem 14rem at 0% 100%, rgba(47, 200, 160, 0.3), transparent 65%),
        linear-gradient(160deg, var(--night) 0%, var(--indigo) 55%, #4a2fd6 100%);
    border-radius: 2rem;
}

.auth__tagline {
    max-width: 16rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.auth__aside .cta-band__robot {
    right: 50%;
    width: 13rem;
    margin-right: -6.5rem;
}

/* Choix du profil */
.chooser { text-align: center; }

.chooser__title { font-size: clamp(2rem, 5vw, 3rem); }

.chooser__intro {
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    color: var(--muted);
}

.chooser__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 13rem);
    justify-content: center;
    gap: 1.5rem;
}

.chooser__list form {
    height: 100%;
    margin: 0;
}

.chooser__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    min-height: 15rem;
    padding: 1.75rem 1.25rem;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chooser__card:hover {
    transform: translateY(-6px);
    border-color: var(--tone-solid);
    box-shadow: var(--shadow-lift);
}

.chooser__card[aria-current="true"] { border-color: var(--tone-solid); }

.chooser__name {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.chooser__meta { color: var(--muted); }

.chooser__avatar { position: relative; }

.chooser__lock {
    position: absolute;
    right: -0.375rem;
    bottom: -0.25rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: #ffffff;
    background: var(--night);
    border: 3px solid var(--surface);
    border-radius: 50%;
}

.chooser__lock .icon {
    width: 1rem;
    height: 1rem;
}

/* Tableau de bord */
.dashboard__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.dashboard__head h1 { margin-bottom: 0.25rem; }

.dashboard__head p {
    margin: 0;
    color: var(--muted);
}

.rules {
    display: grid;
    gap: 0.5rem;
    padding-inline-start: 1.25rem;
    list-style: disc;
}

.empty-state {
    position: relative;
    margin-top: 2.5rem;
    padding: 2.25rem 2rem;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
    border-radius: 2rem;
}

.empty-state h2 { margin-top: 0; }

.empty-state p {
    margin: 0;
    color: #e2deff;
}

@media (max-width: 60rem) {
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth__aside { display: none; }
    .auth .form { margin-inline: auto; }
    .auth__panel { text-align: center; }
    .auth__panel .form { text-align: left; }
    .auth__intro { margin-inline: auto; }

    .summary {
        margin-inline: auto;
        text-align: left;
    }

    .auth__switch--row { justify-content: center; }

    .auth__aside .cta-band__robot { display: none; }

    .look__grid { grid-template-columns: minmax(0, 1fr); }
    .look__preview { position: static; }
    .look__stage { width: 12rem; }
}

/* Espace du titulaire */
.page-head__intro {
    max-width: 38rem;
    margin: 0.375rem 0 0;
    font-size: 1.125rem;
    color: var(--muted);
}

.page-foot { margin: 2.5rem 0 0; }

.alert--info {
    color: var(--violet-dark);
    background: var(--violet-soft);
}

.tag--warning {
    color: var(--danger-ink);
    background: var(--danger-bg);
}

.profile-card__head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-card__name {
    margin: 0 0 0.125rem;
    font-size: 1.5rem;
    overflow-wrap: anywhere;
}

.profile-card .card__meta { margin: 0 0 0.375rem; }
.profile-card--suspended .avatar { filter: grayscale(1); opacity: 0.6; }

.choices--inline {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.625rem;
}

.choices--inline label {
    align-items: center;
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
    cursor: pointer;
}

.choices--inline label:has(input:checked) {
    border-color: var(--violet);
    background: var(--violet-soft);
}

.choices--inline input { margin-top: 0; }

.form + .form { margin-top: 2rem; }
.form--danger { border-color: #f3c4c4; }
.form--danger h2 { color: var(--danger-ink); }

.form__title {
    margin-top: 1.5rem;
    font-size: 1.25rem;
}

.form__title + .field__hint { margin: 0 0 1rem; }

.summary {
    max-width: 30rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius);
}

.summary h2 { font-size: 1.25rem; }
.summary__profile { font-weight: 600; }

.code-input {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-align: center;
}

.auth__switch--row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.auth__switch--row form { margin: 0; }

.dev-sms { margin-bottom: 1rem; }

/* Personnalisation */
.look__grid {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 1.5rem;
}

.look__preview {
    position: sticky;
    top: 5.5rem;
    text-align: center;
}

.look__stage {
    width: min(100%, 18rem);
    margin-inline: auto;
    padding: 1.5rem;
    background:
        radial-gradient(12rem 8rem at 80% 0%, rgba(255, 201, 60, 0.35), transparent 65%),
        linear-gradient(160deg, #efecff 0%, #dbeeff 100%);
    border-radius: 2rem;
    box-shadow: var(--shadow);
}

.look__name {
    margin: 1rem 0 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
}

.look__group { margin-bottom: 1.5rem; }

.look__group legend {
    margin-bottom: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

.look__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.look__choice {
    display: grid;
    place-items: center;
    width: 4.75rem;
    height: 4.75rem;
    padding: 0.25rem;
    background: var(--surface);
    border: 3px solid var(--line);
    border-radius: 1.125rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.look__choice .avatar-svg {
    width: 3.5rem;
    height: 3.5rem;
}

.look__choice:hover { transform: translateY(-3px); }

.look__choice:has(input:checked) {
    background: var(--violet-soft);
    border-color: var(--violet);
}

.look__choice:has(input:focus-visible),
.look__companion:has(input:focus-visible) {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}

.look__choice--color {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
}

.look__swatch {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--avatar-fill);
    border-radius: 50%;
}

.look__assistant {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.look__companions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.look__companion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    font-weight: 600;
    text-align: center;
    background: var(--surface);
    border: 3px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.look__companion:hover { transform: translateY(-4px); }

.look__companion:has(input:checked) {
    background: var(--violet-soft);
    border-color: var(--violet);
}

.look__companion .companion-svg { width: 5.5rem; }
.look__name-field { max-width: 24rem; }

/* Le compagnon accueille le profil */
.dashboard__identity { margin-inline-end: auto; }

.companion-hello {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.companion-hello__art {
    width: 6.5rem;
    flex: none;
    animation: cq-float 6s ease-in-out infinite;
}

.companion-hello__bubble {
    position: relative;
    max-width: 34rem;
    margin: 0;
    padding: 1rem 1.375rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--night);
    background: var(--cream);
    border: 2px solid #f1e3c2;
    border-radius: 1.5rem;
}

.companion-hello__bubble::before {
    content: "";
    position: absolute;
    left: -0.6rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    background: var(--cream);
    border-left: 2px solid #f1e3c2;
    border-bottom: 2px solid #f1e3c2;
    transform: rotate(45deg);
}

/* Écrans étroits */
@media (max-width: 60rem) {
    .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--three { grid-template-columns: minmax(0, 1fr); }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .hero__lead,
    .hero__highlight { margin-inline: auto; }

    .hero__actions,
    .hero__chips { justify-content: center; }

    .steps::before,
    .cta-band__robot { display: none; }
    .hero-art { max-width: 24rem; }

    .look__grid { grid-template-columns: minmax(0, 1fr); }

    .look__preview {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
    }

    .look__stage {
        width: 9.5rem;
        margin: 0;
        padding: 0.875rem;
        border-radius: 1.5rem;
    }

    .look__name { margin: 0; }
}

@media (max-width: 40rem) {
    .grid--four,
    .grid--two { grid-template-columns: minmax(0, 1fr); }

    .brand__name { font-size: 1.25rem; }
    .brand__mark { width: 2.125rem; height: 2.125rem; }
    .world,
    .worlds .world { min-height: 10rem; }

    .look__companions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .companion-hello { align-items: flex-start; }
    .companion-hello__art { width: 4.5rem; }
    .companion-hello__bubble { font-size: 1.0625rem; }
    .site-footer__inner { flex-direction: column; text-align: center; }
    .site-footer__tagline { margin-inline-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Menu principal */
:root { --header-h: 4.25rem; }

.site-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.site-menu-toggle { display: none; }

.site-nav__link[aria-current="page"] { color: var(--violet); }

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1.25rem;
}

.site-footer__nav a {
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.site-footer__nav a:hover { color: var(--sun); }

.section__more {
    margin: 2.5rem 0 0;
    text-align: center;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.is-spotlit { animation: cq-spotlight 2.4s ease-out 1; }

@keyframes cq-spotlight {
    0% { box-shadow: inset 0 0 0 0 rgba(255, 201, 60, 0); }
    20% { box-shadow: inset 0 0 0 0.5rem rgba(255, 201, 60, 0.95); }
    100% { box-shadow: inset 0 0 0 0.5rem rgba(255, 201, 60, 0); }
}

/* Nemo */
.nemo-svg {
    display: block;
    width: 100%;
    height: auto;
}

.nemo-svg__eyes,
.nemo-svg__talk,
.nemo-svg__wave {
    transform-box: fill-box;
    transform-origin: center;
}

.nemo-svg__eyes { animation: nemo-blink 5.5s ease-in-out infinite; }
.nemo-svg__halo { animation: cq-pulse 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.nemo-svg__talk { opacity: 0; }
.nemo-svg__wave { transform-origin: 0% 100%; }

.is-talking .nemo-svg__smile { opacity: 0; }
.is-talking .nemo-svg__talk { opacity: 1; animation: nemo-talk 0.36s ease-in-out infinite alternate; }
.is-talking .nemo-svg__wave { animation: nemo-wave 1.1s ease-in-out infinite alternate; }

@keyframes nemo-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.08); }
}

@keyframes nemo-talk {
    from { transform: scale(0.75, 0.35); }
    to { transform: scale(1.1, 1.15); }
}

@keyframes nemo-wave {
    from { transform: rotate(0deg); }
    to { transform: rotate(-14deg); }
}

/* Visite guidée */
.tour__layout {
    display: grid;
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.tour__guide {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    text-align: center;
}

.tour__nemo {
    width: 10.5rem;
    animation: cq-float 6s ease-in-out infinite;
}

.tour__caption {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 7.5rem;
    margin: 0;
    padding: 1rem 1.25rem;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--night);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.tour__caption::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.625rem;
    width: 1.125rem;
    height: 1.125rem;
    margin-left: -0.5625rem;
    background: var(--surface);
    border-left: 2px solid var(--line);
    border-top: 2px solid var(--line);
    transform: rotate(45deg);
}

.tour__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.tour__tool {
    display: grid;
    place-items: center;
    width: 2.875rem;
    height: 2.875rem;
    padding: 0;
    color: var(--violet-dark);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.tour__tool:hover:not(:disabled) {
    border-color: var(--violet);
    transform: translateY(-2px);
}

.tour__tool:disabled {
    opacity: 0.4;
    cursor: default;
}

.tour__tool .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.tour__play {
    flex: 1 1 100%;
    order: -1;
}

.tour__play .icon { display: none; }

.tour[data-state="idle"] .tour__icon-play,
.tour[data-state="paused"] .tour__icon-play,
.tour[data-state="playing"] .tour__icon-pause,
.tour[data-state="done"] .tour__icon-replay { display: block; }

.tour__sound[aria-pressed="true"] .tour__sound-off,
.tour__sound[aria-pressed="false"] .tour__sound-on { display: none; }

.tour__sound[aria-pressed="true"] {
    color: var(--night);
    background: var(--sun);
    border-color: var(--sun);
}

.tour__tabs { display: none; }

.tour__step + .tour__step { margin-top: 2.5rem; }

.tour__step-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.tour__step-title span,
.tour__tab-number {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: none;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 50%;
}

.tour__lines {
    display: grid;
    gap: 0.375rem;
    margin-top: 1rem;
    color: var(--muted);
}

.tour.is-ready .tour__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tour__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tour__tab:hover { border-color: var(--violet); }
.tour__tab-title { display: none; }

.tour__tab.is-active {
    padding-inline-end: 1rem;
    color: #ffffff;
    background: var(--violet);
    border-color: var(--violet);
}

.tour__tab.is-active .tour__tab-title { display: inline; }

.tour__tab.is-active .tour__tab-number {
    color: var(--night);
    background: var(--sun);
}

.tour__tab.is-done .tour__tab-number {
    color: #ffffff;
    background: var(--mint);
}

.tour.is-ready .tour__step { display: none; }

.tour.is-ready .tour__step.is-active {
    display: block;
    margin-top: 0;
    animation: cq-step-in 0.35s ease-out;
}

.tour.is-ready .tour__step-title,
.tour.is-ready .tour__lines {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@keyframes cq-step-in {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: none; }
}

/* Écrans de démonstration */
.demo {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.demo__bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    padding: 0.625rem 1rem;
    background: var(--violet-soft);
    border-bottom: 2px solid var(--line);
}

.demo__bar i {
    width: 0.625rem;
    height: 0.625rem;
    background: var(--coral);
    border-radius: 50%;
}

.demo__bar i:nth-child(2) { background: var(--sun); }
.demo__bar i:nth-child(3) { background: var(--mint); }

.demo__bar strong {
    margin-inline-start: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--violet-dark);
}

.demo__body {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 21rem;
    padding: clamp(2.75rem, 6vw, 3.25rem) clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(180deg, #fbfaff 0%, #f1eeff 100%);
}

.project-art {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

.demo-flag {
    position: absolute;
    top: -0.75rem;
    right: -0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--violet);
    border-radius: 999px;
}

.demo-flag--mint { background: #12a583; }

.demo-flag .icon {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 6;
}

.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}

.demo-chat__turn {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 0;
}

.demo-chat__art {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
}

.demo-chat .ask-coach__a { background: var(--surface); }

.demo-chat__input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    color: var(--muted);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 999px;
}

.demo-chat__input i {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    color: #ffffff;
    background: var(--violet);
    border-radius: 50%;
}

.demo-chat__input .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.demo-version.is-current .project-art {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.18);
}

.demo-blocks {
    display: grid;
    gap: 0.625rem;
}

.demo-block {
    display: grid;
    grid-template-columns: auto 7.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--surface);
    border: 2px solid var(--tone-bg);
    border-left: 0.5rem solid var(--tone-solid);
    border-radius: 1rem;
}

.demo-block__icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 0.75rem;
}

.demo-block__icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.demo-block__label {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--tone-ink);
}

.demo-block__value { font-size: 0.9375rem; }

.demo-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.demo-result {
    position: relative;
    padding: 0.625rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.125rem;
}

.demo-result .project-art {
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
}

.demo-result__title {
    display: block;
    margin-bottom: 0.375rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.demo-result.is-picked {
    border-color: var(--mint);
    box-shadow: 0 0 0 4px rgba(31, 200, 160, 0.2);
}

.demo-checks {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.demo-checks li,
.demo-profiles__ok {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.demo-checks .icon {
    width: 1.125rem;
    height: 1.125rem;
    padding: 0.1875rem;
    color: #ffffff;
    background: var(--mint);
    border-radius: 50%;
    stroke-width: 7;
}

.demo-checks .is-missing {
    font-weight: 600;
    color: var(--danger-ink);
}

.demo-checks .is-missing .icon { background: var(--coral); }

.demo-versions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.demo-version {
    position: relative;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
}

.demo-version + .demo-version::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 36%;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 3px solid var(--violet);
    border-right: 3px solid var(--violet);
    transform: rotate(45deg);
}

.demo-version .project-art {
    margin-bottom: 0.375rem;
    border: 2px solid var(--line);
    border-radius: 0.875rem;
}

.demo-version.is-current { color: var(--violet-dark); }

.demo-note {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background: var(--cream);
    border: 2px dashed #f1d9a0;
    border-radius: 1rem;
}

.demo-note strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: #8a5a00;
}

.demo-shelf {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.demo-shelf li { position: relative; }

.demo-shelf .project-art {
    border: 2px solid var(--line);
    border-radius: 0.875rem;
}

.demo-shelf__lock {
    position: absolute;
    right: -0.375rem;
    bottom: -0.375rem;
    display: grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    color: #ffffff;
    background: var(--night);
    border: 2px solid var(--surface);
    border-radius: 50%;
}

.demo-shelf__lock .icon {
    width: 0.8125rem;
    height: 0.8125rem;
    stroke-width: 4;
}

.demo-progress {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 1rem;
    margin: 3.25rem 0 0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1rem;
}

.demo-progress__level {
    font-family: var(--font-display);
    color: var(--violet-dark);
}

.demo-progress__bar {
    flex: 1 1 5rem;
    height: 0.625rem;
    background: var(--violet-soft);
    border-radius: 999px;
    overflow: hidden;
}

.demo-progress__bar i {
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--sky));
    border-radius: inherit;
}

.demo-progress__badges {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: #8a5a00;
}

.demo-progress__badges .icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--sun-dark);
    fill: var(--sun);
}

.demo-progress__export {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 999px;
}

.demo-progress__export .icon {
    width: 1rem;
    height: 1rem;
}

.demo-profiles {
    display: grid;
    gap: 0.5rem;
}

.demo-profiles li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.625rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1rem;
}

.demo-profiles strong {
    margin-inline-end: auto;
    font-family: var(--font-display);
    font-weight: 600;
}

.demo-profiles__ok {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--success-ink);
}

.demo-profiles__ok .icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 6;
}

.demo-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 3rem 0 0;
    padding: 0.75rem 1rem;
    color: #ffffff;
    background: var(--night);
    border-radius: 1rem;
}

.demo-code__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.demo-code__label .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.demo-code__digits {
    display: inline-flex;
    gap: 0.3125rem;
}

.demo-code__digits b {
    display: grid;
    place-items: center;
    width: 1.875rem;
    height: 2.25rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--night);
    background: var(--surface);
    border-radius: 0.5rem;
}

/* Bulles de démonstration : elles apparaissent une à une pendant que Nemo parle */
.pin {
    position: absolute;
    z-index: 2;
    padding: 0.3125rem 0.8125rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--sun);
    border-radius: 999px;
    box-shadow: 0 8px 16px -6px rgba(26, 20, 71, 0.45);
    white-space: nowrap;
}

.pin::after {
    content: "";
    position: absolute;
    left: 1.125rem;
    top: 100%;
    border: 0.4375rem solid transparent;
    border-top-color: var(--sun);
    border-bottom: 0;
}

.tour.is-ready .pin {
    opacity: 0;
    transform: translateY(0.375rem) scale(0.7);
    transform-origin: 1.5rem 100%;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.3, 1.5, 0.6, 1);
}

.tour.is-ready .pin.is-on {
    opacity: 1;
    transform: none;
}

.pin.is-now {
    color: var(--night);
    background: var(--sun);
}

.demo--idea .pin--a { top: 0.5rem; left: 4.5rem; }
.demo--idea .pin--b { top: 5.25rem; right: 2rem; }
.demo--idea .pin--c { bottom: 4.75rem; right: 14%; }

.demo--describe .pin--a { top: 0.5rem; left: 1rem; }
.demo--describe .pin--b { top: 37%; right: 2rem; }
.demo--describe .pin--c { bottom: 4.5rem; right: 2rem; }

.demo--compare .pin--a { top: 0.5rem; left: 36%; }
.demo--compare .pin--b { bottom: 5.5rem; left: 4%; }
.demo--compare .pin--c { top: 5rem; right: 5%; }

.demo--improve .pin--a { top: 0.75rem; right: 4%; }
.demo--improve .pin--b { top: 0.75rem; left: 1rem; }
.demo--improve .pin--c { bottom: 4rem; right: 2.5rem; }

.demo--keep .pin--a { top: 1rem; left: 8%; }
.demo--keep .pin--b { bottom: 5.375rem; left: 1.5rem; }
.demo--keep .pin--c { bottom: 5.375rem; right: 1.5rem; }

.demo--adults .pin--a { top: 0.5rem; left: 1rem; }
.demo--adults .pin--b { bottom: 5.375rem; left: 1.5rem; }
.demo--adults .pin--c { top: 37%; right: 30%; }

.demo--compare .pin--c::after {
    top: auto;
    bottom: 100%;
    border-top: 0;
    border-bottom: 0.4375rem solid var(--sun);
}

.demo--idea .pin--b::after,
.demo--describe .pin--b::after,
.demo--describe .pin--c::after,
.demo--compare .pin--c::after,
.demo--improve .pin--a::after,
.demo--improve .pin--c::after,
.demo--keep .pin--c::after {
    left: auto;
    right: 1.125rem;
}

/* Galerie de projets */
.gallery { gap: 1.5rem; }

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: var(--shadow-lift);
}

.project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.125rem 1.25rem 1.375rem;
}

.project-card__universe {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--violet-dark);
}

.project-card__universe .icon {
    width: 1rem;
    height: 1rem;
}

.project-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.project-card p {
    margin: 0;
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 999px;
}

.chips .icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Parcours par âge */
.ages__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
}

.ages__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5625rem 1.125rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border: 3px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ages__tab .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.ages__tab:hover {
    color: var(--tone-ink);
    transform: translateY(-2px);
}

.ages__tab.is-active {
    background: var(--surface);
    border-color: var(--tone-solid);
    box-shadow: 0 5px 0 var(--tone-solid);
}

.age {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--tone-bg);
    border-radius: 2rem;
}

.age[hidden] { display: none; }
.age + .age { margin-top: 1.5rem; }

.age__band {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tone-ink);
}

.age h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--tone-ink);
}

.age__facts {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
}

.age__facts div {
    padding: 0.875rem 1.125rem;
    background: var(--surface);
    border-radius: 1.125rem;
}

.age__facts dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--tone-ink);
}

.age__facts dt .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.age__facts dd { margin: 0.25rem 0 0; }

.age__example {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem 1rem 1.25rem;
    background: var(--surface);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lift);
    transform: rotate(1.5deg);
}

.age__example-label {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.age__example .project-art { border-radius: 1rem; }

.age__example h4 {
    margin: 0.5rem 0 0;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.2;
}

.age__example p {
    margin: 0;
    color: var(--muted);
}

.age__ideas {
    grid-column: 1 / -1;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--tone-solid);
}

.age__ideas h4 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--tone-ink);
}

.age__ideas ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.age__ideas li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    font-weight: 600;
    background: var(--surface);
    border-radius: 1.5rem;
}

.age__idea-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.625rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 999px;
}

.age__idea-time .icon {
    width: 0.875rem;
    height: 0.875rem;
}

@media (min-width: 60.0625rem) {
    .age { align-items: start; }
    .age__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Les trois appuis du produit */
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem); }

.pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem;
    background: var(--tone-bg);
    border-radius: var(--radius);
}

.pillar .tile__icon {
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    background: var(--surface);
}

@media (max-width: 68rem) {
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
    .pillars { grid-template-columns: minmax(0, 1fr); }

    .pillar {
        flex-direction: row;
        align-items: flex-start;
    }

    .hero__idea-row {
        flex-direction: column;
        border-radius: 1.5rem;
    }

    .hero__idea-row input[type="text"] { padding: 0.75rem 1rem 0.5rem; }
}

.pillar .tile__icon .icon {
    width: 2rem;
    height: 2rem;
}

.pillar h3 {
    margin: 0 0 0.25rem;
    font-size: 1.375rem;
    color: var(--tone-ink);
}

.pillar p { margin: 0; }

/* Niveaux */
.levels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 1rem;
    margin-top: 4.5rem;
}

.level {
    padding: 0 1rem 1.25rem;
    text-align: center;
    background: var(--surface);
    border: 2px solid var(--line);
    border-bottom: 0.5rem solid var(--level-color, var(--violet));
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.level--1 { --level-color: var(--mint); min-height: 10.5rem; }
.level--2 { --level-color: var(--sky); min-height: 12.5rem; }
.level--3 { --level-color: var(--violet); min-height: 14.5rem; }
.level--4 { --level-color: var(--coral); min-height: 16.5rem; }
.level--5 { --level-color: var(--sun); min-height: 18.5rem; }

.level__badge {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: -1.625rem auto 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--level-color);
    border: 4px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 6px 14px -6px rgba(26, 20, 71, 0.5);
}

.level--5 .level__badge { color: var(--night); }

.level h3 {
    margin-bottom: 0.375rem;
    font-size: 1.1875rem;
}

.level p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.levels__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 0;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
}

.levels__note .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--mint);
}

/* Formules */
.plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-top: 0.5rem solid var(--tone-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.plan--featured {
    border-color: var(--violet);
    box-shadow: var(--shadow-lift);
}

.plan--unavailable { opacity: 0.55; }
.plan--unavailable .button { display: none; }

/* Les blocs d'une formule se suivent en colonne, sauf dans une formule en bandeau. */
.plan__head,
.plan__cost { display: contents; }

.plan__flag {
    position: absolute;
    top: -1.25rem;
    left: 50%;
    margin: 0;
    padding: 0.1875rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--night);
    background: var(--sun);
    border-radius: 999px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.plan h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--tone-ink);
}

.plan__tagline {
    min-height: 3.2em;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.plan__people {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.25rem 0 0;
    padding-left: 2px;
}

.plan__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.125rem 0.375rem;
    margin: 0.5rem 0 0;
}

.plan__price strong {
    font-family: var(--font-display);
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1;
    color: var(--night);
}

.plan__price span {
    font-size: 0.8125rem;
    color: var(--muted);
}

.plan__for {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tone-ink);
}

.plan__features {
    display: grid;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding-top: 0.875rem;
    font-size: 0.9375rem;
    border-top: 1px solid var(--line);
}

.plan__features li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem;
}

.plan__features .icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.1875rem;
    color: #12a583;
    stroke-width: 5;
}

.plan__features .plan__includes {
    display: block;
    font-weight: 600;
    color: var(--tone-ink);
}

.plan__detail,
.plan__max {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.plan__extra {
    align-self: flex-start;
    margin: 0.375rem 0 0;
    padding: 0.3125rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 0.75rem;
}

.plan .button {
    margin-top: auto;
    padding-inline: 1rem;
    font-size: 1rem;
    text-align: center;
}

/* Formule en bandeau : elle occupe toute la largeur sous les autres, ses blocs côte à côte. */
@media (min-width: 40.0625rem) {
    .plan--wide {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "head features"
            "cost features"
            "cost button";
        align-items: start;
        gap: 1rem 2rem;
        padding: 1.5rem 1.75rem;
    }

    .plan--wide .plan__head,
    .plan--wide .plan__cost {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .plan--wide .plan__head { grid-area: head; }
    .plan--wide .plan__cost { grid-area: cost; }
    .plan--wide .plan__tagline { min-height: 0; }
    .plan--wide .plan__price { margin-top: 0; }

    .plan--wide .plan__features {
        grid-area: features;
        margin: 0;
        padding-top: 0;
        border-top: 0;
    }

    .plan--wide .button {
        grid-area: button;
        justify-self: start;
        margin-top: 0;
    }
}

@media (min-width: 60.0625rem) {
    .plan--wide {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
        grid-template-areas: "head cost features button";
        align-items: center;
    }

    .plan--wide .button { justify-self: end; }
}

.plans__note {
    margin: 1.5rem 0 0;
    font-size: 0.9375rem;
    text-align: center;
    color: var(--muted);
}

.plans__note--next { margin-top: 0.375rem; }

.calc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    max-width: 32rem;
    margin: 0 auto 3rem;
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
    background: var(--violet-soft);
    border-radius: var(--radius);
}

.calc__label {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
}

.calc__stepper {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.calc__button {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    color: #ffffff;
    background: var(--violet);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 0 var(--violet-dark);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc__button:hover:not(:disabled) { transform: translateY(-2px); }

.calc__button:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--violet-dark);
}

.calc__button:disabled {
    opacity: 0.35;
    cursor: default;
}

.calc__button .icon {
    width: 1.375rem;
    height: 1.375rem;
    stroke-width: 5;
}

.calc__count {
    min-width: 8.5rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--night);
}

.calc__people {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.25rem;
    margin: 0;
}

.calc__hint {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.pricing__notes { margin-top: 3rem; }

.pricing__rule { background: var(--tone-bg); }
.pricing__rule .tile__icon { background: var(--surface); }

.pricing__rule h2 {
    margin-top: 1rem;
    font-size: 1.3125rem;
    color: var(--tone-ink);
}

.pricing__ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin: 3rem 0 0;
    font-family: var(--font-display);
    font-size: 1.1875rem;
}

/* Appel à poser une question */
.ask__inner {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    max-width: 46rem;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background: linear-gradient(135deg, #efecff 0%, #dbeeff 100%);
    border-radius: 2rem;
}

.ask__nemo { animation: cq-float 6s ease-in-out infinite; }
.ask__text h2 { margin-bottom: 0.5rem; }

/* Assistant */
.nemo--floating {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
}

.nemo__launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 1.25rem 0.375rem 0.375rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--night);
    border-radius: 999px;
    box-shadow: 0 5px 0 #0c0930, 0 18px 30px -10px rgba(26, 20, 71, 0.65);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.nemo__launcher:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.nemo__launcher-face {
    width: 3.25rem;
    padding: 0.3125rem 0.375rem 0.125rem;
    background: var(--violet);
    border-radius: 50%;
}

.nemo.is-open .nemo__launcher { display: none; }

/* Pastilles de la voix et du micro, au-dessus du bouton de Nemo */
.nemo--floating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nemo__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.375rem;
    max-width: 17rem;
    margin-bottom: 0.5rem;
}

.nemo__pills[hidden],
.nemo.is-open .nemo__pills { display: none; }

.nemo__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    min-height: 2.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.5rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--night);
    background: var(--surface);
    border: 2px solid var(--night);
    border-radius: 999px;
    box-shadow: 0 3px 0 #0c0930;
    cursor: pointer;
}

.nemo__pill[hidden] { display: none; }

.nemo__pill .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.nemo__pill[aria-pressed="true"] {
    color: #ffffff;
    background: var(--violet);
    border-color: var(--violet);
}

.nemo__pill[aria-pressed="true"] .nemo__icon-off,
.nemo__pill[aria-pressed="false"] .nemo__icon-on { display: none; }

.nemo__pill-hint {
    flex-basis: 100%;
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--night);
    background: #fff4cf;
    border: 2px solid var(--night);
    border-radius: 0.875rem;
}

.nemo__pill-hint[hidden] { display: none; }

/* Lecture à voix haute : ce qui est en train d'être lu se voit, et ne se cache pas sous l'en-tête */
.is-read {
    outline: 3px solid #e0483f;
    outline-offset: 0.1875rem;
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
    scroll-margin-bottom: 5rem;
}

.nemo__panel {
    display: flex;
    flex-direction: column;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(38rem, calc(100vh - 6.5rem));
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: 0 26px 60px -18px rgba(26, 20, 71, 0.6);
    overflow: hidden;
}

.nemo__panel[hidden] { display: none; }

.nemo--inline .nemo__panel {
    width: 100%;
    max-height: none;
    box-shadow: var(--shadow-lift);
}

.nemo__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
}

.nemo__head-face {
    width: 3rem;
    flex: none;
}

.nemo__identity {
    display: grid;
    margin: 0 auto 0 0;
    line-height: 1.2;
}

.nemo__identity strong {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
}

.nemo__identity span {
    font-size: 0.8125rem;
    opacity: 0.85;
}

.nemo__tool {
    display: grid;
    place-items: center;
    width: 2.375rem;
    height: 2.375rem;
    flex: none;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.nemo__tool:hover { background: rgba(255, 255, 255, 0.28); }

.nemo__tool .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.nemo__tool[aria-pressed="true"] {
    color: var(--night);
    background: var(--sun);
}

.nemo__tool[aria-pressed="true"] .nemo__icon-off,
.nemo__tool[aria-pressed="false"] .nemo__icon-on { display: none; }

.nemo__thread {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.625rem;
    min-height: 9rem;
    padding: 1rem;
    background: #f7f5ff;
    overflow-y: auto;
}

.nemo--inline .nemo__thread {
    min-height: 11rem;
    max-height: 22rem;
}

.nemo__msg {
    max-width: 88%;
    margin: 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.9688rem;
    line-height: 1.45;
    border-radius: 1.125rem;
}

.nemo__msg p { margin: 0; }

.nemo__msg--nemo {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-bottom-left-radius: 0.375rem;
}

.nemo__msg--user {
    align-self: flex-end;
    color: #ffffff;
    background: var(--violet);
    border-bottom-right-radius: 0.375rem;
}

.nemo__msg--wait {
    letter-spacing: 0.2em;
    color: var(--muted);
    animation: cq-pulse 1s ease-in-out infinite;
}

.nemo__action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.3125rem 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--violet);
    border-radius: 999px;
    text-decoration: none;
}

.nemo__action:hover {
    color: #ffffff;
    background: var(--violet-dark);
}

.nemo__action .icon {
    width: 1rem;
    height: 1rem;
}

.nemo__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0.625rem 1rem 0;
}

.nemo__chip {
    padding: 0.3125rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.nemo__chip:hover { background: #e0daff; }

.nemo__notice {
    margin: 0.625rem 1rem 0;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    background: var(--cream);
    border: 2px solid #f1e3c2;
    border-radius: 1rem;
}

.nemo__notice p { margin: 0; }

.nemo__notice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 0.625rem !important;
}

.nemo__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
}

.nemo__form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 1rem;
    border-radius: 999px;
}

.nemo__mic,
.nemo__send {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.nemo__mic[hidden] { display: none; }

.nemo__mic .icon,
.nemo__send .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.nemo__send {
    color: #ffffff;
    background: var(--violet);
    box-shadow: 0 3px 0 var(--violet-dark);
}

.nemo__mic {
    color: var(--violet-dark);
    background: var(--violet-soft);
}

.nemo__mic.is-listening {
    color: #ffffff;
    background: var(--coral);
    animation: cq-listen 1.2s ease-out infinite;
}

@keyframes cq-listen {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6); }
    100% { box-shadow: 0 0 0 0.875rem rgba(255, 107, 107, 0); }
}

/* Page d'aide */
.help-hero {
    padding-block: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(160deg, #efecff 0%, #dbeeff 100%);
}

.help-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.help-hero__intro {
    max-width: 30rem;
    font-size: 1.1875rem;
    color: var(--muted);
}

.faq {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
}

.faq__group h3 { margin-bottom: 1rem; }

.faq details {
    margin-bottom: 0.625rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1rem;
}

.faq details[open] { border-color: var(--violet); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

.faq summary::after {
    content: "+";
    flex: none;
    font-family: var(--font-display);
    font-size: 1.375rem;
    line-height: 1;
    color: var(--violet);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--muted);
}

/* Écrans étroits : nouveaux blocs */
@media (max-width: 60rem) {
    .js .site-menu-toggle {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        color: var(--violet-dark);
        background: var(--violet-soft);
        border: 0;
        border-radius: 0.875rem;
        cursor: pointer;
    }

    .js .site-menu-toggle .icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .js .site-menu { display: none; }

    .js .site-menu.is-open {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        max-height: calc(100vh - var(--header-h));
        padding: 0.75rem 1.25rem 1.25rem;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 22px 30px -20px rgba(43, 31, 122, 0.55);
        overflow-y: auto;
    }

    .js .site-menu.is-open .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .js .site-menu.is-open .site-nav__link {
        display: block;
        width: 100%;
        padding: 0.75rem 0.25rem;
        text-align: start;
        border-bottom: 1px solid var(--line);
    }

    .js .site-menu.is-open .site-nav__profile,
    .js .site-menu.is-open .site-nav .button {
        align-self: flex-start;
        margin-block: 0.5rem;
    }

    .js .site-menu.is-open .locale-menu ul {
        position: static;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .js .look__preview {
        position: sticky;
        top: var(--header-h);
        z-index: 3;
        padding-block: 0.5rem;
        background: var(--surface);
    }

    .tour__layout { grid-template-columns: minmax(0, 1fr); }

    .tour__guide {
        position: static;
        display: grid;
        grid-template-columns: 5.5rem minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem 1rem;
        text-align: start;
    }

    .tour__nemo { width: 5.5rem; }

    .tour__caption {
        place-items: center start;
        min-height: 6.5rem;
        font-size: 1.0625rem;
    }

    .tour__caption::before {
        left: -0.625rem;
        top: 50%;
        margin: -0.5625rem 0 0;
        border-top: 0;
        border-bottom: 2px solid var(--line);
    }

    .tour__controls { grid-column: 1 / -1; }

    .age { grid-template-columns: minmax(0, 1fr); }
    .age__example { transform: none; }

    .levels {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .level {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 0 1rem;
        min-height: 0;
        padding: 0.875rem 1rem;
        text-align: start;
        border-bottom-width: 2px;
        border-left: 0.5rem solid var(--level-color);
    }

    .level__badge {
        grid-row: span 2;
        margin: 0;
    }

    .level h3 { margin: 0; }

    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan__tagline { min-height: 0; }

    .help-hero__inner,
    .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
    .demo__body { min-height: 18rem; }

    .demo-block { grid-template-columns: auto minmax(0, 1fr); }
    .demo-block__value { grid-column: 1 / -1; }

    .demo-versions { gap: 1.25rem; }
    .demo-version + .demo-version::before { left: -0.9375rem; }

    .demo-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .pin {
        padding: 0.25rem 0.625rem;
        font-size: 0.8125rem;
    }

    .demo--idea .pin--a { left: 3.5rem; }
    .demo--idea .pin--b { top: 5.5rem; right: 1rem; }
    .demo--idea .pin--c { right: 6%; }

    .demo--compare .demo__body,
    .demo--improve .demo__body,
    .demo--keep .demo__body { padding-bottom: 3.75rem; }

    .demo--compare .pin--b { bottom: 0.875rem; left: 4%; }

    .demo--compare .pin--c {
        top: auto;
        bottom: 0.875rem;
        right: 4%;
    }

    .demo--improve .pin--c { bottom: 0.875rem; right: 8%; }
    .demo--keep .pin--b { bottom: 0.875rem; left: 6%; }
    .demo--keep .pin--c { bottom: 0.875rem; right: 6%; }
    .demo--adults .pin--b { bottom: 7.25rem; }
    .demo-progress { margin-top: 1.25rem; }

    .demo--compare .pin--b::after,
    .demo--improve .pin--c::after,
    .demo--keep .pin--b::after,
    .demo--keep .pin--c::after {
        top: auto;
        bottom: 100%;
        border-top: 0;
        border-bottom: 0.4375rem solid var(--sun);
    }
    .demo--adults .pin--c { right: 6%; }

    .plans { grid-template-columns: minmax(0, 1fr); }

    .ask__inner {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .ask__nemo { width: 7.5rem; }

    .nemo--floating {
        right: 0.75rem;
        bottom: 0.75rem;
        flex-direction: row;
        align-items: flex-end;
        gap: 0.5rem;
    }

    /* Sur un petit écran, les pastilles se rangent à gauche du bouton de Nemo, sur sa ligne */
    .nemo__pills {
        max-width: calc(100vw - 6.25rem);
        margin-bottom: 0.4375rem;
    }

    .nemo__launcher { padding: 0.3125rem; }

    .nemo__launcher-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .nemo__panel { max-height: calc(100vh - 5.5rem); }
}

@media (prefers-reduced-motion: reduce) {
    .tour.is-ready .pin { transform: none; }
}

/* Espace projet */
.muted { color: var(--muted); }

.note {
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #8a5a00;
    background: #fff0bf;
    border-radius: var(--radius-small);
}

/* Fil d'Ariane des pages publiques */
.trail {
    font-size: 0.875rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.trail__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin: 0;
    padding: 0.625rem 0;
    list-style: none;
}

.trail__list li + li::before {
    margin-right: 0.5rem;
    color: var(--muted);
    content: "›";
}

.trail a {
    font-weight: 600;
    text-decoration: none;
}

.trail a:hover,
.trail a:focus-visible { text-decoration: underline; }

.trail [aria-current] { color: var(--muted); }

.crumb { margin: 0 0 1rem; }

.crumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    text-decoration: none;
}

.crumb .icon {
    width: 1rem;
    height: 1rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }
.section-head--spaced { margin-top: 3rem; }

.prose {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.select--short { max-width: 14rem; }

.coach {
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    max-width: 44rem;
    margin: 1.25rem 0 2rem;
}

.coach__art {
    width: 5.5rem;
    flex: none;
    animation: cq-float 6s ease-in-out infinite;
}

.coach__bubble {
    position: relative;
    padding: 0.875rem 1.25rem 1rem;
    background: var(--cream);
    border: 2px solid #f1e3c2;
    border-radius: 1.5rem;
}

.coach__bubble::before {
    content: "";
    position: absolute;
    left: -0.6rem;
    top: 1.75rem;
    width: 1rem;
    height: 1rem;
    background: var(--cream);
    border-left: 2px solid #f1e3c2;
    border-bottom: 2px solid #f1e3c2;
    transform: rotate(45deg);
}

.coach__bubble p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--night);
}

.coach__bubble .coach__name {
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8a5a00;
}

.fold {
    margin-top: 1.5rem;
    padding: 0.875rem 1.125rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
}

.fold summary {
    font-weight: 600;
    cursor: pointer;
}

.fold[open] summary { margin-bottom: 1rem; }
.fold--danger summary { color: var(--danger-ink); }

/* Liste et cartes de projets */
.project-list { gap: 1.25rem; }

.project {
    background: var(--surface);
    border: 2px solid var(--line);
    border-top: 0.5rem solid var(--tone-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

.project__link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 1.25rem;
    color: var(--ink);
    text-decoration: none;
}

.project__link:hover { color: var(--ink); }

.project__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.project__icon,
.project-head__icon,
.kind__icon,
.brief__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: none;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 1rem;
}

.project__icon .icon,
.kind__icon .icon,
.brief__icon .icon {
    width: 1.625rem;
    height: 1.625rem;
}

.project__title {
    font-family: var(--font-display);
    font-size: 1.3125rem;
    font-weight: 600;
    line-height: 1.2;
}

.project__kind,
.project__progress,
.project-head__progress {
    font-size: 0.9375rem;
    color: var(--muted);
}

.progress {
    display: block;
    width: 100%;
    height: 0.625rem;
    margin-top: auto;
    appearance: none;
    background: var(--violet-soft);
    border: 0;
    border-radius: 999px;
    overflow: hidden;
}

.progress::-webkit-progress-bar { background: var(--violet-soft); }

.progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--violet), var(--sky));
    border-radius: 999px;
}

.progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--violet), var(--sky));
    border-radius: 999px;
}

/* Proposer une idée */
.kinds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.75rem;
}

.kind {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0;
    padding: 0.875rem;
    font-weight: 400;
    background: var(--surface);
    border: 3px solid var(--line);
    border-radius: 1.125rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.field .kind { display: flex; }
.kind:hover { transform: translateY(-3px); }

.kind:has(input:checked) {
    background: var(--tone-bg);
    border-color: var(--tone-solid);
}

.kind:has(input:focus-visible) {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}

.kind__name {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
}

.kind__text {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Fiche du projet */
.brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.brief__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.875rem;
    padding: 1.125rem;
    background: var(--surface);
    border: 2px solid var(--tone-bg);
    border-left: 0.5rem solid var(--tone-solid);
    border-radius: 1.25rem;
}

.brief__card .field { margin: 0; }

.brief__card label {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--tone-ink);
}

/* Plan du projet */
.plan-edit {
    display: grid;
    gap: 0.625rem;
    max-width: 48rem;
}

.plan-edit__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 9.5rem 7rem;
    align-items: start;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.125rem;
}

.plan-edit__row.is-done { background: var(--success-bg); }

.plan-edit__row--new {
    background: var(--violet-soft);
    border-style: dashed;
}

.plan-edit__number {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.3125rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 50%;
}

.plan-edit__row--new .plan-edit__number { background: var(--surface); }

.plan-edit__number .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.plan-edit__remove {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.plan-edit__remove input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--coral);
}

/* Maison du projet */
.project-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: clamp(1.125rem, 3vw, 1.75rem);
    background: var(--tone-bg);
    border-radius: 2rem;
}

.project-head__icon {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--surface);
    border-radius: 1.5rem;
}

.project-head__icon .icon {
    width: 2.5rem;
    height: 2.5rem;
}

.project-head__text { flex: 1; min-width: 0; }

.project-head h1 {
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

.project-head__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0 0 0.875rem;
}

.project-head .tag { background: var(--surface); }
.project-head .progress { background: var(--surface); }
.project-head .progress::-webkit-progress-bar { background: var(--surface); }
.project-head__progress { margin: 0.375rem 0 0; }

.project-next { margin: 0 0 2rem; }

.next-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    background: linear-gradient(120deg, var(--violet) 0%, var(--indigo) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.next-stage:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.next-stage__label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sun);
}

.next-stage__title {
    grid-column: 1;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.2;
}

.next-stage__goal {
    grid-column: 1;
    opacity: 0.9;
}

.next-stage .button {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.project-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.project-body__main > section + section { margin-top: 2.5rem; }

.timeline {
    display: grid;
    gap: 0.75rem;
}

.timeline__week {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.125rem;
}

.timeline__week.is-current {
    border-color: var(--sun);
    box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.25);
}

.timeline__label {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--violet-dark);
}

.timeline__stages {
    display: grid;
    gap: 0.5rem;
}

.timeline__stage {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
}

.timeline__stage a { text-decoration: none; }
.timeline__stage a:hover { text-decoration: underline; }
.timeline__stage.is-todo > span:not(.timeline__dot) { color: var(--muted); }
.timeline__stage.is-done a { color: var(--success-ink); }

.timeline__dot {
    display: grid;
    place-items: center;
    width: 1.375rem;
    height: 1.375rem;
    flex: none;
    color: #ffffff;
    background: var(--surface);
    border: 3px solid var(--line);
    border-radius: 50%;
}

.timeline__stage.is-doing .timeline__dot { border-color: var(--sun); background: #fff0bf; }
.timeline__stage.is-done .timeline__dot { border-color: var(--mint); background: var(--mint); }

.timeline__dot .icon {
    width: 0.75rem;
    height: 0.75rem;
    stroke-width: 8;
}

.entry {
    padding: 0.875rem 1rem;
    background: var(--cream);
    border-radius: 1rem;
}

.entry + .entry { margin-top: 0.625rem; }
.entry p { margin: 0; }
.entry p + p { margin-top: 0.25rem; }

.entry__meta {
    font-size: 0.875rem;
    font-weight: 700;
    color: #8a5a00;
}

.sheet {
    padding: 1.25rem;
    background: var(--violet-soft);
    border-radius: var(--radius);
}

.sheet__list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.sheet__list dt {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--violet-dark);
}

.sheet__list dd {
    margin: 0.125rem 0 0;
    overflow-wrap: anywhere;
}

.project-body__side > * + * { margin-top: 1.25rem; }

/* Atelier d'une étape */
.stage {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.stage__goal {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    background: var(--violet-soft);
    border-radius: 1.125rem;
}

.stage__goal strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--violet-dark);
}

.stage__work textarea {
    min-height: 16rem;
    line-height: 1.6;
}

.stage__work--read {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.125rem;
}

.checks,
.journal-form {
    padding: 1.25rem;
    border-radius: var(--radius);
}

.checks { background: var(--success-bg); }

.checks h2,
.journal-form h2 { font-size: 1.25rem; }

.checks ul {
    display: grid;
    gap: 0.5rem;
}

.checks li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
}

.checks .icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.25rem;
    color: var(--success-ink);
    stroke-width: 5;
}

.checks__criteria {
    margin: 1rem 0 0;
    padding-top: 0.875rem;
    font-size: 0.9375rem;
    border-top: 1px solid rgba(12, 106, 78, 0.25);
}

.checks__criteria strong { display: block; }

.journal-form {
    margin-top: 1.25rem;
    background: var(--cream);
    border: 2px solid #f1e3c2;
}

/* Dossier du projet */
.dossier { max-width: 50rem; }

.dossier__head {
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--tone-bg);
    border-radius: 2rem;
}

.dossier__kind {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--tone-ink);
}

.dossier__kind .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.dossier__author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    font-weight: 600;
}

.dossier__section + .dossier__section { margin-top: 2.5rem; }
.dossier__section .sheet__list { padding: 1.25rem; background: var(--violet-soft); border-radius: var(--radius); }
.dossier__stage + .dossier__stage { margin-top: 1.5rem; }

.dossier__stage h3 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dossier__stage h3 span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: none;
    font-size: 1rem;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 50%;
}

.dossier__actions { margin-top: 2.5rem; }

@media (max-width: 60rem) {
    .brief,
    .project-body,
    .stage { grid-template-columns: minmax(0, 1fr); }

    .next-stage { grid-template-columns: minmax(0, 1fr); }

    .next-stage .button {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 0.75rem;
    }
}

@media (max-width: 40rem) {
    .coach { gap: 0.875rem; }
    .coach__art { width: 4rem; }
    .coach__bubble p { font-size: 1.0625rem; }

    .project-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-edit__row { grid-template-columns: auto minmax(0, 1fr); }

    .plan-edit__week,
    .plan-edit__remove { grid-column: 2; }

    .plan-edit__remove { min-height: 0; }
    .timeline__week { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}

@media print {
    .site-header,
    .site-footer,
    .nemo,
    .crumb,
    .trail,
    .dossier__actions,
    .skip-link { display: none !important; }

    body { background: #ffffff; }
    .page { padding: 0; }
    .dossier { max-width: none; }
    .dossier__stage,
    .entry { break-inside: avoid; }
}

/* Question au compagnon pendant une étape */
.ask-coach {
    margin: 0 0 2rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
}

.ask-coach h2 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.ask-coach__hint {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.ask-coach__thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ask-coach__thread:not(:empty) { margin-bottom: 1rem; }

.ask-coach__q,
.ask-coach__a {
    max-width: 88%;
    margin: 0;
    padding: 0.625rem 0.875rem;
    line-height: 1.5;
    border-radius: 1.125rem;
    overflow-wrap: anywhere;
}

.ask-coach__q {
    align-self: flex-end;
    color: #ffffff;
    background: var(--violet);
    border-bottom-right-radius: 0.375rem;
}

.ask-coach__a {
    align-self: flex-start;
    background: var(--cream);
    border: 2px solid #f1e3c2;
    border-bottom-left-radius: 0.375rem;
}

.ask-coach__a.is-waiting {
    color: var(--muted);
    font-style: italic;
}

.ask-coach__listen { font-size: 0.9375rem; }

.ask-coach__form {
    display: flex;
    align-items: flex-end;
    gap: 0.625rem;
}

.ask-coach__form textarea { flex: 1; }
.ask-coach__clear { margin-top: 0.75rem; }

@media (max-width: 40rem) {
    .ask-coach__form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Suivi des projets d'un enfant par le titulaire */
.tag--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.tag--icon .icon {
    width: 1rem;
    height: 1rem;
}

.tag--todo {
    color: var(--muted);
    background: var(--line);
}

.tag--doing {
    color: #8a5a00;
    background: #fff0bf;
}

.tag--done {
    color: var(--success-ink);
    background: var(--success-bg);
}

.profile-card__projects {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--violet-dark);
    text-decoration: none;
    background: var(--violet-soft);
    border-radius: var(--radius-small);
    transition: background-color 0.15s ease;
}

.profile-card__projects:hover {
    color: var(--violet-dark);
    background: #dcd5ff;
}

.profile-card__projects .icon {
    width: 1.125rem;
    height: 1.125rem;
    flex: none;
}

.profile-card__count {
    min-width: 1.75rem;
    margin-left: auto;
    padding: 0 0.5rem;
    font-family: var(--font-display);
    text-align: center;
    background: var(--surface);
    border-radius: 999px;
}

.profile-card__projects + .card__actions { margin-top: 0.875rem; }

.watch-head {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 3.5vw, 2.25rem);
    background: var(--tone-bg);
    border-radius: 2rem;
}

.watch-head__text { min-width: 0; }

.watch-head h1 {
    margin: 0;
    overflow-wrap: anywhere;
}

.watch-head__tags,
.dossier__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.625rem;
}

.dossier__tags { margin: 1rem 0 0; }

.watch-head .tag,
.dossier__tags .tag { background: var(--surface); }

.watch-head .tag--warning { color: var(--danger-ink); }
.watch-head .page-head__intro { color: var(--ink); }

.figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
}

.figures__item {
    display: flex;
    flex-direction: column-reverse;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-left: 0.5rem solid var(--tone-solid);
    border-radius: var(--radius);
}

.figures dt {
    font-weight: 600;
    color: var(--muted);
}

.figures dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--tone-ink);
}

.project__kind + .project__trace { margin-top: auto; }

.project__trace {
    padding-top: 0.625rem;
    font-size: 0.875rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.watch-notes {
    display: grid;
    gap: 0.5rem;
    max-width: 46rem;
    margin: 2.5rem 0 0;
}

.watch-notes li,
.overseen {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.watch-notes .icon,
.overseen .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    color: var(--violet);
}

.overseen { margin: 2.5rem 0 0; }
.overseen--inline { margin: -0.5rem 0 1rem; }

.dossier__stage h3 small { margin-left: auto; }

.dossier__week {
    margin: -0.25rem 0 0.5rem 2.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
}

.talk {
    display: grid;
    gap: 0.625rem;
    margin-top: 1rem;
    padding: 1rem 1.125rem 1.125rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.125rem;
}

.talk h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--violet-dark);
}

.talk__turn {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1875rem;
}

.talk__turn--answer { align-items: flex-start; }

.talk__who {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted);
}

@media (max-width: 40rem) {
    .watch-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .watch-head .avatar--large {
        width: 5rem;
        height: 5rem;
    }

    .dossier__stage h3 { flex-wrap: wrap; }
    .dossier__week { margin-left: 0; }
}

@media print {
    .talk { break-inside: avoid; }
    .ask-coach__q { color: var(--ink); background: var(--violet-soft); }
}

/* Compte du titulaire */
.page-foot--row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.account {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
}

.account > :first-child { grid-row: span 2; }

.account h2 { font-size: 1.375rem; }

.account__facts {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.account__facts dt {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
}

.account__facts dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.625rem;
    margin: 0.125rem 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.account__figure {
    margin: 0 0 0.375rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--violet-dark);
}

.account__action { margin: 1.25rem 0 0.75rem; }

.account__delete {
    grid-column: 1 / -1;
    margin-top: 0;
}

.account__delete .form {
    max-width: 34rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

@media (max-width: 60rem) {
    .account { grid-template-columns: minmax(0, 1fr); }
    .account > :first-child { grid-row: auto; }
}

/* Projet à la une et images réelles de la vitrine */
.project-art--photo {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid var(--line);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    padding: clamp(1.125rem, 3vw, 2rem);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 2rem;
    box-shadow: var(--shadow-lift);
}

.feature__image {
    display: block;
    width: 100%;
    height: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
}

.feature__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.875rem;
}

.feature__thumb {
    display: block;
    height: 100%;
    padding: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    text-decoration: none;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature__thumb:hover {
    color: var(--ink);
    transform: translateY(-2px);
}

.feature__thumb.is-active {
    border-color: var(--violet);
    box-shadow: 0 4px 0 var(--violet);
}

.feature__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.625rem;
}

.feature__thumb span {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    padding: 0.5rem 0.25rem 0.125rem;
}

.feature__thumb b {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--violet);
}

.feature__label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--violet-dark);
}

.feature__label .icon {
    width: 1rem;
    height: 1rem;
}

.feature__text h3 {
    margin: 0 0 0.625rem;
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    line-height: 1.15;
}

.feature__text > p { margin: 0; }
.feature__text .chips { margin-top: 0.875rem; padding-top: 0; }

.feature__text .feature__check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--success-ink);
    background: var(--success-bg);
    border-radius: 1rem;
}

.feature__check .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.feature__text .feature__note,
.age__example .age__example-note {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.project-card--yours {
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
    border-color: transparent;
}

.project-card--yours .project-card__body {
    justify-content: center;
    padding: 1.75rem 1.5rem;
}

.project-card--yours .tile__icon {
    margin-bottom: 0.5rem;
    color: #8a5a00;
    background: var(--sun);
}

.project-card--yours h3 {
    font-size: 1.625rem;
    color: #ffffff;
}

.project-card--yours p { color: #e2deff; }
.project-card--yours .project-card__action { margin-top: 0.75rem; }

@media (max-width: 60rem) {
    .feature { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
    .feature__thumb span {
        flex-direction: column;
        gap: 0;
    }
}

/* Les exemples de la vitrine se disent exemples ; l'idée écrite à l'accueil attend son auteur */
.project-card { position: relative; }

.project-card__tag {
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--violet-dark);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
}

.idea-kept {
    margin-bottom: 1.25rem;
    padding: 1rem 1.125rem;
    background: #fff0bf;
    border-radius: var(--radius-small);
}

.idea-kept p { margin: 0; }

/* En français, les guillemets gardent leurs espaces. */
html[lang="fr"] .idea-kept q { quotes: "«\00a0" "\00a0»"; }

.idea-kept__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: #8a5a00;
}

.idea-kept__title .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.idea-kept .idea-kept__text {
    margin: 0.375rem 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.idea-kept__note {
    font-size: 0.875rem;
    color: #8a5a00;
}

/* Réglage du profil en dialogue */
.dashboard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.setup { max-width: 46rem; }

.setup__past {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.setup__past p { margin: 0; }

.setup__progress {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--violet-dark);
}

.setup__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.setup-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.125rem;
    font: inherit;
    font-size: 1.0625rem;
    text-align: left;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.125rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.setup-option strong {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
}

.setup-option > span {
    font-size: 0.9375rem;
    color: var(--muted);
}

.setup-option:hover {
    border-color: var(--violet);
    transform: translateY(-2px);
}

.setup-option.is-chosen,
.setup-option--check:has(input:checked) {
    background: var(--violet-soft);
    border-color: var(--violet);
}

.setup-option--check {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.setup-option--check input {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    accent-color: var(--violet);
}

.setup-option--check > span {
    font-size: 1.0625rem;
    color: var(--ink);
}

.setup__summary {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.75rem;
    padding: 1.25rem;
    background: var(--violet-soft);
    border-radius: var(--radius);
}

.setup__summary dt {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--violet-dark);
}

.setup__summary dd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin: 0.125rem 0 0;
    font-weight: 600;
}

.setup__summary a {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Préparation d'un projet en dialogue */
.setup-option { position: relative; }

.setup-option strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setup-option strong .icon {
    width: 1.375rem;
    height: 1.375rem;
    flex: none;
    color: var(--tone-ink, var(--violet));
}

.setup-option__flag {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.0625rem 0.625rem;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8a5a00;
    background: #fff0bf;
    border-radius: 999px;
}

.setup__options--short { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }

.setup__form textarea { min-height: 0; }

.setup__restart { margin-top: 2rem; }

/* Plan proposé par le compagnon pendant la préparation */
.proposal {
    margin: 0 0 1.75rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
}

.proposal h2 {
    margin: 0 0 0.875rem;
    font-size: 1.25rem;
}

.proposal--waiting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-color: transparent;
}

.proposal--waiting .icon {
    width: 1.25rem;
    height: 1.25rem;
    animation: cq-pulse 1.6s ease-in-out infinite;
}

.proposal--waiting a { margin-left: auto; }

.proposal__stages {
    display: grid;
    gap: 0.625rem;
    counter-reset: stage;
}

.proposal__stages li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.75rem;
    counter-increment: stage;
}

.proposal__stages li::before {
    content: counter(stage);
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 2rem;
    height: 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 50%;
}

.proposal__stages strong {
    align-self: center;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
}

.proposal__stages span {
    grid-column: 2;
    font-size: 0.9375rem;
    color: var(--muted);
}

.proposal__note {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Code secret d'un profil */
.code-input {
    display: block;
    width: 100%;
    max-width: 12rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    text-align: center;
    -webkit-text-security: disc;
}

.code-door__avatar {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
}

.code-door .chooser__intro { margin-bottom: 1.75rem; }

.code-door__form { max-width: 22rem; }

.code-door__form .field label { text-align: center; }

.code-door__form .code-input { margin-inline: auto; }

.code-door__form .form__actions { justify-content: center; }

.code-door__alert {
    max-width: 30rem;
    margin-inline: auto;
}

.code-door__help {
    max-width: 38rem;
    margin: 1.5rem auto 0;
    color: var(--muted);
}

.form__lead { margin: 0 0 1.25rem; }

.form__second { margin-top: 1rem; }

.setup__secret { margin: -0.5rem 0 1.75rem; }

.setup .form + .form { margin-top: 1.5rem; }

.card__meta--lock {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.card__meta--lock .icon {
    width: 1rem;
    height: 1rem;
    flex: none;
}

/* Textes légaux */
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    width: 100%;
    padding-top: 0.75rem;
    font-size: 0.9375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__legal a { color: #c9c5ee; }

.site-footer__legal a:hover { color: #ffffff; }

.legal { max-width: 50rem; }

.legal__version {
    margin: -0.5rem 0 1.5rem;
    color: var(--muted);
}

.legal__text { margin-top: 2rem; }

.legal__text h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.375rem;
}

.legal__text p,
.legal__text li { line-height: 1.65; }

.legal__text ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.legal__text li { margin-bottom: 0.375rem; }

.legal__text ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    list-style: decimal;
}

.legal__text h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.125rem;
}

/* Mentions que la loi demande de reproduire dans un encadré. */
.legal__text blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    background: var(--cream);
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
}

.legal__text blockquote p:last-child { margin-bottom: 0; }

.legal__text table {
    display: block;
    width: 100%;
    margin: 1rem 0 1.25rem;
    overflow-x: auto;
    font-size: 0.9375rem;
    border-collapse: collapse;
}

.legal__text th,
.legal__text td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--line);
}

.legal__text th { background: var(--violet-soft); }

.legal__pending {
    padding: 0.125rem 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #7a4a00;
    background: #fff1cc;
    border-radius: 0.5rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.legal__nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.legal__nav h2 { font-size: 1.125rem; }

.legal__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account__legal {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account__legal li {
    display: grid;
    gap: 0.125rem;
}

/* Versions du travail d'une étape */
.versions { margin-top: 1.5rem; }

.versions__count {
    margin-inline-start: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
}

.versions__list {
    display: grid;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.versions__list a {
    display: grid;
    gap: 0.125rem;
    padding: 0.75rem 1rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.875rem;
}

.versions__list a:hover { border-color: var(--violet); }

.versions__excerpt {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.versions__restore { margin-top: 1.5rem; }

/* Formule du compte */
.subscription__price { margin: 0.75rem 0; }

.subscription__price strong { font-size: 1.25rem; }

.subscription__features,
.subscription__profiles {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.subscription__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.subscription__features .icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    margin-top: 0.125rem;
    color: var(--mint-dark, var(--violet));
}

.subscription__label {
    margin: 1.25rem 0 0.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--muted);
}

.subscription__meter,
.subscription__profiles li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.75rem;
    margin: 0;
}

.subscription__who {
    min-width: 6rem;
    font-weight: 600;
}

.subscription__meter progress,
.subscription__profiles progress {
    flex: 1 1 8rem;
    height: 0.625rem;
    accent-color: var(--violet);
}

.subscription__gesture { margin-top: 1rem; }

.subscription__plans {
    display: grid;
    gap: 0.625rem;
}

.field .subscription__plan {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.875rem 1rem;
    font-weight: inherit;
    border: 1px solid var(--line);
    border-radius: 0.875rem;
    cursor: pointer;
}

.field .subscription__plan:has(input:checked) {
    border-color: var(--violet);
    background: var(--violet-soft);
}

.subscription__plan input {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    margin-top: 0.125rem;
    accent-color: var(--violet);
}

.subscription__plan > span {
    display: grid;
    gap: 0.125rem;
}

.subscription__packs,
.subscription__payments {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.subscription__packs li,
.subscription__payments li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.subscription__packs li > span,
.subscription__payments li > span:first-child {
    display: grid;
    gap: 0.125rem;
}

.subscription__packs form { margin: 0; }

.subscription__amount {
    font-weight: 700;
    white-space: nowrap;
}

/* Boîte à idées */
.idea-form { max-width: none; }

.ideas__title { margin-top: 2.5rem; }

.ideas {
    display: grid;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.idea {
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
}

.idea--waiting { border-color: var(--sun); }

.idea p { margin: 0; }

.idea__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.625rem;
}

.idea__meta,
.idea__author {
    font-size: 0.875rem;
    color: var(--muted);
}

.idea__author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.idea__author .icon,
.idea-note .icon {
    width: 1.125rem;
    height: 1.125rem;
    flex: none;
}

.idea__points {
    color: #8a5a00;
    background: #fff0bf;
}

.idea .idea__body {
    margin-top: 0.625rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.idea .idea__reply {
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--violet-soft);
    border-radius: 0.875rem;
}

.idea__reply strong {
    display: block;
    font-size: 0.875rem;
    color: var(--violet-dark);
}

.idea__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin: 0.875rem 0 0;
}

.idea__actions form { margin: 0; }

.idea__review {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.idea__review .form__actions { margin-top: 0.75rem; }

.idea-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.idea-note .icon { margin-top: 0.1875rem; }

.idea-news {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.idea-news .icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
}

.idea-rewrite {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
    background: var(--cream);
    border-radius: 0.875rem;
}

.idea-tips {
    display: grid;
    gap: 0.5rem;
    margin: -0.75rem 0 2rem;
    padding: 0;
    list-style: none;
}

.idea-tips li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem;
}

.idea-tips .icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.25rem;
    color: #12a583;
    stroke-width: 5;
}

.idea-discard { margin: 1.5rem 0 0; }

.idea-facts {
    max-width: 46rem;
    margin: 0 0 1.75rem;
}

.idea-facts p { margin: 0; }
.idea-facts .account__figure { margin-top: 0.75rem; }

.idea-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

/* Espace de l'équipe : le champ de recherche et son bouton tiennent sur une ligne. */
.team-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin: 0 0 1.5rem;
}

.team-search .field {
    flex: 1 1 18rem;
    max-width: 30rem;
    margin-bottom: 0;
}

.team-search .form__actions { margin-top: 0; }

/* Journal des actes, lu par l'équipe */
.journal__scroll {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.journal__table {
    width: 100%;
    min-width: 52rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.journal__table th,
.journal__table td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.journal__table thead th {
    font-family: var(--font-display);
    font-weight: 600;
    white-space: nowrap;
    background: #f4f2ff;
}

.journal__table tbody tr:last-child td { border-bottom: 0; }
.journal__table td:first-child { white-space: nowrap; }
.journal__table .card__meta { display: block; }

/* Fiche d'un compte : ce qu'on en sait d'un côté, ce qu'on y fait de l'autre. */
.team-sheet__column {
    display: grid;
    gap: 1.5rem;
}

/* Fiche d'un compte : chaque mesure est un formulaire à part, séparé du précédent. */
.team-measure + .team-measure {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.idea-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 1rem;
    font-weight: 600;
    color: var(--violet-dark);
    text-decoration: none;
    background: var(--violet-soft);
    border-radius: 999px;
}

.idea-tabs a[aria-current="page"] {
    color: #ffffff;
    background: var(--violet);
}

.idea-tabs__count {
    min-width: 1.5rem;
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    text-align: center;
    color: var(--night);
    background: var(--sun);
    border-radius: 999px;
}

/* Compte sans profil, et profil que le titulaire se crée à la demande */
.chooser__start {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin: 0 0 2rem;
}

.chooser__start form { margin: 0; }

.own-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0 0 1.5rem;
}

/* Pages publiques qui présentent une fonction du site */
.feature-hero {
    padding-block: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(160deg, #efecff 0%, #dbeeff 100%);
}

.feature-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.feature-hero h1 { text-wrap: balance; }

.feature-hero__intro {
    max-width: 36rem;
    font-size: 1.1875rem;
    color: var(--muted);
}

.feature-hero .alert { max-width: 36rem; }

.feature-hero__actions,
.feature-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
}

.feature-end {
    justify-content: center;
    margin-top: 3rem;
}

.feature-hero__note {
    font-size: 0.9375rem;
    color: var(--muted);
}

.feature-hero__art { animation: cq-float 6s ease-in-out infinite; }

.feature-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-steps h2 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.3125rem;
}

.feature-steps__number {
    display: grid;
    flex: none;
    place-items: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 50%;
}

/* Lien de parrainage à copier */
.share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 0.75rem 0;
}

.share__link {
    flex: 1 1 16rem;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--cream);
    border: 2px solid var(--line);
    border-radius: 0.875rem;
}

.share__copy { display: none; }
.js .share__copy { display: inline-flex; }

.share__code strong {
    margin-left: 0.375rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

@media (max-width: 60rem) {
    .feature-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .feature-hero__art { display: none; }
}

/* Temps du jour d'un enfant */
.screen-warn { margin-top: 1rem; }
.screen-warn[hidden] { display: none; }

/* Comparaison des formules */
.plans__compare {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.875rem 1.5rem;
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    background: var(--violet-soft);
    border: 2px solid var(--line);
    border-radius: var(--radius);
}

.plans__compare p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--night);
}

.pricing__compare {
    margin: -1rem 0 2rem;
    text-align: center;
}

.compare__axes { margin-bottom: 1.5rem; }

.compare__bundle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: var(--radius-small);
}

.compare__bundle > span:last-child { flex: 1 1 16rem; }

.compare__people {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding-left: 2px;
}

.compare__heading {
    margin: 3rem 0 1rem;
    font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}

.compare__lead {
    max-width: 44rem;
    margin: 0 0 1rem;
    color: var(--muted);
}

.compare__scroll {
    overflow-x: auto;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.compare__scroll:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
}

.compare__table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
}

.compare__table th,
.compare__table td {
    padding: 0.875rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: 0; }

.compare__table thead th {
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-bottom: 0.25rem solid var(--tone-solid);
}

.compare__table tbody th {
    width: 30%;
    font-weight: 600;
    text-align: left;
}

.compare__table--prices tbody th { width: 22%; }

.compare__table strong {
    font-size: 1.125rem;
    white-space: nowrap;
}

.compare__level {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.compare__from {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
}

.compare__more {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
}

.compare__tag {
    display: block;
    width: fit-content;
    margin: 0.25rem auto;
    padding: 0.0625rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 999px;
}

.compare__common {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compare__common li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.compare__common .icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1875rem;
    color: var(--mint);
}

.compare__examples {
    margin: 0;
    padding: 0;
    list-style: none;
}

.compare__examples h3 {
    margin: 0.75rem 0 0.375rem;
    font-size: 1.125rem;
}

.compare__pick {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0.875rem 0 0;
    padding-top: 0.875rem;
    border-top: 1px solid var(--line);
}

.compare__pick strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--tone-ink);
}

.compare__price { font-weight: 700; }

.compare__packs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compare__packs li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 1.125rem;
    background: var(--cream);
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
}

.account__action {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

/* Sur un petit écran, chaque ligne d'un tableau devient son intitulé suivi d'une case par niveau. */
@media (max-width: 40rem) {
    .compare__common { grid-template-columns: minmax(0, 1fr); }

    .compare__scroll { overflow: visible; }

    .compare__table {
        display: block;
        min-width: 0;
    }

    .compare__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .compare__table tbody { display: block; }

    .compare__table tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 0.375rem;
        padding: 0.875rem 0.75rem;
        border-bottom: 1px solid var(--line);
    }

    .compare__table tbody tr:last-child { border-bottom: 0; }

    .compare__table tbody th {
        flex: 0 0 100%;
        width: auto;
        padding: 0 0 0.25rem;
        border: 0;
    }

    .compare__table tbody td {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.375rem 0.125rem;
        font-size: 0.875rem;
        background: var(--tone-bg);
        border: 0;
        border-top: 3px solid var(--tone-solid);
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .compare__table tbody td::before {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.6875rem;
        font-weight: 700;
        color: var(--tone-ink);
        overflow-wrap: anywhere;
        content: attr(data-level);
    }

    .compare__table strong {
        font-size: 0.9375rem;
        white-space: normal;
    }

    .compare__more,
    .compare__tag {
        font-size: 0.6875rem;
        color: var(--ink);
    }

    .compare__tag {
        width: auto;
        padding: 0.0625rem 0.25rem;
        overflow-wrap: anywhere;
        background: var(--surface);
        border-radius: 0.375rem;
    }
}

/* Page de contact */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.contact__main h2 { margin-top: 0; }

/* Le formulaire est déjà dans une carte : il n'en dessine pas une seconde. */
.contact__main .form {
    max-width: none;
    margin-top: 1.25rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}
.contact__main .field__hint a { font-weight: 600; }
.contact__action { margin: 1.5rem 0 0; }

.contact__aside {
    display: grid;
    gap: 1.25rem;
}

.contact__aside .card { padding: 1.25rem; }
.contact__aside a { font-weight: 600; }
.contact__address { overflow-wrap: anywhere; }

@media (max-width: 60rem) {
    .contact { grid-template-columns: minmax(0, 1fr); }
}

/* Tuiles chiffrées : le compte en chiffres et les services du site */
.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.kpis {
    display: grid;
    gap: 0.75rem;
}

.kpi {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--surface);
    border: 2px solid var(--line);
    border-left: 0.375rem solid var(--tone-solid);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi:hover,
.kpi:focus-visible {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.kpi__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 0.75rem;
}

.kpi__icon .icon {
    width: 1.375rem;
    height: 1.375rem;
}

.kpi__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tone-ink);
}

.kpi__figure {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
}

.kpi__label {
    font-size: 0.875rem;
    color: var(--muted);
}

.kpi__hint {
    width: fit-content;
    margin-top: 0.375rem;
    padding: 0.0625rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tone-ink);
    background: var(--tone-bg);
    border-radius: 999px;
}

@media (max-width: 68rem) {
    .account-layout { grid-template-columns: minmax(0, 1fr); }
    .kpis { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .kpi { transition: none; }
    .kpi:hover,
    .kpi:focus-visible { transform: none; }
}

/* Commande : ce qui est commandé d'un côté, sa validation de l'autre */

.order__columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.order__columns h2 { font-size: 1.375rem; }

.order__facts {
    display: grid;
    gap: 0.875rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
}

.order__facts dt {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted);
}

.order__facts dd { margin: 0.125rem 0 0; }

.order__facts + .card__meta { margin-top: 1.25rem; }

.order__price {
    display: block;
    font-size: 1.25rem;
}

.order__form {
    display: grid;
    gap: 1rem;
}

.order__form h2 { margin: 0; }

.order__form .form__actions { margin-top: 0.5rem; }

@media (max-width: 56rem) {
    .order__columns { grid-template-columns: minmax(0, 1fr); }
}

/* Rétractation : la fonction publique et le choix du contrat par le titulaire */

.withdrawal,
.withdrawal__main {
    display: grid;
    gap: 1.5rem;
}

.withdrawal { max-width: 46rem; }

.withdrawal h2,
.withdrawal__main h2,
.contact__aside h2 { font-size: 1.375rem; }

.withdrawal__form {
    display: grid;
    gap: 1.25rem;
}

.withdrawal__form legend {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.withdrawal__orders {
    display: grid;
    gap: 0.75rem;
}

/* Le libellé d'un champ est un bloc en gras : celui-ci est une case entière, à lire. */
.withdrawal__orders .withdrawal__order {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem 1.125rem;
    font-weight: 400;
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
    cursor: pointer;
}

.withdrawal__orders .withdrawal__order:has(input:checked) {
    border-color: var(--violet);
    background: var(--violet-soft);
}

.withdrawal__order input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--violet);
}

.withdrawal__order > span {
    display: grid;
    gap: 0.25rem;
}

.withdrawal__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0.375rem 0;
}

.subscription__amount .card__meta {
    display: block;
    font-weight: 400;
    white-space: normal;
    text-align: right;
}

/* Espace de l'équipe : ce que dit une déclaration, puis les commandes qui peuvent lui correspondre */

.notice__stated p { margin: 0 0 0.25rem; }

.notice__orders { margin: 1.25rem 0 0; }

/* Résiliation : les trois temps de la démarche */

.path-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: path;
}

.path-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem 0.375rem 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    counter-increment: path;
}

.path-steps li::before {
    content: counter(path);
    display: grid;
    place-items: center;
    width: 1.625rem;
    height: 1.625rem;
    font-size: 0.8125rem;
    color: var(--violet-dark);
    background: var(--violet-soft);
    border-radius: 50%;
}

.path-steps li[aria-current="step"] {
    color: var(--ink);
    border-color: var(--violet);
}

.path-steps li[aria-current="step"]::before {
    color: #ffffff;
    background: var(--violet);
}

.order__facts + p { margin-top: 1.25rem; }

/* Pages de présentation : parents, mission, groupes */
.section--tint { background: linear-gradient(160deg, #efecff 0%, #dbeeff 100%); }

.feature-steps h3 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.3125rem;
}

.pricing__rule h3 {
    margin-top: 1rem;
    font-size: 1.3125rem;
    color: var(--tone-ink);
}

.promises + .section__more,
.grid + .section__more,
.faq + .section__more { margin-top: 2.5rem; }

.faq--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 46rem;
    margin-inline: auto;
}

.facts-table { min-width: 34rem; }

.facts-table th,
.facts-table td {
    text-align: left;
    vertical-align: top;
}

.facts-table tbody th {
    width: 18%;
    white-space: nowrap;
}

/* Sur un petit écran, ces tableaux se replient comme les autres : rien ne dépasse de la page. */
@media (max-width: 40rem) {
    .facts-table { min-width: 0; }

    .facts-table tbody th { white-space: normal; }
}

.pledge { border-top: 6px solid var(--tone-solid); }

.pledge h3 {
    font-size: 1.3125rem;
    color: var(--tone-ink);
}

.pledge ul {
    display: grid;
    gap: 0.875rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.pledge li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pledge .icon {
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.125rem;
    color: var(--tone-solid);
}

.story { max-width: 46rem; }

.story h2 { margin-bottom: 1rem; }

.story p {
    font-size: 1.125rem;
    color: var(--muted);
}

.story__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.feature-end--text {
    flex-direction: column;
    margin-top: 0;
    text-align: center;
}

.feature-end--text p {
    max-width: 36rem;
    color: var(--muted);
}

/* Tarifs : garanties et cas courants */
.guarantees {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: -1rem auto 1.75rem;
    padding: 0;
    max-width: 56rem;
    font-size: 0.9375rem;
    font-weight: 600;
    list-style: none;
}

.guarantees li {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
}

.guarantees .icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--success-ink);
}

.guarantees + .pricing__compare { margin-top: 0; }

.cases {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.625rem;
    margin: 0 0 1.5rem;
}

.cases__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.cases__pick {
    padding: 0.375rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--violet-dark);
    text-decoration: none;
    background: var(--violet-soft);
    border-radius: 999px;
}

.cases__pick:hover,
.cases__pick[aria-current="true"] {
    color: #ffffff;
    background: var(--violet);
}

/* Films de présentation */
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 2rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.videos--single {
    max-width: 46rem;
    margin-inline: auto;
}

.video { margin: 0; }

.video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--night);
    border-radius: 1rem;
    box-shadow: 0 0.75rem 2rem rgba(29, 27, 58, 0.14);
}

.video figcaption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    margin-top: 0.875rem;
}

.video figcaption strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
}

.video__time {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.video__time .icon {
    width: 1rem;
    height: 1rem;
}

.video__text {
    grid-column: 1 / -1;
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Pages par tranche d'âge */
.feature-hero__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--violet-dark);
}

.age__more {
    margin: 1rem 0 0;
    font-weight: 600;
}

.age__more a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--tone-ink);
}

.age__more .icon {
    width: 1.125rem;
    height: 1.125rem;
}

.age + .levels__note { margin-top: 1.75rem; }

.ages__tabs--links { margin-bottom: 0; }

/* Attestation d'un projet terminé */
.certificate {
    padding: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    background: var(--surface);
    border: 3px solid var(--tone-solid);
    border-radius: 2rem;
    box-shadow: inset 0 0 0 0.5rem var(--tone-bg);
}

.certificate__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.certificate__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tone-ink);
}

.certificate h1 { text-wrap: balance; }

.certificate__author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    font-size: 1.1875rem;
}

.certificate__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 36rem;
    margin: 2rem auto;
    text-align: left;
}

@media (max-width: 30rem) {
    .certificate__facts { grid-template-columns: minmax(0, 1fr); }
}

.certificate__facts div {
    padding: 0.875rem 1rem;
    background: var(--tone-bg);
    border-radius: 1rem;
}

.certificate__facts dt {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tone-ink);
}

.certificate__facts dd { margin: 0.25rem 0 0; }

.certificate h2 { font-size: 1.25rem; }

.certificate__steps {
    display: inline-grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    text-align: left;
    list-style: none;
}

.certificate__steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.certificate__steps .icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1875rem;
    color: var(--tone-solid);
}

.certificate__note {
    max-width: 38rem;
    margin: 2rem auto 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.dossier__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media print {
    .certificate {
        box-shadow: none;
        break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* La suite d'une idée écrite sur l'accueil */
.feature-hero .idea-kept {
    max-width: 36rem;
    margin: 1.25rem 0;
}

.idea-next__questions {
    display: grid;
    gap: 0.375rem;
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    font-weight: 600;
}

.feature-end--text .button { margin-top: 0.5rem; }

.idea-next__end { margin-top: 2.5rem; }

/* Page « Besoin d'aide ? » */
.help-urgent {
    max-width: 36rem;
    margin-top: 1.25rem;
    font-weight: 700;
}

.help-lines {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
}

.help-country h3 { font-size: 1.25rem; }

.help-country ul {
    display: grid;
    gap: 1rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.help-country li {
    display: grid;
    gap: 0.125rem;
}

.help-line__number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--violet-dark);
    text-decoration: none;
}

.help-line__name { font-weight: 600; }

.help-line__facts {
    font-size: 0.875rem;
    color: var(--muted);
}

.help-line--urgent {
    padding-top: 0.875rem;
    border-top: 1px dashed var(--line);
}

.help-line--urgent .help-line__number { color: var(--danger-ink); }

.site-footer__legal .site-footer__help { font-weight: 700; }

.section__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Fiches à imprimer */
.sheet-print {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 1.5rem;
}

.sheet-print__head {
    margin-bottom: 1.5rem;
    text-align: center;
}

.sheet-print__head .certificate__brand { margin-bottom: 0.75rem; }
.sheet-print__head p:last-child { color: var(--muted); }

.sheet-print__field { margin-top: 1.25rem; }
.sheet-print__field h2 { margin-bottom: 0.125rem; font-size: 1.0625rem; }

.sheet-print__hint {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.sheet-print__lines--1 { --lines: 1; }
.sheet-print__lines--2 { --lines: 2; }
.sheet-print__lines--3 { --lines: 3; }

.sheet-print__lines {
    height: calc(var(--lines, 2) * 2.25rem);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.25rem - 1px), #8f8ca8 calc(2.25rem - 1px), #8f8ca8 2.25rem);
}

.sheet-print__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
}

.sheet-print__rules {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.75rem;
    list-style: decimal;
    font-size: 1.125rem;
    font-weight: 600;
}

.sheet-print__box {
    height: 5.5rem;
    margin-top: 0.5rem;
    border: 1px solid #8f8ca8;
    border-radius: 0.75rem;
}

.sheet-print__next,
.sheet-print__date { margin: 1.5rem 0 0; font-weight: 600; }

.sheet-print__foot {
    margin: 1.75rem 0 0;
    font-size: 0.8125rem;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 34rem) {
    .sheet-print__pair { grid-template-columns: minmax(0, 1fr); }
}

@media print {
    .sheet-print {
        padding: 0;
        border: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Ressources : guides, lexique, comparaison, vacances */
.guide-card h2 { font-size: 1.3125rem; }
.guide-card h2 a { color: inherit; text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; }

.guide__summary {
    margin-top: 1rem;
    font-size: 1.1875rem;
    color: var(--muted);
}

.guide .legal__text a { overflow-wrap: anywhere; }

.guide__end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 2.5rem;
}

.glossary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
    margin: 0;
}

.glossary dt {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--violet-dark);
}

.glossary dd { margin: 0.375rem 0 0; }

.compare__scroll + .levels__note { margin-top: 1.75rem; }

.holiday-ideas h3 { font-size: 1.125rem; }
