/* -------------------------------------------------------------------------
   Charte « L'aller-retour » — jetons et typographie.
   -------------------------------------------------------------------------
   Le service vouvoie les parents en Archivo ; le robot écrit à la machine
   (Courier Prime) ; l'enfant répond à la main (Playwrite FR Moderne).
   Un seul bouton jaune étoile par écran.
   Le rouge marge et l'encre d'écolier ne vont jamais dans les dessins des
   timbres.
   Pour les espaces insécables, utiliser U+00A0 (&nbsp;) : l'espace fine
   U+202F manque dans Archivo et dans Playwrite.

   Toutes les variables portent le préfixe --ar- et toutes les classes le
   préfixe .ar-, afin de ne jamais entrer en collision avec
   correspondance.css (ancien design, encore en service pendant la
   migration). Les valeurs sont relevées dans la maquette
   docs/maquette-aller-retour/ ; aucune couleur n'est inventée.
   ------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   Styles de base, repris du <style> de la maquette. Ce fichier n'est
   chargé que par les pages du nouveau design : l'ancien design garde
   correspondance.css et ses propres règles.
   --------------------------------------------------------------------- */

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

body {
    margin: 0;
    background: var(--ar-papier);
    color: var(--ar-encre);
    font-family: var(--ar-police-service);
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: var(--ar-encre);
}

a:hover {
    color: var(--ar-marge-texte);
}

:root {
    /* Couleurs de la charte. */
    --ar-encre: #1C2340;          /* le bleu presque noir du texte et des contours. */
    --ar-papier: #FFFFFF;         /* le fond des feuilles et des cartes. */
    --ar-calque: #EEF2FB;         /* le bleu très clair des fonds de section. */
    --ar-marge: #D8432F;          /* le rouge de la marge tracée sur le papier. */
    --ar-marge-texte: #B8321F;    /* la variante du rouge marge pour le texte. */
    --ar-etoile: #FFC83D;         /* le jaune du bouton étoile et des points brillants. */
    --ar-ecolier: #2F4AA8;        /* le bleu d'encre de l'écolier, réservé aux mots de l'enfant. */
    --ar-nuit: #263A7A;           /* l'univers de Lyxoutimi : le fond de tous ses timbres. */
    --ar-fougere: #3F7D5C;        /* l'univers de Rextimi : le fond de tous ses timbres. */
    --ar-fougere-texte: #356B4E;  /* la variante du vert fougère pour le texte. */

    /* Couleurs des timbres et des fonds sombres. */
    --ar-corail: #E8674A;            /* le corail des timbres, sur fond clair. */
    --ar-corail-sombre: #C94E35;     /* le corail foncé des ombres et des contours de timbre. */
    --ar-bleu-pale: #AFBCE8;         /* le bleu pâle des ciels et des fonds de timbre. */
    --ar-vert-pale: #E7F2EA;         /* le vert pâle très clair des fonds. */
    --ar-sauge: #CFE5D6;             /* le vert sauge des aplats nature. */
    --ar-sable: #FFE08A;             /* le jaune sable des fonds chauds. */
    --ar-corail-sur-sombre: #FF7A66; /* le corail éclairci, lisible sur un fond sombre. */

    /* Gris bleutés : relevés dans la maquette, ils y reviennent partout. */
    --ar-texte-secondaire: #4A5270;       /* le texte secondaire : légendes et précisions. */
    --ar-texte-sur-sombre: #C9CFE6;       /* le texte secondaire posé sur un fond sombre. */
    --ar-etiquette-sur-sombre: #AEB6D6;   /* les petites étiquettes capitales sur fond sombre. */
    --ar-reglure: #E3E8F8;                /* la réglure : lignes fines dessinées dans les fonds. */
    --ar-reglure-pale: #EEF1FA;           /* la réglure très claire, les verticales du Seyès. */
    --ar-marge-seyes: #E46B5B;            /* la ligne de marge de la réglure Seyès. */
    --ar-bordure: #DDE3F7;                /* les bordures de cartes et de blocs. */
    --ar-filet: #C9D1EA;                  /* les filets de séparation et les fonds atténués. */
    --ar-pointilles: #8D97BD;             /* les traits pointillés des champs à remplir. */

    /* Les trois écritures de la charte. */
    --ar-police-service: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --ar-police-robot: 'Courier Prime', 'Courier New', monospace;
    --ar-police-enfant: 'Playwrite FR Moderne', 'Segoe Script', cursive;
}

/* ---------------------------------------------------------------------
   Typographie. Les titres sont posés en Archivo élargi et très gras.
   --------------------------------------------------------------------- */

.ar-titre-1 {
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(30px, 5.4vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.ar-titre-2 {
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.ar-titre-3 {
    font-family: var(--ar-police-service);
    font-stretch: 112%;
    font-weight: 750;
    font-size: 21px;
    line-height: 1.2;
}

.ar-texte {
    font-family: var(--ar-police-service);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ar-encre);
}

.ar-etiquette {
    font-family: var(--ar-police-service);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ar-marge-texte);
}

.ar-etiquette--discrete {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--ar-texte-secondaire);
}

/* La voix du robot : les lettres et les réponses des robots, rien d'autre. */
.ar-robot {
    font-family: var(--ar-police-robot);
}

/* Les mots de l'enfant, cités tels quels : jamais un titre ni un bouton. */
.ar-enfant {
    font-family: var(--ar-police-enfant);
    color: var(--ar-ecolier);
}

/* ---------------------------------------------------------------------
   La mise en page « marge rouge ». Chaque section est une bande : la
   marge à gauche porte le numéro et son étiquette, le contenu suit,
   séparé par le trait vertical rouge. Repris des sections de
   docs/maquette-aller-retour/1-accueil-version-allegee.html.
   --------------------------------------------------------------------- */

.ar-page {
    max-width: 1376px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 64px);
    display: flex;
    flex-wrap: wrap;
}

.ar-marge {
    flex: 0 0 152px;
    box-sizing: border-box;
    padding: clamp(28px, 6vw, 88px) 24px 12px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ar-marge__numero {
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ar-marge);
}

/* Seule exception à la règle « Playwrite = mots de l'enfant », prévue par
   la charte : l'annotation de la marge, écrite à la main elle aussi. */
.ar-marge__note {
    font-family: var(--ar-police-enfant);
    font-size: 15px;
    line-height: 2;
    color: var(--ar-marge-texte);
}

.ar-contenu {
    flex: 999 1 640px;
    min-width: 0;
    border-left: 2px solid var(--ar-marge);
    padding: clamp(28px, 6vw, 88px) 0 clamp(56px, 6vw, 96px) clamp(20px, 4vw, 56px);
}

.ar-section--papier {
    background: var(--ar-papier);
    color: var(--ar-encre);
}

.ar-section--calque {
    background: var(--ar-calque);
    color: var(--ar-encre);
}

.ar-section--encre {
    background: var(--ar-encre);
    color: var(--ar-papier);
}

/* Sur fond encre, les couleurs sont relevées dans la section « 04 le tri »
   de l'accueil : le numéro en corail clair, la note plus claire encore,
   les titres en blanc et les textes en gris bleuté. */
.ar-section--encre .ar-marge__numero {
    color: var(--ar-corail-sur-sombre);
}

.ar-section--encre .ar-marge__note {
    color: #FF8370;
}

.ar-section--encre .ar-titre-1,
.ar-section--encre .ar-titre-2,
.ar-section--encre .ar-titre-3 {
    color: var(--ar-papier);
}

/* Sur fond encre, le texte courant passe en gris bleuté, les étiquettes en
   corail éclairci (contraste 6:1), les étiquettes discrètes en gris clair
   et les liens en blanc, pour rester lisibles. */
.ar-section--encre .ar-texte {
    color: var(--ar-texte-sur-sombre);
}

.ar-section--encre .ar-etiquette {
    color: var(--ar-corail-sur-sombre);
}

.ar-section--encre .ar-etiquette--discrete {
    color: var(--ar-etiquette-sur-sombre);
}

.ar-section--encre a {
    color: var(--ar-papier);
}

/* ---------------------------------------------------------------------
   Les motifs. Repris de la section « 04 les motifs » de la charte.
   --------------------------------------------------------------------- */

/* La réglure Seyès : uniquement là où l'enfant écrit. Le pas vaut 40px
   dans la maquette ; les lignes fines reviennent tous les quarts de pas,
   la troisième (à trois quarts) en bleu pâle, les autres en réglure. */
