/* coomo.fr — charte de l'app (Sora + Manrope, bleu et vert Coomo), bandes
   alternées, captures de l'app dans des cadres de téléphone. */
@font-face { font-family: "Sora"; src: url("/fonts/Sora.woff2") format("woff2");
             font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope.woff2") format("woff2");
             font-weight: 200 800; font-display: swap; }

:root {
  --fond: #fff; --fond-alt: #f4f6f9; --carte: #fff; --texte: #1a2230; --doux: #6b7686;
  --trait: #e2e7ee; --barre: rgba(255, 255, 255, .8);
  --bleu: #3466c2; --vert: #1d9a76; --lien: #2f5fb8;
  --bleu-pale: #e8eefa; --vert-pale: #e3f4ee; --cadre: #1a2230;
  --ombre: 0 30px 60px -20px rgba(26, 34, 48, .28), 0 12px 24px -12px rgba(26, 34, 48, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #111a27; --fond-alt: #16202e; --carte: #1e2a3a; --texte: #eef2f7; --doux: #a3aebd;
    --trait: #2a3748; --barre: rgba(17, 26, 39, .78);
    --bleu: #3f74cf; --vert: #7fd8bd; --lien: #8db0f2;
    --bleu-pale: #1c2c47; --vert-pale: #173a33; --cadre: #2a3748;
    --ombre: 0 30px 60px -20px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte);
       font: 17px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--lien); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }

/* ---- Barre de navigation : fine, translucide, collante ---- */
header.site { position: sticky; top: 0; z-index: 10; background: var(--barre);
              backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
              border-bottom: 1px solid var(--trait); }
.barre { max-width: 1120px; margin: 0 auto; padding: 0 22px; height: 60px;
         display: flex; align-items: center; gap: 28px; }
.marque { flex: none; }
.marque img { height: 26px; width: auto; display: block; }
header.site img.logo-sombre { display: none; }
@media (prefers-color-scheme: dark) {
  header.site img.logo-clair { display: none; }
  header.site img.logo-sombre { display: block; }
}
header.site nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
header.site nav a { color: var(--texte); opacity: .75; white-space: nowrap; }
header.site nav a:hover { opacity: 1; text-decoration: none; }
header.site nav a[aria-current] { opacity: 1; font-weight: 700; color: var(--bleu); }

/* Sur téléphone : bouton « Menu » qui déplie la navigation sous la barre. */
details.menu { display: none; }
header.site details.menu { border: 0; }
details.menu summary { list-style: none; cursor: pointer; padding: 8px; margin-right: -8px; border-radius: 10px; font-size: 0; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: none; }
details.menu summary svg { width: 24px; height: 24px; fill: none; stroke: var(--texte); stroke-width: 2; stroke-linecap: round; display: block; }
details.menu[open] summary { background: var(--fond-alt); }
@media (max-width: 1040px) {
  .barre { gap: 12px; }
  header.site nav.nav-large { display: none; }
  .barre .btn.petit { margin-left: auto; }
  details.menu { display: block; }
  details.menu nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 0;
                     margin: 0; padding: 8px 22px 18px; background: var(--fond); border-bottom: 1px solid var(--trait);
                     box-shadow: 0 18px 30px -18px rgba(26, 34, 48, .3); font-size: 18px; }
  details.menu nav a { padding: 13px 0; border-top: 1px solid var(--trait); opacity: 1; }
  details.menu nav a:first-child { border-top: 0; }
}

