:root {
    --fond: #cfd7de;
    --fond-secondaire: #eef2f5;
    --carte: rgba(255, 255, 255, 0.78);
    --bordure: rgba(70, 82, 95, 0.15);
    --texte: #2d3748;
    --texte-doux: #586474;
    --accent: #71879e;
    --accent-fonce: #32475d;
    --ombre: 0 24px 50px rgba(45, 55, 72, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 18px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--texte);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 26%),
        linear-gradient(180deg, #e8edf1 0%, #d6dde4 45%, #c6cfd8 100%);
    overflow-x: hidden;
}

body.accueil {
    padding-top: 48px;
}

body[data-theme="orage"] {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 24%),
        linear-gradient(180deg, #c9d2db 0%, #b8c2cb 45%, #a7b1bb 100%);
}

body[data-theme="pluie"] {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.48), transparent 24%),
        linear-gradient(180deg, #dde4ea 0%, #c9d3dc 45%, #b8c4cf 100%);
}

body[data-theme="gris"] {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(180deg, #e4e8ec 0%, #d2d8de 45%, #c5ccd4 100%);
}

body.apocalypse {
    animation: apocalypse-fond 0.7s linear infinite;
}

body.mode-nuit {
    color: #e3e7eb;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #1f2a34 0%, #1b232b 50%, #161d24 100%);
}

body.mode-nuit .container {
    border-color: rgba(200, 210, 220, 0.12);
    background:
        linear-gradient(180deg, rgba(44, 56, 68, 0.92), rgba(30, 40, 50, 0.96)),
        #1f2a34;
    box-shadow: 0 24px 60px rgba(5, 10, 15, 0.4);
}

body.mode-nuit .carte,
body.mode-nuit .mini-carte {
    background: rgba(42, 54, 66, 0.78);
    border-color: rgba(190, 205, 220, 0.1);
}

body.mode-nuit nav a {
    background: rgba(50, 62, 74, 0.7);
    color: #d9e1e8;
    border-color: rgba(200, 210, 220, 0.14);
}

body.mode-nuit nav a:hover,
body.mode-nuit nav a[aria-current="page"] {
    background: #60758a;
    color: #fff;
}

body.mode-nuit a {
    color: #9bb1c8;
}

body.mode-nuit .nav-search {
    background: linear-gradient(135deg, rgba(50, 62, 74, 0.85), rgba(34, 44, 54, 0.95));
    border-color: rgba(200, 210, 220, 0.22);
    box-shadow: 0 12px 28px rgba(5, 10, 15, 0.35);
}

body.mode-nuit .nav-search::before {
    background: radial-gradient(circle at 15% 30%, rgba(120, 150, 180, 0.35), transparent 60%);
}

body.mode-nuit .nav-search::after {
    border-color: rgba(200, 210, 220, 0.2);
}

body.mode-nuit .nav-search button {
    background: linear-gradient(135deg, #6b8096, #516478);
}

body.mode-nuit .nav-suggestions {
    background: linear-gradient(180deg, rgba(26, 34, 42, 0.98), rgba(30, 40, 50, 0.98));
    border-color: rgba(160, 180, 200, 0.26);
}

body.mode-nuit .nav-suggestion span {
    color: rgba(220, 230, 240, 0.7);
}

body.mode-nuit .nav-icon {
    border-color: rgba(210, 224, 240, 0.65);
}

body.mode-nuit .nav-icon::after {
    background: rgba(210, 224, 240, 0.65);
}

body.mode-nuit .nav-clear {
    background: rgba(160, 180, 200, 0.22);
}

body.mode-nuit .nav-clear::before,
body.mode-nuit .nav-clear::after {
    background: rgba(210, 224, 240, 0.75);
}

body.mode-nuit .nav-suggestion-title {
    color: rgba(200, 214, 230, 0.7);
}

body.mode-nuit .nav-suggestions mark {
    background: rgba(140, 170, 200, 0.35);
}

body.mode-nuit .nav-suggestion::before {
    background: rgba(140, 170, 200, 0.28);
}

body.mode-nuit .nav-suggestion-action {
    background: rgba(140, 170, 200, 0.22);
}

body.mode-nuit .nav-suggestion-clear {
    border-color: rgba(140, 170, 200, 0.45);
}

body.mode-nuit .zone-pub {
    background: linear-gradient(180deg, rgba(45, 58, 70, 0.8), rgba(35, 45, 56, 0.95));
    border-color: rgba(160, 180, 200, 0.2);
}

.theme-toggle {
    margin-top: 14px;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 36px;
    border: 1px solid var(--bordure);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(233, 238, 243, 0.92)),
        var(--fond-secondaire);
    box-shadow: var(--ombre);
}

nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

nav a {
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--accent-fonce);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(86, 107, 129, 0.16);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a[aria-current="page"] {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(230, 236, 242, 0.9));
    border: 1px solid rgba(86, 107, 129, 0.22);
    box-shadow: 0 10px 22px rgba(70, 84, 102, 0.12);
    position: relative;
    overflow: visible;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
}