.ar-seyes {
    --ar-seyes-pas: 40px;
    box-sizing: border-box;
    padding: 0 10px 0 44px;
    border: 1px solid var(--ar-bordure);
    background-color: var(--ar-papier);
    background-image:
        linear-gradient(
            to right,
            transparent calc(var(--ar-seyes-pas) * 31 / 40),
            var(--ar-marge-seyes) calc(var(--ar-seyes-pas) * 31 / 40),
            var(--ar-marge-seyes) calc(var(--ar-seyes-pas) * 33 / 40),
            transparent calc(var(--ar-seyes-pas) * 33 / 40)
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(var(--ar-seyes-pas) / 4 - 1px),
            var(--ar-reglure) calc(var(--ar-seyes-pas) / 4 - 1px),
            var(--ar-reglure) calc(var(--ar-seyes-pas) / 4),
            transparent calc(var(--ar-seyes-pas) / 4),
            transparent calc(var(--ar-seyes-pas) / 2 - 1px),
            var(--ar-reglure) calc(var(--ar-seyes-pas) / 2 - 1px),
            var(--ar-reglure) calc(var(--ar-seyes-pas) / 2),
            transparent calc(var(--ar-seyes-pas) / 2),
            transparent calc(var(--ar-seyes-pas) * 3 / 4 - 1px),
            var(--ar-bleu-pale) calc(var(--ar-seyes-pas) * 3 / 4 - 1px),
            var(--ar-bleu-pale) calc(var(--ar-seyes-pas) * 3 / 4),
            transparent calc(var(--ar-seyes-pas) * 3 / 4),
            transparent calc(var(--ar-seyes-pas) - 1px),
            var(--ar-reglure) calc(var(--ar-seyes-pas) - 1px),
            var(--ar-reglure) var(--ar-seyes-pas)
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--ar-seyes-pas) - 1px),
            var(--ar-reglure-pale) calc(var(--ar-seyes-pas) - 1px),
            var(--ar-reglure-pale) var(--ar-seyes-pas)
        );
    font-family: var(--ar-police-enfant);
    font-size: 20px;
    line-height: var(--ar-seyes-pas);
    color: var(--ar-ecolier);
}

/* La feuille blanche et ses deux plis discrets, à un tiers et deux tiers.
   Elle porte le contenu de la maquette : une barre encre et quatre lignes
   grises, tenues dans le cadre par le padding. */
.ar-lettre {
    box-sizing: border-box;
    width: 100px;
    height: 132px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background-color: var(--ar-papier);
    background-image:
        linear-gradient(to bottom, transparent 33.1%, rgba(28, 35, 64, 0.10) 33.33%, transparent 33.9%),
        linear-gradient(to bottom, transparent 66.2%, rgba(28, 35, 64, 0.10) 66.66%, transparent 67.2%);
    box-shadow: 0 8px 18px rgba(28, 35, 64, 0.12);
}

/* La première ligne, plus foncée : le titre de la lettre. */
.ar-lettre__titre {
    width: 60%;
    height: 4px;
    background: var(--ar-encre);
}

/* Les lignes suivantes, en gris : le corps de la lettre. */
.ar-lettre__ligne {
    height: 3px;
    background: var(--ar-filet);
}

.ar-lettre__ligne:nth-child(2) {
    width: 100%;
}

.ar-lettre__ligne:nth-child(3) {
    width: 90%;
}

.ar-lettre__ligne:nth-child(4) {
    width: 96%;
}

.ar-lettre__ligne:nth-child(5) {
    width: 70%;
}

/* Le pli de la lettre, légèrement penché. */
.ar-lettre--penchee {
    transform: rotate(2deg);
}

/* La bordure à rayures par avion : réservée au cadeau et au pied de page. */
.ar-par-avion {
    box-sizing: border-box;
    border: 10px solid transparent;
    border-image: repeating-linear-gradient(
        -45deg,
        #D8432F 0px, #D8432F 12px,
        #FFFFFF 12px, #FFFFFF 20px,
        #263A7A 20px, #263A7A 32px,
        #FFFFFF 32px, #FFFFFF 40px
    ) 10;
    font-family: var(--ar-police-robot);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ar-encre);
}

/* La bande à rayures du haut du pied de page de l'accueil. */
.ar-par-avion-bande {
    height: 10px;
    background-image: repeating-linear-gradient(
        -45deg,
        #D8432F 0px, #D8432F 14px,
        #1C2340 14px, #1C2340 20px,
        #FFFFFF 20px, #FFFFFF 34px,
        #1C2340 34px, #1C2340 40px
    );
}

/* ---------------------------------------------------------------------
   Le timbre dentelé. Le bord blanc est découpé par un masque : une grille
   de trous (radial-gradient répété, dont le centre tombe sur le bord
   extérieur) et un rectangle plein au centre, pour protéger l'image.
   La dentelure se règle par --ar-timbre-pas (l'écart entre deux trous) et
   --ar-timbre-rayon (le rayon d'un trou). Règle : le rayon ne dépasse pas
   40 % de la largeur du bord blanc, et l'inset du masque (pas/2) reste
   plus petit que ce bord, pour ne jamais mordre sur l'image. La rotation
   et les ombres du timbre penché sont celles de la maquette.
   --------------------------------------------------------------------- */

.ar-timbre {
    --ar-timbre-pas: 8px;
    --ar-timbre-rayon: 3px;
    position: relative;
    display: block;
    box-sizing: border-box;
    padding: 10px;
    background: var(--ar-papier);
    mask:
        radial-gradient(
            circle at calc(var(--ar-timbre-pas) / 2) calc(var(--ar-timbre-pas) / 2),
            transparent calc(var(--ar-timbre-rayon) - 0.5px),
            #000 var(--ar-timbre-rayon)
        ) calc(var(--ar-timbre-pas) / -2) calc(var(--ar-timbre-pas) / -2) / var(--ar-timbre-pas) var(--ar-timbre-pas) repeat,
        linear-gradient(#000, #000) calc(var(--ar-timbre-pas) / 2) calc(var(--ar-timbre-pas) / 2) / calc(100% - var(--ar-timbre-pas)) calc(100% - var(--ar-timbre-pas)) no-repeat;
}

.ar-timbre__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grand : 176 × 224, bord de 10px, pas de 8px, trous de 3px (30 %). */
.ar-timbre--grand {
    --ar-timbre-pas: 8px;
    --ar-timbre-rayon: 3px;
    width: 176px;
    height: 224px;
    padding: 10px;
}

/* Moyen : 96 × 120, bord de 10px, pas de 12px, trous de 4px (40 %). */
.ar-timbre--moyen {
    --ar-timbre-pas: 12px;
    --ar-timbre-rayon: 4px;
    width: 96px;
    height: 120px;
    padding: 10px;
}

/* Petit, pour l'album : 58 × 72, bord de 5px, pas de 8px, trous de 2px (40 %). */
.ar-timbre--petit {
    --ar-timbre-pas: 8px;
    --ar-timbre-rayon: 2px;
    width: 58px;
    height: 72px;
    padding: 5px;
}

/* Vignette, pour les cartes de correspondant : 88 × 112, bord de 6px,
   pas de 8px, trous de 2.5px (42 %). */
.ar-timbre--vignette {
    --ar-timbre-pas: 8px;
    --ar-timbre-rayon: 2.5px;
    width: 88px;
    height: 112px;
    padding: 6px;
}

/* Lettre, pour l'en-tête de la lettre n° 4 : 64 × 80, bord de 6px, pas de
   8px, trous de 2.5px, penché de +3deg comme dans la maquette (la
   variante --penche penche dans l'autre sens). */
.ar-timbre--lettre {
    --ar-timbre-pas: 8px;
    --ar-timbre-rayon: 2.5px;
    width: 64px;
    height: 80px;
    padding: 6px;
    transform: rotate(3deg);
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.18)) drop-shadow(0 12px 20px rgba(28, 35, 64, 0.16));
}

/* Le petit timbre ne montre que son numéro, seul et centré en bas. */
.ar-timbre--numero .ar-timbre__numero {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 11px;
    line-height: 1;
    color: var(--ar-papier);
}

.ar-timbre--penche {
    transform: rotate(-3deg);
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.18)) drop-shadow(0 12px 20px rgba(28, 35, 64, 0.16));
}

/* Les textes que le site pose sur l'image : le nom du robot en haut, le
   numéro et le titre en bas. Valeurs du timbre Olympus Mons de l'accueil.
   Ils ne s'affichent qu'en tailles grand et moyen. */
.ar-timbre--grand .ar-timbre__robot,
.ar-timbre--moyen .ar-timbre__robot {
    position: absolute;
    left: 0;
    right: 0;
    top: 17px;
    text-align: center;
    font-family: var(--ar-police-service);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ar-papier);
}

.ar-timbre--grand .ar-timbre__bas,
.ar-timbre--moyen .ar-timbre__bas {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    color: var(--ar-papier);
}

.ar-timbre--grand .ar-timbre__numero,
.ar-timbre--moyen .ar-timbre__numero {
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
}

