/* SnapAé : feuille de style unique. Mobile d'abord, charte graphique ALLTECA.
   Aucune ressource externe : pas de police à charger, pas d'@import. Tailles en rem :
   elles suivent la taille de texte réglée dans le téléphone (18 px au moins par défaut). */

:root {
  --bleu: #116AAB;
  --bleu-900: #0A3D63;
  --bleu-700: #0D568A;
  --bleu-300: #5B9CCB;
  --bleu-100: #D7E7F3;
  --bleu-050: #EEF5FA;
  --texte: #1B2A38;
  --texte2: #51606E;
  --bordure: #E2E8ED;
  --champ: #6B7A88;
  --blanc: #FFFFFF;
  --vert: #5A8F3D;
  --vert-fonce: #2F5A1A;
  --vert-clair: #E8F2E1;
  --rouge: #B3261E;
  --rouge-clair: #FBE9E7;
  --alerte: #C62828;
  --ambre: #B7791F;
  --ambre-clair: #FFF4D6;
  --rayon: 14px;
  --haut-bouton: 60px;
  --largeur-max: 44rem;
  --police: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titres: "Archivo", "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

html[data-mode="pilotage"] { --largeur-max: 64rem; }

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  font-size: 112.5%;              /* 18 px par défaut, et on suit le réglage du téléphone */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--texte);
  background: var(--bleu-050);
  -webkit-tap-highlight-color: transparent;
}

body.fenetre-ouverte { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--police-titres); line-height: 1.25; margin: 0 0 .6rem; color: var(--texte); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8rem; }
ul, ol { margin: 0 0 .8rem; padding-left: 1.4rem; }
a { color: var(--bleu-700); }
small { font-size: 1rem; }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--bleu-900); outline-offset: 2px; }

.cache-visuel {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0;
}

/* --- Coque : en-tête, contenu, barre du bas ------------------------------------------ */

.appli { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.entete { background: var(--bleu); color: #fff; padding-top: env(safe-area-inset-top); }
.entete__interieur {
  max-width: var(--largeur-max); margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right));
}
.entete__logo { width: 2rem; height: 2rem; border-radius: 8px; flex: none; }
.entete__titre { margin: 0; font-size: 1.35rem; color: #fff; }
.entete__mode { font-weight: 600; opacity: .95; }

.bandeaux { width: 100%; }
.bandeaux .bandeau { margin: 0; border-radius: 0; border-width: 0 0 2px; }

.contenu {
  flex: 1; width: 100%; max-width: var(--largeur-max); margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) 1.5rem max(1rem, env(safe-area-inset-left));
  outline: none;
}
.chargement { text-align: center; padding: 3rem 0; color: var(--texte2); }

