/* Styles du site. Ce fichier se charge après assets/pilote/css/base.css, la base commune (polices, couleurs,
   cadre, bouton, page simple).
   Partie 1 : composants repris, sans retouche, de la page d'atterrissage. Elle est tirée mécaniquement de la
   feuille de style de cette page : elle se refait, elle ne se corrige pas à la main.
   Partie 2 : composants propres au site, et ajustements. */

/* ============================================================================================================
   PARTIE 1 : COMPOSANTS REPRIS DE LA PAGE D'ATTERRISSAGE
   ============================================================================================================ */
/* Socle : ce que base.css n'a pas encore */

:root {
    --appareil: #1E2A36;
    --p0: #D93A3F;
    --p1: #F28C28;
}

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

.masque {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .hors-tel {
        display: none !important;
    }
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

[hidden] {
    display: none !important;
}

.position-relative {
    position: relative;
}

blockquote {
    margin: 0;
}

.entete {
    --coin: clamp(14px, 2.4vw, 26px);
    background-image:
    linear-gradient(45deg, var(--atelier) calc(var(--coin) * .7071), transparent calc(var(--coin) * .7071 + .7px)),
    linear-gradient(45deg, transparent calc(var(--coin) * .7071 + 4px), var(--rouge) calc(var(--coin) * .7071 + 4.5px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), transparent calc(var(--coin) * .7071 + 7px));
}

@media (min-width: 768px) {
    .cadre {
        padding-inline: 32px;
    }
}

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

/* Champs de formulaire */

.lien-bouton {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

legend,
.etiquette {
    display: block;
    padding: 0;
    margin-bottom: 5px;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.pastilles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pastilles label {
    position: relative;
    flex: 1 1 auto;
}

.pastilles input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pastilles span {
    display: block;
    padding: 10px 10px;
    border: 1px solid var(--trait-champ);
    border-radius: 4px;
    background: #fff;
    font-size: .9375rem;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.pastilles input:hover+span {
    border-color: var(--ardoise);
}

.pastilles input:checked+span {
    background: var(--ardoise);
    border-color: var(--ardoise);
    color: #fff;
}

.pastilles input:focus-visible+span {
    outline: 3px solid #6F9CC4;
    outline-offset: 2px;
}

.champs,
.contact {
    display: grid;
    gap: 12px;
}

.champ {
    min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--trait-champ);
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    line-height: 1.3;
}

input[readonly] {
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #6F9CC4;
    outline-offset: 1px;
    border-color: var(--ardoise);
}

.avec-indicatif {
    display: flex;
    gap: 6px;
}

.identite {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
}

.identite .champ:last-child {
    grid-column: 1 / -1;
}

.identite .pastilles {
    flex-wrap: nowrap;
}

.identite .pastilles span {
    min-height: 46px;
    padding: 12px 11px;
}

.avec-indicatif select {
    flex: none;
    width: 5.6em;
    padding-inline: 8px 2px;
}

.autocomplete-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--trait-champ);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    font-size: .9375rem;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item[aria-selected="true"] {
    background: var(--atelier);
}

details.message summary {
    cursor: pointer;
    font-size: .9375rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: fit-content;
}

details.message textarea {
    margin-top: 8px;
}

.alert {
    padding: 10px 12px;
    border-left: 5px solid var(--p0);
    background: #FDECEC;
    font-size: .9375rem;
}

@media (min-width: 560px) {
    .identite {
        grid-template-columns: auto 1fr 1fr;
    }

    .identite .champ:last-child {
        grid-column: auto;
    }

    .contact {
        display: grid;
        grid-template-columns: 5fr 6fr;
        gap: 12px;
    }
}

/* Bandeau final (avant « Section » : la règle des coins coupés, commune aux deux, doit venir après) */

.final {
    background: var(--ardoise);
    color: #fff;
    padding-block: 48px;
}

.final h2 {
    font-size: clamp(1.9rem, 1.45rem + 2.1vw, 2.875rem);
    margin-bottom: 8px;
}

.final p {
    margin: 0 0 22px;
    font-size: 1.125rem;
    color: #DDE5EB;
}

.final-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

/* Section : claire, grise, sombre */

.bloc {
    padding-block: 48px;
}

.bloc.gris {
    background: var(--atelier);
}

.bloc.sombre {
    background: var(--ardoise);
    color: #fff;
}

.bloc.sombre p,
.bloc.sombre .intro,
.bloc.sombre .citation footer {
    color: #DDE5EB;
}

.bloc.sombre .parti-pris,
.bloc.sombre .citation.grande p,
.bloc.sombre .citation cite {
    color: #fff;
}

.bloc h2 {
    font-size: clamp(1.9rem, 1.45rem + 2.1vw, 2.875rem);
    letter-spacing: -.005em;
    margin-bottom: 10px;
}

.bloc h3 {
    font-size: 1.4375rem;
    margin-bottom: 6px;
}

.intro {
    font-size: 1.125rem;
    line-height: 1.5;
    max-width: 38em;
    margin-bottom: 32px;
    color: var(--ardoise-clair);
}

.intro + .atout {
    margin-top: -14px;
}

.bloc.sombre,
.final {
    --coin: clamp(30px, 6vw, 96px);
    clip-path: polygon(0 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% 100%, var(--coin) 100%, 0 calc(100% - var(--coin)));
    background-image:
    linear-gradient(225deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px)),
    linear-gradient(45deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px));
}

@media (min-width: 768px) {
    .bloc,
    .final {
        padding-block: 72px;
    }
}

/* Atout mis en avant */

.atout {
    max-width: 40em;
    margin: 0 0 32px;
    padding: 2px 0 2px 14px;
    border-left: 4px solid var(--rouge);
}

.atout p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.atout strong {
    display: block;
    margin-bottom: 2px;
    font: 700 clamp(1.25rem, 1.05rem + .9vw, 1.625rem)/1.2 var(--titres);
    text-wrap: balance;
}

/* Fonctions à pictogramme */

.fonctions {
    display: grid;
    gap: 22px 40px;
    margin: 0;
}

.fonctions div {
    border-top: 2px solid var(--ardoise);
    padding-top: 12px;
}

.fonctions dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 700 1.3125rem/1.15 var(--titres);
    margin-bottom: 6px;
}

.fonctions dt svg {
    flex: none;
    width: 26px;
    height: 26px;
    color: var(--rouge);
}

.fonctions dd {
    margin: 0;
    font-size: 1rem;
}

