@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Fuzzy Bubbles';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/fuzzy-bubbles-700.woff2') format('woff2');
}

:root {
    --fond-milieu: #FFFEFA;
    --carte: #FFFFFF;
    --bordure: #E5E4E7;
    --ombre: 0 4px 24px rgb(30 29 58 / 7%);
    --texte: #1E1D3A;
    --texte-second: #4B4A78;
    --accent: #DE4500;
    --sur-titre: #BB2700;
    --bouton: #FF8A5E;
    --bouton-survol: #FFB193;
    --bouton-texte: #090621;
    --case: #1E1D3A;
    --case-texte: #FFFFFF;
    --case-unite: #DBDDFF;
    --pastel-lavande: #DBDDFF;
    --pastel-bleu: #BFE1FF;
    --pastel-rouge: #FFD5D1;
    --pastel-menthe: #B8EBCC;
    --pastel-jaune: #F6E28A;
    --pastel-orange: #FFD5C2;
    --pastel-rose: #F9D5E0;
    --gouttiere: clamp(20px, 5vw, 96px);
    --police: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --police-manuscrite: 'Fuzzy Bubbles', 'Comic Sans MS', cursive;

    color-scheme: light;
}

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

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--fond-milieu);
    color: var(--texte);
    font-family: var(--police);
    font-size: 1rem;
    line-height: 1.6;
}

h1,
h2,
h3,
p,
ul,
figure {
    margin: 0;
}

