/*
 * La vitrine d'Atelier.
 *
 * Sur le crème de l'application, et non sur un fond de nuit : le site et
 * l'application sont le même produit, et quelqu'un qui passe de l'un à l'autre
 * ne doit pas avoir l'impression de changer de maison. Le vert de la marque
 * porte les gestes, l'or les accents.
 *
 * Écrite à la main plutôt que compilée : le site tient en trois pages, et une
 * chaîne de compilation aurait ajouté une étape au déploiement pour des règles
 * qu'on relit très bien.
 */

:root {
    --lin: #FAF7F2;
    --lin-creux: #F3EFE8;
    --surface: #FFFFFF;
    --encre: #16231C;
    --encre-douce: #5E6F66;
    --vert: #168555;
    --vert-fonce: #0E6440;
    --vert-doux: #E6F2EC;
    --or: #B4842C;
    --or-doux: #F7EFD4;
    --nuit: #0E2A1D;
    --ligne: #E2E6E1;
    --ligne-forte: #CFD6D0;
    --rayon: 16px;
    --pastille: 999px;
    --dedans: min(1120px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--lin);
    color: var(--encre);
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--vert-fonce); }

.dedans { width: var(--dedans); margin-inline: auto; }

/* ── Les drapeaux, en trois traits ───────────────────────────────────────── */
.drapeau { display: flex; gap: 6px; margin-bottom: 22px; }
.drapeau i { width: 26px; height: 4px; border-radius: 2px; background: var(--vert); }
.drapeau i:nth-child(2) { background: var(--or); }
.drapeau i:nth-child(3) { background: #CE2B37; }

/* ── L'en-tête ───────────────────────────────────────────────────────────── */
.entete {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--lin) 88%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--ligne);
}

.entete .dedans { display: flex; align-items: center; gap: 28px; padding-block: 13px; }

.marque {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--encre);
    text-decoration: none;
    flex: none;
}

.marque img { width: 32px; height: 32px; }

.entete nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.entete nav a.lien {
    color: var(--encre-douce);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--pastille);
}

.entete nav a.lien:hover { color: var(--vert-fonce); background: var(--vert-doux); }

/* ── Les boutons ─────────────────────────────────────────────────────────── */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: var(--pastille);
    background: var(--vert);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.bouton:hover { background: var(--vert-fonce); }
.bouton:active { transform: translateY(1px); }

.bouton.fantome {
    background: var(--surface);
    border-color: var(--ligne-forte);
    color: var(--encre);
}

.bouton.fantome:hover { background: var(--vert-doux); border-color: var(--vert); }

.bouton.or { background: var(--or); color: #FFF; }
.bouton.or:hover { background: var(--or-doux); }

.bouton.large { width: 100%; }

.bouton small { font-weight: 400; opacity: .8; }

/* ── Les bandes ──────────────────────────────────────────────────────────── */
.bande { padding: 84px 0; }
.bande.claire { background: var(--surface); border-block: 1px solid var(--ligne); }

.chapeau { max-width: 52ch; margin-bottom: 42px; }
.chapeau h2 { font-size: clamp(27px, 3.6vw, 38px); }
.chapeau p { color: var(--encre-douce); margin-top: 12px; font-size: 17px; }

.oeil {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 12px;
}

/* ── Le héros ────────────────────────────────────────────────────────────── */
.heros { padding: 76px 0 84px; position: relative; }

.heros::before {
    content: '';
    position: absolute;
    inset: -30% 40% 40% -10%;
    background: radial-gradient(closest-side, rgba(22, 133, 85, .10), transparent);
    pointer-events: none;
}

.heros .dedans { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; }

.heros h1 { font-size: clamp(36px, 5.4vw, 56px); }
.heros h1 em { font-style: normal; color: var(--or); }

.heros .promesse { color: var(--encre-douce); font-size: 18.5px; max-width: 46ch; margin: 20px 0 30px; }

.gestes { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; max-width: 420px; }
.gestes .bouton { width: 100%; }

.assurances {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px 26px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--ligne);
    font-size: 14.5px;
    color: var(--encre-douce);
}

.assurances div { display: flex; gap: 9px; align-items: baseline; }
.assurances b { color: var(--encre); font-weight: 600; }
.assurances .coche { color: var(--vert); flex: none; }

/* ── La maquette du téléphone ────────────────────────────────────────────── */
/* Elle reste sombre : c'est un écran de téléphone, et le montrer clair sur
   clair l'aurait fondu dans la page au lieu de le détacher. */