.ar-timbre--grand .ar-timbre__titre,
.ar-timbre--moyen .ar-timbre__titre {
    font-family: var(--ar-police-service);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   Les éléments. Repris de la section « 05 les éléments » de la charte.
   --------------------------------------------------------------------- */

.ar-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 54px;
    padding: 0 22px;
    border: 2px solid var(--ar-encre);
    border-radius: 8px;
    background: var(--ar-papier);
    color: var(--ar-encre);
    font-family: var(--ar-police-service);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

/* L'action principale : fond jaune étoile et ombre pleine. Une seule par écran. */
.ar-bouton--etoile {
    background: var(--ar-etoile);
    box-shadow: 0 3px 0 var(--ar-encre);
}

.ar-bouton--contour {
    background: var(--ar-papier);
}

.ar-bouton:hover {
    filter: brightness(0.96);
}

.ar-bouton--etoile:hover {
    filter: brightness(1.02);
}

.ar-bouton:active {
    transform: translateY(1px);
}

/* Le bouton étoile descend de 2px et son ombre se réduit d'autant. */
.ar-bouton--etoile:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--ar-encre);
}

.ar-bouton:focus-visible {
    outline: 3px solid var(--ar-encre);
    outline-offset: 3px;
}

/* Le lien fléché. */
.ar-lien-fleche {
    padding: 10px 0;
    font-family: var(--ar-police-service);
    font-size: 16px;
    font-weight: 700;
    color: var(--ar-encre);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* Les champs : un label, un input ou un select, et un état d'erreur. */
.ar-champ {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ar-champ__label {
    font-family: var(--ar-police-service);
    font-size: 14px;
    font-weight: 700;
}

.ar-champ input,
.ar-champ select {
    box-sizing: border-box;
    height: 52px;
    padding: 0 14px;
    border: 2px solid var(--ar-encre);
    border-radius: 8px;
    background: var(--ar-papier);
    color: var(--ar-encre);
    font-family: inherit;
    font-size: 16px;
}

.ar-champ input:focus-visible,
.ar-champ select:focus-visible {
    outline: 3px solid var(--ar-encre);
    outline-offset: 3px;
}

.ar-champ--erreur input,
.ar-champ--erreur select {
    border-color: var(--ar-marge);
}

.ar-champ__erreur {
    font-family: var(--ar-police-service);
    font-size: 14px;
    line-height: 1.4;
    color: var(--ar-marge-texte);
}

/* Les pastilles : les sujets et les saisons. */
.ar-pastille {
    display: inline-block;
    box-sizing: border-box;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--ar-police-service);
    font-size: 13px;
    font-weight: 600;
}

.ar-pastille--nuit {
    border: 1.5px solid var(--ar-nuit);
    color: var(--ar-nuit);
}

.ar-pastille--fougere {
    border: 1.5px solid var(--ar-fougere-texte);
    color: var(--ar-fougere-texte);
}

.ar-pastille--pleine {
    background: var(--ar-encre);
    border: 1.5px solid var(--ar-encre);
    color: var(--ar-papier);
}

/* Les repères numérotés, en trois tailles : 28px (la charte), 36px
   (la section « 02 une lettre » de l'accueil) et 40px (« 01 le trajet »). */
.ar-repere {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--ar-marge);
    border-radius: 50%;
    font-family: var(--ar-police-service);
    font-weight: 800;
    line-height: 1;
    color: var(--ar-marge-texte);
}

.ar-repere--petit {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
    font-size: 13px;
}

.ar-repere--moyen {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

.ar-repere--grand {
    width: 40px;
    height: 40px;
    font-stretch: 125%;
    font-size: 17px;
}

/* Le fil : un repère, des pointillés rouges, une étiquette ALLER ou RETOUR. */
.ar-fil {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ar-fil__trait {
    flex: 1 1 auto;
    min-width: 16px;
    border-top: 2px dashed var(--ar-marge);
}

.ar-fil__etiquette {
    flex: none;
    font-family: var(--ar-police-service);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ar-marge-texte);
}

/* Le tampon d'engagement : un double bord penché, jamais un slogan.
   Sur fond encre, il est en corail éclairci ; sur fond clair, en rouge marge. */
.ar-tampon {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--ar-corail-sur-sombre);
    outline: 1px solid var(--ar-corail-sur-sombre);
    outline-offset: 3px;
    border-radius: 4px;
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ar-corail-sur-sombre);
    transform: rotate(-2deg);
}

.ar-tampon--clair {
    border-color: var(--ar-marge);
    outline-color: var(--ar-marge);
    color: var(--ar-marge);
}

/* Les cachets du kit, posés en images (ou en SVG en ligne pour le cachet
   daté). La taille et la rotation se choisissent par classe. */
.ar-cachet {
    display: block;
}

.ar-cachet--petit {
    width: 96px;
    height: 60px;
}

.ar-cachet--moyen {
    width: 160px;
    height: 100px;
}

.ar-cachet--grand {
    width: 240px;
    height: 150px;
}

.ar-cachet--penche {
    transform: rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
    .ar-bouton {
        transition: none;
    }

    .ar-bouton:active,
    .ar-bouton--etoile:active {
        transform: none;
    }
}

/* ---------------------------------------------------------------------
   Page de contrôle (.ar-controle). Mise en page propre à la page /charte/,
   jamais servie en production : la vue lève Http404 quand DEBUG est faux.
   Tout le reste du rendu vient des classes définies plus haut.
   --------------------------------------------------------------------- */

.ar-controle {
    background: var(--ar-calque);
}

.ar-controle__contenu {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    flex: 1 1 auto;
}

/* Chaque bande porte son fond ; la largeur et la marge rouge sont
   tenues par .ar-page à l'intérieur. */
.ar-controle section {
    display: block;
}

.ar-controle__grille {
    display: grid;
    gap: 24px;
}

/* La grille des timbres précède la rangée de l'album : on réserve sous
   elle l'espace qu'occupe le grand timbre penché en débordant (rotation
   et ombre portée), pour qu'il ne recouvre pas l'étiquette de l'album. */
.ar-controle__grille--deux {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    padding-bottom: 44px;
}

.ar-controle__grille--trois {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.ar-controle__grille--six {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

.ar-controle__bloc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ar-controle__libelle {
    font-family: var(--ar-police-service);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ar-marge-texte);
}

.ar-controle__specimen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 16px;
    background: var(--ar-calque);
    border: 1px solid var(--ar-bordure);
}

.ar-controle__nuancier {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 14px;
}

.ar-controle__couleur {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ar-controle__echantillon {
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ar-bordure);
    border-radius: 8px;
}

.ar-controle__echantillon--encre {
    background: var(--ar-encre);
}

.ar-controle__echantillon--papier {
    background: var(--ar-papier);
}

.ar-controle__echantillon--calque {
    background: var(--ar-calque);
}

.ar-controle__echantillon--marge {
    background: var(--ar-marge);
}

.ar-controle__echantillon--etoile {
    background: var(--ar-etoile);
}

.ar-controle__echantillon--ecolier {
    background: var(--ar-ecolier);
}

.ar-controle__echantillon--nuit {
    background: var(--ar-nuit);
}

.ar-controle__echantillon--fougere {
    background: var(--ar-fougere);
}

.ar-controle__couleur-nom {
    font-family: var(--ar-police-service);
    font-size: 15px;
    font-weight: 700;
}

.ar-controle__couleur-code {
    display: block;
    font-family: var(--ar-police-robot);
    font-size: 13px;
    font-weight: 400;
    color: var(--ar-texte-secondaire);
}

.ar-controle__rangee {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ar-controle__rangee--album {
    gap: 10px;
    align-items: flex-start;
}

.ar-controle__cachets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.ar-controle__encre {
    padding: 24px;
    background: var(--ar-encre);
}

.ar-controle__clair {
    padding: 24px;
    background: var(--ar-papier);
}

/* Dans une case de spécimen, les motifs à fond prennent toute la largeur. */
.ar-controle__specimen .ar-seyes {
    width: 100%;
}

.ar-controle__specimen .ar-par-avion {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.ar-controle__marge-demo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
}

.ar-controle__numero-mini {
    font-size: 28px;
}

.ar-controle__filet {
    flex: none;
    align-self: stretch;
    min-height: 40px;
    width: 2px;
    background: var(--ar-marge);
}

.ar-controle__texte-demo {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ar-texte-secondaire);
}

/* ---------------------------------------------------------------------
   Le gabarit du nouveau design : lien d'évitement, en-tête et pied de
   page. Valeurs relevées dans le <header> et le <footer> de la maquette
   docs/maquette-aller-retour/1-accueil-version-allegee.html.
   --------------------------------------------------------------------- */