img {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

a:hover {
    color: var(--accent);
}

:where(a, button, summary, video):focus-visible {
    outline: 3px solid var(--texte);
    outline-offset: 3px;
    border-radius: 4px;
}

.page {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 48px;
    min-block-size: 100svh;
    overflow: hidden;
    padding: 24px var(--gouttiere) 32px;
    background:
        radial-gradient(circle at 8% 18%, rgb(255 131 93 / 15%), transparent 24%),
        radial-gradient(circle at 92% 10%, rgb(79 160 220 / 14%), transparent 30%),
        radial-gradient(circle at 78% 88%, rgb(98 189 146 / 11%), transparent 24%),
        linear-gradient(140deg, #FFFAF4 0%, #FFFEFA 55%, #F4F1FF 100%);
}

.carte {
    border-radius: 16px;
    background: var(--carte);
    box-shadow: var(--ombre);
}

.sur-titre {
    color: var(--sur-titre);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.entete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    inline-size: 100%;
    max-inline-size: 78rem;
    margin-inline: auto;
}

.marque {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.marque__lien {
    display: block;
    border-radius: 8px;
}

.marque__logo {
    inline-size: clamp(170px, 18vw, 220px);
}

.marque__signature {
    color: #353554;
    font-size: 0.875rem;
    font-weight: 700;
}

.statut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #FFF6EE;
    color: #911800;
    font-size: 0.875rem;
    font-weight: 700;
}

.statut::before {
    content: '';
    inline-size: 8px;
    block-size: 8px;
    border-radius: 50%;
    background: var(--bouton);
}

.principal {
    display: grid;
    gap: 48px;
    inline-size: 100%;
    max-inline-size: 78rem;
    margin-inline: auto;
}

.hero {
    display: grid;
    gap: 48px;
}

.hero__texte {
    display: grid;
    align-content: start;
    gap: 24px;
}

.appel {
    margin-block-start: 8px;
    gap: 16px;
}

.titre {
    font-size: clamp(2rem, 1.6087rem + 1.7391vw, 3rem);
    font-weight: 900;
    line-height: 1.22;
}

.titre__accent {
    color: var(--accent);
    font-family: var(--police-manuscrite);
    font-weight: 700;
    line-height: 1;
}

.intro {
    display: grid;
    gap: 8px;
    max-inline-size: 38rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.intro strong {
    font-weight: 700;
}

.appel {
    display: flex;
    flex-direction: column;
}

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 52px;
    padding: 12px 32px;
    border-radius: 999px;
    background: var(--bouton);
    color: var(--bouton-texte);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.bouton:hover {
    background: var(--bouton-survol);
    color: var(--bouton-texte);
}

.bouton-secondaire{
    background: transparent;
    border: 2px solid var(--bouton);
}
.bouton-secondaire:hover{
    border-color: var(--bouton-survol);
}

.bouton svg{
    width: 1.2rem;
    margin-left: 0.3rem;
}

.hero__medias {
    display: grid;
    align-content: start;
    gap: 16px;
}

.compteur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    padding: 16px 24px;
}

.compteur__date {
    display: grid;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
}

.compteur__libelle {
    color: var(--texte-second);
    font-size: 0.8125rem;
    font-weight: 400;
}

.compteur__cases {
    display: grid;
    grid-template-columns: repeat(3, 4.75rem);
    gap: 8px;
}

.compteur__case {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px 4px;
    border-radius: 8px;
    background: var(--case);
}

.compteur__nombre {
    color: var(--case-texte);
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.compteur__unite {
    color: var(--case-unite);
    font-size: 0.8125rem;
    font-weight: 400;
}

.video {
    display: grid;
    gap: 8px;
    padding: 8px;
}

.video__lecteur {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: var(--case);
}

.video__legende {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding: 0 8px 4px;
    color: var(--texte-second);
    font-size: 0.8125rem;
}

.transcription[open] {
    flex-basis: 100%;
}

.transcription summary {
    display: block;
    inline-size: fit-content;
    list-style: none;
    color: var(--texte);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
    cursor: pointer;
}

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

.transcription__texte {
    display: grid;
    gap: 8px;
    margin-block-start: 8px;
    padding: 16px;
    border-radius: 8px;
    background: var(--carte);
    color: var(--texte);
    font-size: 0.875rem;
}

.univers-bloc {
    display: grid;
    gap: 12px;
    padding: clamp(20px, 3vw, 40px);
}

.univers-bloc__titre {
    max-inline-size: 48rem;
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 900;
    line-height: 1.2;
}

.univers-bloc__liste {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-block-start: 20px;
    padding: 0;
    list-style: none;
}

.univers {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
}

.univers__icone {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    inline-size: 36px;
    block-size: 36px;
    border-radius: 8px;
}

.univers__icone svg {
    inline-size: 18px;
    block-size: 18px;
}

.univers__icone--lavande {
    background: var(--pastel-lavande);
}

.univers__icone--bleu {
    background: var(--pastel-bleu);
}

.univers__icone--rouge {
    background: var(--pastel-rouge);
}

.univers__icone--menthe {
    background: var(--pastel-menthe);
}

.univers__icone--jaune {
    background: var(--pastel-jaune);
}

.univers__icone--orange {
    background: var(--pastel-orange);
}

.univers__icone--rose {
    background: var(--pastel-rose);
}

.pied {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    inline-size: 100%;
    max-inline-size: 78rem;
    margin-inline: auto;
    color: var(--texte-second);
    font-size: 0.875rem;
}

.pied__liens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding: 0;
    list-style: none;
}

.evitement {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-start: 8px;
    z-index: 10;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--texte);
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
}

.evitement:focus {
    transform: none;
}

.visuellement-masque,
.ada-visuellement-masque {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.legal {
    inline-size: 100%;
    max-inline-size: 45rem;
    margin: clamp(8px, 2.5vw, 36px) auto clamp(24px, 6vw, 64px);
    padding: clamp(24px, 4vw, 48px);
    border-radius: 16px;
    background: var(--carte);
    box-shadow: var(--ombre);
}

.legal h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 900;
    line-height: 1.02;
}

.legal h2 {
    margin-block-start: 48px;
    font-size: 1.1875rem;
    font-weight: 900;
}

.legal h3 {
    margin-block-start: 24px;
    font-size: 1rem;
    font-weight: 700;
}

.legal p,
.legal ul {
    margin-block-start: 12px;
}

.legal__retour {
    display: inline-block;
    margin-block-end: 24px;
    font-weight: 700;
}

.tableau {
    margin-block-start: 12px;
    overflow-x: auto;
}

.tableau table {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tableau th,
.tableau td {
    padding: 8px 12px;
    border-block-end: 1px solid var(--bordure);
    text-align: start;
    vertical-align: top;
}

.completer {
    padding-inline: 4px;
    background: var(--pastel-rouge);
}

@media (min-width: 48rem) {
    .appel {
        justify-items: start;
        grid-auto-flow: column;
        flex-direction: row;
    }

    .univers-bloc__liste {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .univers {
        display: grid;
        align-content: start;
        font-size: 1rem;
        font-weight: 700;
    }

    .univers__icone {
        inline-size: 44px;
        block-size: 44px;
    }

    .univers__icone svg {
        inline-size: 22px;
        block-size: 22px;
    }

    .pied {
        justify-content: space-between;
    }
}

@media (min-width: 60rem) {
    .entete {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .entete--centre {
        justify-content: center;
    }

    .hero {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 72px;
    }
}