/* ---- Boutons : coins arrondis comme dans l'app ---- */
.btn { display: inline-block; background: var(--bleu); color: #fff; font: 700 16px/1.2 "Sora", sans-serif;
       padding: 14px 24px; border-radius: 14px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.petit { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.second { background: var(--bleu-pale); color: var(--bleu); }
.lien { font-weight: 600; }
.actions { display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; margin-block: 30px 0; }

/* ---- Badges des stores ---- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 172px; padding: 9px 16px 9px 13px;
         border-radius: 12px; background: #000; color: #fff; border: 1px solid #000; line-height: 1.1; position: relative; }
.store:hover { text-decoration: none; filter: brightness(1.25); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 11px; opacity: .85; }
.store b { display: block; font: 600 17px/1.15 "Sora", sans-serif; letter-spacing: -.01em; }
.store.web { background: transparent; color: var(--texte); border-color: var(--trait); }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #000; border-color: #fff; } }
.store.bientot { cursor: default; }
.store.bientot:hover { filter: none; }
.store .pastille { position: absolute; top: -9px; right: -8px; background: var(--vert); color: #fff;
                   font: 700 10px/1 "Manrope", sans-serif; padding: 4px 7px; border-radius: 99px; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .store .pastille { color: #0f2a22; } }
.centre .stores, .centre .actions { justify-content: center; }

/* ---- Bandes pleine largeur, contenu centré ---- */
main > section { padding: 96px 22px; }
main > section > * { max-width: 760px; margin-left: auto; margin-right: auto; }
main > section:nth-of-type(even) { background: var(--fond-alt); }
@media (max-width: 760px) { main > section { padding: 64px 18px; } }

h1, h2, h3, summary { font-family: "Sora", sans-serif; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin-top: 0; margin-bottom: 18px; text-align: center; }
h2 + p { text-align: center; }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.45; color: var(--doux) !important; }
.eyebrow { display: inline-block; color: var(--vert); background: var(--vert-pale); font-weight: 700; font-size: 14px;
           padding: 6px 12px; border-radius: 99px; margin-block: 0 18px; }

/* ---- Accueil : texte à gauche, téléphones à droite ---- */
.hero { padding: 56px 22px 64px !important; overflow: hidden;
        background: radial-gradient(1000px 500px at 85% 20%, var(--bleu-pale), transparent 70%) !important; }
.hero > .hero-grille { max-width: 1120px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; margin-block: 0 18px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--bleu); }
.hero-grille > * { min-width: 0; }  /* sinon la colonne garde la largeur de son contenu sur mobile */
.hero .lead { max-width: 540px; margin-block: 0; }
.hero-visuel { position: relative; height: 600px; }
.hero-visuel .anneaux { position: absolute; width: 520px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .14; }
.hero-visuel .tel { position: absolute; width: 270px; }
.hero-visuel .tel:nth-of-type(1) { left: 6%; top: 40px; transform: rotate(-4deg); }
.hero-visuel .tel:nth-of-type(2) { right: 4%; top: 0; transform: rotate(3deg); z-index: 1; }
@media (max-width: 900px) {
  .hero > .hero-grille { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .actions, .hero .stores { justify-content: center; }
  .hero-visuel { height: 460px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-visuel .tel { width: 200px; }
}

/* ---- Cadre de téléphone autour des captures ---- */
.tel { margin: 0; padding: 9px; background: var(--cadre); border-radius: 42px; box-shadow: var(--ombre); }
.tel img { display: block; width: 100%; aspect-ratio: 1320 / 2868; border-radius: 33px; background: #f4f6f9; }

/* ---- Galerie « L'app en images » : défilement horizontal ---- */
.galerie { max-width: 1120px !important; display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 28px;
           overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 4px 28px; scrollbar-width: thin; }
.galerie figure { margin: 0; scroll-snap-align: center; }
.galerie figcaption { margin-top: 22px; }
.galerie figcaption strong { display: block; font: 700 17px/1.25 "Sora", sans-serif; margin-bottom: 4px; }
.galerie figcaption span { color: var(--doux); font-size: 15px; line-height: 1.45; display: block; }
.indice { text-align: center; color: var(--doux); font-size: 14px; margin-top: 0; }

/* ---- Pages intérieures ---- */
.page-title { text-align: center; padding-top: 88px !important; padding-bottom: 64px !important;
              background: radial-gradient(900px 400px at 50% 0%, var(--bleu-pale), transparent 70%) !important; }
.page-title h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.06; margin-block: 0 16px; letter-spacing: -.035em; }

/* ---- Cartes ---- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        max-width: 1040px !important; margin-top: 44px !important; }
.card { background: var(--fond-alt); border-radius: 20px; padding: 28px 26px; border: 1px solid transparent; }
main > section:nth-of-type(even) .card { background: var(--carte); border-color: var(--trait); }
.grid .card p { margin: 0; color: var(--doux); font-size: 16px; line-height: 1.5; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
       background: var(--bleu-pale); color: var(--bleu); }
.ico.v { background: var(--vert-pale); color: var(--vert); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Frise en 8 étapes (reprend celle de l'app) ---- */
.frise { list-style: none; padding: 0; margin: 44px auto 0 !important; max-width: 1040px !important;
         display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.frise::before { content: ""; position: absolute; left: 6.25%; right: 6.25%; top: 9px; height: 3px; background: var(--trait); }
.frise li { position: relative; text-align: center; font-size: 14px; font-weight: 600; color: var(--doux); padding-top: 32px; }
.frise li::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 21px; height: 21px;
                    border-radius: 50%; background: var(--fond); border: 3px solid var(--trait); box-sizing: border-box; }
.frise li.fait::before { background: var(--vert); border-color: var(--vert); }
.frise li.ici::before { border-color: var(--vert); border-width: 5px; }
.frise li.ici { color: var(--texte); }
main > section:nth-of-type(even) .frise li::before { background: var(--fond-alt); }
main > section:nth-of-type(even) .frise li.fait::before { background: var(--vert); }
@media (max-width: 760px) {
  .frise { grid-template-columns: 1fr; max-width: 320px !important; }
  .frise::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .frise li { text-align: left; padding: 0 0 18px 38px; }
  .frise li::before { left: 0; transform: none; }
}

/* ---- Étapes : grands numéros, filets fins ---- */
ol.etapes { list-style: none; counter-reset: e; padding: 0; margin-top: 40px; margin-bottom: 0; }
ol.etapes li { counter-increment: e; display: grid; grid-template-columns: 60px 1fr; gap: 0 12px;
               padding: 22px 0; border-top: 1px solid var(--trait); color: var(--doux); }
ol.etapes li:last-child { border-bottom: 1px solid var(--trait); }
ol.etapes li::before { content: counter(e); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px;
                       border-radius: 50%; background: var(--bleu-pale); color: var(--bleu); font: 700 17px/1 "Sora", sans-serif; }
ol.etapes li strong { display: block; color: var(--texte); font: 700 18px/1.3 "Sora", sans-serif; letter-spacing: -.015em; margin-bottom: 3px; }

/* ---- Listes, encarts ---- */
ul.coches { list-style: none; padding: 0; margin-top: 32px; }
ul.coches li { padding: 16px 0 16px 36px; position: relative; border-top: 1px solid var(--trait); color: var(--doux); }
ul.coches li:last-child { border-bottom: 1px solid var(--trait); }
ul.coches li strong { color: var(--texte); font-weight: 700; }
ul.coches li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 20px; height: 20px; border-radius: 50%;
                       background: var(--vert-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231d9a76' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.encart { background: var(--bleu-pale); border-radius: 18px; padding: 22px 26px; margin-top: 32px; color: var(--texte); }
.encart p { margin: 0; color: inherit; }
main > section.encart { border-radius: 0; margin: 0; padding: 48px 22px; text-align: center; }

/* ---- Bloc « l'app sur votre téléphone » ---- */
.appli { max-width: 1040px !important; display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: center;
         background: linear-gradient(135deg, var(--bleu), #2a55a8); color: #fff; border-radius: 28px; padding: 56px 56px 0; overflow: hidden; }
.appli h2 { text-align: left; color: #fff; }
.appli p { color: rgba(255, 255, 255, .85); }
.appli .stores { margin-bottom: 56px; }
.appli .store { background: #000; color: #fff; border-color: rgba(255, 255, 255, .25); }
.appli .store.web { background: rgba(255, 255, 255, .12); color: #fff; }
.appli .store .pastille { background: #7fd8bd; color: #0f2a22; }
.appli .tel { align-self: end; border-radius: 42px 42px 0 0; padding-bottom: 0; }
.appli .tel img { border-radius: 33px 33px 0 0; aspect-ratio: 1320 / 2100; object-fit: cover; object-position: top; }
@media (max-width: 760px) {
  .appli { grid-template-columns: 1fr; padding: 40px 24px 0; gap: 8px; text-align: center; }
  .appli h2 { text-align: center; }
  .appli .stores { justify-content: center; margin-bottom: 36px; }
  .appli .tel { width: 220px; margin: 0 auto; }
}

/* ---- FAQ : liste à filets, signe + / − ---- */
details { border-top: 1px solid var(--trait); }
details:last-of-type { border-bottom: 1px solid var(--trait); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 300; color: var(--bleu); }
details[open] summary::after { content: "−"; }
details p { margin-block: 0 24px; color: var(--doux); max-width: 660px; }

/* ---- Appel à l'action final ---- */
.cta { text-align: center; padding: 104px 22px !important; }
.cta .lead { margin-block: 0; }

/* ---- Fil d'Ariane, pied de page ---- */
.fil { max-width: 1040px; margin: 0 auto; padding: 18px 22px; font-size: 12px; color: var(--doux); }
.fil a { color: var(--doux); }
footer.site { background: var(--fond-alt); color: var(--doux); font-size: 13px; line-height: 1.5; }
.pied { max-width: 1040px; margin: 0 auto; padding: 40px 22px 44px; border-top: 1px solid var(--trait);
        display: grid; grid-template-columns: 220px 1fr; gap: 28px 48px; }
.pied .marque-pied img { height: 24px; width: auto; }
.pied .marque-pied p { margin: 10px 0 0; }
footer.site nav { display: flex; gap: 8px 22px; flex-wrap: wrap; align-content: start; }
footer.site a { color: var(--texte); opacity: .78; }
footer.site .copy { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--trait); }
footer.site img.logo-sombre { display: none; }
@media (prefers-color-scheme: dark) {
  footer.site img.logo-clair { display: none; }
  footer.site img.logo-sombre { display: inline; }
}
@media (max-width: 760px) { .pied { grid-template-columns: 1fr; } }

/* Cartes cliquables (guides). */
a.card.carte-lien { display: block; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.card.carte-lien:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--ombre); }
a.card.carte-lien p.suite { color: var(--lien); margin-top: 14px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card.carte-lien { transition: none; } }

/* ---- « Pour qui ? » : une carte par rôle, avec sa capture ---- */
.roles { max-width: 1080px !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px !important; }
.role { display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--trait); border-radius: 26px;
        padding: 28px 26px 0; overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
main > section:nth-of-type(odd) .role { background: var(--fond-alt); border-color: transparent; }
.role:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--ombre); }
.role .tag { align-self: flex-start; font-weight: 700; font-size: 13px; line-height: 1; padding: 7px 11px; border-radius: 99px;
             background: var(--bleu-pale); color: var(--bleu); margin-bottom: 16px; }
.role.v .tag { background: var(--vert-pale); color: var(--vert); }
.role h3 { font-size: 24px; margin-bottom: 6px; }
.role p { color: var(--doux); margin: 0 0 6px; font-size: 16px; }
.role .suite { color: var(--lien); font-weight: 700; margin: 10px 0 22px; }
.role .tel { width: 70%; margin: auto auto 0; border-radius: 36px 36px 0 0; padding-bottom: 0; box-shadow: none; }
.role .tel img { border-radius: 28px 28px 0 0; aspect-ratio: 1320 / 1700; object-fit: cover; object-position: top; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; max-width: 440px !important; } }

/* ---- Texte + téléphone côte à côte ---- */
.duo { max-width: 1000px !important; display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: center; }
.duo.inv { grid-template-columns: 280px 1fr; }
.duo.inv > .tel { order: -1; }
.duo h2 { text-align: left; }
.duo h2 + p { text-align: left; }
.kicker { font-weight: 800; font-size: 13px; color: var(--vert); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
@media (max-width: 860px) {
  .duo, .duo.inv { grid-template-columns: 1fr; gap: 32px; }
  .duo > .tel { width: 230px; margin: 0 auto; order: 2 !important; }
}
.roles:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 740px !important; }
@media (max-width: 860px) { .roles:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; max-width: 440px !important; } }

/* ---- Champ « code d'invitation » : une carte, champ et bouton d'un seul tenant ---- */
.rejoindre { margin-top: 28px; max-width: 460px; padding: 16px; border-radius: 18px; background: var(--carte);
             border: 1px solid var(--trait); box-shadow: 0 10px 30px -18px rgba(26, 34, 48, .35); scroll-margin-top: 90px; text-align: left; }
.rejoindre label { display: block; font-size: 15px; color: var(--doux); margin: 0 2px 10px; }
.rejoindre label strong { color: var(--texte); }
.rejoindre .champ { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 14px;
                    border: 1.5px solid var(--trait); background: var(--fond); transition: border-color .15s, box-shadow .15s; }
.rejoindre .champ:focus-within, .rejoindre:target .champ { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-pale); }
.rejoindre .champ svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--doux); stroke-width: 2; stroke-linecap: round; }
.rejoindre input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 4px; border: 0; background: transparent; color: var(--texte); }
.rejoindre input:focus { outline: none; }
.rejoindre button { flex: none; font: 700 15px/1 "Sora", sans-serif; padding: 12px 16px; border: 0; border-radius: 10px; cursor: pointer;
                    background: var(--texte); color: var(--fond); }