.barre {
  position: sticky; bottom: 0; z-index: 20; display: flex; background: var(--blanc);
  border-top: 2px solid var(--bordure);
  padding: 0 max(0px, calc((100vw - var(--largeur-max)) / 2)) env(safe-area-inset-bottom);
  box-shadow: 0 -2px 8px rgba(17, 106, 171, .08);
}
.barre__onglet {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 4.2rem; padding: .35rem .2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem;
  border: 0; border-top: 4px solid transparent; background: transparent; color: var(--texte2);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.barre__icone { font-size: 1.5rem; line-height: 1.1; }
.barre__libelle { max-width: 100%; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
.barre__onglet--actif { color: var(--bleu); background: var(--bleu-050); border-top-color: var(--bleu); font-weight: 800; }
.pastille {
  position: absolute; top: .25rem; left: calc(50% + .6rem); min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--alerte); color: #fff; font-size: .9rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.barre--dense { flex-wrap: wrap; }
.barre--dense .barre__onglet { flex: 1 0 33%; min-height: 3.6rem; }
.barre--dense .barre__libelle { font-size: .9rem; }

/* --- Boutons ---------------------------------------------------------------------------------- */

.bouton {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  min-height: var(--haut-bouton); padding: .7rem 1.1rem; margin: 0 0 .7rem;
  border: 2px solid var(--bleu); border-radius: var(--rayon); background: var(--blanc); color: var(--bleu);
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
}
.bouton:hover { background: var(--bleu-050); }
.bouton:active { transform: translateY(1px); }
.bouton--principal { background: var(--bleu); color: #fff; }
.bouton--principal:hover { background: var(--bleu-700); }
.bouton--geant { min-height: 5.5rem; font-size: 1.25rem; }
.bouton--petit { width: auto; min-height: var(--haut-bouton); margin: 0; padding: .5rem 1rem; }
.bouton--discret { border-color: var(--bordure); color: var(--texte); background: var(--blanc); font-weight: 600; }
.bouton--danger { border-color: var(--rouge); color: var(--rouge); }
.bouton--danger:hover { background: var(--rouge-clair); }
.bouton--danger-plein { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton--danger-plein:hover { background: #8C1D18; }
.bouton--alerte { background: var(--alerte); border-color: var(--alerte); }
.bouton[disabled], .bouton:disabled { opacity: .55; cursor: not-allowed; }
.bouton:focus-within { outline: 3px solid var(--bleu-900); outline-offset: 2px; }
summary.bouton { list-style: none; }
summary.bouton::-webkit-details-marker { display: none; }

.rangee { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .7rem; }
.rangee > .bouton { flex: 1 1 10rem; margin: 0; }

/* --- Textes, champs ----------------------------------------------------------------------------- */

.titre-page { margin: .25rem 0 1rem; }
.sous-titre { margin: 1rem 0 .6rem; }
.gros { font-size: 1.15rem; }
.aide { color: var(--texte2); margin: 0 0 .7rem; }
.erreur { color: var(--rouge); font-weight: 700; margin: .35rem 0 .7rem; }
.requis { color: var(--texte2); font-weight: 400; }

.champ-bloc { margin: 0 0 1rem; }
.etiquette-champ { display: block; font-weight: 700; margin: 0 0 .3rem; }
.champ {
  display: block; width: 100%; min-height: var(--haut-bouton); padding: .6rem .9rem;
  font: inherit; color: var(--texte); background: var(--blanc);
  border: 2px solid var(--champ); border-radius: var(--rayon);
}
.champ:focus { border-color: var(--bleu); outline: 3px solid var(--bleu-100); }
.champ[aria-invalid="true"] { border-color: var(--rouge); }
.champ--zone { min-height: 7.5rem; resize: vertical; }
.champ--code { font-size: 2rem; text-align: center; letter-spacing: .4em; font-weight: 800; }

.case, .choix {
  display: flex; align-items: flex-start; gap: .9rem; min-height: var(--haut-bouton); margin: 0 0 .8rem; padding: .85rem;
  background: var(--blanc); border: 2px solid var(--bordure); border-radius: var(--rayon); cursor: pointer;
}
.case input, .choix input { flex: none; width: 1.8rem; height: 1.8rem; margin: .1rem 0 0; accent-color: var(--bleu); }
.case span, .choix span { flex: 1; font-weight: 600; }
.case small { display: block; margin-top: .2rem; color: var(--texte2); font-weight: 400; }
.case--fixe { cursor: default; background: var(--bleu-050); }
.choix-liste { margin: 0 0 1rem; }

.carte-simple {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 1rem; margin: 0 0 1rem;
}
.carte-simple--titre { background: transparent; border: 0; padding: 0 0 0; margin: 0 0 .3rem; }
.carte-simple--danger { border-color: #E4B8B4; }
.formulaire h2 { margin-top: 1.2rem; }
.formulaire h2:first-child { margin-top: 0; }

.bandeau { padding: .9rem 1rem; margin: 0 0 1rem; border: 2px solid; border-radius: var(--rayon); }
.bandeau p:last-child { margin-bottom: 0; }
.bandeau .bouton { margin-top: .6rem; margin-bottom: 0; }
.bandeau--info { background: var(--bleu-050); border-color: var(--bleu-300); }
.bandeau--erreur { background: var(--rouge-clair); border-color: var(--rouge); }
.bandeau--attention { background: var(--ambre-clair); border-color: var(--ambre); }
.vide { text-align: center; padding: 2rem 1rem; color: var(--texte2); }

.charte {
  background: var(--bleu-050); border: 2px solid var(--bleu-100); border-radius: var(--rayon);
  padding: 1rem; margin: 0 0 1rem;
}
.charte h3, .charte h4, .charte h5 { margin-top: .4rem; }
.charte :last-child { margin-bottom: 0; }

/* --- Code à 4 ou 6 chiffres, statut de l'accès ------------------------------------------------------ */

.code { display: flex; justify-content: center; gap: .5rem; margin: .5rem 0 1rem; }
.code__chiffre {
  width: clamp(2.4rem, 13vw, 3.6rem); height: clamp(3.4rem, 18vw, 4.6rem);
  display: grid; place-items: center; background: var(--blanc); border: 3px solid var(--bleu); border-radius: 12px;
  color: var(--bleu-900); font-size: clamp(2rem, 11vw, 2.8rem); font-weight: 800; font-variant-numeric: tabular-nums;
}
.code-bloc { text-align: center; padding: 1rem 0 0; }
.code-bloc .gros { margin-bottom: 0; font-weight: 700; }

.statut { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; margin: 0 0 .8rem; border-radius: var(--rayon); font-size: 1.3rem; font-weight: 800; }
.statut__icone { font-size: 2rem; }
.statut--en_attente { background: var(--ambre-clair); color: #6B4A10; }
.statut--valide { background: var(--vert-clair); color: var(--vert-fonce); }
.statut--refuse { background: var(--rouge-clair); color: var(--rouge); }
.statut--suspendu { background: var(--bleu-100); color: var(--bleu-900); }

.liste-aide { padding-left: 1.6rem; }
.liste-aide li { margin-bottom: .5rem; }

/* --- Guide d'installation iPhone / iPad ---------------------------------------------------------------- */

.guide { background: var(--blanc); border: 2px solid var(--bleu-100); border-radius: var(--rayon); padding: 1rem; margin: 0 0 1rem; }
.guide__etapes { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; }
.guide__etape {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center;
  background: var(--bleu-050); border: 2px solid var(--bleu-100); border-radius: var(--rayon); padding: .8rem;
}
.guide__numero {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--bleu); color: #fff;
  font-weight: 800; font-size: 1.3rem; display: grid; place-items: center;
}
.guide__corps p { margin: .2rem 0 0; color: var(--texte2); }
.guide__dessin { grid-column: 1 / -1; justify-self: center; max-width: 7.5rem; height: auto; }
.installation { margin: 0 0 .5rem; }

/* --- Fenêtres (confirmation, conseils, visionneuse...) ----------------------------------------------------- */

.voile {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 30, 50, .65); overflow: auto;
}
.fenetre {
  background: var(--blanc); width: 100%; max-width: 34rem; max-height: 92vh; max-height: 92dvh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: .8rem; outline: none;
}
.fenetre__titre { margin: 0; }
.fenetre__corps { min-height: 0; }
.fenetre__corps > :last-child { margin-bottom: 0; }
.fenetre__boutons { display: flex; flex-direction: column-reverse; gap: .6rem; }
.fenetre__boutons .bouton { margin: 0; }
.conseils { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.conseil { display: flex; gap: .8rem; align-items: flex-start; }
.conseil__icone { font-size: 2rem; line-height: 1.2; }
.conseil p { margin: .1rem 0 0; color: var(--texte2); }

.fenetre--plein { position: fixed; inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; }
.fenetre--visionneuse { background: #0B1620; color: #fff; padding: 1rem; }
.fenetre--visionneuse .fenetre__corps { flex: 1; display: flex; flex-direction: column; }
.visionneuse { flex: 1; display: flex; flex-direction: column; gap: .5rem; min-height: 0; }
.visionneuse__scene { flex: 1; min-height: 40vh; position: relative; display: grid; place-items: center; }
.visionneuse__image { max-width: 100%; max-height: 68vh; max-height: 68dvh; object-fit: contain; border-radius: 8px; }
.visionneuse__chargement { position: absolute; left: 0; right: 0; bottom: .4rem; margin: 0; text-align: center; color: #CFE3F2; }
.visionneuse__compteur, .visionneuse__credit { margin: 0; text-align: center; color: #fff; }
.visionneuse__nav { display: flex; gap: .6rem; }
.visionneuse__nav .bouton { margin: 0; }
.fenetre--visionneuse .bouton { background: #fff; }
.fenetre--visionneuse .bouton--principal { background: var(--bleu); }

.toasts {
  position: fixed; z-index: 200; left: 1rem; right: 1rem; bottom: calc(5.6rem + env(safe-area-inset-bottom));
  max-width: 34rem; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
.toast { background: var(--texte); color: #fff; padding: .8rem 1rem; border-radius: var(--rayon); font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.toast--ok { border-left: 6px solid var(--vert); }
.toast--erreur { background: #8C1D18; }

/* --- Onglet Photos ------------------------------------------------------------------------------------------------ */

.photos--depot { outline: 4px dashed var(--bleu); outline-offset: 6px; }
.photos__choix { margin: 0 0 1rem; }
.photos__choix .bouton--geant { flex-direction: column; }
.photos__composer { background: var(--blanc); border: 2px solid var(--bleu-100); border-radius: var(--rayon); padding: 1rem; margin: 0 0 1.2rem; }
.photos__visibilite { margin: 0 0 .8rem; }
.photos__file { margin-top: 1.2rem; }

.apercus { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.apercu { display: flex; flex-direction: column; gap: .4rem; }
.apercu .bouton { width: 100%; }
.apercu__cadre, .apercu__tuile {
  aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bleu-050); border: 1px solid var(--bordure);
}
.apercu__tuile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  text-align: center; padding: .5rem; font-weight: 700; color: var(--texte2);
}
.apercu__tuile--video { color: var(--bleu-900); background: var(--bleu-100); }
.apercu__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.apercu__details { font-weight: 400; color: var(--texte2); }

.details-etiquettes { margin: 0 0 .8rem; }
.details-etiquettes[open] > summary { background: var(--bleu-050); }
.details-etiquettes > summary { margin-bottom: .6rem; }
.etiquettes-groupe { margin: 0 0 .6rem; }
.etiquettes-groupe__titre { font-weight: 700; margin: 0 0 .4rem; }
.etiquettes-choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.bascule {
  min-height: var(--haut-bouton); padding: .4rem 1rem; border: 2px solid var(--bleu); border-radius: 999px;
  background: var(--blanc); color: var(--bleu); font: inherit; font-weight: 700; cursor: pointer;
}
.bascule[aria-pressed="true"] { background: var(--bleu); color: #fff; }
.bascule[aria-pressed="true"]::before { content: "✓ "; }

.fait {
  background: var(--vert-clair); border: 3px solid var(--vert); border-radius: 18px;
  padding: 1.5rem 1rem; margin: 0 0 1rem; text-align: center; outline: none;
}
.fait__coche {
  width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--vert); color: #fff;
  font-size: 3rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.fait__titre { color: var(--vert-fonce); font-size: 1.7rem; }
.fait .bouton { margin-top: .8rem; }

.envois { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.envoi { background: var(--blanc); border: 2px solid var(--bordure); border-radius: var(--rayon); padding: .8rem; }
.envoi--erreur { border-color: var(--rouge); background: var(--rouge-clair); }
.envoi--envoi { border-color: var(--bleu-300); }
.envoi--fait { border-color: var(--bordure); }
.envoi__haut { display: flex; gap: .8rem; align-items: center; margin: 0 0 .6rem; }
.envoi__miniature { width: 4.5rem; height: 4.5rem; flex: none; object-fit: cover; border-radius: 10px; background: var(--bleu-050); }
.envoi__miniature--vide { display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--vert-fonce); }
.envoi__texte { display: flex; flex-direction: column; min-width: 0; }
.envoi__extrait { color: var(--texte2); overflow-wrap: anywhere; }
.envoi__statut { font-weight: 600; }
.envoi--erreur .envoi__statut { color: var(--rouge); }
.progres { height: .9rem; background: var(--bordure); border-radius: 999px; overflow: hidden; margin: 0 0 .7rem; }
.progres__barre { height: 100%; width: 0; background: var(--bleu); transition: width .3s; }

/* --- Onglet Fil : cartes de messages ------------------------------------------------------------------------------ */

.fil__entete, .fil__info, .fil__nouveaux { margin: 0; }
.fil__entete .rangee { margin-bottom: 1rem; }
.fil__titre-epingles { margin: 1rem 0 .6rem; }
.fil__plus { margin-top: .5rem; }

.carte {
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 1rem; margin: 0 0 1rem; overflow-wrap: anywhere;
}
.carte--prive { background: var(--bleu-100); border-color: var(--bleu-300); border-left: 6px solid var(--bleu); }
.carte--annonce { background: var(--bleu-050); border: 2px solid var(--bleu); }
.carte--epingle { box-shadow: 0 0 0 3px var(--bleu-100); }
.carte--masque { opacity: .8; border-style: dashed; }
.carte--retire .carte__texte { color: var(--texte2); font-style: italic; }
.badge {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; padding: .25rem .8rem;
  border-radius: 999px; font-weight: 800; background: var(--bleu-900); color: #fff;
}
.badge--annonce { background: var(--bleu); }
.badge__niveau { background: #fff; color: var(--bleu-900); border-radius: 999px; padding: 0 .55rem; }
.carte__epingle { margin: 0 0 .4rem; font-weight: 700; color: var(--bleu-900); }
.carte__qui { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; margin: 0 0 .5rem; }
.carte__auteur { font-weight: 800; }
.carte__date { color: var(--texte2); }
.carte__reponse-a { color: var(--texte2); margin: 0 0 .4rem; }
.carte__texte { white-space: pre-wrap; margin: 0 0 .7rem; font-size: 1.05rem; }
.carte .bandeau { margin-bottom: .7rem; }
.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .7rem; }
.etiquette { background: var(--blanc); border: 1px solid var(--bleu-300); border-radius: 999px; padding: .1rem .75rem; }
.carte--prive .etiquette { background: #fff; }

.carte__medias { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0 0 .5rem; }
.carte__medias--seul { grid-template-columns: 1fr; }
.media-case { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.media {
  display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; position: relative;
  border: 1px solid var(--bordure); border-radius: 10px; background: var(--bleu-050); color: var(--texte); font: inherit;
}
.carte__medias--seul .media { aspect-ratio: 16 / 10; }
.media--photo { cursor: pointer; }
.media__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.media__agrandir {
  position: absolute; right: .4rem; bottom: .4rem; background: rgba(10, 61, 99, .88); color: #fff;
  padding: .1rem .6rem; border-radius: 999px; font-weight: 700;
}
.media--video, .media--absent, .media__absent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; text-align: center; padding: .5rem;
}
.media--video { background: var(--bleu-100); border-style: dashed; border-color: var(--bleu-300); }
.media--archive { background: var(--bordure); }
.media__titre { font-size: 1.2rem; font-weight: 800; }
.media__details { color: var(--texte2); }
.media__telecharger { font-weight: 700; }
.carte__credit { color: var(--texte2); margin: 0 0 .6rem; }
.accuse { margin: 0 0 .6rem; color: var(--texte2); font-weight: 600; }
.accuse--vu { color: var(--vert-fonce); }

.reactions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0 0 .7rem; }
.reaction {
  display: flex; align-items: center; justify-content: center; gap: .3rem; min-height: var(--haut-bouton); padding: .3rem .5rem;
  border: 2px solid var(--bordure); border-radius: var(--rayon); background: var(--blanc); color: var(--texte);
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.reaction[aria-pressed="true"] { background: var(--bleu-100); border-color: var(--bleu); color: var(--bleu-900); font-weight: 800; }
.reaction--lecture { cursor: default; min-height: 0; padding: .2rem .7rem; }
.reaction__nombre { background: var(--bleu-900); color: #fff; border-radius: 999px; padding: 0 .5rem; margin-left: .2rem; }
.carte__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.carte__actions > .bouton { flex: 1 1 9rem; width: auto; margin: 0; }
.reponse { margin-top: .8rem; padding-top: .8rem; border-top: 2px solid var(--bordure); }
.reponse__info { font-weight: 600; margin: 0 0 .5rem; }

/* --- Grands écrans : on garde la lisibilité, sans étirer ---------------------------------------------------------------- */

@media (min-width: 40rem) {
  .guide__etape { grid-template-columns: auto 1fr auto; }
  .guide__dessin { grid-column: auto; }
  .apercus { grid-template-columns: repeat(3, 1fr); }
  .carte__medias { grid-template-columns: repeat(3, 1fr); }
  .carte__medias--seul { grid-template-columns: minmax(0, 28rem); }
  .reactions { grid-template-columns: repeat(4, 1fr); }
  .rangee > .bouton { flex: 0 1 auto; min-width: 12rem; }
  .voile { align-items: center; padding: 1rem; }
  .fenetre { border-radius: 18px; padding-bottom: 1.25rem; }
  .fenetre__boutons { flex-direction: row; justify-content: flex-end; }
  .fenetre__boutons .bouton { width: auto; min-width: 9rem; }
  .fenetre--plein { border-radius: 0; padding: 1rem; }
}

@media (min-width: 48rem) {
  .barre--dense { flex-wrap: nowrap; }
  .barre--dense .barre__onglet { flex: 1 1 0; }
  .barre--dense .barre__libelle { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