/* Le lien d'évitement reste hors écran et n'apparaît qu'au focus clavier.
   Fond encre et texte blanc ; seul son contour passe au jaune étoile au
   focus, le jaune restant réservé à l'action principale de l'écran. */
.ar-evitement {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--ar-encre);
    color: var(--ar-papier);
    font-family: var(--ar-police-service);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.ar-evitement:focus {
    left: 16px;
    top: 16px;
    outline: 3px solid var(--ar-etoile);
    outline-offset: 2px;
}

/* L'en-tête : l'emblème, le nom, la navigation puis l'action d'inscription.
   Sous 1200px, la navigation se replie dans un menu sans JavaScript ; chaque
   cible mesure au moins 44px de haut. */
.ar-entete {
    position: relative;
    background: var(--ar-papier);
    border-bottom: 1px solid var(--ar-reglure);
}

.ar-entete__barre {
    max-width: 1376px;
    margin: 0 auto;
    padding: 14px clamp(16px, 4vw, 64px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 32px;
}

.ar-entete__marque {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-right: auto;
    color: var(--ar-encre);
    text-decoration: none;
}

/* L'emblème de la maquette : les deux cercles, l'étoile et les ondes, en
   80 × 44. */
.ar-entete__embleme {
    display: block;
    flex: none;
    width: 80px;
    height: 44px;
    overflow: visible;
}

/* Le nom et son accroche, écrits en HTML pour rester lisibles et
   adaptables (le fichier du logo ne porte pas l'accroche). */
.ar-entete__texte {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ar-entete__nom {
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.ar-entete__accroche {
    font-family: var(--ar-police-service);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ar-texte-secondaire);
}

.ar-entete__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 24px;
    font-family: var(--ar-police-service);
    font-size: 15px;
    font-weight: 600;
}

.ar-entete__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
    color: var(--ar-encre);
    text-decoration: none;
}

.ar-entete__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

/* Le menu replié, sans JavaScript : un <details> dont le <summary> sert de
   bouton. Il n'apparaît que sous 1200px ; sur grand écran, la navigation
   reste en ligne et le bouton Menu n'existe pas. */
.ar-entete__menu {
    display: none;
}

.ar-entete__menu-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    border: 2px solid var(--ar-encre);
    border-radius: 8px;
    background: var(--ar-papier);
    color: var(--ar-encre);
    font-family: var(--ar-police-service);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.ar-entete__menu-resume::-webkit-details-marker {
    display: none;
}

.ar-entete__menu-resume:focus-visible {
    outline: 3px solid var(--ar-encre);
    outline-offset: 2px;
}

.ar-entete__menu-icone {
    flex: none;
    width: 24px;
    height: 24px;
}

/* Le panneau ouvert : sous la barre, sur toute la largeur, fond papier, les
   liens en colonne séparés par des filets. */
.ar-entete__menu-panneau {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    padding: 0 clamp(16px, 4vw, 64px);
    background: var(--ar-papier);
    border-top: 1px solid var(--ar-reglure);
    border-bottom: 1px solid var(--ar-reglure);
}

.ar-entete__menu-nav {
    display: flex;
    flex-direction: column;
}

.ar-entete__menu-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ar-reglure);
    font-family: var(--ar-police-service);
    font-size: 15px;
    font-weight: 600;
    color: var(--ar-encre);
    text-decoration: none;
}

.ar-entete__menu-nav a:last-child {
    border-bottom: 0;
}

/* Le bouton d'inscription posé dans le menu : il ne sert que sous 600px, où
   celui de la barre est masqué. Tant qu'il est masqué, il l'est aussi pour
   les lecteurs d'écran. */
.ar-entete__bouton-menu {
    display: none;
}

/* Sous 1200px : la navigation se replie dans le menu. De 600 à 1199px, le
   menu et le bouton d'inscription restent dans la barre, à droite. */
@media (max-width: 1199px) {
    .ar-entete__nav {
        display: none;
    }

    .ar-entete__menu {
        display: block;
    }
}

/* Sous 600px : la barre ne passe jamais à la ligne. Le bloc du logo peut
   rétrécir, le bouton Menu non ; le bouton d'inscription descend dans le
   menu, en dernier. */