.rejoindre button:hover { filter: brightness(1.2); }
.rejoindre .aide { color: #c0392b; font-size: 14px; margin: 10px 2px 0; }
.stores-titre { margin: 26px 0 0; font-size: 13px; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .08em; }
.stores-titre + .stores { margin-top: 10px; }
.hero .actions { margin-top: 26px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); }
@media (max-width: 900px) { .rejoindre { margin-inline: auto; } }

/* ---- Badges : le store de l'appareil en premier ; code QR sur ordinateur ---- */
html.android .stores .store.ios { order: 2; }
html.android .stores .store.web { order: 3; }
.qr { display: none; align-items: center; gap: 16px; margin: -28px 0 56px; }
html.ordi .qr { display: flex; }
.qr img { width: 88px; height: 88px; border-radius: 10px; background: #fff; padding: 4px; flex: none; }
.qr p { margin: 0; font-size: 15px; max-width: 280px; }

/* ---- Téléphone dont les écrans se succèdent en fondu ---- */
.tel.defile:not(.hero-visuel .tel) { position: relative; }  /* dans le haut de page, il est déjà positionné */
.tel.defile picture, .tel.defile > img { display: block; }
.tel.defile > :not(:first-child) { position: absolute; top: 9px; left: 9px; right: 9px; }
.tel.defile > * { opacity: 0; animation: fondu calc(var(--n) * 4s) infinite; }
.tel.defile img { width: 100%; }
.tel.defile > :nth-child(2) { animation-delay: 4s; }
.tel.defile > :nth-child(3) { animation-delay: 8s; }
.tel.defile > :nth-child(4) { animation-delay: 12s; }
.tel.defile > :first-child { opacity: 1; animation-name: fondu-premier; }
@keyframes fondu { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes fondu-premier { 0%, 25% { opacity: 1; } 29%, 96% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tel.defile > * { animation: none; } }

/* ---- Contact ---- */
form.contact { margin-top: 0; }
form.contact fieldset { border: 0; padding: 0; margin: 0 0 18px; }
form.contact legend, form.contact label { font-weight: 700; font-size: 15px; margin-bottom: 8px; display: block; }
.facultatif { font-weight: 400; color: var(--doux); }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
label.choix { margin: 0; font-weight: 600; cursor: pointer; }
label.choix input { position: absolute; opacity: 0; }
label.choix span { display: inline-block; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--trait); background: var(--carte); }
label.choix input:checked + span { background: var(--bleu-pale); border-color: var(--bleu); color: var(--bleu); }
label.choix input:focus-visible + span { outline: 2px solid var(--bleu); outline-offset: 2px; }
form.contact p { margin: 0 0 16px; }
form.contact input:not([type=radio]), form.contact textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--trait); background: var(--carte); color: var(--texte); }
form.contact textarea { resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-pale); }
form.contact .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { form.contact .deux { grid-template-columns: 1fr; } }
form.contact .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.contact .mention { font-size: 13px; color: var(--doux); }
.ou { text-align: center; color: var(--doux); font-size: 15px; margin-top: 24px; }
.etat { display: none; border-radius: 16px; padding: 18px 22px; margin-bottom: 28px; background: var(--vert-pale); scroll-margin-top: 90px; }
.etat.erreur { background: #fdecea; color: #7a1f16; }
@media (prefers-color-scheme: dark) { .etat.erreur { background: #3a1d1a; color: #f5c6c0; } }
.etat p { margin: 0; }
.etat:target { display: block; }
#envoye:target ~ form.contact { display: none; }
#envoye:target ~ .ou { display: none; }

/* ---- Icônes des applis mobiles dans la barre du haut ---- */
.apps-haut { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.app-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #000; color: #fff; }
.app-ico svg { width: 17px; height: 17px; fill: currentColor; }
.app-ico.android svg { width: 15px; height: 15px; margin-left: 2px; }
a.app-ico:hover { filter: brightness(1.3); }
span.app-ico { cursor: default; }
@media (prefers-color-scheme: dark) { .app-ico { background: #fff; color: #000; } }
html.android .apps-haut .app-ico.ios { order: 2; }
html.android .apps-haut .apps-bientot { order: 3; }
.apps-bientot { font-size: 11px; font-weight: 700; color: var(--vert); background: var(--vert-pale); padding: 4px 7px; border-radius: 99px; }
@media (max-width: 1040px) {
  .apps-haut { margin-left: auto; gap: 5px; }
  .barre .apps-haut + .btn.petit { margin-left: 0; }
}
@media (max-width: 480px) { .apps-bientot { display: none; } }

/* ---- Texte long (pages légales…) : titres modestes, alignés à gauche ---- */
main > section.texte-long { padding-top: 56px; }
.texte-long h2 { font-size: 22px; line-height: 1.3; text-align: left; margin: 40px auto 10px; letter-spacing: -.015em; }
.texte-long h2:first-child { margin-top: 0; }
.texte-long h2 + p { text-align: left; }
.texte-long p, .texte-long li { color: var(--texte); }
ul.liste, ol.liste { padding-left: 22px; }
ul.liste li, ol.liste li { margin-bottom: 8px; }
ul.liste ul, ul.liste ol, ol.liste ul { margin-top: 8px; }
p.avertissement { background: #fff4e5; border-left: 4px solid #e08a00; border-radius: 10px; padding: 14px 18px; }
@media (prefers-color-scheme: dark) { p.avertissement { background: #3a2a12; border-left-color: #f0a640; } }
.tableau { overflow-x: auto; margin: 16px auto 24px; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--trait); }
.tableau th { font-weight: 700; }
@media (max-width: 560px) {
  .tableau table, .tableau tbody, .tableau tr, .tableau td { display: block; }
  .tableau thead { display: none; }
  .tableau tr { padding: 10px 0; border-bottom: 1px solid var(--trait); }
  .tableau td { border: 0; padding: 2px 0; }
}

/* ---- Illustrations (médiathèque) ---- */
.illustration { margin: 32px auto; }
.illustration img { display: block; width: 100%; height: auto; border-radius: 18px; }
.illustration.large { max-width: 1040px !important; }
.illustration figcaption { text-align: center; color: var(--doux); font-size: 14px; margin-top: 10px; }

/* Écrans envoyés dans les téléphones : même cadre, quel que soit le format. */
.tel img { object-fit: cover; object-position: top; }