.nav-search::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.65), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.nav-search::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(86, 107, 129, 0.15);
    opacity: 0.5;
    pointer-events: none;
}

.nav-search > :not(.nav-suggestions) {
    position: relative;
    z-index: 1;
}

.nav-search.is-open {
    box-shadow: 0 16px 34px rgba(70, 84, 102, 0.18);
}

.nav-search.is-typing {
    border-color: rgba(86, 107, 129, 0.46);
}

.nav-search:focus-within::before {
    opacity: 1;
}

.nav-search-enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(223, 231, 239, 0.95));
}

.nav-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(50, 71, 93, 0.65);
    position: relative;
    flex-shrink: 0;
}

.nav-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: rgba(50, 71, 93, 0.65);
    transform: rotate(45deg);
}

.nav-search input {
    border: 0;
    background: transparent;
    outline: none;
    font-family: inherit;
    color: var(--accent-fonce);
    width: 170px;
    min-width: 120px;
    font-weight: 700;
    transition: width 0.2s ease;
}

.nav-clear {
    border: 0;
    background: rgba(90, 108, 128, 0.15);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-clear::before,
.nav-clear::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: rgba(50, 71, 93, 0.7);
}

.nav-clear::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-clear::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-search.has-value .nav-clear {
    opacity: 1;
    pointer-events: auto;
}

.nav-clear:hover {
    transform: scale(1.05);
}

.nav-search button {
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #7f93a8, #55697d);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(71, 88, 108, 0.22);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(71, 88, 108, 0.28);
}

.nav-search input::placeholder {
    color: rgba(50, 71, 93, 0.62);
    font-weight: 600;
}

.nav-search:focus-within {
    border-color: rgba(86, 107, 129, 0.4);
    box-shadow: 0 12px 28px rgba(70, 84, 102, 0.18);
    transform: translateY(-1px);
}

.nav-search:focus-within input {
    width: 210px;
}

.nav-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 241, 246, 0.98));
    border-radius: 16px;
    border: 1px solid rgba(86, 107, 129, 0.22);
    box-shadow: 0 18px 36px rgba(70, 84, 102, 0.2);
    display: none;
    z-index: 10;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
    backdrop-filter: blur(8px);
}

.nav-suggestions.visible {
    display: block;
    animation: nav-drop 0.18s ease;
}

.nav-suggestion {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--accent-fonce);
    position: relative;
}

.nav-suggestion::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: rgba(114, 136, 158, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.nav-suggestion-title {
    padding: 10px 14px 6px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(70, 84, 102, 0.65);
    font-weight: 700;
}

.nav-suggestion-recent span,
.nav-suggestion-word span {
    font-weight: 700;
}

.nav-suggestion-empty {
    padding: 12px 14px;
    color: var(--texte-doux);
}

.nav-suggestion strong {
    font-weight: 700;
}

.nav-suggestion span {
    font-size: 0.92rem;
    color: var(--texte-doux);
}

.nav-suggestion:hover {
    background: rgba(114, 136, 158, 0.14);
}

.nav-suggestion.active {
    background: rgba(114, 136, 158, 0.2);
}

.nav-suggestion:hover::before,
.nav-suggestion.active::before {
    opacity: 1;
    background: rgba(114, 136, 158, 0.55);
}

.nav-suggestion-action {
    margin: 6px 10px 10px;
    border-radius: 999px;
    background: rgba(114, 136, 158, 0.16);
    text-align: center;
    font-weight: 700;
}

.nav-suggestion-action:hover {
    background: rgba(114, 136, 158, 0.26);
}

.nav-suggestion-clear {
    border: 1px dashed rgba(114, 136, 158, 0.45);
    cursor: pointer;
}

.nav-suggestions mark {
    background: rgba(120, 145, 170, 0.35);
    color: inherit;
    border-radius: 6px;
    padding: 0 3px;
}

.search-preview {
    display: inline-block;
    margin-top: 4px;
    color: var(--texte-doux);
    font-size: 0.95rem;
}

.hero,
.citation-large {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.hero {
    position: relative;
    padding: 22px 24px 28px;
    border: 1px solid rgba(83, 102, 122, 0.12);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(224, 231, 237, 0.72));
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 97, 117, 0.35), transparent);
}

.page-header {
    text-align: center;
    margin-bottom: 28px;
}

.surtitre {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--texte-doux);
}

