/*
 * CV.SYSTEM — charte graphique
 *
 * Reprend les maquettes SVG (cv_svg_mockups) et le DCT : papier chaud, encre presque noire,
 * monospace, cadres à trait épais, vert et orange en accents, jaune en signal.
 *
 * Accessibilité — la charte est écrite pour un lecteur malvoyant. Elle vise le niveau AAA,
 * au-delà du niveau AA que le RGAA impose (loi du 11 février 2005) :
 *  - tout texte a au moins 7:1 de contraste sur son fond (encre 17:1, texte secondaire 10,7:1,
 *    vert et orange de texte à plus de 7,2:1) ;
 *  - le vert et l'orange « de forme » (pastilles) ont au moins 4:1, et leurs variantes sombres
 *    (--green-ink, --orange-ink) portent le texte, à plus de 7:1 ;
 *  - aucun texte sous 16 px ; le gras et l'italique sont permis, sans jamais éclaircir le texte ;
 *  - l'état d'un élément n'est jamais porté par la couleur seule (texte, tiret, crochets…).
 * tests/Unit/ContrastTest.php vérifie ces seuils : une couleur qui les viole fait échouer les tests.
 *
 * Mobile first : le CSS sans media query est celui du téléphone (320 px et plus). Les media queries
 * n'ajoutent que du confort, toujours en `min-width`, en `rem` (elles suivent la taille de texte
 * choisie par le lecteur) et à trois seuils seulement : 40rem (grand téléphone), 60rem (portable),
 * 80rem (grand écran). Le survol n'est utilisé que pour les pointeurs qui survolent vraiment
 * (@media (hover: hover)), jamais collé après un toucher.
 * tests/Unit/ResponsiveTest.php vérifie ces règles.
 */

:root {
    /* Le blanc cassé chaud de la maquette. Essayé plus clair (#fdfcf7, presque blanc), remis à la
       demande de Julien Silberstein : c'est l'écriture qui est plus sombre, pas le fond tout blanc. */
    --paper: #f2efe6;
    --ink: #060807;
    --muted: #33362f;

    /* Pastilles : un cran plus sombres qu'avec un fond plus clair, pour garder 4:1 sur le papier
       comme sur l'encre. */
    --green: #0d8648;
    --green-ink: #065a2f;
    --orange: #ce470a;
    --orange-ink: #8a2b04;
    --yellow: #f0d24a;

    --font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --line: 2px;
    --gutter: clamp(1rem, 4vw, 4rem);
    --max: 1240px;
    --measure: 66ch;
}

/* ------------------------------------------------------------------ 1. Base */

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

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    /* Un mot trop long se coupe plutôt que de sortir de son cadre (adresse, « Installation/configuration »…). */
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
}

p {
    max-width: var(--measure);
    margin: 0 0 1em;
}

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

img,
svg {
    max-width: 100%;
}

/* Gras et italique : permis, sans jamais éclaircir le texte (il garde la couleur de son parent). */
strong,
b {
    font-weight: 700;
}

em,
i,
cite {
    font-style: italic;
}

/* <small> : aparté en italique, jamais sous 15 px (le navigateur le met à 13 px par défaut). */
small {
    font-size: 1rem;
    font-style: italic;
}

/* --------------------------------------------------------- 2. Accessibilité */

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.on-dark :focus-visible {
    outline-color: var(--yellow);
}

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

.skip-link {
    position: absolute;
    top: -5rem;
    left: var(--gutter);
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
}

.skip-link:focus {
    top: 0.5rem;
    color: var(--paper);
}

main:focus {
    outline: none;
}