@media (min-width: 560px) {
    .fonctions,
    .coches {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .fonctions {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Plaques de prix */

.plaques {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.plaque {
    padding: 20px 16px 16px;
    border: 2px solid var(--ardoise);
    border-radius: 8px;
    background:
    radial-gradient(circle at 11px 11px, var(--ardoise) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) 11px, var(--ardoise) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at 11px calc(100% - 11px), var(--ardoise) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--ardoise) 0 2.5px, transparent 3.2px),
    #fff;
    text-align: center;
    position: relative;
    transition: color .25s ease;
}

.plaque::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background:
    radial-gradient(circle at 11px 11px, #fff 0 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) 11px, #fff 0 2.5px, transparent 3.2px),
    radial-gradient(circle at 11px calc(100% - 11px), #fff 0 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #fff 0 2.5px, transparent 3.2px),
    var(--ardoise);
    opacity: 0;
    transition: opacity .25s ease;
}

.plaque > span {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .plaque:hover {
        color: #fff;
    }

    .plaque:hover::before {
        opacity: 1;
    }

    .plaque:hover .plaque-unite {
        color: #C9D4DD;
    }

    .plaque:hover .plaque-detail {
        border-top-color: rgba(255, 255, 255, .28);
    }
}

.plaque-qui {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.plaque-prix {
    display: block;
    font: 700 2.75rem/1.05 var(--titres);
    margin-top: 6px;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .plaque {
        padding-inline: 10px;
    }

    .plaque-prix {
        font-size: clamp(1.75rem, 9.6vw, 2.75rem);
    }
}

.plaque-unite {
    display: block;
    font-size: .875rem;
    color: var(--gris-texte);
    transition: color .25s ease;
}

.plaque-detail {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--trait);
    font-size: .875rem;
    line-height: 1.35;
    transition: border-color .25s ease;
}

.sous-plaques {
    font-size: .9375rem;
    color: var(--gris-texte);
    margin-bottom: 32px;
}

@media (min-width: 700px) {
    .plaques {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1000px) {
    .plaque-prix {
        font-size: 3.25rem;
    }
}

/* Bloc « compris » */

.compris {
    position: relative;
    margin: 44px 0 36px;
    padding: 34px 16px 22px;
    border: 2px solid var(--ardoise);
    border-radius: 8px;
    background:
    radial-gradient(circle at 11px 11px, var(--ardoise) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) 11px, var(--ardoise) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at 11px calc(100% - 11px), var(--ardoise) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--ardoise) 0 2.5px, transparent 3.2px),
    #fff;
}

.compris .compris-titre {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0 14px;
    background: #fff;
    font-size: 1.3125rem;
    white-space: nowrap;
}

.compris-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.compris-liste li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1px 14px;
    align-items: start;
}

.compris-liste svg {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: var(--vert);
    color: #fff;
}

.compris-liste strong {
    font-family: var(--titres);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.compris-liste span {
    font-size: .9375rem;
    line-height: 1.45;
    color: var(--gris-texte);
}

@media (min-width: 600px) {
    .compris {
        padding: 40px 28px 30px;
    }

    .compris .compris-titre {
        padding: 0 18px;
        font-size: 1.5rem;
    }

    .compris-liste {
        grid-template-columns: 1fr 1fr;
        gap: 26px 36px;
    }
}

@media (min-width: 1000px) {
    .compris {
        padding: 44px 36px 34px;
    }

    .compris-liste {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 44px;
    }

    .compris-liste li {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 16px;
    }

    .compris-liste svg {
        width: 48px;
        height: 48px;
        padding: 11px;
    }
}

/* Listes à coche, à croix, à plus */

.coches li {
    padding-left: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231F8A4C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") left .22em / 20px 20px no-repeat;
}

.coches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px 40px;
}

.options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.options li {
    padding-left: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2346596B' stroke-width='2.6' stroke-linecap='round' d='M10 4.5v11M4.5 10h11'/%3E%3C/svg%3E") left .22em / 20px 20px no-repeat;
}

.coches strong,
.options strong {
    font-weight: 600;
}

.croix li {
    padding-left: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23566878' stroke-width='2.6' stroke-linecap='round' d='M5 5l10 10M15 5L5 15'/%3E%3C/svg%3E") left .22em / 20px 20px no-repeat;
}

/* Bouton de fin de section */

.action-prix {
    display: none;
}

@media (min-width: 1000px) {
    .action-prix {
        display: flex;
        align-items: center;
        gap: 14px 24px;
        margin-top: 40px;
        padding-top: 28px;
        border-top: 1px solid var(--trait);
    }

    .action-prix p {
        margin: 0;
        font-size: .9375rem;
        color: var(--gris-texte);
    }
}

/* Deux colonnes dans une section, phrase forte */

.terrain {
    display: grid;
    gap: 28px;
}

.terrain p {
    max-width: 36em;
}

.terrain p:last-child {
    margin-bottom: 0;
}

.parti-pris {
    margin: 22px 0;
    padding-left: 16px;
    border-left: 4px solid var(--rouge);
    font: 700 1.5rem/1.2 var(--titres);
}

@media (min-width: 768px) {
    .terrain {
        grid-template-columns: 7fr 5fr;
        gap: 56px;
        align-items: center;
    }
}

/* Témoignage */

.citation {
    padding-left: 18px;
    border-left: 5px solid var(--rouge);
}

.citation p {
    margin: 0 0 12px;
}

.citation strong {
    font-weight: 600;
}

.citation.grande p {
    font: 700 1.75rem/1.2 var(--titres);
}

.citation footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9375rem;
    line-height: 1.35;
}

.citation footer img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.citation cite {
    font-style: normal;
    font-weight: 600;
    display: block;
}

.avis {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .avis {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Deux colonnes à titre */

.pour-qui {
    display: grid;
    gap: 32px;
}

.pour-qui ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pour-qui h3 {
    margin-bottom: 12px;
}

.pour-qui > div {
    padding: 20px 22px 24px;
    border: 1px solid var(--trait);
    border-top: 4px solid var(--vert);
    border-radius: 6px;
    background: #fff;
}

.pour-qui > div + div {
    border-top-color: var(--gris-texte);
}

@media (min-width: 768px) {
    .pour-qui {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Questions fréquentes */

.questions {
    max-width: 780px;
}

.questions details {
    border-top: 1px solid var(--trait);
}

.questions details:last-child {
    border-bottom: 1px solid var(--trait);
}

.questions summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.35;
}

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

.questions summary::after {
    content: "+";
    flex: none;
    font: 700 1.5rem/1 var(--titres);
}

.questions details[open] summary::after {
    content: "\2212";
}

.questions details p {
    margin: 0 0 18px;
    max-width: 40em;
}

.questions details ul {
    margin: -8px 0 18px;
    padding-left: 1.2em;
    max-width: 40em;
    display: grid;
    gap: 6px;
}

.questions strong {
    font-weight: 600;
}

/* Bande de logos */

.references {
    grid-area: references;
    align-self: end;
    padding-top: 20px;
    border-top: 1px solid var(--trait);
}

.references p {
    margin: 0 0 12px;
    font-size: .9375rem;
    color: var(--ardoise-clair);
}

.references ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 96px));
    justify-content: space-between;
    align-items: center;
    gap: 10px 22px;
}

.references img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
    mix-blend-mode: multiply;
}

.references img[src*="partner8"] {
    transform: translateY(16%);
}

/* Boutons d'état (ici : filtre de la galerie) */

.etats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 6px 0 12px;
    padding: 4px;
    border-radius: 8px;
    background: var(--atelier);
    box-shadow: inset 0 0 0 1px var(--trait);
}

.etat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px 0 10px;
    border: 0;
    border-radius: 5px;
    background: none;
    color: var(--gris-texte);
    font: 600 .9375rem/1.2 var(--courant);
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.etat b {
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px currentColor;
    font: 700 .75rem/1 var(--courant);
}

.etat b svg {
    width: 13px;
    height: 13px;
}

.etat:hover {
    color: var(--ardoise);
}

.etat[aria-pressed="true"] {
    background: #fff;
    color: var(--ardoise);
    box-shadow: 0 1px 3px rgba(44, 62, 79, .3);
}

.etat[aria-pressed="true"] b {
    background: var(--ardoise);
    color: #fff;
    box-shadow: none;
}

/* Capture dans son appareil */