@media (max-width: 599px) {
    .ar-entete__barre {
        flex-wrap: nowrap;
    }

    .ar-entete__marque {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ar-entete__embleme {
        width: 56px;
        height: auto;
    }

    .ar-entete__nom {
        font-size: 20px;
    }

    .ar-entete__accroche {
        font-size: 10px;
    }

    .ar-entete__menu {
        flex: none;
    }

    .ar-entete__bouton {
        display: none;
    }

    .ar-entete__bouton-menu {
        display: inline-flex;
        align-self: flex-start;
        margin: 16px 0;
    }
}

/* Sous 400px : le bouton Menu ne montre plus que son icône, sur une cible de
   44 × 44px. Le mot « Menu » reste lu par les lecteurs d'écran : il est
   masqué visuellement, sans passer en display: none. */
@media (max-width: 399px) {
    .ar-entete__menu-resume {
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .ar-entete__menu-mot {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
}

/* La variante compacte du bouton, pour l'en-tête : 44px de haut et une
   ombre plus courte, comme dans la maquette. */
.ar-bouton--compact {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    box-shadow: 0 2px 0 var(--ar-encre);
}

.ar-bouton--compact:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--ar-encre);
}

/* Le pied de page : fond encre, bande à rayures en tête, logo blanc, trois
   colonnes de liens, les réseaux puis la ligne du bas. Les liens y sont
   clairs et le survol passe au corail clair. */
.ar-pied {
    background: var(--ar-encre);
    color: var(--ar-papier);
}

/* La bande à rayures qui coiffe le pied : rouge marge, encre, blanc, encre,
   aux valeurs exactes de la maquette. */
.ar-pied__bande {
    height: 10px;
    background: repeating-linear-gradient(
        -45deg,
        var(--ar-marge) 0px,
        var(--ar-marge) 14px,
        var(--ar-encre) 14px,
        var(--ar-encre) 20px,
        var(--ar-papier) 20px,
        var(--ar-papier) 34px,
        var(--ar-encre) 34px,
        var(--ar-encre) 40px
    );
}

.ar-pied__interieur {
    max-width: 1376px;
    margin: 0 auto;
    padding: 56px clamp(16px, 4vw, 64px) 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ar-pied__haut {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
}

.ar-pied__marque {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ar-pied__logo {
    display: block;
    height: 44px;
    width: auto;
}

.ar-pied__nav {
    flex: 2 1 480px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 32px;
}

.ar-pied__colonne {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ar-pied__titre {
    margin: 0 0 4px;
    font-family: var(--ar-police-service);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ar-etiquette-sur-sombre);
}

.ar-pied__colonne a {
    padding: 4px 0;
    font-family: var(--ar-police-service);
    font-size: 15px;
    color: var(--ar-papier);
    text-decoration: none;
}

.ar-pied__colonne a:hover {
    color: var(--ar-corail-sur-sombre);
}

.ar-pied__bas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 24px;
    border-top: 1px solid #39426A;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ar-etiquette-sur-sombre);
}

.ar-pied__copyright {
    margin: 0;
}

/* La ligne « retour à l'expéditeur », en Courier Prime comme dans la
   maquette. */
.ar-pied__retour {
    margin: 0;
    font-family: var(--ar-police-robot);
}

/* Les réseaux, posés sur le fond encre. */
.ar-reseaux {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.ar-reseaux a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--ar-papier);
    font-family: var(--ar-police-service);
    font-size: 15px;
    text-decoration: none;
}

.ar-reseaux a:hover {
    color: var(--ar-corail-sur-sombre);
}

.ar-reseaux svg {
    flex: none;
    width: 20px;
    height: 20px;
}

/* =====================================================================
   Page d'accueil : le haut de page, puis les six sections numérotées de
   la marge, « 01 le trajet », « 02 une lettre », « 03 les robots »,
   « 04 le tri », « 05 les tarifs » et « 06 à vous ». Repris de
   docs/maquette-aller-retour/1-accueil-version-allegee.html.

   Les sections de l'accueil portent toutes la classe .ar-accueil, en plus
   de celle de leur fond. Elle annule les marges par défaut du navigateur,
   comme la maquette : l'espacement vient des gaps de chaque bloc.
   ===================================================================== */

.ar-accueil * {
    margin: 0;
}

/* Le contenu d'une section empile ses blocs. L'écart change d'une section
   à l'autre (44, 48 puis 40px dans la maquette). */
.ar-accueil .ar-contenu {
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------------------------------------
   Le haut de page : le cachet « départ » dans la marge.
   --------------------------------------------------------------------- */

/* La marge du haut ne porte ni numéro ni étiquette : le cachet de départ
   et le mot « départ ». Elle démarre un peu plus haut que les autres. */
.ar-marge--depart {
    padding: clamp(24px, 5vw, 76px) 24px 12px 0;
    gap: 10px;
}

/* Le cachet « départ » : aucun fichier du kit ne porte ce mot, il est donc
   dessiné en SVG dans accueil.html. */
.ar-cachet-depart {
    display: block;
    width: 128px;
    height: 80px;
    overflow: visible;
    opacity: 0.9;
    transform: rotate(-8deg);
}

.ar-hero .ar-contenu {
    gap: 44px;
}

.ar-hero__titre {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ar-hero__corps {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

.ar-hero__colonne {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 8px;
}

.ar-hero__intro {
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.5;
    text-wrap: pretty;
}

.ar-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Les trois preuves, chacune avec son icône. */
.ar-preuves {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.ar-preuves li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

.ar-preuves svg {
    flex: none;
}

.ar-hero__note {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ar-texte-secondaire);
}

/* L'exemple de droite : la lettre du robot et la réponse de l'enfant. */
.ar-exemple {
    flex: 1.6 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

/* La lettre « Aller », froissée de deux plis discrets. */
.ar-exemple__lettre {
    position: relative;
    align-self: flex-start;
    width: 78%;
    min-width: min(100%, 300px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 28px 76px;
    background-color: var(--ar-papier);
    background-image:
        linear-gradient(to bottom, transparent 33.1%, rgba(28, 35, 64, 0.07) 33.33%, transparent 33.7%),
        linear-gradient(to bottom, transparent 66.4%, rgba(28, 35, 64, 0.07) 66.66%, transparent 67%);
    border: 1px solid var(--ar-reglure);
    box-shadow: 0 1px 2px rgba(28, 35, 64, 0.08), 0 16px 36px rgba(28, 35, 64, 0.10);
    font-family: var(--ar-police-robot);
    font-size: 15px;
    line-height: 1.6;
    transform: rotate(-1.6deg);
}

.ar-exemple__entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.ar-exemple__entete-texte {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Les petites étiquettes capitales des deux feuilles. */
.ar-exemple__etiquette {
    font-family: var(--ar-police-service);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ar-marge-texte);
}

.ar-exemple__saison {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ar-texte-secondaire);
}

.ar-exemple__timbre {
    flex: none;
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.25));
    transform: rotate(4deg);
}

.ar-exemple__timbre-cadre {
    box-sizing: border-box;
    width: 64px;
    height: 80px;
    padding: 6px;
    background: var(--ar-papier);
    mask:
        radial-gradient(circle at 4px 4px, transparent 2.5px, #000 3px) -4px -4px / 8px 8px repeat,
        linear-gradient(#000, #000) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
}

.ar-exemple__timbre-cadre img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ar-exemple__signature {
    text-align: right;
}

/* La réponse « Retour », sur une feuille Seyès, à la main de l'enfant.
   Le pas de la réglure est réglable : la feuille se resserre sous 600px. */
.ar-exemple__reponse {
    --ar-reponse-pas: 48px;
    position: relative;
    align-self: flex-end;
    width: 84%;
    min-width: min(100%, 316px);
    margin-top: -56px;
    padding: 48px 24px 24px 72px;
    background-color: var(--ar-papier);
    background-image:
        linear-gradient(to right, transparent 55px, var(--ar-marge-seyes) 55px, var(--ar-marge-seyes) 57px, transparent 57px),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(var(--ar-reponse-pas) / 4 - 1px),
            var(--ar-reglure) calc(var(--ar-reponse-pas) / 4 - 1px),
            var(--ar-reglure) calc(var(--ar-reponse-pas) / 4),
            transparent calc(var(--ar-reponse-pas) / 4),
            transparent calc(var(--ar-reponse-pas) / 2 - 1px),
            var(--ar-reglure) calc(var(--ar-reponse-pas) / 2 - 1px),
            var(--ar-reglure) calc(var(--ar-reponse-pas) / 2),
            transparent calc(var(--ar-reponse-pas) / 2),
            transparent calc(var(--ar-reponse-pas) * 3 / 4 - 1px),
            var(--ar-bleu-pale) calc(var(--ar-reponse-pas) * 3 / 4 - 1px),
            var(--ar-bleu-pale) calc(var(--ar-reponse-pas) * 3 / 4),
            transparent calc(var(--ar-reponse-pas) * 3 / 4),
            transparent calc(var(--ar-reponse-pas) - 1px),
            var(--ar-reglure) calc(var(--ar-reponse-pas) - 1px),
            var(--ar-reglure) var(--ar-reponse-pas)
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--ar-reponse-pas) - 1px),
            var(--ar-reglure-pale) calc(var(--ar-reponse-pas) - 1px),
            var(--ar-reglure-pale) var(--ar-reponse-pas)
        );
    box-shadow: 0 1px 2px rgba(28, 35, 64, 0.10), 0 18px 40px rgba(28, 35, 64, 0.14);
    font-family: var(--ar-police-enfant);
    font-size: 24px;
    line-height: var(--ar-reponse-pas);
    color: var(--ar-ecolier);
    transform: rotate(1.2deg);
}

/* L'étiquette « Retour » se pose dans le coin de la feuille. */
.ar-exemple__reponse .ar-exemple__etiquette {
    position: absolute;
    left: 72px;
    top: 16px;
}

/* ---------------------------------------------------------------------
   « 04 le tri » : cinq tampons penchés et le cachet du centre de tri.
   --------------------------------------------------------------------- */

.ar-tri .ar-contenu {
    gap: 48px;
}

.ar-tri__grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 36px 40px;
}

.ar-tri__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

/* Les cinq tampons sont penchés chacun d'un angle propre, comme dans la
   maquette : -2, 1.5, -1, 2 puis -1.5 degrés. */
.ar-tri__item:nth-child(1) .ar-tampon {
    transform: rotate(-2deg);
}

.ar-tri__item:nth-child(2) .ar-tampon {
    transform: rotate(1.5deg);
}

.ar-tri__item:nth-child(3) .ar-tampon {
    transform: rotate(-1deg);
}

.ar-tri__item:nth-child(4) .ar-tampon {
    transform: rotate(2deg);
}

.ar-tri__item:nth-child(5) .ar-tampon {
    transform: rotate(-1.5deg);
}

.ar-tri__texte {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ar-texte-sur-sombre);
}

.ar-tri__cachet {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* Le cachet du centre de tri, un peu plus grand que les tailles du kit. */
.ar-cachet--tri {
    width: 224px;
    height: 140px;
}

/* ---------------------------------------------------------------------
   « 05 les tarifs » : la carte du prix fondateur et la carte cadeau.
   --------------------------------------------------------------------- */

.ar-tarifs .ar-contenu {
    gap: 40px;
}

.ar-tarifs__cartes {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: stretch;
}

/* La carte du prix fondateur. */
.ar-tarifs__fondateur {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(22px, 3vw, 32px);
    background: var(--ar-papier);
    border: 2px solid var(--ar-encre);
    border-radius: 6px;
}

.ar-tarifs__fondateur-haut {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 28px;
}

.ar-tarifs__prix {
    flex: 1 1 180px;
    min-width: 0;
    font-size: 19px;
    line-height: 1.5;
    text-wrap: pretty;
}

.ar-tarifs__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

/* Le bloc décoratif : le timbre « Après la bêta » et le cachet « à vie ». */
.ar-tarifs__vignette {
    position: relative;
    flex: none;
    width: 236px;
    height: 252px;
}

.ar-prix-timbre {
    position: absolute;
    left: 6px;
    top: 8px;
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.18)) drop-shadow(0 10px 18px rgba(28, 35, 64, 0.14));
    transform: rotate(-3deg);
}