/* Préférence système « contraste renforcé » : noir sur blanc, traits plus épais. */
@media (prefers-contrast: more) {
    :root {
        --paper: #ffffff;
        --ink: #000000;
        --muted: #000000;
        --green-ink: #004d25;
        --orange-ink: #762400;
        --line: 3px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------------------------------------------------------------- 3. Layout */

.wrap {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
}

.site-header {
    padding-top: 1.75rem;
}

.masthead {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: var(--line) solid var(--ink);
}

.brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

/* Le lien de téléchargement du CV : même position que l'ancien compteur de pages (en haut à droite), sur
   toutes les pages qui partagent ce gabarit (le compteur, lui, est descendu dans le pied de page). */
.cv-download {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 0 auto;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

/* Compteur de pages (« 01 / 06 ») : en bas à droite du pied de page, au-dessous de l'étiquette. */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.counter {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Page active : soulignement + crochets, pas seulement une couleur. */
.site-nav a[aria-current="page"] {
    border-bottom-color: var(--ink);
}

.site-nav a[aria-current="page"]::before {
    content: "[\00a0";
}

.site-nav a[aria-current="page"]::after {
    content: "\00a0]";
}

main {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

/* -------------------------------------------------------------- 4. Typo */

.kicker {
    max-width: none;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.page-title {
    margin-top: 1.5rem;
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.page-lead {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.accent {
    color: var(--green-ink);
}

.section-label {
    margin: 0 0 1rem;
    color: var(--orange-ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------- 5. Composants */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.6rem 1.25rem;
    border: var(--line) solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.btn--primary {
    background: var(--ink);
    color: var(--paper);
}

/* Contrôle indisponible : décoratif, absent de l'arbre d'accessibilité (aria-hidden). */
.btn--off {
    border-style: dashed;
    color: var(--muted);
    cursor: default;
}

.tag {
    display: inline-block;
    max-width: 100%;
    padding: 0.2rem 0.6rem;
    border: var(--line) solid var(--ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.tag--dashed {
    border-style: dashed;
}

.box {
    padding: 1.5rem 1.75rem;
    border: var(--line) solid var(--ink);
}

.on-dark {
    background: var(--ink);
    color: var(--paper);
}

/* Bloc « système » : terminal d'humour, pas un faux terminal plein écran. */
.sysbox {
    padding: 1.5rem 1.75rem;
    border: var(--line) solid var(--ink);
}

.sysbox-prompt {
    margin: 0 0 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.sysbox dl {
    display: grid;
    grid-template-columns: fit-content(50%) minmax(0, 1fr);
    gap: 0.55rem 1rem;
    margin: 0;
}

.sysbox dt {
    color: var(--muted);
    font-weight: 700;
}

.sysbox dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.is-ok {
    color: var(--green-ink);
}

/* La phrase du Guide, en entier : « DON'T PANIC », comme dans le pied de page. */
.sysbox-panic {
    margin: 1.25rem 0 0;
    padding: 0.4rem 0.75rem;
    border: var(--line) solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
}

.quote {
    margin: 3.5rem 0 0;
    padding: 2rem clamp(1.25rem, 4vw, 2rem);
}

.quote blockquote {
    margin: 0;
}

.quote p {
    max-width: none;
    margin: 0 0 1rem;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 700;
}

.quote figcaption {
    color: var(--yellow);
    font-size: 1rem;
}

/* --------------------------------------------------------------- 6. Accueil */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem 4rem;
    margin-top: 2.5rem;
}

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

.hero-title {
    font-size: clamp(1.9rem, 4.6vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.08;
    text-transform: uppercase;
}

.hero-title span {
    display: block;
}

/* Le nom : « Julien SILBERSTEIN », écrit comme sur le CV, au-dessus des deux rôles. */
.hero-title .hero-name {
    margin-bottom: 0.7rem;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    letter-spacing: 0.03em;
    text-transform: none;
}

.hero-subtitle {
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 2rem;
    margin: 3.5rem 0 0;
    padding: 0;
    list-style: none;
}

.pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    align-items: baseline;
}

.pillar-num {
    color: var(--green-ink);
    font-size: 1.4rem;
    font-weight: 700;
}

.pillar h2 {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pillar p {
    grid-column: 2;
    margin: 0;
    color: var(--muted);
}

/* ---------------------------------------------------- 7. Navigation de page */

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: var(--line) solid var(--ink);
}

.pager-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sys-note {
    width: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

/* ------------------------------------------------------------------ 8. Pied */

.site-footer {
    border-top: var(--line) solid var(--ink);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem 2rem;
    color: var(--muted);
    font-size: 1rem;
}

.footer-inner p {
    margin: 0;
}

.footer-tag {
    padding: 0.25rem 0.75rem;
    border: var(--line) solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* --------------------------------------------------------- 9. Utilitaires */

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

.plain {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plain li {
    font-weight: 700;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.box .section-label {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

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

/* ------------------------------------------------------------ 10. À propos */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Portable : le portrait et le nom côte à côte, les encadrés dessous. */
@media (min-width: 60rem) {
    .about {
        grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

/* Grand écran : trois colonnes, comme sur la maquette. Plus étroit, le nom se couperait en pleine lettre. */
@media (min-width: 80rem) {
    .about {
        grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) minmax(0, 21rem);
    }
}

.portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 12rem;
    padding: 1.5rem;
    text-align: center;
}

@media (min-width: 60rem) {
    .portrait {
        min-height: 22rem;
    }
}

.portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.portrait-mark {
    margin: auto 0;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.portrait-place {
    max-width: none;
    margin: 0;
    font-size: 1rem;
}

.about-name {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.about-name span {
    display: block;
}

.about-name .lead-in {
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
}

.about-role {
    margin: 1.5rem 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.about-goal {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.about-slogan {
    margin: 0 0 1.25rem;
    font-weight: 700;
}

.about-text {
    color: var(--muted);
}

.about-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 60rem) {
    .about-side {
        grid-column: 1 / -1;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    }
}

@media (min-width: 80rem) {
    .about-side {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
    }
}

.about-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.prompt {
    margin-top: 3rem;
}

.prompt-cmd {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.prompt-note {
    margin: 0;
    color: var(--muted);
}

/* ---------------------------------------------------------- 11. Compétences */

.warn {
    color: var(--orange-ink);
}

/* Filtre actif : fond plein, jamais la couleur seule (aria-current sert aussi aux lecteurs d'écran). */
.btn[aria-current="true"] {
    background: var(--ink);
    color: var(--paper);
}

.view-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    max-width: none;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.domains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.domain-title {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.domain-meta {
    margin: 0.25rem 0 1rem;
    color: var(--muted);
    font-size: 1rem;
}

.tag-count {
    margin-left: 0.4rem;
    color: var(--green-ink);
}

/* --------------------------------------------------------- 12. Expériences */

.experiences-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 60rem) {
    .experiences-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
        gap: 3rem;
    }
}

@media (min-width: 80rem) {
    .experiences-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
        gap: 4rem;
    }
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem 1.5rem minmax(0, 1fr);
    column-gap: 0.75rem;
    padding-bottom: 2rem;
}

@media (min-width: 40rem) {
    .tl-item {
        grid-template-columns: 4.5rem 1.5rem minmax(0, 1fr);
        column-gap: 1.25rem;
    }
}

/* Chaque colonne peut rétrécir : un texte long se coupe, il ne pousse pas la frise hors de l'écran. */
.tl-item > * {
    min-width: 0;
}

/* Le trait vertical passe au centre de la pastille. */
.tl-item::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: -0.5rem;
    left: calc(3.25rem + 0.75rem + 0.75rem - 2px);
    width: 4px;
    background: var(--ink);
}

@media (min-width: 40rem) {
    .tl-item::before {
        left: calc(4.5rem + 1.25rem + 0.75rem - 2px);
    }
}

.tl-item:last-child::before {
    bottom: 1rem;
}

.tl-year {
    padding-top: 0.15rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.tl-node {
    position: relative;
    z-index: 1;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--green);
}

.tl-node--orange {
    background: var(--orange);
}

.tl-title {
    font-size: 1.15rem;
    line-height: 1.3;
}

.tl-meta {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.tl-skills {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

details > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::before {
    content: "[ + ]\00a0";
}

details[open] > summary::before {
    content: "[ − ]\00a0";
}

.tl-detail p {
    margin: 0 0 0.5rem;
    color: var(--muted);
}

.more {
    margin-top: 0.5rem;
}

.more > summary {
    font-size: 1rem;
}

.more[open] > summary {
    margin-bottom: 1rem;
}

.chain {
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.7;
    list-style: none;
}

.chain-step::before {
    content: "→\00a0" / "";
    font-weight: 400;
}

.chain-step--first {
    color: var(--green-ink);
}

.chain-step--first::before {
    content: "";
}

.chain-step--last {
    color: var(--orange-ink);
}

/* ------------------------------------------------------------ 13. Parcours */

.path {
    max-width: none;
    margin: 1.25rem 0 0;
    font-weight: 700;
}

.career {
    margin-top: 2.5rem;
}

.flag {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.1rem 0.4rem;
    border: var(--line) solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Le point d'origine porte un cadre épais : c'est un jalon, pas une ligne de liste. */
.tl-card--origin {
    padding: 1rem min(1.25rem, 5vw);
    border: 3px solid var(--ink);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: none;
    margin: 0 0 0.4rem;
}

.badge {
    display: inline-block;
    padding: 0 0.35rem;
    border: var(--line) solid var(--ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge--solid {
    background: var(--ink);
    color: var(--paper);
}

/* La parenthèse du niveau d'un diplôme (« (bac+2) ») : plus discrète que « NIV. 5 », mais pas plus petite. Le site
   n'écrit aucun texte sous 16 px : le retrait vient du poids normal, des minuscules et de l'espacement resserré,
   pas de la taille. Elle garde la couleur de la case (papier sur encre, plus de 17:1). */
.badge-note {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.tl-note {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.other-titles {
    margin-top: 1rem;
}

.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plain-list li + li {
    margin-top: 0.4rem;
}

.next-step {
    margin-top: 2.5rem;
    padding: 2rem clamp(1.25rem, 4vw, 2rem);
}

.next-label {
    margin: 0 0 0.5rem;
    color: var(--yellow);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.next-step h2 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 400;
    text-transform: uppercase;
}

.next-note {
    margin: 0.75rem 0 0;
    max-width: none;
}

.end-line {
    max-width: none;
    margin: 2rem 0 0;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------- 14. Contact */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (min-width: 60rem) {
    .contact-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 3rem;
    }
}

.channels {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Téléphone : l'étiquette au-dessus de la valeur, la flèche à droite. Chaque élément a sa zone,
   sinon la valeur (une adresse longue) prend toute la largeur et l'étiquette passe par-dessus. */
.channel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label go"
        "value go";
    gap: 0.25rem 1rem;
    align-items: center;
    min-height: 72px;
    padding: 1rem 1.25rem;
    border: var(--line) solid var(--ink);
    text-decoration: none;
}

@media (min-width: 40rem) {
    .channel {
        grid-template-columns: 9rem minmax(0, 1fr) auto;
        grid-template-areas: "label value go";
        gap: 1rem;
    }
}

.channel-label {
    grid-area: label;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.channel-value {
    grid-area: value;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.channel-go {
    grid-area: go;
    font-size: 1.4rem;
    font-weight: 700;
}

.contact-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.search-target {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.notice {
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 2.25rem;
    border: var(--line) solid var(--ink);
}

.notice::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.9rem;
    background: var(--yellow);
}

.notice p {
    margin: 0 0 0.35rem;
}

.notice-title {
    color: var(--orange-ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.strong {
    font-weight: 700;
}

/* ------------------------------------------------------------------ 15. Survol */

/* Le survol n'existe que pour les pointeurs qui survolent vraiment (souris, pavé tactile) : sur un
   écran tactile, il resterait collé après le toucher. Rien n'en dépend : tout reste lisible sans lui. */
@media (hover: hover) {
    a:hover {
        color: var(--green-ink);
    }

    .brand:hover {
        color: var(--ink);
        text-decoration: underline;
    }

    .site-nav a:hover {
        border-bottom-color: var(--green-ink);
        color: var(--ink);
    }

    .btn:hover {
        background: var(--ink);
        color: var(--paper);
    }

    .btn--primary:hover {
        border-color: var(--green-ink);
        background: var(--green-ink);
        color: var(--paper);
    }

    .skip-link:hover {
        color: var(--paper);
    }

    .channel:hover {
        background: var(--ink);
        color: var(--paper);
    }

    .channel:hover .channel-label {
        color: var(--yellow);
    }

    .channel--static:hover {
        background: transparent;
        color: var(--ink);
    }

    .channel--static:hover .channel-label {
        color: var(--muted);
    }
}

/* ---------------------------------------------------------- 16. Formulaires */

/* Formulaire de connexion de l'administration. Étiquettes toujours visibles (pas de texte indicatif
   qui disparaît à la saisie), champs de 48 px de haut au moins, trait épais comme les autres cadres,
   erreur écrite en toutes lettres et annoncée par le lecteur d'écran (role="alert"). */
.form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 32rem;
    margin-top: 2rem;
    padding: 1.25rem;
    border: var(--line) solid var(--ink);
}

.form-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
}

.form-field label {
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    border: var(--line) solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.form-error {
    max-width: 32rem;
    margin: 1.5rem 0 0;
    padding: 0.75rem 1rem;
    border: var(--line) solid var(--orange-ink);
    border-left-width: 0.5rem;
    color: var(--orange-ink);
    font-weight: 700;
}

.form-hint {
    margin: 0;
    color: var(--muted);
}