.capture {
    display: block;
    width: 100%;
    border: 1px solid var(--trait);
    border-radius: 6px;
    background: #fff;
}

.appareil {
    display: none;
    position: relative;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
    border-radius: 16px;
}

.vitre {
    overflow: hidden;
    border: 1px solid var(--trait);
    border-radius: 16px;
    background: #fff;
}

.capture.telephone {
    border: 0;
    border-radius: 0;
}

.appareil {
    box-shadow: 0 1px 2px rgba(22, 32, 42, .12), 0 18px 30px -18px rgba(22, 32, 42, .4);
}

@media (min-width: 768px) {
    .appareil {
        position: relative;
        background: var(--appareil);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(22, 32, 42, .25), 0 18px 32px -14px rgba(22, 32, 42, .34), 0 48px 70px -38px rgba(22, 32, 42, .46);
    }

    .appareil {
        max-width: 358px;
        padding: 9px;
        border-radius: 36px;
    }

    .vitre {
        border: 0;
        border-radius: 27px;
    }

    .appareil::before,
    .appareil::after {
        content: "";
        position: absolute;
    }

    .appareil::before {
        top: 3px;
        left: 50%;
        width: 38px;
        height: 3px;
        margin-left: -19px;
        border-radius: 2px;
        background: #5B6E80;
    }

    .appareil::after {
        top: 92px;
        right: -2.5px;
        width: 3px;
        height: 50px;
        border-radius: 0 2px 2px 0;
        background: var(--appareil);
    }
}

/* ============================================================================================================
   PARTIE 2 : COMPOSANTS PROPRES AU SITE
   ============================================================================================================ */
/* ------------------------------------------------------------------------------------------------------------
   Bouton secondaire : pour une action qui n'est pas l'action principale de l'écran (un seul bouton rouge par écran).
   ------------------------------------------------------------------------------------------------------------ */
.bouton.second {
    background: #fff;
    color: var(--ardoise);
    box-shadow: inset 0 0 0 2px var(--ardoise);
}

.bouton.second:hover {
    background: #fff;
}

.sombre .bouton.second,
.final .bouton.second,
.entete .bouton.second {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

.sombre .bouton.second:hover,
.final .bouton.second:hover,
.entete .bouton.second:hover {
    background: transparent;
}

.bouton.petit {
    padding: 10px 16px;
    font-size: 1.0625rem;
}

/* Survol : à la souris seulement ; au doigt, un survol reste collé. */
@media (hover: hover) and (pointer: fine) {
    .bouton.second:hover {
        background: var(--ardoise);
        color: #fff;
    }

    .sombre .bouton.second:hover,
    .final .bouton.second:hover,
    .entete .bouton.second:hover {
        background: #fff;
        color: var(--ardoise);
    }
}

.plaque .bouton {
    position: relative;
    display: block;
    margin-top: 14px;
    padding: 12px 6px;
    font-size: clamp(.9375rem, .7rem + 1vw, 1.0625rem);
}

/* Fonctions à pictogramme, pour un bloc de quatre entrées : quatre colonnes au lieu de trois sur ordinateur. */
@media (min-width: 1000px) {
    .fonctions.quatre {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px 32px;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   En-tête du site : logo, menu, téléphone, bouton. Sans script : le menu du téléphone s'ouvre par une case à
   cocher, les sous-menus par le survol ou le focus. Un script pourra y ajouter l'ouverture au clic.
   ------------------------------------------------------------------------------------------------------------ */
.entete-site .cadre {
    position: relative;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-block: 8px;
}

.entete-site .logo {
    display: block;
    flex: none;
}

/* Dans le code : logo, menu, puis téléphone et bouton, l'ordre du clavier sur ordinateur. Sur téléphone, le
   bouton « Démonstration » passe avant le bouton du menu, et le menu se déplie sous la bande. */
.entete-actions {
    order: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.entete-site .appel {
    display: none;
    font-size: 1.25rem;
}

.menu-bouton {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
    font: 700 1.0625rem/1 var(--titres);
    letter-spacing: .02em;
    cursor: pointer;
}

.menu-bouton svg {
    flex: none;
    width: 22px;
    height: 22px;
}

.menu-bascule:focus-visible + .menu-bouton {
    outline: 3px solid #6F9CC4;
    outline-offset: 2px;
}

.menu-bascule:checked + .menu-bouton {
    background: #fff;
    color: var(--ardoise);
    box-shadow: none;
}

.menu {
    order: 3;
    display: none;
    flex: 1 0 100%;
}

.menu-bascule:checked ~ .menu {
    display: block;
}

.menu-liste {
    list-style: none;
    margin: 4px 0 8px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    display: grid;
    gap: 2px;
}

.menu-liste a,
.menu-titre {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 6px 4px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: #fff;
    font: 700 1.125rem/1.2 var(--titres);
    letter-spacing: .03em;
    text-align: left;
    text-decoration: none;
}

/* Sur téléphone, le titre d'un groupe n'est qu'une étiquette : ses liens sont toujours affichés. */
.menu-titre {
    min-height: 34px;
    padding-bottom: 2px;
    color: #C8D3DC;
    font-size: .9375rem;
}

.sous-menu {
    list-style: none;
    margin: 0 0 6px 4px;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--rouge);
}

.sous-menu a {
    font: 400 1.0625rem/1.3 var(--courant);
    letter-spacing: 0;
}

.menu a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--rouge);
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
}

.menu-contacts {
    list-style: none;
    margin: 0 0 8px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    display: grid;
    gap: 2px;
}

.menu-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
}

.menu-contacts svg {
    flex: none;
    width: 20px;
    height: 20px;
}

@media (max-width: 479px) {
    .menu-bouton {
        padding: 0 11px;
    }

    .menu-bouton .mot {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .entete-site .bouton.petit {
        padding: 11px 12px;
        font-size: 1rem;
    }
}

@media (max-width: 359px) {
    .entete-site .cadre {
        gap: 8px;
        padding-inline: 14px;
    }

    .entete-site .logo img {
        height: 40px;
    }
}

@media (min-width: 768px) {
    .entete-site .appel {
        display: inline-flex;
    }

    .menu-contacts {
        display: none;
    }
}

@media (min-width: 1000px) {
    .entete-site .cadre {
        flex-wrap: nowrap;
        gap: 16px;
        padding-block: 10px;
    }

    .menu-bouton,
    .menu-bascule {
        display: none;
    }

    .menu,
    .menu-bascule:checked ~ .menu {
        display: block;
        order: 0;
        flex: 1 1 auto;
    }

    .entete-actions {
        order: 0;
        gap: 16px;
        margin-left: 0;
    }

    .menu-liste {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0 0 0 8px;
        padding: 0;
        border: 0;
    }

    .menu-liste a,
    .menu-titre {
        width: auto;
        padding: 6px 11px;
        font-size: 1.0625rem;
        white-space: nowrap;
    }

    .menu-groupe {
        position: relative;
    }

    .menu-titre {
        min-height: 44px;
        gap: 6px;
        color: #fff;
        cursor: pointer;
    }

    .menu-titre::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-top: -4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .sous-menu {
        display: none;
        position: absolute;
        top: calc(100% + 13px);
        left: 0;
        z-index: 30;
        min-width: 270px;
        margin: 0;
        padding: 8px;
        border: 1px solid var(--trait);
        border-top: 3px solid var(--rouge);
        border-radius: 0 0 6px 6px;
        background: #fff;
        box-shadow: 0 18px 36px -24px rgba(44, 62, 79, .55);
    }

    /* Passerelle invisible entre le titre et son panneau, pour que la souris ne perde pas le survol. */
    .sous-menu::before {
        content: "";
        position: absolute;
        inset: -16px 0 auto 0;
        height: 16px;
    }

    .sous-menu a {
        min-height: 42px;
        padding: 8px 10px;
        color: var(--ardoise);
        font-weight: 600;
    }

    .menu-groupe:focus-within > .sous-menu,
    .menu-groupe.ouvert > .sous-menu {
        display: block;
    }
}

@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
    .menu-groupe:hover > .sous-menu {
        display: block;
    }

    .menu-liste > li > a:hover,
    .menu-titre:hover {
        background: rgba(255, 255, 255, .12);
    }

    .sous-menu a:hover {
        background: var(--atelier);
    }
}