.maquette {
    background: #10241B;
    border: 1px solid #1E3A2C;
    border-radius: 26px;
    padding: 16px;
    color: var(--lin);
    box-shadow: 0 40px 90px -56px rgba(14, 42, 29, .8);
}

.maquette .jour {
    background: var(--vert);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.maquette .jour span { font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.maquette .jour b { display: block; font-size: 18px; margin-top: 2px; }

.maquette .compteurs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.maquette .compteur {
    background: rgba(250, 247, 242, .05);
    border: 1px solid #1E3A2C;
    border-radius: 13px;
    padding: 12px 14px;
}

.maquette .compteur span { font-size: 12px; color: #A9BBB1; }
.maquette .compteur b { display: block; font-size: 19px; margin-top: 3px; }
.maquette .compteur.or b { color: #E2C05A; }

.maquette .travail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid #1E3A2C;
}

.maquette .travail:first-of-type { border-top: 0; }
.maquette .travail b { font-size: 14.5px; font-weight: 600; }
.maquette .travail span { display: block; font-size: 12.5px; color: #A9BBB1; }
.maquette .travail .etat { margin-left: auto; font-size: 12px; font-weight: 600; color: #E2C05A; white-space: nowrap; }

/* ── Les grilles de cartes ───────────────────────────────────────────────── */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 16px; }

.carte {
    background: var(--lin);
    border: 1px solid var(--ligne);
    border-radius: var(--rayon);
    padding: 26px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.bande:not(.claire) .carte { background: var(--surface); }

.carte:hover {
    border-color: var(--ligne-forte);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -26px rgba(22, 35, 28, .35);
}

.carte h3 { font-size: 18px; margin-bottom: 9px; }
.carte p { color: var(--encre-douce); font-size: 15.2px; }

.carte .signe {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--vert-doux);
    display: grid;
    place-items: center;
    font-size: 21px;
    margin-bottom: 16px;
}

/* ── Les deux côtés ──────────────────────────────────────────────────────── */
.cotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cote { border-radius: var(--rayon); padding: 34px; border: 1px solid var(--ligne); background: var(--surface); }
.cote.premier { background: linear-gradient(160deg, #15784E, #0E5A3B); border-color: #0E5A3B; color: #fff; }
.cote h3 { font-size: 22px; margin-bottom: 8px; }
.cote > p { color: var(--encre-douce); }
.cote.premier > p { color: #C4E2D3; }
.cote ul { list-style: none; margin: 22px 0 0; padding: 0; }
.cote li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ligne); font-size: 15.2px; }
.cote.premier li { border-color: rgba(255, 255, 255, .16); }
.cote.premier li::before { color: #E2C05A; }
.cote li:first-child { border-top: 0; }
.cote li::before { content: '—'; color: var(--or); flex: none; }

/* ── Les ateliers ────────────────────────────────────────────────────────── */
.atelier {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--lin);
    border: 1px solid var(--ligne);
    border-radius: var(--rayon);
    padding: 15px 18px;
}

.atelier .initiales {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--or-doux);
    color: var(--or);
    display: grid;
    place-items: center;
    font-weight: 700;
    flex: none;
}

.atelier b { display: block; font-size: 15.5px; }
.atelier span { font-size: 13.5px; color: var(--encre-douce); }

.pays { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.pays span {
    background: var(--surface);
    border: 1px solid var(--ligne);
    border-radius: var(--pastille);
    padding: 6px 15px;
    font-size: 14px;
    color: var(--encre-douce);
}

/* ── La bande photo ──────────────────────────────────────────────────────── */
/*
 * L'atelier à côté du texte, et non derrière.
 *
 * En fond, il fallait un voile pour que le titre se lise, et `cover` pour
 * remplir la bande : la photo s'en trouvait à la fois assombrie et rognée —
 * on n'y voyait plus l'atelier qu'elle devait montrer. Côte à côte, elle
 * garde ses proportions et sa lumière.
 */
.bande-photo .dedans {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 52px;
    align-items: center;
}

.bande-photo figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ligne);
    box-shadow: 0 30px 60px -44px rgba(14, 42, 29, .55);
}

.bande-photo img { width: 100%; height: auto; }

.bande-photo h2 { font-size: clamp(26px, 3.6vw, 38px); }
.bande-photo p { color: var(--encre-douce); margin-top: 14px; max-width: 44ch; }

/* ── Les chiffres ────────────────────────────────────────────────────────── */
.chiffres { display: flex; flex-wrap: wrap; gap: 44px; }
.chiffres b { display: block; font-size: 30px; letter-spacing: -0.03em; color: var(--vert-fonce); }
.chiffres span { font-size: 14px; color: var(--encre-douce); }

/* ── Le prix ─────────────────────────────────────────────────────────────── */
.prix {
    background: var(--surface);
    border: 1px solid var(--ligne);
    border-radius: 22px;
    padding: 42px;
    max-width: 660px;
    margin-inline: auto;
    text-align: center;
}

.prix .offert {
    display: inline-block;
    background: var(--or-doux);
    color: var(--or);
    border-radius: var(--pastille);
    padding: 7px 18px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.prix h2 { font-size: clamp(27px, 3.8vw, 36px); }
.prix p { color: var(--encre-douce); margin: 16px auto 28px; max-width: 48ch; }
.prix .gestes { margin-inline: auto; align-items: stretch; }

/* ── Les formules d'abonnement ───────────────────────────────────────────── */
.formules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.formule {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--ligne);
    border-radius: var(--rayon);
    padding: 28px 26px;
    text-align: center;
}

/* Celle qu'on veut voir choisie se détache par la couleur et non par la
   taille : une carte plus haute que ses voisines casse la ligne de base et se
   lit comme un défaut de mise en page. */
.formule.vedette { border-color: var(--vert); box-shadow: 0 0 0 1px var(--vert); }

.formule .ruban {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vert);
    color: #fff;
    border-radius: var(--pastille);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.formule h3 { font-size: 16px; color: var(--encre-douce); font-weight: 600; }

.formule .montant {
    display: block;
    font-size: clamp(28px, 3.4vw, 36px);
    letter-spacing: -0.03em;
    margin: 10px 0 8px;
    color: var(--vert-fonce);
}

.formule p { color: var(--encre-douce); font-size: 14.5px; }

.mention {
    color: var(--encre-douce);
    font-size: 14.5px;
    margin-top: 20px;
    max-width: 62ch;
}

/* ── Les questions ───────────────────────────────────────────────────────── */
.question {
    background: var(--surface);
    border: 1px solid var(--ligne);
    border-radius: var(--rayon);
    margin-bottom: 10px;
    overflow: hidden;
}

.question summary {
    cursor: pointer;
    padding: 19px 22px;
    font-weight: 600;
    font-size: 16.5px;
    list-style: none;
    display: flex;
    gap: 14px;
    align-items: center;
}

.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: '+'; margin-left: auto; color: var(--or); font-size: 21px; font-weight: 400; }
.question[open] summary::after { content: '−'; }
.question p { padding: 0 22px 20px; color: var(--encre-douce); max-width: 72ch; }

/* ── Le pied ─────────────────────────────────────────────────────────────── */
.pied { background: var(--nuit); color: #C3CFC8; padding: 46px 0 36px; }
.pied .marque { color: #fff; }
.pied .lignes { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.pied .liens { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14.5px; }
.pied .liens a { color: #C3CFC8; text-decoration: none; }
.pied .liens a:hover { color: #fff; }
.pied small { display: block; margin-top: 28px; color: #81948A; font-size: 13px; }

/* ── Le partage ──────────────────────────────────────────────────────────── */
.partage { position: fixed; right: 20px; bottom: 20px; z-index: 40; }

.partage .declencheur {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--vert);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 16px 34px -14px rgba(14, 42, 29, .55);
}

.partage .declencheur:hover { background: var(--vert-fonce); }

.partage .menu {
    position: absolute;
    right: 0;
    bottom: 64px;
    min-width: 190px;
    background: var(--surface);
    border: 1px solid var(--ligne);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 22px 50px -26px rgba(14, 42, 29, .45);
}

.partage .menu a,
.partage .menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--encre);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.partage .menu a:hover,
.partage .menu button:hover { background: var(--vert-doux); }

/* ── Ce qui bouge quand l'écran rétrécit ─────────────────────────────────── */
@media (max-width: 900px) {
    .heros .dedans, .cotes, .bande-photo .dedans { grid-template-columns: 1fr; }
    .heros { padding: 44px 0 56px; }
    .bande { padding: 60px 0; }
    .entete nav a.lien { display: none; }
    .chiffres { gap: 28px; }
    .prix { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Le focus doit se voir : on navigue aussi au clavier. */
:where(a, button, summary):focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 3px;
    border-radius: 6px;
}