h1,
h2 {
    color: var(--accent-fonce);
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

p,
blockquote {
    font-size: 1.05rem;
    line-height: 1.75;
}

.intro {
    max-width: 42rem;
    color: var(--texte-doux);
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    color: var(--accent-fonce);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(96, 117, 137, 0.8);
    outline-offset: 2px;
}

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

img {
    display: block;
    max-width: 100%;
    border-radius: 18px;
}

#bourriquetImage,
.citation-large img {
    width: min(100%, 380px);
    justify-self: center;
    box-shadow: 0 18px 35px rgba(80, 96, 115, 0.2);
    transition: transform 0.25s ease;
    filter: saturate(0.86) contrast(0.96);
}

.carte,
.mini-carte {
    border: 1px solid rgba(83, 102, 122, 0.1);
    border-radius: 22px;
    background: var(--carte);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 30px rgba(70, 84, 102, 0.08);
}

.carte {
    padding: 24px;
    margin-top: 22px;
}

.mini-carte {
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-carte:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(70, 84, 102, 0.12);
    border-color: rgba(83, 102, 122, 0.18);
}

.mini-carte h2 {
    position: relative;
    padding-bottom: 10px;
}

.mini-carte h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 1px;
    background: rgba(80, 97, 117, 0.35);
}

.grille,
.liste-citations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.sommaire-rapide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sommaire-rapide a {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(83, 102, 122, 0.14);
    background: rgba(255, 255, 255, 0.65);
    color: var(--accent-fonce);
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sommaire-rapide a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(70, 84, 102, 0.12);
}

.carte-centree {
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.zone-bouton {
    min-height: 320px;
    padding-bottom: 170px;
}

#boutonFuyant {
    position: absolute;
    margin-top: 0;
}

.bouton {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #8da2b7, #607589);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.05s linear, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(71, 88, 108, 0.24);
}

.bouton:hover {
    transform: translateY(-2px);
}

.bouton-secondaire {
    font-size: 0.95rem;
    padding: 10px 20px;
}

.pile-boutons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.liste-simple {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.jauge {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(90, 109, 129, 0.15);
    overflow: hidden;
}

.jauge span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7f93a8, #5d7387);
    transition: width 0.2s ease;
}

.pluie {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

.goutte {
    position: absolute;
    top: -120px;
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(154, 181, 210, 0.12), rgba(100, 132, 170, 0.58));
    animation: tomber linear infinite;
    box-shadow: 0 0 8px rgba(110, 146, 190, 0.12);
}

.bourriquet-pluie {
    position: fixed;
    z-index: 5;
    width: 42px;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(70, 84, 102, 0.18);
}

.marcheur {
    position: fixed;
    bottom: 12px;
    left: -100px;
    width: 82px;
    z-index: 2;
    animation: marche 28s linear infinite;
    opacity: 0.78;
    filter: grayscale(0.18) saturate(0.9);
}

.secoue {
    animation: secouer 0.18s linear 5;
}

.geant {
    transform: scale(1.7);
}

.gris {
    filter: grayscale(1) brightness(0.86);
}

blockquote {
    margin: 0;
    font-style: italic;
}

.liste-citations .mini-carte {
    background: rgba(255, 255, 255, 0.7);
}

.footer-triste {
    margin-top: 24px;
    text-align: center;
    color: var(--texte-doux);
    border-top: 1px solid rgba(80, 97, 117, 0.16);
    padding-top: 18px;
}

.footer-liens {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-liens a {
    font-size: 0.95rem;
}

.zone-pub {
    text-align: center;
    border-style: dashed;
    border-color: rgba(103, 135, 168, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(234, 239, 244, 0.88));
}

.zone-pub-label {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--texte-doux);
}

.zone-pub-inactive {
    opacity: 0.95;
}

.bloc-credibilite {
    border-left: 4px solid rgba(83, 102, 122, 0.3);
}

.note-maj {
    margin-top: 12px;
    font-size: 0.94rem;
    color: var(--texte-doux);
}

.bloc-contact-rapide {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(236, 241, 246, 0.9));
}

.quiz-form {
    display: grid;
    gap: 14px;
}

.question-bloc {
    margin: 0;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(83, 102, 122, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

.question-bloc legend {
    font-weight: 700;
    color: var(--accent-fonce);
    margin-bottom: 8px;
}

.question-bloc label {
    display: block;
    margin-top: 8px;
    line-height: 1.5;
}

.question-bloc input[type="radio"] {
    margin-right: 8px;
}

.resultat-quiz {
    min-height: auto;
}

.score-quiz {
    font-size: 1.2rem;
}

.faq-grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.faq-item {
    display: grid;
    gap: 10px;
}

.faq-icone {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(141, 162, 183, 0.8), rgba(96, 117, 137, 0.8));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.stats-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.stats-valeur {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-fonce);
}

.stats-note {
    color: var(--texte-doux);
}

.couverture-quiz img {
    width: min(100%, 520px);
    margin: 0 auto 10px;
    box-shadow: 0 18px 40px rgba(70, 84, 102, 0.2);
}

.grille .mini-carte img {
    margin-top: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 26px rgba(70, 84, 102, 0.16);
}

.grille .mini-carte img:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(70, 84, 102, 0.22);
}