@media (min-width: 1160px) {
    .entete-site .cadre {
        gap: 24px;
    }

    .menu-liste a,
    .menu-titre {
        padding-inline: 14px;
    }

    .entete-site .appel {
        font-size: 1.375rem;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Titre de page intérieure : H1, sous-titre éventuel, texte d'ouverture. Version claire, version sombre.
   ------------------------------------------------------------------------------------------------------------ */
.titre-page {
    background: var(--atelier);
    padding-block: 28px 32px;
}

.titre-page h1 {
    font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin-bottom: 10px;
    max-width: 22em;
    text-wrap: balance;
}

.titre-page .sous-titre {
    font: 700 clamp(1.25rem, 1.05rem + .9vw, 1.625rem)/1.2 var(--titres);
    color: var(--ardoise-clair);
    margin: 0 0 14px;
}

.titre-page .ouverture {
    font-size: 1.125rem;
    line-height: 1.5;
    max-width: 40em;
    margin: 0 0 .6em;
    text-wrap: pretty;
}

.titre-page .ouverture:last-child,
.titre-page-texte > :last-child {
    margin-bottom: 0;
}

.titre-page strong {
    font-weight: 600;
}

.titre-page.sombre {
    --coin: clamp(30px, 6vw, 96px);
    background-color: var(--ardoise);
    color: #fff;
    clip-path: polygon(0 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% 100%, var(--coin) 100%, 0 calc(100% - var(--coin)));
    background-image:
        linear-gradient(225deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px)),
        linear-gradient(45deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px));
}

.titre-page.sombre .sous-titre,
.titre-page.sombre .ouverture {
    color: #DDE5EB;
}

.titre-page.avec-formulaire .cadre {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .titre-page {
        padding-block: 44px 48px;
    }

    .titre-page.sombre {
        padding-block: 60px 64px;
    }
}

@media (min-width: 1000px) {
    .titre-page.avec-formulaire .cadre {
        grid-template-columns: minmax(0, 1fr) minmax(430px, 440px);
        column-gap: clamp(32px, 4vw, 40px);
        align-items: start;
    }

    .titre-page.avec-formulaire .titre-page-texte {
        padding-top: 12px;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Formulaire commun, en une étape : mêmes champs et mêmes noms qu'aujourd'hui, un libellé au-dessus de chaque champ.
   ------------------------------------------------------------------------------------------------------------ */
.formulaire {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--trait);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 36px -24px rgba(44, 62, 79, .55);
}

.formulaire .mail {
    display: none;
}

.formulaire textarea {
    min-height: 112px;
    resize: vertical;
}

.formulaire .avec-indicatif select {
    width: 9.6em;
}

.formulaire .contact {
    grid-template-columns: 1fr;
}

.formulaire .bouton {
    width: 100%;
}

@media (min-width: 768px) {
    .formulaire.large {
        padding: 26px 28px 28px;
    }

    .formulaire.large .contact {
        grid-template-columns: 1fr 1fr;
    }

    .formulaire.large .bouton {
        width: auto;
        min-width: 300px;
        justify-self: start;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Texte courant dans une carte (pages de texte) : sous-titre, paragraphe, liste, lien.
   ------------------------------------------------------------------------------------------------------------ */
.carte h1 + .texte {
    margin-top: 16px;
}

.texte h2 {
    font-size: 1.5rem;
    margin: 28px 0 8px;
}

.texte p,
.texte ul {
    margin: 0 0 1em;
}

.texte ul {
    padding-left: 1.2em;
    display: grid;
    gap: 4px;
}

.texte a {
    font-weight: 600;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.texte strong {
    font-weight: 600;
}

.texte > :last-child {
    margin-bottom: 0;
}

.plan,
.plan ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.plan ul {
    margin: 0 0 8px 4px;
    padding-left: 16px;
    border-left: 2px solid var(--trait);
}

.plan a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-weight: 600;
    text-underline-offset: 3px;
}

.plan .rubrique {
    display: block;
    margin-top: 8px;
    font: 700 1.0625rem/1.3 var(--titres);
    letter-spacing: .03em;
    color: var(--gris-texte);
}

.plan .separe {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--trait);
}

/* ------------------------------------------------------------------------------------------------------------
   Pied de page complet : à propos, contact, informations légales, puis la ligne de copyright.
   Sombre, comme l'en-tête, dont il reprend le petit coin coupé à filet rouge, en haut à droite. Il recouvre le bas de
   la section qui le précède, de la hauteur du coin : le coin coupé laisse donc voir le fond de cette section.
   ------------------------------------------------------------------------------------------------------------ */
.pied-site {
    --coin: clamp(14px, 2.4vw, 26px);
    position: relative;
    margin-top: calc(var(--coin) * -1);
    padding-top: calc(40px + var(--coin));
    background-color: var(--ardoise);
    background-image: linear-gradient(225deg, transparent calc(var(--coin) * .7071 + 4px), var(--rouge) calc(var(--coin) * .7071 + 4.5px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), transparent calc(var(--coin) * .7071 + 7px));
    clip-path: polygon(0 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% 100%, 0 100%);
    font-size: .9375rem;
    color: #C8D3DC;
}

.pied-colonnes {
    display: grid;
    gap: 28px;
}

.pied-titre {
    margin: 0 0 10px;
    padding-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, .45);
    font: 700 1.125rem/1.2 var(--titres);
    letter-spacing: .03em;
    color: #fff;
}

.pied-site p {
    margin: 0 0 .8em;
    max-width: 36em;
}

.pied-site ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.pied-site li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.pied-site li svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--rouge);
}

.pied-libelle {
    display: block;
    font-size: .8125rem;
    line-height: 1.2;
}