.ar-prix-timbre__cadre {
    box-sizing: border-box;
    width: 184px;
    height: 232px;
    padding: 10px;
    background: var(--ar-papier);
    mask:
        radial-gradient(circle at 4px 4px, transparent 2.5px, #000 3px) -4px -4px / 8px 8px repeat,
        linear-gradient(#000, #000) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
}

.ar-prix-timbre__interieur {
    box-sizing: border-box;
    height: 100%;
    padding: 16px 12px;
    background: var(--ar-nuit);
    color: var(--ar-papier);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ar-prix-timbre__etiquette {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.ar-prix-timbre__periode {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.ar-prix-timbre__montant {
    font-stretch: 125%;
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Le cachet « à vie », dessiné en SVG dans accueil.html (aucun fichier du
   kit ne porte ce mot). */
.ar-cachet-vie {
    position: absolute;
    left: 100px;
    top: 150px;
    display: block;
    width: 128px;
    height: 80px;
    overflow: visible;
    opacity: 0.85;
    transform: rotate(-6deg);
}

/* La carte cadeau : bordure à rayures par avion. La bordure vient de
   .ar-par-avion, dont on reprend ici la typographie du service. */
.ar-tarifs__cadeau {
    position: relative;
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(22px, 3vw, 32px);
    background: var(--ar-papier);
    box-shadow: 0 1px 2px rgba(28, 35, 64, 0.10), 0 18px 40px rgba(28, 35, 64, 0.12);
    font-family: var(--ar-police-service);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
}

.ar-tarifs__cadeau-haut {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    min-height: 96px;
}

.ar-tarifs__cadeau-vignette {
    position: relative;
    flex: none;
    width: 190px;
    height: 96px;
}

.ar-cadeau-timbre {
    position: absolute;
    right: 4px;
    top: 0;
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.25));
    transform: rotate(4deg);
}

.ar-cadeau-timbre__cadre {
    box-sizing: border-box;
    width: 72px;
    height: 88px;
    padding: 6px;
    background: var(--ar-papier);
    mask:
        radial-gradient(circle at 4px 4px, transparent 2.5px, #000 3px) -4px -4px / 8px 8px repeat,
        linear-gradient(#000, #000) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
}

.ar-cadeau-timbre__fond {
    height: 100%;
    background: var(--ar-nuit);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le cachet « 3 mois carte cadeau », posé sur la vignette. Sa taille est
   celle de la maquette : sans elle, le SVG prend sa largeur par défaut et
   recouvre le titre. */
.ar-cadeau-cachet {
    position: absolute;
    left: -8px;
    top: 0;
    width: 160px;
    height: 100px;
}

.ar-tarifs__cadeau-titre {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 20px;
}

.ar-tarifs__cadeau-nom {
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.ar-tarifs__cadeau-prix {
    font-stretch: 125%;
    font-weight: 800;
    font-size: 44px;
    line-height: 1;
}

.ar-tarifs__cadeau-texte {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ar-texte-secondaire);
}

/* Les deux lignes à remplir, à la main de l'enfant. */
.ar-tarifs__cadeau-noms {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0 6px;
    font-family: var(--ar-police-enfant);
    font-size: 16px;
    line-height: 40px;
    color: var(--ar-ecolier);
}

.ar-tarifs__cadeau-noms span {
    border-bottom: 1.5px dotted var(--ar-pointilles);
}

/* ---------------------------------------------------------------------
   « 06 à vous » : le coupon-réponse et le formulaire.
   --------------------------------------------------------------------- */

/* Les petites étiquettes capitales, 12px dans le coupon et la carte cadeau
   (13px par défaut dans .ar-etiquette). */
.ar-etiquette--petite {
    font-size: 12px;
}

.ar-coupon {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 56px;
    padding: clamp(24px, 4vw, 48px);
    background: var(--ar-papier);
    border: 2px dashed var(--ar-encre);
    border-radius: 4px;
}

/* Les ciseaux du coupon, posés sur le bord pointillé. */
.ar-coupon__ciseaux {
    position: absolute;
    left: 32px;
    top: -14px;
    box-sizing: content-box;
    padding: 0 6px;
    background: var(--ar-papier);
}

.ar-coupon__texte {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ar-coupon__resume {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ar-texte-secondaire);
    text-wrap: pretty;
}

.ar-coupon__mot {
    margin-top: 8px;
    align-self: flex-start;
    padding: 0 0 0 4px;
    border-bottom: 1.5px solid var(--ar-bleu-pale);
    font-family: var(--ar-police-enfant);
    font-size: 20px;
    line-height: 40px;
    color: var(--ar-ecolier);
}

/* Le formulaire : une grille qui se replie d'elle-même. */
.ar-formulaire {
    flex: 1 1 420px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 20px;
    align-content: start;
}

/* Le thème se choisit en deux cartes radio. */
.ar-formulaire__theme {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0;
    border: 0;
}

.ar-formulaire__legende {
    margin-bottom: 8px;
    padding: 0;
    font-family: var(--ar-police-service);
    font-size: 14px;
    font-weight: 700;
}

.ar-choix-theme {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ar-choix-theme label {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 14px;
    background: var(--ar-papier);
    border: 2px solid var(--ar-nuit);
    border-radius: 8px;
    font-family: var(--ar-police-service);
    font-size: 16px;
    font-weight: 700;
    color: var(--ar-nuit);
    cursor: pointer;
}

/* La carte de Rextimi : bord et encre vert fougère. */
.ar-choix-theme label:nth-of-type(2) {
    border-color: var(--ar-fougere-texte);
    color: var(--ar-fougere-texte);
}

.ar-choix-theme input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ar-nuit);
}

.ar-choix-theme label:nth-of-type(2) input {
    accent-color: var(--ar-fougere-texte);
}

/* Le nom du correspondant sur une ligne, sa description dessous, dans la
   même couleur que la carte (la couleur du robot). */
.ar-choix-theme__texte {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ar-choix-theme__nom {
    font-weight: 700;
    line-height: 1.2;
}

.ar-choix-theme__sous-titre {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.3;
}

/* Les champs « source » et sa précision vont d'un bord à l'autre, la
   précision restant toujours sous la liste. */
.ar-formulaire__large {
    grid-column: 1 / -1;
}

.ar-formulaire__erreur {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ar-marge-texte);
}

.ar-formulaire__note {
    grid-column: 1 / -1;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ar-texte-secondaire);
}

/* L'accusé de réception prend la place du formulaire : le cachet daté du
   jour, le titre et la phrase à retenir. */
.ar-formulaire__succes {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ar-encre);
}

.ar-formulaire .ar-bouton {
    grid-column: 1 / -1;
    min-height: 56px;
    font-size: 17px;
}

/* Le champ piège anti-robot : sorti de la vue, mais jamais display:none
   (certains automates ignorent les champs masqués). Il reste « visible »
   pour le navigateur, hors de l'écran et hors du flux de la grille. */
.ar-pot-de-miel {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------------
   « 01 le trajet » : les quatre étapes du courrier, réunies par le fil
   des repères.
   --------------------------------------------------------------------- */

.ar-trajet .ar-contenu {
    gap: 48px;
}

.ar-trajet__schema {
    display: flex;
    flex-direction: column;
}

.ar-trajet__etapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 32px 24px;
    padding: 0;
    list-style: none;
}

.ar-trajet__etape {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* L'en-tête d'étape : la pastille du numéro, un trait pointillé, « Aller »
   ou « Retour ». */
.ar-trajet__entete {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ar-trajet__repere {
    flex: none;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border: 2px solid var(--ar-marge);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 17px;
    color: var(--ar-marge-texte);
}

.ar-trajet__trait {
    flex: 1 1 auto;
    min-width: 16px;
    border-top: 2px dashed var(--ar-marge);
}

.ar-trajet__sens {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ar-marge-texte);
}

.ar-trajet__titre {
    font-family: var(--ar-police-service);
    font-stretch: 112%;
    font-weight: 750;
    font-size: 21px;
    line-height: 1.2;
}

.ar-trajet__texte {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ar-texte-secondaire);
}

/* Les quatre vignettes d'étape, hautes de 140px. */
.ar-illustration {
    position: relative;
    height: 140px;
}

/* Le petit timbre des vignettes : 48 × 56, bord de 5px. */
.ar-illustration__timbre {
    position: absolute;
    right: 12px;
    top: 12px;
    box-sizing: border-box;
    width: 48px;
    height: 56px;
    padding: 5px;
    background: var(--ar-papier);
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.25));
    transform: rotate(4deg);
    mask:
        radial-gradient(circle at 4px 4px, transparent 2.5px, #000 3px) -4px -4px / 8px 8px repeat,
        linear-gradient(#000, #000) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
}

.ar-illustration__timbre img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Étape 1 : la lettre qui arrive, son timbre et des lignes de texte. */
.ar-illustration--lettre {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--ar-papier);
    border: 1px solid var(--ar-bordure);
    box-shadow: 0 6px 16px rgba(28, 35, 64, 0.08);
    transform: rotate(-1deg);
}

.ar-illustration__bonjour {
    font-family: var(--ar-police-robot);
    font-size: 14px;
    line-height: 1.55;
}

.ar-illustration__barres {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ar-illustration__barres span {
    flex: none;
    height: 6px;
    border-radius: 3px;
    background: var(--ar-bordure);
}

.ar-illustration__barres span:nth-child(1) {
    width: 64%;
}

.ar-illustration__barres span:nth-child(2) {
    width: 56%;
}

.ar-illustration__barres span:nth-child(3) {
    width: 92%;
}

.ar-illustration__barres span:nth-child(4) {
    width: 80%;
}

.ar-illustration__barres span:nth-child(5) {
    width: 36%;
}

/* Étape 2 : la feuille Seyès, à la main de l'enfant. */
.ar-illustration--feuille {
    padding: 0 12px 0 44px;
    border: 1px solid var(--ar-bordure);
    background-color: var(--ar-papier);
    background-image:
        linear-gradient(to right, transparent 31px, var(--ar-marge-seyes) 31px, var(--ar-marge-seyes) 33px, transparent 33px),
        repeating-linear-gradient(
            to bottom,
            transparent 0, transparent 9px,
            var(--ar-reglure) 9px, var(--ar-reglure) 10px,
            transparent 10px, transparent 19px,
            var(--ar-reglure) 19px, var(--ar-reglure) 20px,
            transparent 20px, transparent 29px,
            var(--ar-bleu-pale) 29px, var(--ar-bleu-pale) 30px,
            transparent 30px, transparent 39px,
            var(--ar-reglure) 39px, var(--ar-reglure) 40px
        ),
        repeating-linear-gradient(to right, transparent 0, transparent 39px, var(--ar-reglure-pale) 39px, var(--ar-reglure-pale) 40px);
    font-family: var(--ar-police-enfant);
    font-size: 20px;
    line-height: 40px;
    color: var(--ar-ecolier);
    transform: rotate(0.8deg);
}

/* Étape 3 : le téléphone, où la réponse part. */
.ar-illustration--telephone {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F6FC;
    border: 1px solid var(--ar-bordure);
}

.ar-telephone {
    position: relative;
    box-sizing: border-box;
    width: 76px;
    height: 120px;
    padding: 9px 6px 20px;
    background: var(--ar-papier);
    border: 2px solid var(--ar-encre);
    border-radius: 14px;
    transform: rotate(-4deg);
}

.ar-telephone__ecran {
    position: relative;
    height: 100%;
    border: 1px solid var(--ar-bordure);
    background-color: var(--ar-papier);
    background-image:
        linear-gradient(to right, transparent 10px, var(--ar-marge-seyes) 10px, var(--ar-marge-seyes) 11px, transparent 11px),
        repeating-linear-gradient(to bottom, transparent 0, transparent 9px, var(--ar-bordure) 9px, var(--ar-bordure) 10px);
}

.ar-telephone__ondes {
    position: absolute;
    left: 14px;
    top: 16px;
    fill: none;
    stroke: var(--ar-ecolier);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Le cadre de prise de vue : huit traits courts aux quatre coins. */
.ar-telephone__cadres {
    position: absolute;
    inset: 4px;
    background-image:
        linear-gradient(var(--ar-encre), var(--ar-encre)), linear-gradient(var(--ar-encre), var(--ar-encre)),
        linear-gradient(var(--ar-encre), var(--ar-encre)), linear-gradient(var(--ar-encre), var(--ar-encre)),
        linear-gradient(var(--ar-encre), var(--ar-encre)), linear-gradient(var(--ar-encre), var(--ar-encre)),
        linear-gradient(var(--ar-encre), var(--ar-encre)), linear-gradient(var(--ar-encre), var(--ar-encre));
    background-size: 10px 2px, 2px 10px, 10px 2px, 2px 10px, 10px 2px, 2px 10px, 10px 2px, 2px 10px;
    background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
}

.ar-telephone__bouton {
    position: absolute;
    left: 50%;
    bottom: 5px;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border: 1.5px solid var(--ar-encre);
    border-radius: 50%;
}

/* Étape 4 : la lettre suivante qui lui répond, son timbre flottant. */
.ar-illustration--reponse {
    padding: 14px 16px;
    background: var(--ar-papier);
    border: 1px solid var(--ar-bordure);
    box-shadow: 0 6px 16px rgba(28, 35, 64, 0.08);
    font-family: var(--ar-police-robot);
    font-size: 14px;
    line-height: 1.6;
    transform: rotate(1deg);
}

.ar-illustration__timbre--flottant {
    position: static;
    float: right;
    margin: -2px -4px 6px 10px;
    transform: rotate(-3deg);
}

.ar-illustration__phrase mark {
    padding: 0 2px;
    background: var(--ar-sable);
    color: var(--ar-encre);
}

/* Le fil des repères : un trait pointillé qui boucle d'une étape à
   l'autre, sa pointe et le mot de l'enfant. */
.ar-trajet__fil {
    position: relative;
    height: 44px;
    margin: 20px 20px 0 19px;
    border: 2px dashed var(--ar-marge);
    border-top: 0;
    border-radius: 0 0 22px 22px;
}

.ar-trajet__fil-pointe {
    position: absolute;
    left: -8px;
    top: -12px;
    fill: var(--ar-marge);
}

.ar-trajet__fil-mot {
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    padding: 0 14px;
    background: var(--ar-papier);
    white-space: nowrap;
    font-family: var(--ar-police-enfant);
    font-size: 15px;
    line-height: 28px;
    color: var(--ar-marge-texte);
}

/* ---------------------------------------------------------------------
   La lettre d'un robot : la feuille, son en-tête et ses trois repères.

   Elle sert à deux pages, l'accueil (« 02 une lettre ») et la page
   « lettre exemple » : les classes portent le préfixe .ar-lettre-robot-,
   et la feuille pliée de la charte garde .ar-lettre pour elle seule.
   --------------------------------------------------------------------- */

/* La lettre : deux plis discrets, le robot en tête, les trois repères. */
.ar-lettre-robot__feuille {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 4vw, 44px);
    background-color: var(--ar-papier);
    background-image:
        linear-gradient(to bottom, transparent 33.1%, rgba(28, 35, 64, 0.07) 33.33%, transparent 33.7%),
        linear-gradient(to bottom, transparent 66.4%, rgba(28, 35, 64, 0.07) 66.66%, transparent 67%);
    border: 1px solid var(--ar-reglure);
    box-shadow: 0 1px 2px rgba(28, 35, 64, 0.08), 0 18px 40px rgba(28, 35, 64, 0.10);
    font-family: var(--ar-police-robot);
    font-size: 16px;
    line-height: 1.75;
}

.ar-lettre-robot__entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--ar-filet);
}

.ar-lettre-robot__entete-texte {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ar-lettre-robot__robot {
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
}

.ar-lettre-robot__numero-lettre {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ar-texte-secondaire);
}

.ar-lettre-robot__entete-marques {
    flex: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Les repères de la marge portent le décalage de la maquette. */
.ar-lettre-robot__repere {
    margin-top: 1px;
}

.ar-lettre-robot__ligne {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ar-lettre-robot__texte {
    flex: 1 1 auto;
    min-width: 0;
}

.ar-lettre-robot__texte--fort {
    font-weight: 700;
}

/* Les mots de l'enfant, cités dans la lettre, surlignés de sable. */
.ar-lettre-robot__citation {
    padding: 0 3px;
    font-family: var(--ar-police-enfant);
    font-size: 15px;
    line-height: 1;
    color: var(--ar-ecolier);
    background: linear-gradient(to bottom, transparent 45%, var(--ar-sable) 45%, var(--ar-sable) 85%, transparent 85%);
}

/* ---------------------------------------------------------------------
   « 02 une lettre » : la colonne de la lettre et la légende des quatre
   parties. Les repères restent ceux de la charte (.ar-repere--petit dans
   la marge, .ar-repere--moyen dans la légende).
   --------------------------------------------------------------------- */

.ar-accueil-lettre .ar-contenu {
    gap: 48px;
}

.ar-accueil-lettre__ensemble {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 56px;
    align-items: flex-start;
}

/* La colonne de la lettre : la feuille, puis le lien vers la page. */
.ar-accueil-lettre__colonne {
    flex: 0 1 600px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Le lien vers la page « lettre exemple », sous la lettre. */
.ar-accueil-lettre__lien {
    align-self: flex-start;
    font-size: 15px;
    font-weight: 700;
}

.ar-accueil-lettre__legende {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 8px;
}

.ar-accueil-lettre__parties {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    list-style: none;
}

.ar-accueil-lettre__partie {
    display: flex;
    gap: 14px;
    align-items: center;
}

.ar-accueil-lettre__partie-titre {
    font-family: var(--ar-police-service);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* Le timbre de l'album et le cachet « pour l'album », penché par-dessus. */
.ar-accueil-lettre__album {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 262px;
}

.ar-accueil-lettre__album-timbre {
    position: absolute;
    left: 20px;
    top: 10px;
}

.ar-accueil-lettre__album-cachet {
    position: absolute;
    left: 150px;
    top: 30px;
    overflow: visible;
    opacity: 0.85;
    transform: rotate(-8deg);
}

/* ---------------------------------------------------------------------
   « 03 les robots » : les deux cartes de correspondant.
   --------------------------------------------------------------------- */

.ar-correspondants .ar-contenu {
    gap: 48px;
}

.ar-correspondants__cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
    gap: 24px;
    align-items: start;
}

.ar-correspondant {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
    background: var(--ar-papier);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(28, 35, 64, 0.08), 0 12px 28px rgba(28, 35, 64, 0.08);
}

.ar-correspondant--lyxoutimi {
    border-top: 6px solid var(--ar-nuit);
}

.ar-correspondant--rextimi {
    border-top: 6px solid var(--ar-fougere);
}

.ar-correspondant__haut {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 16px;
}

.ar-correspondant__identite {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

/* Les pastilles de thèmes, en liste d'un seul tenant. */
.ar-correspondant__pastilles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.ar-correspondant__pastilles li {
    padding: 5px 12px;
    background: var(--ar-papier);
    border: 1.5px solid var(--ar-nuit);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ar-nuit);
}

.ar-correspondant--rextimi .ar-correspondant__pastilles li {
    border-color: var(--ar-fougere-texte);
    color: var(--ar-fougere-texte);
}

.ar-correspondant__nom {
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ar-nuit);
}

.ar-correspondant--rextimi .ar-correspondant__nom {
    color: var(--ar-fougere-texte);
}

.ar-correspondant__phrase {
    font-family: var(--ar-police-robot);
    font-size: 16px;
    line-height: 1.5;
}

/* L'emblème de la saison, dans son cadre dentelé, et le cachet de saison
   qui le chevauche. */
.ar-correspondant__embleme {
    flex: none;
    position: relative;
    width: 176px;
    height: 160px;
}

.ar-correspondant__medaillon {
    position: absolute;
    right: 4px;
    top: 4px;
    box-sizing: border-box;
    width: 120px;
    height: 144px;
    padding: 8px;
    background: var(--ar-papier);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.18)) drop-shadow(0 8px 14px rgba(28, 35, 64, 0.14));
    transform: rotate(3deg);
    mask:
        radial-gradient(circle at 4px 4px, transparent 2.5px, #000 3px) -4px -4px / 8px 8px repeat,
        linear-gradient(#000, #000) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
}

.ar-correspondant--rextimi .ar-correspondant__medaillon {
    transform: rotate(-2deg);
}

.ar-correspondant__embleme-image {
    display: block;
    width: 88px;
    height: 88px;
}

.ar-correspondant__cachet {
    position: absolute;
    left: 0;
    top: 76px;
    opacity: 0.85;
    transform: rotate(-10deg);
}

.ar-correspondant--rextimi .ar-correspondant__cachet {
    transform: rotate(8deg);
}

.ar-correspondant__cachet .ar-cachet {
    width: 128px;
    height: 80px;
}

.ar-correspondant__saison {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ar-texte-secondaire);
}

/* Les dix timbres de la saison, en vignettes numérotées : toujours cinq
   colonnes, deux rangées de cinq, y compris sur téléphone, où les
   vignettes se réduisent à la largeur de leur colonne. */
.ar-correspondant__timbres {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 8px;
    padding: 0;
    list-style: none;
}

.ar-correspondant__timbre {
    filter: drop-shadow(0 1px 1px rgba(28, 35, 64, 0.22));
}

/* La vignette garde ses proportions de 88 × 112, quelle que soit la
   largeur de sa colonne. */
.ar-correspondant__timbre .ar-timbre {
    width: 100%;
    height: auto;
    aspect-ratio: 88 / 112;
}

.ar-correspondant__choix {
    align-self: flex-start;
    padding: 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ar-encre);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* ---------------------------------------------------------------------
   L'accueil sur un écran étroit.

   Sous 860px, la colonne de marge passe au-dessus du contenu : le numéro,
   sa note et le cachet « départ » ne s'empilent plus en hauteur, mais
   tiennent sur une seule ligne, le cachet réduit à côté de la note.
   --------------------------------------------------------------------- */
@media (max-width: 860px) {
    .ar-marge,
    .ar-marge--depart {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 24px 0 0;
    }

    .ar-cachet-depart {
        width: 64px;
        height: auto;
    }
}

/* Sous 600px, la feuille « Retour » écrit plus petit, sur des lignes de
   32px : les mots ne sont plus coupés. Le cachet de la carte cadeau se
   réduit lui aussi, et la vignette avec lui, pour que le titre respire. */
@media (max-width: 599px) {
    .ar-exemple__reponse {
        --ar-reponse-pas: 32px;
        font-size: 20px;
    }

    .ar-tarifs__cadeau-vignette {
        width: 150px;
        height: 88px;
    }

    .ar-cadeau-cachet {
        width: 96px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ar-exemple__lettre,
    .ar-exemple__reponse,
    .ar-exemple__timbre,
    .ar-cachet-depart,
    .ar-cachet-vie,
    .ar-prix-timbre,
    .ar-cadeau-timbre {
        transform: none;
    }
}

/* =====================================================================
   Page « lettre exemple » : le haut de page, puis les trois sections
   numérotées de la marge — « 01 la lettre », « 02 sa réponse » et
   « 03 la suite » — et le bloc final.

   Les deux lettres viennent du gabarit partagé ar/_lettre_robot.html ; la
   réponse de l'enfant reprend la réglure Seyès de la charte (.ar-seyes).
   ===================================================================== */

.ar-lettre-exemple * {
    margin: 0;
}

.ar-lettre-exemple .ar-contenu {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ar-lettre-exemple__titre {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* L'encadré qui prévient que l'échange est un exemple. */
.ar-lettre-exemple__encadre {
    max-width: 68ch;
    padding: 20px 24px;
    background: var(--ar-calque);
    border: 1px solid var(--ar-bordure);
    border-left: 4px solid var(--ar-marge);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ar-texte-secondaire);
}

/* La lettre de la sonde reste dans une colonne de lecture : sur grand
   écran, elle ne s'étire pas au-delà d'environ 680px, alignée à gauche. */
.ar-lettre-exemple .ar-lettre-robot__feuille {
    max-width: 680px;
    align-self: flex-start;
}

/* La feuille « Ma réponse » : la réglure Seyès de la charte, avec un pas
   de 48px pour que les mots de l'enfant tiennent sur une ligne. */
.ar-lettre-exemple__reponse {
    --ar-seyes-pas: 48px;
    max-width: 640px;
    padding: 48px 24px 24px 72px;
    font-size: 24px;
}

.ar-lettre-exemple__signature {
    text-align: right;
}

.ar-lettre-exemple__fin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

/* Sous 600px, la feuille « Ma réponse » se resserre et écrit plus petit. */
@media (max-width: 599px) {
    .ar-lettre-exemple__reponse {
        --ar-seyes-pas: 40px;
        padding: 40px 16px 16px 52px;
        font-size: 20px;
    }
}

/* =====================================================================
   Pages juridiques : « mentions légales » et « confidentialité ».

   Une seule bande de papier, la mise en page « marge rouge » pour la
   note manuscrite, et une colonne de lecture étroite : le texte de loi
   ne s'étale jamais sur toute la largeur, il reste autour de 720px.
   ===================================================================== */

.ar-legal .ar-contenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* La largeur de lecture : mesurée sur le contenu, padding compris. */
.ar-legal__contenu {
    max-width: 720px;
    align-self: flex-start;
}

/* L'étiquette au-dessus du titre principal. */
.ar-legal__contenu > .ar-etiquette {
    margin: 0 0 4px;
}

.ar-legal .ar-titre-1 {
    margin: 0 0 24px;
}

.ar-legal .ar-titre-2 {
    margin: 40px 0 12px;
}

/* Les adresses se lisent en romain, pas en italique de navigateur. */
.ar-legal__contenu address {
    font-style: normal;
}

.ar-legal .ar-texte {
    margin: 0 0 16px;
}

/* Le sommaire des douze paragraphes, posé à plat sur un fond calque. */
.ar-legal__sommaire {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 18px 20px;
    margin: 0 0 32px;
    background: var(--ar-calque);
    border: 1px solid var(--ar-bordure);
}

.ar-legal__sommaire .ar-etiquette {
    flex: 0 0 100%;
}

.ar-legal__sommaire a {
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.ar-legal__sommaire a:hover {
    text-decoration: underline;
}

/* Les douze paragraphes de la confidentialité, espacés entre eux. */
.ar-legal__article > section + section {
    margin-top: 40px;
}

.ar-legal__article .num {
    display: block;
    font-family: var(--ar-police-service);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--ar-marge);
    margin-bottom: 6px;
}

/* La phrase mise en avant : « Aucun échange n'est utilisé… ». */
.ar-legal__encadre {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--ar-calque);
    border-left: 4px solid var(--ar-marge);
    font-weight: 700;
}

/* La date de dernière mise à jour, en petits caractères. */
.ar-legal__maj {
    margin: 40px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--ar-filet);
    font-size: 14px;
    color: var(--ar-texte-secondaire);
}