.niveau-quiz {
    margin-top: 6px;
    color: var(--texte-doux);
    font-weight: 700;
}

.jauge-quiz {
    width: min(560px, 100%);
    height: 16px;
    margin: 14px auto 10px;
    border-radius: 999px;
    background: rgba(90, 109, 129, 0.16);
    overflow: hidden;
}

.jauge-quiz span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8ba0b5, #5f758a);
    transition: width 0.45s ease;
}

.crise-zone {
    min-height: 180px;
}

.crise-lumiere {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45), transparent 60%);
    transition: opacity 0.2s ease;
}

.crise-active {
    animation: secousse-zone 0.18s linear 12;
    overflow: hidden;
}

.crise-active .crise-lumiere {
    opacity: 1;
    animation: flash-lumiere 0.45s linear infinite;
}

.soupir {
    position: absolute;
    top: -10px;
    font-style: italic;
    color: rgba(50, 71, 93, 0.58);
    animation: tomber-soupir linear forwards;
    pointer-events: none;
}

.fin-du-monde {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(31, 41, 55, 0.38);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 20;
}

.fin-du-monde.visible {
    opacity: 1;
}

.fin-du-monde-contenu {
    max-width: 620px;
    padding: 28px;
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(226, 232, 240, 0.94));
    border: 1px solid rgba(83, 102, 122, 0.18);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.25);
    animation: apocalypse-boite 0.35s ease;
}

body.tempete {
    animation: flash-tempete 0.25s linear 4;
}

@keyframes nav-drop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flash-tempete {
    0% {
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 26%),
            linear-gradient(180deg, #e8edf1 0%, #d6dde4 45%, #c6cfd8 100%);
    }

    50% {
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.82), transparent 24%),
            linear-gradient(180deg, #f4f7fa 0%, #dde4ea 45%, #cdd6de 100%);
    }

    100% {
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 26%),
            linear-gradient(180deg, #e8edf1 0%, #d6dde4 45%, #c6cfd8 100%);
    }
}

@keyframes apocalypse-fond {
    0% {
        filter: grayscale(0);
    }

    50% {
        filter: grayscale(0.35) brightness(0.95);
    }

    100% {
        filter: grayscale(0);
    }
}

@keyframes apocalypse-boite {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes flash-lumiere {
    0% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.65;
    }

    100% {
        opacity: 0.2;
    }
}

@keyframes secousse-zone {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-2px, 1px);
    }

    50% {
        transform: translate(2px, -1px);
    }

    75% {
        transform: translate(-1px, -2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes tomber-soupir {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: translateY(170px);
        opacity: 0;
    }
}

@keyframes tomber {
    from {
        transform: translateY(-100px);
    }

    to {
        transform: translateY(110vh);
    }
}

@keyframes marche {
    from {
        left: -100px;
    }

    to {
        left: 110%;
    }
}

@keyframes secouer {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (max-width: 780px) {
    body {
        padding: 18px 12px 28px;
    }

    .container {
        padding: 22px;
        border-radius: 22px;
    }

    .hero,
    .citation-large,
    .grille,
    .liste-citations,
    .sommaire-rapide,
    .faq-grille,
    .stats-grille {
        grid-template-columns: 1fr;
    }

    .pile-boutons {
        flex-direction: column;
        align-items: stretch;
    }

    nav a {
        padding: 8px 12px;
        font-size: 0.92rem;
    }

    .nav-search {
        width: 100%;
        justify-content: center;
    }

    .nav-search input {
        width: 180px;
    }

    .nav-search:focus-within input {
        width: 220px;
    }

    .nav-search button {
        padding: 7px 12px;
    }

    nav a:nth-child(1) { order: 1; }
    nav a:nth-child(2) { order: 2; }
    nav a:nth-child(5) { order: 3; }
    nav a:nth-child(3) { order: 4; }
    nav a:nth-child(4) { order: 5; }
    nav a:nth-child(6) { order: 6; }
    nav a:nth-child(7) { order: 7; }
    nav a:nth-child(8) { order: 8; }
    nav a:nth-child(9) { order: 9; }
    nav a:nth-child(10) { order: 10; }

    .footer-liens {
        gap: 10px;
    }

    .theme-toggle {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 2.2rem;
    }

    .marcheur {
        width: 64px;
    }

    .zone-bouton {
        min-height: 360px;
    }
}