.pied-site a {
    display: inline-block;
    padding-block: 10px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Sous une étiquette (« Téléphone », « E-mail »), la zone d'appui du lien s'étend vers le bas. */
.pied-libelle + a {
    padding-block: 2px 14px;
}

.pied-libelle {
    padding-top: 6px;
}

.pied-site a:hover {
    text-decoration: underline;
}

.pied-site .pied {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #C8D3DC;
    padding-block: 16px;
}

@media (min-width: 768px) {
    .pied-site {
        padding-top: calc(56px + var(--coin));
    }

    .pied-colonnes {
        grid-template-columns: 5fr 3fr 3fr;
        gap: 48px;
    }
}
/* ------------------------------------------------------------------------------------------------------------
   Ajustements des composants repris de la page d'atterrissage, pour les textes du site.
   ------------------------------------------------------------------------------------------------------------ */

/* Après un titre de section sans texte d'ouverture, le composant qui suit garde ses distances. */
.bloc h2 + .fonctions,
.bloc h2 + .plaques,
.bloc h2 + .questions,
.bloc h2 + .formulaire,
.bloc h2 + .chiffres,
.bloc h2 + .avis,
.bloc h2 + .etats {
    margin-top: 28px;
}

/* Bloc « compris » : avec des textes de longueurs inégales, le titre d'une entrée reste collé à son texte. */
.compris-liste li {
    align-content: start;
}

/* Lien dans la note sous les plaques de prix : il se voit, et sa zone d'appui fait 40 px sans écarter les lignes. */
.sous-plaques a {
    display: inline-block;
    margin-block: -10px;
    padding-block: 10px;
    font-weight: 600;
    color: var(--ardoise);
    text-underline-offset: 3px;
}

/* Capture dans son appareil : sur le site, le cadre est toujours affiché (la page d'atterrissage le réserve à sa vue
   « Téléphone »). */
.appareil {
    display: block;
}

/* Ancre du formulaire de devis : le titre ne colle pas au bord de la fenêtre. */
#idDevis {
    scroll-margin-top: 16px;
}

/* ------------------------------------------------------------------------------------------------------------
   Bandeau d'accueil sans formulaire : H1 long, phrase d'accroche, sous-titre à liens, un bouton.
   ------------------------------------------------------------------------------------------------------------ */
.accueil-site {
    --coin: clamp(30px, 6vw, 96px);
    padding-block: 36px 44px;
    background-color: var(--ardoise);
    color: #fff;
    clip-path: polygon(0 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% 100%, var(--coin) 100%, 0 calc(100% - var(--coin)));
    background-image:
        linear-gradient(225deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px)),
        linear-gradient(45deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px));
}

.accueil-site h1 {
    font-size: clamp(1.9rem, 1.15rem + 3.3vw, 3.375rem);
    line-height: 1.05;
    letter-spacing: -.01em;
    max-width: 19em;
    margin-bottom: 16px;
    text-wrap: balance;
}

.accueil-site .accroche {
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--rouge);
    font: 700 clamp(1.25rem, 1.05rem + .9vw, 1.625rem)/1.2 var(--titres);
    color: #DDE5EB;
}

.accueil-site .sous-titre {
    max-width: 40em;
    margin: 0 0 24px;
    font: 400 1.125rem/1.5 var(--courant);
    text-wrap: pretty;
}

.accueil-site .sous-titre a {
    font-weight: 600;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .accueil-site {
        padding-block: 64px 72px;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Chiffres clés : deux chiffres fixes, sans animation.
   ------------------------------------------------------------------------------------------------------------ */
.chiffres {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px 40px;
}

.chiffres li {
    padding-top: 12px;
    border-top: 2px solid var(--ardoise);
}

.chiffre {
    display: block;
    font: 700 clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem)/1.05 var(--titres);
    letter-spacing: -.01em;
}

.chiffre-libelle {
    display: block;
    margin-top: 4px;
    color: var(--gris-texte);
}

@media (min-width: 560px) {
    .chiffres {
        grid-template-columns: 1fr 1fr;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Témoignage long : le texte entier est dans la page ; la suite se déplie, sans script, par « Lire la suite ».
   ------------------------------------------------------------------------------------------------------------ */
.citation.longue details {
    margin: 0 0 12px;
}

.citation.longue details p:last-child {
    margin-bottom: 0;
}

.citation.longue summary {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    list-style: none;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.citation.longue details[open] summary {
    display: none;
}

/* Six témoignages : une colonne sur téléphone, deux puis trois ensuite ; chacun garde sa hauteur. */
.avis.six {
    align-items: start;
}

@media (min-width: 768px) {
    .avis.six {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .avis.six {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Galerie de captures : filtre (boutons d'état), grille légendée, agrandissement sans bibliothèque.
   Sans script : toutes les captures sont affichées, et un clic ouvre l'image seule.
   ------------------------------------------------------------------------------------------------------------ */
.galerie {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 24px 20px;
}

.galerie figure {
    margin: 0;
}

.galerie a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--trait);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(22, 32, 42, .12), 0 18px 30px -18px rgba(22, 32, 42, .4);
}

.galerie img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.galerie figcaption {
    margin-top: 8px;
    font-size: .9375rem;
    font-weight: 600;
}

.agrandi {
    width: min(1280px, 96vw);
    max-width: none;
    max-height: 94vh;
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: var(--appareil);
    color: #fff;
    box-shadow: 0 48px 70px -38px rgba(22, 32, 42, .7);
}

.agrandi::backdrop {
    background: rgba(22, 32, 42, .82);
}

.agrandi img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(94vh - 84px);
    margin-inline: auto;
    border-radius: 7px;
    background: #fff;
}

.agrandi-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 6px 2px;
    font-weight: 600;
}

.agrandi .bouton.second {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

@media (min-width: 560px) {
    .galerie {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .galerie {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 28px;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Lecteur vidéo : le lecteur du navigateur, dans un cadre d'écran ; largeur fluide. Sur téléphone, pas de cadre.
   ------------------------------------------------------------------------------------------------------------ */
.video {
    max-width: 880px;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(22, 32, 42, .12), 0 18px 30px -18px rgba(22, 32, 42, .4);
}

.video video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

@media (min-width: 768px) {
    .video {
        padding: 10px;
        border-radius: 16px;
        background: var(--appareil);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(22, 32, 42, .25), 0 18px 32px -14px rgba(22, 32, 42, .34), 0 48px 70px -38px rgba(22, 32, 42, .46);
    }

    .video video {
        border-radius: 7px;
    }
}

/* Titre d'une liste à plus (« Options payantes ») : un peu d'air avant la liste. */
.bloc h3:has(+ .options) {
    margin-bottom: 14px;
}

/* Premier ou dernier élément d'une section : pas de marge qui s'ajoute à celle de la section. */
.compris.premier {
    margin-top: 12px;
}

.sous-plaques.dernier,
.bloc .options:last-child {
    margin-bottom: 0;
}

/* « Ajouter un message » : une zone d'appui de 40 px. */
.formulaire details.message summary {
    padding-block: 8px;
}

/* Bande de logos sous un titre de section : pas de filet, et les huit logos sur une ligne dès qu'il y a la place. */
.references.en-ligne {
    padding-top: 8px;
    border-top: 0;
}

@media (min-width: 768px) {
    .references.en-ligne ul {
        grid-template-columns: repeat(8, minmax(0, 110px));
    }
}

/* Bloc « compris » posé sur une section grise : son titre, à cheval sur le bord, est gris en haut et blanc en bas. */
.bloc.gris .compris .compris-titre {
    background: linear-gradient(var(--atelier) 50%, #fff 50%);
}

/* Atout mis en avant (repris de la page d'atterrissage), dans un titre de page : il suit le texte d'ouverture et ferme
   le bloc. */
.titre-page .atout {
    margin: 18px 0 0;
}

/* ------------------------------------------------------------------------------------------------------------
   Page introuvable : un grand repère au-dessus du titre.
   ------------------------------------------------------------------------------------------------------------ */
.introuvable .repere {
    margin: 0 0 10px;
    font: 700 clamp(4.5rem, 3rem + 9vw, 7.5rem)/.9 var(--titres);
    letter-spacing: -.02em;
    color: var(--rouge);
}

/* Titre d'une page simple : pas de mot seul sur la dernière ligne. */
.page-simple .carte h1 {
    text-wrap: balance;
}

/* ------------------------------------------------------------------------------------------------------------
   Titre de page avec formulaire : ce qui accompagne le titre (horaires, voie à suivre, coordonnées) et le titre
   posé au-dessus du formulaire.
   ------------------------------------------------------------------------------------------------------------ */
/* Intertitre sous un filet, dans un titre de page : il ouvre une voie ou le formulaire. */
.titre-page .intertitre {
    margin: 24px 0 8px;
    padding-top: 10px;
    border-top: 2px solid var(--ardoise);
    font: 700 1.375rem/1.2 var(--titres);
}

.titre-page-cote > .intertitre:first-child {
    margin-top: 0;
    margin-bottom: 14px;
}

.titre-page .intertitre + p {
    max-width: 40em;
    margin: 0;
}

.titre-page .intertitre + p a {
    font-weight: 600;
    text-underline-offset: 3px;
}

.titre-page .horaires {
    margin: 0;
    color: var(--gris-texte);
}

/* Horaires posés sous l'invitation à téléphoner : ils la suivent de près. */
.titre-page .intertitre + p + .horaires {
    margin-top: 4px;
}

/* Coordonnées en cartes à pictogramme. */
.coordonnees {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.coordonnees li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0 12px;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--trait);
    border-radius: 6px;
    background: #fff;
}

.coordonnees svg {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    color: var(--rouge);
}

.coordonnees .libelle {
    font-size: .875rem;
    color: var(--gris-texte);
}

.coordonnees a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    width: fit-content;
    font-weight: 600;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

@media (min-width: 600px) {
    .coordonnees {
        grid-template-columns: 1fr 1fr;
    }
}

/* Aide écrite sous le libellé d'un champ. */
.formulaire .champ .aide {
    margin: 0 0 6px;
}

/* Liens d'une voie à suivre (téléphone, visioconférence) : une zone d'appui de 40 px sans écarter les lignes. */
.titre-page .intertitre + p a {
    display: inline-block;
    margin-block: -10px;
    padding-block: 10px;
}

/* Lecteur vidéo sous un titre de section : il garde ses distances. */
.bloc h2 + .video {
    margin-top: 28px;
}

/* ------------------------------------------------------------------------------------------------------------
   Accueil : ajustements des sections.
   ------------------------------------------------------------------------------------------------------------ */
/* Bouton posé sous une liste de fonctions. */
.bloc .suite {
    margin: 28px 0 0;
}

/* « Notre conviction » en section claire : la question, la phrase forte, puis l'explication. */
.bloc .intro.conviction {
    margin-bottom: 0;
}

.bloc .conviction-suite {
    max-width: 38em;
    margin: 0;
}

/* Fonctions sur quatre colonnes : un titre sur deux lignes ne décale pas son texte, tous les textes d'une rangée
   partent de la même hauteur. */
@media (min-width: 1000px) {
    @supports (grid-template-rows: subgrid) {
        .fonctions.quatre div {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 2;
            gap: 0;
        }
    }
}

/* Menu : la rubrique qui contient la page en cours est soulignée comme elle. Sur téléphone, les liens du sous-menu
   sont toujours affichés : la page y est déjà soulignée. */
@media (min-width: 1000px) {
    .menu-titre.ici {
        text-decoration: underline;
        text-decoration-color: var(--rouge);
        text-decoration-thickness: 3px;
        text-underline-offset: 7px;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   En-tête suivi d'un bloc sombre (titre de page sombre) : ils ne font qu'une forme. L'en-tête perd son petit coin
   coupé, le bloc son coin supérieur ; le coin coupé et son filet rouge sont en bas à gauche du bloc.
   ------------------------------------------------------------------------------------------------------------ */
body:has(main > .titre-page.sombre:first-child) .entete-site,
body:has(main > .accueil-site:not(.clair):first-child) .entete-site {
    background-image: none;
}

main > .titre-page.sombre:first-child,
main > .accueil-site:not(.clair):first-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--coin) 100%, 0 calc(100% - var(--coin)));
    background-image: linear-gradient(45deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px));
}

/* ------------------------------------------------------------------------------------------------------------
   Accueil : bandeau clair, bande sombre entre deux sections grises, bande d'appel claire avant le pied sombre.
   ------------------------------------------------------------------------------------------------------------ */
.accueil-site.clair {
    background: var(--atelier);
    color: var(--ardoise);
    clip-path: none;
}

.accueil-site.clair .accroche {
    color: var(--ardoise-clair);
}

/* Bande sombre entre deux sections grises : ses coins coupés montrent le gris de ses voisines, pas le blanc de
   la page. */
.bloc.sombre.sur-gris {
    clip-path: none;
    background-image:
        linear-gradient(225deg, var(--atelier) calc(var(--coin) * .7071), transparent calc(var(--coin) * .7071 + .7px)),
        linear-gradient(45deg, var(--atelier) calc(var(--coin) * .7071), transparent calc(var(--coin) * .7071 + .7px)),
        linear-gradient(225deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px)),
        linear-gradient(45deg, transparent calc(var(--coin) * .7071 + 6px), var(--rouge) calc(var(--coin) * .7071 + 6.5px), var(--rouge) calc(var(--coin) * .7071 + 8.5px), transparent calc(var(--coin) * .7071 + 9px));
}

/* Bande d'appel claire, en fin de page : le pied de page, sombre, la suit. */
.bloc.bande-appel p {
    max-width: 38em;
    margin: 0 0 22px;
    font-size: 1.125rem;
    color: var(--ardoise-clair);
}

/* ------------------------------------------------------------------------------------------------------------
   Galerie : les écrans sur téléphone, en seconde liste, et leur agrandissement.
   ------------------------------------------------------------------------------------------------------------ */
.galerie + .galerie {
    margin-top: 36px;
}

.galerie.telephones {
    grid-template-columns: repeat(2, 1fr);
}

.galerie.telephones a {
    border-radius: 14px;
}

.galerie.telephones img {
    aspect-ratio: 9 / 16;
}

@media (min-width: 600px) {
    .galerie.telephones {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    .galerie.telephones {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Une capture de téléphone est haute et étroite : elle garde sa largeur, et c'est la fenêtre qui défile. La ligne
   du bas, avec le bouton « Fermer », reste en vue. */
.agrandi.portrait {
    width: min(440px, 96vw);
}

.agrandi.portrait img {
    width: 100%;
    max-height: none;
}

.agrandi.portrait .agrandi-pied {
    position: sticky;
    bottom: -10px;
    margin: 0 -10px -10px;
    padding: 8px 12px 10px;
    background: var(--appareil);
}

/* Vignette d'un écran sur téléphone : sous une capture courte, le fond bleuté des écrans du logiciel. */
.galerie.telephones a {
    background: #E8EAFB;
}

/* Une capture glisse de côté en laissant la place à la suivante : la fenêtre ne défile jamais en largeur. */
.agrandi {
    overflow-x: hidden;
}

/* Fenêtre agrandie : la légende à gauche, les flèches autour du rang (« 3 / 12 »), puis la fermeture ; le tout sur
   une seule rangée, de hauteur fixe. Dans une fenêtre étroite (téléphone, capture de téléphone), la légende est en
   petit, sur deux lignes au plus, et la fermeture n'est qu'une croix. */
.agrandi-pied {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 8px 0 0 6px;
    font-weight: 400;
}

.agrandi-legende {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: .8125rem;
    line-height: 1.2;
}

.agrandi-fleches {
    display: flex;
    align-items: center;
}

.agrandi-rang {
    min-width: 3.2em;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

/* Flèches et croix sans cadre : un rond clair au survol, le contour de focus au clavier. */
.agrandi-fleche,
.agrandi .bouton.agrandi-fermer {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.agrandi-fleche:hover,
.agrandi .bouton.agrandi-fermer:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.agrandi-fleche svg,
.agrandi-fermer svg {
    display: block;
    width: 24px;
    height: 24px;
}

.agrandi-fermer .mot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 359px) {
    .agrandi-legende {
        -webkit-line-clamp: 3;
        font-size: .75rem;
    }
}

/* Fenêtre large : les flèches au milieu, la légende en taille courante, le bouton « Fermer » écrit. */
@media (min-width: 700px) {
    .agrandi:not(.portrait) .agrandi-pied {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 16px;
        padding: 10px 6px 2px;
    }

    .agrandi:not(.portrait) .agrandi-legende {
        font-size: 1rem;
        line-height: 1.3;
    }

    .agrandi:not(.portrait) .agrandi-rang {
        font-size: 1rem;
    }

    .agrandi:not(.portrait) .agrandi-fleche {
        width: 44px;
        height: 44px;
    }

    .agrandi:not(.portrait) .bouton.agrandi-fermer {
        display: inline-block;
        justify-self: end;
        width: auto;
        height: auto;
        padding: 10px 16px;
        border-radius: 4px;
        box-shadow: inset 0 0 0 2px #fff;
    }

    .agrandi:not(.portrait) .agrandi-fermer svg {
        display: none;
    }

    .agrandi:not(.portrait) .agrandi-fermer .mot {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
    }
}

/* Filtre de la galerie : « Tout voir » porte une grille ; un trait et un entonnoir le séparent des boutons qui
   suivent, qui en sont les filtres. Le rouge dit ce qui est en service : la grille quand tout est affiché,
   l'entonnoir quand un filtre est choisi. */
.etat > svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.etat.tout > svg {
    transition: color .2s ease;
}

.etat.tout[aria-pressed="true"] > svg {
    color: var(--rouge);
}

.etats-separe {
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: 24px;
    margin: 0 2px 0 6px;
    padding-left: 12px;
    border-left: 1px solid var(--trait-champ);
    color: var(--gris-texte);
    transition: color .2s ease;
}

.etats-separe svg {
    display: block;
    width: 16px;
    height: 16px;
}

.etats:has(.etat:not(.tout)[aria-pressed="true"]) .etats-separe {
    color: var(--rouge);
}

/* Filtre de la galerie : sur téléphone, un libellé long laisse la place à sa forme courte (attribut data-court). */
@media (max-width: 599px) {
    .etat[data-court] .long {
        display: none;
    }

    .etat[data-court]::after {
        content: attr(data-court);
    }
}

/* Page de contact : le téléphone et ses horaires, puis l'email, sans cadre et en grand, sous le titre ; puis la bande
   de logos. En cartes blanches, ces coordonnées passaient pour des champs du formulaire voisin. Le soulignement ne
   vient qu'au survol. */
.coordonnees.pile {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 28px;
}

.coordonnees.pile li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 16px;
    align-items: start;
    padding: 0;
    border: 0;
    background: none;
}

.coordonnees.pile svg {
    grid-row: 1 / span 3;
    width: 34px;
    height: 34px;
    margin-top: 3px;
}

.coordonnees.pile .libelle {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.coordonnees.pile a {
    font: 700 1.875rem/1.15 var(--titres);
    text-decoration: none;
}

.coordonnees.pile .heures {
    grid-column: 2;
    font-size: .9375rem;
    color: var(--gris-texte);
}

@media (hover: hover) and (pointer: fine) {
    .coordonnees.pile a:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }
}

@media (max-width: 599px) {
    .coordonnees.pile a {
        font-size: 1.5rem;
    }
}

.titre-page .references {
    max-width: 30em;
    margin-top: 32px;
}

/* Témoignage court sous un titre de page, à côté du formulaire. */
.titre-page .citation {
    max-width: 30em;
    margin-top: 32px;
}

/* Filtre de la galerie : une pastille blanche glisse sous le choix (posée par le script). */
.etats.glissant {
    position: relative;
}

.etats.glissant .etat {
    position: relative;
    z-index: 1;
}

.etats.glissant .etat[aria-pressed="true"] {
    background: none;
    box-shadow: none;
}

.etats-curseur {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(44, 62, 79, .3);
}

.etats.pret .etats-curseur {
    transition: transform .3s cubic-bezier(.3, .7, .2, 1), width .3s cubic-bezier(.3, .7, .2, 1), height .3s cubic-bezier(.3, .7, .2, 1);
}

/* Après un changement de filtre, les vignettes arrivent l'une après l'autre. */
@keyframes vignette-arrive {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.galerie.arrive li {
    animation: vignette-arrive .34s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--rang, 0) * 35ms);
}

/* La fenêtre agrandie s'ouvre en fondu. */
@keyframes agrandi-ouvre {
    from {
        opacity: 0;
        transform: scale(.985);
    }
}

@keyframes agrandi-fond {
    from {
        opacity: 0;
    }
}

.agrandi[open] {
    animation: agrandi-ouvre .22s cubic-bezier(.2, .7, .2, 1);
}

.agrandi[open]::backdrop {
    animation: agrandi-fond .22s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .etats.pret .etats-curseur {
        transition: none;
    }

    .galerie.arrive li,
    .agrandi[open],
    .agrandi[open]::backdrop {
        animation: none;
    }
}

/* ------------------------------------------------------------------------------------------------------------
   Finition : pictogrammes au trait, écrans du logiciel dans le premier écran de l'accueil, puis les mouvements.
   Chaque mouvement est facultatif : sans script, ou avec le réglage « moins d'animations », la page est entière
   et immobile.
   ------------------------------------------------------------------------------------------------------------ */

/* Bloc « compris », pictogrammes au trait : le pictogramme seul, rouge, sans pastille, comme les fonctions à
   pictogramme du reste du site. */
.compris-liste.au-trait li {
    grid-template-columns: 32px minmax(0, 1fr);
}

.compris-liste.au-trait svg {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--rouge);
    stroke-width: 1.7;
}

/* Sous les plaques de prix, deux phrases sur une rangée quand la place suffit : le paiement à gauche, qui se lit
   d'abord, et la suite de l'échelle des forfaits à droite, sous la dernière plaque ; l'une sous l'autre sinon. */
.sous-plaques.deux {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 32px;
}

.sous-plaques.deux p {
    margin: 0;
}

.sous-plaques .paiement {
    color: var(--ardoise);
    font-weight: 600;
}

/* Téléphone posé à côté d'un texte : un écran de téléphone, plus haut que large (9 sur 16). La capture, plus courte,
   laisse sous elle le fond bleuté des écrans du logiciel ; sans cela, l'appareil a les proportions d'une tablette. */
.terrain > .appareil {
    max-width: 300px;
}

.terrain > .appareil .vitre {
    aspect-ratio: 9 / 16;
    background: #E8EAFB;
}

/* Liste « Options payantes » : un point ardoise, et non un « + », qui est le signe des blocs qui se déplient. */
.options li {
    padding-left: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='6' cy='10' r='3.2' fill='%232C3E4F'/%3E%3C/svg%3E") left .2em / 20px 20px no-repeat;
}

/* Accueil : le logiciel dans le premier écran, sur une grande diagonale ardoise à filet rouge. Sur téléphone, les
   écrans passent sous le bouton, et la diagonale sous eux. */
.accueil-ecrans {
    position: relative;
    margin-top: 32px;
    padding: 0 0 22px 34px;
}

.accueil-ordinateur {
    overflow: hidden;
    border: 8px solid var(--appareil);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 34px 50px -30px rgba(10, 18, 26, .75);
}

.accueil-ordinateur img,
.accueil-telephone img {
    display: block;
    width: 100%;
    height: auto;
}

.accueil-telephone {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 27%;
    overflow: hidden;
    border: 6px solid var(--appareil);
    border-radius: 18px;
    background: #E8EAFB;
    box-shadow: 0 26px 40px -22px rgba(10, 18, 26, .8);
}

.accueil-site.clair.avec-ecrans {
    background-image: linear-gradient(170deg, transparent calc(70% - 9px), var(--rouge) calc(70% - 9px), var(--rouge) calc(70% - 7px), transparent calc(70% - 7px), transparent 70%, var(--ardoise) 70%);
}

@media (min-width: 1000px) {
    .accueil-site.clair.avec-ecrans {
        background-image: linear-gradient(112deg, transparent calc(58% - 12px), var(--rouge) calc(58% - 12px), var(--rouge) calc(58% - 10px), transparent calc(58% - 10px), transparent 58%, var(--ardoise) 58%);
    }

    .accueil-site.clair.avec-ecrans .cadre {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
        column-gap: 56px;
        justify-items: start;
    }

    .accueil-site.clair.avec-ecrans .cadre > * {
        grid-column: 1;
    }

    .accueil-site.clair.avec-ecrans .cadre > .accueil-ecrans {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
        justify-self: stretch;
        margin-top: 0;
        padding: 0 0 30px 44px;
    }
}

/* D'une page du site à l'autre : un court fondu ; l'en-tête reste en place. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}

.entete-site {
    view-transition-name: entete-site;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .3s;
    animation-timing-function: ease;
}

/* Galerie : la capture grandit depuis sa vignette (le nom « capture » est posé par le script). */
::view-transition-group(capture) {
    animation-duration: .38s;
    animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}

/* L'en-tête suit la page ; dès que l'on défile, il se resserre (classe « resserre », posée par le script). Une
   ancre s'arrête sous lui. Sur téléphone, un menu ouvert plus haut que l'écran défile à l'intérieur. */
html {
    scroll-padding-top: 72px;
}

.entete-site {
    position: sticky;
    top: 0;
    z-index: 40;
}

.entete-site .cadre,
.entete-site .logo img {
    transition: padding .25s ease, height .25s ease;
}

.entete-site.resserre {
    background-color: rgba(44, 62, 79, .9);
    background-image: none;
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 10px 24px -18px rgba(10, 18, 26, .7);
}

.entete-site.resserre .cadre {
    padding-block: 3px;
}

.entete-site.resserre .logo img {
    width: auto;
    height: 36px;
}

@media (max-width: 999px) {
    .menu-bascule:checked ~ .menu {
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Le filet rouge d'un coin coupé se trace, une fois, quand la bande arrive à l'écran. Le script pose « trace » sur
   une bande encore hors de l'écran, puis « vu » à son arrivée ; sans lui, le filet est dessiné d'emblée. */
.bloc.sombre.sur-gris.trace {
    position: relative;
    background-image:
        linear-gradient(225deg, var(--atelier) calc(var(--coin) * .7071), transparent calc(var(--coin) * .7071 + .7px)),
        linear-gradient(45deg, var(--atelier) calc(var(--coin) * .7071), transparent calc(var(--coin) * .7071 + .7px));
}

.pied-site.trace {
    background-image: none;
}

.bloc.sombre.sur-gris.trace,
.pied-site.trace {
    overflow: hidden;
    overflow: clip;
}

.bloc.sombre.sur-gris.trace::before,
.bloc.sombre.sur-gris.trace::after,
.pied-site.trace::before {
    content: "";
    position: absolute;
    height: 2px;
    background: var(--rouge);
    transform-origin: 0 50%;
    transform: rotate(45deg) scaleX(0);
    transition: transform .8s cubic-bezier(.3, .7, .2, 1) .2s;
    pointer-events: none;
}

.bloc.sombre.sur-gris.trace::before {
    left: calc(100% - var(--coin) - 10.6px);
    top: -1px;
    width: calc((var(--coin) + 10.6px) * 1.4142);
}

.bloc.sombre.sur-gris.trace::after {
    left: 0;
    top: calc(100% - var(--coin) - 11.6px);
    width: calc((var(--coin) + 10.6px) * 1.4142);
}

.pied-site.trace::before {
    left: calc(100% - var(--coin) - 7.8px);
    top: -1px;
    width: calc((var(--coin) + 7.8px) * 1.4142);
}

.bloc.sombre.sur-gris.trace.vu::before,
.bloc.sombre.sur-gris.trace.vu::after,
.pied-site.trace.vu::before {
    transform: rotate(45deg) scaleX(1);
}

/* Un élément se pose une fois, à sa première apparition (classes posées par le script, hors du premier écran). */
.pose-attente {
    opacity: 0;
    translate: 0 18px;
}

.pose-fait {
    transition: opacity .5s ease, translate .6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--pose-rang, 0) * 80ms);
}

/* La phrase forte d'une bande sombre s'éclaire mot après mot, au fil du défilement (mots isolés par le script). */
.parti-pris .mot {
    opacity: var(--eclat, 1);
    transition: opacity .12s linear;
}

/* Une capture se décale un peu pendant le défilement (le décalage vient du script). */
.parallaxe {
    transform: translateY(var(--decalage, 0));
    will-change: transform;
}

/* Blocs repliables « questions » : le « + » est dessiné, et devient « − » en tournant quand le bloc s'ouvre ; il est
   rouge sur le bloc ouvert. Le script anime la hauteur du bloc, n'en laisse qu'un ouvert par groupe, et pose
   « replie » sur un bloc qui se referme ; sans lui, chaque bloc s'ouvre et se ferme d'un coup. */
.questions summary::after,
.questions details[open] summary::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-top: 4px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transition: transform .32s cubic-bezier(.3, .7, .2, 1), background-size .32s cubic-bezier(.3, .7, .2, 1), color .2s ease;
}

.questions details[open]:not(.replie) summary::after {
    background-size: 100% 2px, 2px 0;
    color: var(--rouge);
    transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .questions summary:hover::after {
        color: var(--rouge);
    }
}

@media (prefers-reduced-motion: reduce) {
    .entete-site .cadre,
    .entete-site .logo img,
    .questions summary::after,
    .questions details[open] summary::after {
        transition: none;
    }

    .bloc.sombre.sur-gris.trace::before,
    .bloc.sombre.sur-gris.trace::after,
    .pied-site.trace::before {
        transform: rotate(45deg) scaleX(1);
        transition: none;
    }

    .pose-attente {
        opacity: 1;
        translate: none;
    }

    .parti-pris .mot {
        opacity: 1;
    }

    .parallaxe {
        transform: none;
    }

    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

/* Bouton écrit comme un lien dans un texte courant (« Modifier mes choix ») : une zone d'appui de 40 px. */
.texte .lien-bouton {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}
