/* Feuille commune des portails (section 3.6). Les couleurs et polices de la marque viennent seulement des variables de
   /marque.css, produite par le code depuis brand_themes (--hf-primaire, --hf-secondaire, --hf-accent, --hf-fond,
   --hf-texte, --hf-lien, --hf-alerte, --hf-sur-*, polices). Les teintes d'état (badges) sont communes aux deux marques.
   Aucune police ni ressource externe. */
:root {
  --gris-1: #f4f5f7;
  --gris-2: #e6e8ec;
  --gris-3: #cfd3da;
  --gris-texte: #5b6170;
  --ok: #166534;
  --ok-fond: #e3f4e8;
  --danger: #b91c1c;
  --danger-fond: #fde8e8;
  --attention: #8a4b06;
  --attention-fond: #fdf0cf;
  --info: #1d4f91;
  --info-fond: #e3edfb;
  --neutre: #4b5563;
  --neutre-fond: #eceef1;
  --rayon: 10px;
  --rayon-petit: 6px;
  --ombre: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --ombre-haute: 0 10px 24px rgba(16, 24, 40, .12);
  --duree: .18s;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: color-mix(in srgb, var(--hf-texte) 4%, var(--hf-fond)); color: var(--hf-texte); font-family: var(--hf-police-texte); font-size: 16px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--hf-police-titres); line-height: 1.25; color: var(--hf-texte); }
h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 1.25rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 650; margin: 0 0 .85rem; }
h3 { font-size: 1rem; font-weight: 600; margin: .5rem 0 .25rem; }
p { margin: 0 0 .85rem; }
a { color: var(--hf-lien); text-underline-offset: 2px; transition: color var(--duree); }
a:hover { color: color-mix(in srgb, var(--hf-lien) 75%, #000); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--hf-primaire) 70%, var(--hf-texte)); outline-offset: 2px; border-radius: 3px; }
code { font-family: ui-monospace, Consolas, monospace; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* En-tête : bandeau de marque (logo sur fond clair), puis barre de navigation à la couleur secondaire. */
.entete { position: relative; z-index: 10; }
.bandeau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: .7rem max(1.25rem, calc((100% - 1180px) / 2)); background: var(--hf-fond); border-top: 4px solid var(--hf-primaire); border-bottom: 1px solid var(--gris-2); }
.logo { display: inline-flex; align-items: center; color: var(--hf-texte); text-decoration: none; font-family: var(--hf-police-titres); font-weight: 700; font-size: 1.35rem; }
.logo img { display: block; max-height: 56px; max-width: 240px; height: auto; }
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.outils form { margin: 0; }
.compte-choisi { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; padding: .3rem .75rem; border: 1px solid var(--gris-2); border-radius: 999px; background: var(--gris-1); font-size: .9rem; }
.compte-choisi a { font-size: .85rem; }
.langue { display: inline-flex; border: 1px solid var(--gris-3); border-radius: 999px; overflow: hidden; }
.langue button { margin: 0; padding: .2rem .65rem; border: 0; border-radius: 0; background: transparent; color: var(--hf-texte); font-size: .8rem; font-weight: 600; box-shadow: none; }
.langue button:hover { background: var(--gris-1); color: var(--hf-texte); transform: none; }
.langue button:disabled { background: var(--hf-secondaire); color: var(--hf-sur-secondaire); cursor: default; opacity: 1; }

.barre { position: relative; display: flex; align-items: stretch; flex-wrap: wrap; padding: 0 max(1.25rem, calc((100% - 1180px) / 2)); background: var(--hf-secondaire); color: var(--hf-sur-secondaire); }
.menu-bascule { position: absolute; opacity: 0; pointer-events: none; }
.menu-bouton { display: none; }
.menu { display: flex; align-items: stretch; flex: 1; min-height: 50px; }
.menu-lien, .groupe > summary { display: flex; align-items: center; padding: 0 1rem; color: var(--hf-sur-secondaire); text-decoration: none; font-weight: 500; cursor: pointer; white-space: nowrap; user-select: none; transition: background var(--duree), box-shadow var(--duree); }
.menu-lien:hover, .groupe > summary:hover { background: color-mix(in srgb, var(--hf-sur-secondaire) 10%, transparent); color: var(--hf-sur-secondaire); }
.menu-lien.actif, .groupe.actif > summary { box-shadow: inset 0 -3px 0 var(--hf-accent); }
.barre :focus-visible { outline-color: var(--hf-accent); outline-offset: -3px; }
.groupe { position: relative; display: flex; }
.groupe > summary { list-style: none; }
.groupe > summary::-webkit-details-marker { display: none; }
.groupe > summary::after { content: ""; margin-left: .45rem; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; opacity: .75; transition: transform var(--duree); }
.groupe[open] > summary { background: color-mix(in srgb, var(--hf-sur-secondaire) 12%, transparent); }
.groupe[open] > summary::after { transform: rotate(180deg); }
.groupe > ul { position: absolute; top: calc(100% + 4px); left: 0; min-width: 240px; margin: 0; padding: .4rem; list-style: none; background: #fff; color: #1f2328; border: 1px solid var(--gris-2); border-radius: var(--rayon); box-shadow: var(--ombre-haute); animation: deroule var(--duree) ease-out; }
@keyframes deroule { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.groupe > ul a, .lien-bouton { display: block; width: 100%; padding: .55rem .8rem; border: 0; border-radius: var(--rayon-petit); background: none; color: #1f2328; font: inherit; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer; box-shadow: none; }
.groupe > ul a:hover, .lien-bouton:hover { background: color-mix(in srgb, var(--hf-primaire) 10%, #fff); color: #1f2328; transform: none; }
.groupe > ul :focus-visible { outline-color: var(--hf-primaire); outline-offset: -2px; }
.groupe-compte { margin-left: auto; }
.groupe-compte > ul { left: auto; right: 0; }
.groupe-note { padding: .45rem .8rem .55rem; margin-bottom: .3rem; border-bottom: 1px solid var(--gris-2); color: var(--gris-texte); font-size: .85rem; word-break: break-all; }
.groupe form { margin: 0; }

/* Page et pied. */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 2.5rem; }
.anonyme main { max-width: 1040px; }
main:has(.ecran-acces) > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pied { margin-top: 2rem; background: var(--hf-secondaire); color: color-mix(in srgb, var(--hf-sur-secondaire) 82%, transparent); font-size: .9rem; border-top: 4px solid var(--hf-primaire); }
.pied-interieur { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem 2.5rem; max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 1.5rem; }
.pied-nom { margin: 0 0 .4rem; font-family: var(--hf-police-titres); font-size: 1.15rem; font-weight: 700; color: var(--hf-sur-secondaire); }
.pied-titre { margin: 0 0 .6rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--hf-sur-secondaire); opacity: .7; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pied a { color: var(--hf-sur-secondaire); text-decoration: none; }
.pied a:hover { color: var(--hf-accent); text-decoration: underline; }
.pied :focus-visible { outline-color: var(--hf-accent); }
.pied .langue { border-color: color-mix(in srgb, var(--hf-sur-secondaire) 40%, transparent); }
.pied .langue button { color: var(--hf-sur-secondaire); }
.pied .langue button:hover { background: color-mix(in srgb, var(--hf-sur-secondaire) 12%, transparent); color: var(--hf-sur-secondaire); }
.pied .langue button:disabled { background: var(--hf-primaire); color: var(--hf-sur-primaire); }
.pied-bas { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid color-mix(in srgb, var(--hf-sur-secondaire) 15%, transparent); font-size: .8rem; }
.pied-bas p { margin: 0 0 .25rem; }
.groupe-langue { padding: .35rem .8rem .55rem; border-bottom: 1px solid var(--gris-2); margin-bottom: .3rem; }
.sous-titre { margin-top: -.85rem; color: var(--gris-texte); font-size: 1.05rem; }
.petit { font-size: .875rem; color: var(--gris-texte); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Cartes et grilles. */
.carte { background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); padding: 1.25rem 1.4rem; margin: 0 0 1.25rem; box-shadow: var(--ombre); }
.carte > :last-child { margin-bottom: 0; }
.carte-danger { border-top: 3px solid var(--hf-alerte); }
.carte-attention { border-top: 3px solid var(--hf-accent); }
.etroite { max-width: 480px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.25rem; align-items: start; }
.grille > * { min-width: 0; }
.grille > .carte { margin: 0; }
.grille > .carte-danger, .grille > .carte-attention { grid-column: 1 / -1; }
.grille > .carte { overflow-x: auto; }
/* Commande : catalogue, recherche de domaine, page produit et panier en une page. Menu des catégories à gauche (carte
   collante) ; sous 860 px, les catégories deviennent une rangée de pastilles qui défile de côté (une seule bascule à
   l'écran : celle du menu du compte, dans le cadre). Couleurs de la marque par --hf-* seulement. */
.anonyme main:has(.commande), .anonyme main:has(.panier-page) { max-width: 1180px; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.commande { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.commande-menu { position: sticky; top: 1rem; padding: .6rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); box-shadow: var(--ombre); }
.commande-menu-titre { margin: .2rem .6rem .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-texte); }
.commande-entrees, .commande-sous-menu { list-style: none; margin: 0; padding: 0; }
.commande-entree { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .45rem .75rem; border-radius: var(--rayon-petit); color: var(--hf-texte); font-weight: 500; text-decoration: none; transition: background var(--duree), box-shadow var(--duree); }
.commande-entree:hover { background: var(--gris-1); color: var(--hf-texte); }
.commande-entree.actif { background: color-mix(in srgb, var(--hf-primaire) 8%, #fff); box-shadow: inset 3px 0 0 var(--hf-primaire); font-weight: 650; }
.commande-nombre { flex: 0 0 auto; min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: var(--gris-1); color: var(--gris-texte); font-size: .75rem; font-weight: 600; text-align: center; }
.commande-entree.actif .commande-nombre { background: var(--hf-primaire); color: var(--hf-sur-primaire); }
.commande-sous-menu { margin: .2rem 0 .4rem .9rem; padding-left: .6rem; border-left: 2px solid var(--gris-2); }
.commande-sous-menu a { display: block; padding: .4rem .6rem; border-radius: var(--rayon-petit); color: var(--gris-texte); font-size: .9rem; text-decoration: none; }
.commande-sous-menu a:hover { background: var(--gris-1); color: var(--hf-texte); }
.commande-sous-menu a[aria-current] { color: var(--hf-texte); font-weight: 650; background: color-mix(in srgb, var(--hf-primaire) 6%, #fff); }
.commande-panier { display: block; margin: .5rem .25rem .2rem; padding: .55rem .75rem; border-top: 1px solid var(--gris-2); font-size: .9rem; font-weight: 600; text-decoration: none; }
.commande-contenu { position: relative; min-width: 0; }
.commande-contenu:focus { outline: none; }
.commande[aria-busy="true"] .commande-contenu { opacity: .55; transition: opacity var(--duree); }
.commande[aria-busy="true"] .commande-contenu::before { content: ""; position: absolute; z-index: 2; top: -.6rem; left: 0; height: 3px; width: 35%; border-radius: 3px; background: var(--hf-primaire); animation: commande-barre 1s ease-in-out infinite; }
@keyframes commande-barre { from { left: 0; } to { left: 65%; } }
.commande-titre { margin: 1.75rem 0 .9rem; font-size: 1.25rem; }
.commande-chapeau { margin: -.4rem 0 1.1rem; color: var(--gris-texte); }
.commande-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--gris-2); }
.commande-pied form.en-ligne { margin: 0; }
.commande-pied form.en-ligne label { display: inline-flex; align-items: center; gap: .5rem; margin: 0 .5rem 0 0; }
.commande-pied form.en-ligne select { width: auto; margin: 0; }
.commande-pied p { margin: 0; }

/* Bandeau de recherche de domaine : dégradé de la couleur secondaire vers la primaire, barre soudée nom + extension + bouton. */
.domaine-bandeau { position: relative; overflow: hidden; padding: 1.75rem 1.75rem 1.4rem; border-radius: 14px; background: linear-gradient(135deg, var(--hf-secondaire), color-mix(in srgb, var(--hf-secondaire) 72%, var(--hf-primaire))); color: var(--hf-sur-secondaire); box-shadow: var(--ombre-haute); }
.domaine-bandeau::after { content: ""; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hf-primaire) 45%, transparent), transparent 70%); pointer-events: none; }
.domaine-bandeau h2 { position: relative; margin: 0 0 .35rem; color: var(--hf-sur-secondaire); font-size: 1.6rem; letter-spacing: -.01em; }
.domaine-bandeau > p { position: relative; margin: 0 0 1.1rem; opacity: .88; }
.domaine-bandeau-compact { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.recherche-domaine { position: relative; z-index: 1; margin: 0; }
.champ-domaine { display: flex; align-items: stretch; margin: 0 0 1rem; background: #fff; border-radius: 999px; box-shadow: 0 4px 14px rgba(16, 24, 40, .18); }
.champ-domaine > label { margin: 0; }
.champ-domaine input, .champ-domaine select { margin: 0; border: 0; border-radius: 0; background: transparent; color: #1f2328; box-shadow: none; }
.champ-domaine input { flex: 1 1 auto; min-width: 0; padding: .85rem 1.1rem; border-radius: 999px 0 0 999px; font-size: 1.05rem; }
.champ-domaine select { flex: 0 0 auto; width: auto; max-width: 15rem; padding: .85rem .9rem; border-left: 1px solid var(--gris-2); font-weight: 600; }
.champ-domaine input:focus, .champ-domaine select:focus { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hf-primaire) 60%, transparent); }
.champ-domaine button { flex: 0 0 auto; margin: .3rem; padding: .6rem 1.4rem; border-radius: 999px; }
.domaine-bandeau-compact .champ-domaine { margin: 0; }
.produit-config .champ-domaine { margin: .4rem 0 1rem; border: 1px solid var(--gris-3); box-shadow: none; }
.vedettes { position: relative; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.vedettes li { display: inline-flex; align-items: baseline; gap: .4rem; padding: .3rem .75rem; border: 1px solid color-mix(in srgb, var(--hf-sur-secondaire) 30%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--hf-sur-secondaire) 10%, transparent); font-size: .85rem; }
.vedette-tld { font-weight: 700; }
.vedette-prix { opacity: .85; }
.vedettes-note { position: relative; margin: .6rem 0 0; font-size: .8rem; opacity: .75; }

/* Tuiles des catégories. */
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.categorie { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.1rem 1.2rem 1rem; background: #fff; border: 1px solid var(--gris-2); border-top: 3px solid var(--hf-primaire); border-radius: var(--rayon); box-shadow: var(--ombre); color: var(--hf-texte); text-decoration: none; transition: transform var(--duree), box-shadow var(--duree); }
.categorie:hover { transform: translateY(-2px); box-shadow: var(--ombre-haute); color: var(--hf-texte); }
.categorie-nom { font-family: var(--hf-police-titres); font-size: 1.08rem; font-weight: 650; }
.categorie-nombre { color: var(--gris-texte); font-size: .85rem; }
.categorie-prix { margin-top: .35rem; font-weight: 600; }
.categorie-voir { margin-top: auto; padding-top: .6rem; color: var(--hf-lien); font-size: .9rem; font-weight: 600; }
.categorie-voir::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .4rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); vertical-align: .1rem; }

/* Cartes des offres. */
.offres { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.offre { display: flex; flex-direction: column; padding: 1.25rem 1.3rem 1.3rem; background: #fff; border: 1px solid var(--gris-2); border-top: 3px solid var(--hf-primaire); border-radius: var(--rayon); box-shadow: var(--ombre); transition: transform var(--duree), box-shadow var(--duree); }
.offre:hover { transform: translateY(-2px); box-shadow: var(--ombre-haute); }
.offre-nom { margin: 0 0 .6rem; font-size: 1.15rem; }
.offre-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .35rem; margin: 0 0 .2rem; }
.offre-prix strong { font-family: var(--hf-police-titres); font-size: 2rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.offre-unite { color: var(--gris-texte); font-weight: 600; }
.offre-facture { margin: 0 0 .2rem; color: var(--gris-texte); font-size: .85rem; }
.offre-installation { margin: 0; color: var(--attention); font-size: .85rem; }
.offre-points { list-style: none; margin: .9rem 0 1.1rem; padding: .85rem 0 0; border-top: 1px solid var(--gris-2); }
.offre-points li { position: relative; padding: .22rem 0 .22rem 1.6rem; font-size: .92rem; }
.offre-points li::before { content: ""; position: absolute; left: .25rem; top: .58rem; width: .62rem; height: .32rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.offre-points-colonnes { columns: 2 16rem; column-gap: 1.5rem; margin: 0; padding: 0; border: 0; }
.offre-points-colonnes li { break-inside: avoid; }
.offre-bouton { width: 100%; margin-top: auto; }
@media (prefers-reduced-motion: reduce) {
  .offre:hover, .categorie:hover { transform: none; }
  .commande[aria-busy="true"] .commande-contenu::before { animation: none; width: 100%; }
}

/* Page produit : configuration à gauche, résumé collant à droite ; cycles en pastilles. */
.produit-config { margin: 0; }
.produit-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.25rem; align-items: start; }
.produit-principal > .carte h2 { font-size: 1.05rem; }
.cycles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.cycle { display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: .7rem .85rem; border: 1px solid var(--gris-3); border-radius: var(--rayon-petit); color: var(--hf-texte); text-decoration: none; transition: border-color var(--duree), box-shadow var(--duree); }
.cycle:hover { border-color: var(--hf-primaire); color: var(--hf-texte); }
.cycle.actif { border-color: var(--hf-primaire); background: color-mix(in srgb, var(--hf-primaire) 7%, #fff); box-shadow: inset 0 0 0 1px var(--hf-primaire); }
.cycle-nom { font-weight: 650; }
.cycle-montant { font-variant-numeric: tabular-nums; }
.cycle-mois { color: var(--gris-texte); font-size: .8rem; }
.modes-domaine { display: flex; flex-wrap: wrap; gap: .4rem 0; margin-bottom: .4rem; }
.produit-resume { position: sticky; top: 1rem; padding: 1.25rem 1.3rem; background: #fff; border: 1px solid var(--gris-2); border-top: 4px solid var(--hf-primaire); border-radius: var(--rayon); box-shadow: var(--ombre-haute); }
.resume-titre { margin: 0 0 .2rem; color: var(--gris-texte); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.resume-produit { margin: 0 0 .5rem; font-family: var(--hf-police-titres); font-size: 1.2rem; font-weight: 650; }
.resume-lignes { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: .9rem 0; padding: .8rem 0; border-top: 1px solid var(--gris-2); border-bottom: 1px solid var(--gris-2); }
.resume-lignes dt { color: var(--gris-texte); }
.resume-lignes dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.resume-lignes .resume-total { padding-top: .45rem; border-top: 1px solid var(--gris-2); color: var(--hf-texte); font-size: 1.1rem; font-weight: 700; }

/* Résultat de domaine : pastille d'état. */
.domaine-resultat { border-top: 4px solid var(--attention); }
.domaine-disponible { border-top-color: var(--ok); }
.domaine-pris, .domaine-chez_nous { border-top-color: var(--danger); }
.domaine-resultat-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .6rem; }
.domaine-resultat-tete h2 { margin: 0; font-size: 1.4rem; overflow-wrap: anywhere; }
.pastille { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--attention-fond); color: var(--attention); }
.pastille::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.pastille-disponible { background: var(--ok-fond); color: var(--ok); }
.pastille-pris, .pastille-chez_nous { background: var(--danger-fond); color: var(--danger); }
.domaine-action { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .25rem 1rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--gris-2); }
.domaine-action label { flex: 1 1 14rem; margin: 0; }
.domaine-action button { margin-bottom: .05rem; }
.autres-extensions ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem 1rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.autres-extensions li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .5rem; padding: .55rem .75rem; border: 1px solid var(--gris-2); border-radius: var(--rayon-petit); overflow-wrap: anywhere; }
.autres-extensions a { font-weight: 600; }

/* Panier en une page : lignes à gauche, connexion ou total et commande à droite. */
.panier-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.panier-lignes { margin-bottom: 1rem; }
.panier-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.panier-actions form.en-ligne { margin: 0; }
.panier-actions form.en-ligne label { display: inline-flex; align-items: center; gap: .5rem; margin: 0 .5rem 0 0; }
.panier-actions form.en-ligne select { width: auto; margin: 0; }
/* Code promo du panier : champ et bouton sur une ligne ; ligne de remise du tableau. */
.panier-promo { margin-top: 1.25rem; }
.panier-promo h2 { font-size: 1rem; margin: 0 0 .5rem; }
.panier-promo form.en-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; margin: 0; }
.panier-promo form.en-ligne label { flex: 1 1 12rem; margin: 0; }
.panier-remise td { color: var(--gris-4, inherit); }
.panier-cote { position: sticky; top: 1rem; }
.panier-carte { border-top: 4px solid var(--hf-primaire); }
.panier-carte h2 { font-size: 1.1rem; }
.panier-nouveau { margin: .9rem 0 .4rem; padding-top: .9rem; border-top: 1px solid var(--gris-2); text-align: center; }
.panier-vide { margin-bottom: 1rem; }
.modes-paiement { display: grid; gap: .5rem; padding: .75rem; }
.mode-paiement { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .65rem .8rem; border: 1px solid var(--gris-3); border-radius: var(--rayon-petit); font-weight: 600; cursor: pointer; }
.mode-paiement:has(input:checked) { border-color: var(--hf-primaire); background: color-mix(in srgb, var(--hf-primaire) 7%, #fff); }

@media (max-width: 860px) {
  .commande { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .commande-menu { position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .commande-menu-titre, .commande-sous-menu, .commande-panier { display: none; }
  .commande-entrees { display: flex; gap: .45rem; overflow-x: auto; padding: .15rem .1rem .55rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .commande-entrees > li { flex: 0 0 auto; }
  .commande-entree { min-height: 40px; padding: .4rem .85rem; border: 1px solid var(--gris-3); border-radius: 999px; background: #fff; white-space: nowrap; }
  .commande-entree.actif { border-color: var(--hf-primaire); background: var(--hf-primaire); color: var(--hf-sur-primaire); box-shadow: none; }
  .commande-entree.actif:hover { background: var(--hf-primaire); color: var(--hf-sur-primaire); }
  .produit-colonnes, .panier-page { grid-template-columns: minmax(0, 1fr); }
  .produit-resume, .panier-cote { position: static; }
  .domaine-bandeau { padding: 1.3rem 1.1rem 1.1rem; }
  .domaine-bandeau h2 { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .champ-domaine { flex-direction: column; gap: .4rem; padding: .4rem; border-radius: var(--rayon); }
  .champ-domaine input, .champ-domaine select { width: 100%; max-width: none; border-radius: var(--rayon-petit); border: 1px solid var(--gris-2); }
  .champ-domaine button { width: 100%; margin: 0; border-radius: var(--rayon-petit); }
  .offres, .categories { grid-template-columns: minmax(0, 1fr); }
  .cycles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Fin du bloc Commande. */
.liste { list-style: none; margin: 0 0 .85rem; padding: 0; }
.liste li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--gris-2); }
.liste li:last-child { border-bottom: 0; }
.annonce-courte { padding: .4rem 0; border-bottom: 1px solid var(--gris-2); }
.annonce-courte:last-child { border-bottom: 0; }
.annonce-courte h3 { margin: 0; }
.annonce-courte p { margin: 0; }

/* Tableau de bord : chiffres clés et actions rapides. */
.tuiles { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.tuiles li { background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); box-shadow: var(--ombre); border-top: 4px solid var(--hf-primaire); transition: transform var(--duree), box-shadow var(--duree); }
.tuiles li:hover { transform: translateY(-2px); box-shadow: var(--ombre-haute); }
.tuiles li.danger { border-top-color: var(--hf-alerte); }
.tuiles li.attention { border-top-color: var(--hf-accent); }
.tuiles a { display: block; padding: 1rem 1.2rem 1.1rem; color: var(--hf-texte); text-decoration: none; }
.tuiles strong { display: block; font-family: var(--hf-police-titres); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.tuiles span { color: var(--gris-texte); font-size: .9rem; }
.tuiles li.danger strong { color: var(--hf-alerte); }
.actions-rapides { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.montant-du { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; margin-bottom: 1rem; border-radius: var(--rayon-petit); background: color-mix(in srgb, var(--hf-alerte) 7%, #fff); }
.montant-du strong { font-size: 1.35rem; color: var(--hf-alerte); }

/* Écran de connexion et de 2FA : panneau de marque et carte de connexion. */
.ecran-acces { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 480px; margin: 1rem 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--ombre-haute); border: 1px solid var(--gris-2); }
.panneau-marque { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: 2.75rem 2.5rem; background: var(--hf-secondaire); color: var(--hf-sur-secondaire); overflow: hidden; }
.panneau-marque::before { content: ""; position: absolute; inset: auto -30% -45% auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hf-primaire) 55%, transparent) 0%, transparent 70%); opacity: .55; pointer-events: none; }
.panneau-marque::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--hf-primaire); }
.panneau-image { position: relative; max-width: 100%; max-height: 160px; object-fit: contain; align-self: flex-start; margin-bottom: 1rem; border-radius: var(--rayon-petit); }
.panneau-nom { position: relative; margin: 0; font-family: var(--hf-police-titres); font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }
.panneau-slogan { position: relative; margin: 0 0 1.25rem; font-size: 1.2rem; color: var(--hf-accent); font-weight: 600; }
.panneau-texte { position: relative; max-width: 30rem; opacity: .9; }
.panneau-points { position: relative; list-style: none; margin: 0; padding: 0; }
.panneau-points li { position: relative; padding: .45rem 0 .45rem 2rem; opacity: .95; }
.panneau-points li::before { content: ""; position: absolute; left: .2rem; top: .75rem; width: .7rem; height: .38rem; border-left: 2px solid var(--hf-accent); border-bottom: 2px solid var(--hf-accent); transform: rotate(-45deg); }
.carte-acces { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 2.75rem 2.5rem; border: 0; border-radius: 0; box-shadow: none; }
.carte-acces h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.carte-acces label { margin-top: .4rem; }
button.large { width: 100%; padding: .75rem 1rem; margin-top: .4rem; font-size: 1.02rem; }
.lien-oubli { margin: 1rem 0 0; text-align: center; }
.rassurance { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--gris-2); text-align: center; }
.code-otp { font-family: ui-monospace, Consolas, monospace; font-size: 1.6rem !important; letter-spacing: .45em; text-align: center; padding: .6rem !important; }
.repli { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--gris-2); }
.repli > summary { cursor: pointer; color: var(--hf-lien); font-weight: 500; }
.repli[open] > summary { margin-bottom: .75rem; }
.anonyme .carte.etroite { margin: 1rem auto; padding: 2rem; }
/* Inscription : formulaire en sections, champs côte à côte au bureau, région selon le pays, défi « Je ne suis pas un
   robot » (case dessinée, roue pendant le calcul, coche une fois vérifié). La classe js est posée sur <html> dans le
   head (js-actif.js) : l'état avec script s'affiche d'emblée. Masquage par hidden sur des div seulement. */
.carte.inscription { max-width: 640px; border-top: 4px solid var(--hf-primaire); }
.carte.inscription h2 { margin: 1.5rem 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--gris-2); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-texte); }
.carte.inscription h2:first-of-type { margin-top: 0; }
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.rangee > * { min-width: 0; }
.js .sans-js { display: none; }
.js .region-bloc:not(.region-choisie) { display: none; }
.region-bloc[hidden] { display: none; }
.defi { margin: 1.25rem 0 1rem; }
.defi-zone[hidden] { display: none; }
.js .defi-zone[hidden] { display: block; }
.defi-zone { padding: .85rem 1rem; background: var(--gris-1); border: 1px solid var(--gris-2); border-radius: var(--rayon-petit); }
button.defi-bouton { gap: .75rem; padding: .35rem .4rem; background: transparent; border: 0; box-shadow: none; color: var(--hf-texte); font-weight: 600; }
button.defi-bouton:hover { background: transparent; color: var(--hf-texte); transform: none; }
button.defi-bouton:disabled { opacity: 1; cursor: default; }
.defi-case { position: relative; flex: 0 0 auto; width: 1.6rem; height: 1.6rem; background: #fff; border: 2px solid var(--gris-3); border-radius: 4px; transition: border-color var(--duree), background var(--duree); }
button.defi-bouton:hover .defi-case { border-color: var(--hf-primaire); }
.defi-zone[data-etat="calcul"] .defi-case { border-color: var(--gris-2); border-top-color: var(--hf-primaire); border-radius: 50%; animation: defi-roue .8s linear infinite; }
.defi-zone[data-etat="fait"] .defi-case { border-color: var(--ok); background: var(--ok-fond); }
.defi-zone[data-etat="fait"] .defi-case::after { content: ""; position: absolute; left: .38rem; top: .12rem; width: .45rem; height: .85rem; border-right: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(45deg); }
.defi-zone[data-etat="erreur"] .defi-case { border-color: var(--danger); }
.defi-etat { margin: .3rem 0 0 .4rem; min-height: 1.2em; }
.defi-zone[data-etat="fait"] .defi-etat { color: var(--ok); }
.defi-zone[data-etat="erreur"] .defi-etat { color: var(--danger); }
@keyframes defi-roue { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .defi-zone[data-etat="calcul"] .defi-case { animation: none; border-style: dotted; } }
@media (max-width: 600px) {
  .rangee { grid-template-columns: 1fr; }
  .anonyme .carte.etroite.inscription { padding: 1.4rem 1.1rem; }
}
/* Fin du bloc Inscription. */

/* Formulaires. */
label { display: block; margin: 0 0 .9rem; font-weight: 600; font-size: .95rem; }
label.case { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1.25rem; font-weight: 400; }
input, select, textarea { display: block; width: 100%; max-width: 100%; margin-top: .35rem; padding: .62rem .75rem; border: 1px solid var(--gris-3); border-radius: var(--rayon-petit); font: inherit; font-weight: 400; color: var(--hf-texte); background: #fff; transition: border-color var(--duree), box-shadow var(--duree); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--hf-texte) 35%, #fff); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--hf-primaire); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hf-primaire) 25%, transparent); }
input[type=checkbox], input[type=radio] { display: inline-block; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--hf-primaire); box-shadow: none; }
input[type=file] { padding: .45rem; background: var(--gris-1); }
input:disabled, select:disabled, textarea:disabled { background: var(--gris-1); color: var(--gris-texte); }
fieldset { border: 1px solid var(--gris-2); border-radius: var(--rayon-petit); margin: 0 0 1rem; padding: .75rem 1rem; }
legend { font-weight: 600; padding: 0 .35rem; }

/* Boutons : primaire à la couleur de la marque, texte de contraste calculé ; secondaire clair ; danger. */
button, .bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.15rem; border: 1px solid var(--hf-primaire); border-radius: var(--rayon-petit); background: var(--hf-primaire); color: var(--hf-sur-primaire); font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); transition: background var(--duree), border-color var(--duree), transform var(--duree), box-shadow var(--duree); }
button:hover, .bouton:hover { background: color-mix(in srgb, var(--hf-primaire) 86%, #000); border-color: color-mix(in srgb, var(--hf-primaire) 86%, #000); color: var(--hf-sur-primaire); transform: translateY(-1px); }
button:active, .bouton:active { transform: none; }
button.secondaire, .bouton.secondaire { background: #fff; color: var(--hf-texte); border-color: var(--gris-3); }
button.secondaire:hover, .bouton.secondaire:hover { background: var(--gris-1); border-color: color-mix(in srgb, var(--hf-texte) 40%, #fff); color: var(--hf-texte); }
button.danger, .bouton.danger { background: var(--hf-alerte); border-color: var(--hf-alerte); color: #fff; }
button.danger:hover { background: color-mix(in srgb, var(--hf-alerte) 85%, #000); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
form.en-ligne { display: inline-block; margin: 0 .5rem .5rem 0; }

/* Tableaux : en carte, aérés, défilants au téléphone. */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.25rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.carte table { box-shadow: none; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--gris-2); vertical-align: middle; }
thead th { background: var(--gris-1); color: var(--gris-texte); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
tbody tr { transition: background var(--duree); }
tbody tr:hover { background: color-mix(in srgb, var(--hf-primaire) 5%, #fff); }
tbody tr:last-child td, tfoot tr:last-child th, tfoot tr:last-child td { border-bottom: 0; }
tbody:has(+ tfoot) tr:last-child td { border-bottom: 1px solid var(--gris-2); }
tfoot th { text-align: right; font-weight: 500; color: var(--gris-texte); }
tfoot tr:last-child th, tfoot tr:last-child td { color: var(--hf-texte); font-size: 1.1rem; background: var(--gris-1); }
th.m, td.m { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.pre { white-space: pre-wrap; }
td form { margin: 0; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 2rem; margin: 0 0 1.25rem; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); box-shadow: var(--ombre); }
.fiche dt { color: var(--gris-texte); font-weight: 500; }
.fiche dd { margin: 0; font-weight: 500; }

/* Messages et états. */
.avis { padding: .8rem 1rem; border-radius: var(--rayon-petit); border: 1px solid var(--gris-2); border-left: 4px solid var(--hf-accent); background: #fff; }
.avis-ok { border-left-color: var(--ok); background: var(--ok-fond); border-color: #bfe3cb; color: var(--ok); }
.avis-erreur { border-left-color: var(--hf-alerte); background: var(--danger-fond); border-color: #f5c2c2; color: var(--danger); }
.avis-alerte { border-left-color: var(--hf-accent); background: color-mix(in srgb, var(--hf-accent) 12%, #fff); }
.vide { padding: 2rem 1.25rem; text-align: center; color: var(--gris-texte); background: #fff; border: 1px dashed var(--gris-3); border-radius: var(--rayon); }
.vide-court { padding: 1rem; background: var(--gris-1); border-style: solid; border-color: var(--gris-2); }

/* Badges d'état (badge_portail) et étiquettes. */
.badge, .etiquette { display: inline-flex; align-items: center; padding: .12rem .6rem; border-radius: 999px; border: 1px solid transparent; font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge::before { content: ""; width: .45rem; height: .45rem; margin-right: .4rem; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-fond); color: var(--ok); border-color: #bfe3cb; }
.badge-danger { background: var(--danger-fond); color: var(--danger); border-color: #f5c2c2; }
.badge-alerte { background: var(--danger); color: #fff; }
.badge-attention { background: var(--attention-fond); color: var(--attention); border-color: #f3d58c; }
.badge-info { background: var(--info-fond); color: var(--info); border-color: #bcd2f2; }
.badge-neutre { background: var(--neutre-fond); color: var(--neutre); border-color: #d6dae0; }
.etiquette { background: var(--neutre-fond); color: var(--neutre); border-color: #d6dae0; }
.etiquette.ok { background: var(--ok-fond); color: var(--ok); border-color: #bfe3cb; }
.etiquette.alerte { background: var(--danger-fond); color: var(--danger); border-color: #f5c2c2; }

/* Billets. */
.message { margin: 0 0 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--gris-2); border-left: 4px solid var(--gris-3); border-radius: var(--rayon); box-shadow: var(--ombre); }
.message-admin { border-left-color: var(--hf-primaire); background: color-mix(in srgb, var(--hf-primaire) 4%, #fff); }
.message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.pieces { margin: .75rem 0 0; padding-left: 1.25rem; }

/* Divers repris des écrans existants. */
.qr { display: inline-block; padding: .75rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); }
.qr svg { display: block; width: 220px; height: 220px; }
.codes { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; padding: 1rem 1rem 1rem 2rem; background: var(--gris-1); border-radius: var(--rayon-petit); }
.liste-comptes { list-style: none; padding: 0; display: grid; gap: .6rem; max-width: 560px; }
.liste-comptes li { margin: 0; }
.liste-comptes button { width: 100%; justify-content: flex-start; padding: .9rem 1.1rem; }
.filtres { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-bottom: 1.25rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); box-shadow: var(--ombre); }
.filtres label { margin: 0; min-width: 12rem; }
.pagination { display: flex; gap: .75rem; }
.pagination a { padding: .45rem .9rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon-petit); text-decoration: none; }
.annonce { padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); }
.annonce ul { padding-left: 1.25rem; }

/* Téléphone et tablette. */
@media (max-width: 860px) {
  .bandeau { padding: .6rem 1rem; }
  .logo img { max-height: 44px; max-width: 180px; }
  .connecte .compte-choisi { display: none; }
  .pied-interieur { grid-template-columns: 1fr; padding: 1.5rem 1rem 1rem; }
  .barre { padding: 0 1rem; }
  .menu-bouton { display: inline-flex; align-items: center; gap: .5rem; margin: .5rem 0; padding: .45rem .9rem; border: 1px solid color-mix(in srgb, var(--hf-sur-secondaire) 45%, transparent); border-radius: var(--rayon-petit); color: var(--hf-sur-secondaire); font-weight: 600; cursor: pointer; }
  .menu-bouton::before { content: ""; width: 1rem; height: .7rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  .menu-bascule:focus-visible + .menu-bouton { outline: 3px solid var(--hf-accent); }
  .menu { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: .6rem; }
  .menu-bascule:checked ~ .menu { display: flex; }
  .menu-lien, .groupe > summary { padding: .8rem .5rem; }
  .menu-lien.actif, .groupe.actif > summary { box-shadow: inset 3px 0 0 var(--hf-accent); }
  .groupe { display: block; }
  .groupe > ul { position: static; margin: 0 0 .4rem; box-shadow: none; animation: none; }
  .groupe-compte { margin-left: 0; }
  main { padding: 1.25rem 1rem 2rem; }
  h1 { font-size: 1.45rem; }
  .ecran-acces { grid-template-columns: 1fr; margin: 0; min-height: 0; border-radius: var(--rayon); }
  .panneau-marque { padding: 1.5rem 1.4rem; }
  .panneau-nom { font-size: 1.5rem; }
  .panneau-slogan { margin-bottom: .5rem; font-size: 1.05rem; }
  .panneau-points { display: none; }
  .carte-acces { padding: 1.5rem 1.4rem; }
  .tuiles { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .tuiles strong { font-size: 1.7rem; }
  .actions-rapides .bouton { flex: 1 1 100%; }
  .grille { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: .6rem .75rem; white-space: nowrap; }
  td.pre { white-space: pre-wrap; min-width: 14rem; }
  .fiche { grid-template-columns: 1fr; gap: .1rem; }
  .fiche dd { margin-bottom: .5rem; }
  .filtres label { min-width: 0; flex: 1 1 100%; }
}
/* Revue du 2026-11-13 : Commander et Panier, deux liens distincts (pastilles), pas une phrase. */
.menu-commande { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.menu-commande a { padding: .3rem .8rem; border: 1px solid var(--gris-3); border-radius: 999px; background: #fff; color: var(--hf-texte); font-size: .9rem; font-weight: 600; text-decoration: none; }
.menu-commande a:hover { background: var(--gris-1); }
/* Revue du 2026-11-13 : sous 600 px, les listes (accueil, documents, devis, services, domaines, billets) deviennent des
   cartes, une ligne par cellule avec son libellé (data-label) : le statut reste visible sans défilement de côté. */
@media (max-width: 600px) {
  table.liste-cartes { display: block; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .liste-cartes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .liste-cartes tbody, .liste-cartes tr, .liste-cartes td { display: block; width: 100%; }
  .liste-cartes tr { margin-bottom: .75rem; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
  .liste-cartes td, .liste-cartes td.m { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .9rem; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .liste-cartes tbody tr:last-child td { border-bottom: 1px solid var(--gris-2); }
  .liste-cartes tbody tr td:last-child { border-bottom: 0; }
  .liste-cartes td::before { content: attr(data-label); flex: 0 0 auto; max-width: 45%; color: var(--gris-texte); font-size: .75rem; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
  .liste-cartes td[data-label=""]::before { content: none; }
  .liste-cartes td[data-label=""] { justify-content: flex-end; }
}
/* Phase 3b : champ piège de l'inscription, hors de l'écran (anti-robot, section 5.12). */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Fin du bloc Phase 3b. */
/* Billets : rendu Markdown des messages (app/noyau/markdown.php) et éditeur des messages (bloc « Éditeur des billets »
   de portail.js), aux couleurs de la marque. */
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md blockquote, .md pre { margin: 0 0 .75rem; }
.md p, .md li { white-space: pre-wrap; }
.md ul, .md ol { padding-left: 1.5rem; }
.md h3, .md h4, .md h5, .md h6 { margin: 1rem 0 .5rem; font-family: var(--hf-police-titres); line-height: 1.3; }
.md h3 { font-size: 1.2rem; }
.md h4 { font-size: 1.08rem; }
.md h5, .md h6 { font-size: 1rem; }
.md blockquote { padding: .15rem 0 .15rem .9rem; border-left: 3px solid var(--gris-3); color: var(--gris-texte); }
.md code { padding: .05rem .35rem; background: var(--gris-1); border: 1px solid var(--gris-2); border-radius: 4px; font-size: .9em; }
.md pre { padding: .75rem .9rem; background: var(--gris-1); border: 1px solid var(--gris-2); border-radius: var(--rayon-petit); overflow-x: auto; }
.md pre code { padding: 0; background: none; border: 0; }
.md .lien-hote { color: var(--gris-texte); font-size: .8em; }
.editeur { margin: -.55rem 0 .9rem; }
.editeur textarea { margin-top: 0; }
.editeur [hidden] { display: none; }
.editeur-barre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .2rem .5rem; padding: .3rem .35rem 0; background: var(--gris-1); border: 1px solid var(--gris-3); border-bottom: 0; border-radius: var(--rayon-petit) var(--rayon-petit) 0 0; }
.editeur-actif textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.editeur-onglets { display: flex; }
button.editeur-onglet { margin-bottom: -1px; padding: .4rem .9rem; background: transparent; color: var(--gris-texte); border: 1px solid transparent; border-bottom: 0; border-radius: var(--rayon-petit) var(--rayon-petit) 0 0; box-shadow: none; font-size: .9rem; }
button.editeur-onglet:hover { background: var(--gris-2); color: var(--hf-texte); border-color: transparent; transform: none; }
button.editeur-onglet[aria-selected="true"] { background: #fff; color: var(--hf-texte); border-color: var(--gris-3); box-shadow: inset 0 2px 0 var(--hf-primaire); }
.editeur-outils { display: flex; flex-wrap: wrap; gap: .1rem; padding-bottom: .3rem; }
button.editeur-outil { width: 2.25rem; height: 2.25rem; padding: 0; background: transparent; color: var(--hf-texte); border: 1px solid transparent; box-shadow: none; }
button.editeur-outil:hover { background: color-mix(in srgb, var(--hf-primaire) 10%, #fff); color: var(--hf-texte); border-color: var(--gris-2); transform: none; }
button.editeur-outil:disabled, button.editeur-outil:disabled:hover { background: transparent; border-color: transparent; opacity: .35; }
.editeur-apercu { min-height: 6rem; padding: .62rem .75rem; background: #fff; border: 1px solid var(--gris-3); border-radius: 0 0 var(--rayon-petit) var(--rayon-petit); }
.editeur-vide { color: var(--gris-texte); font-style: italic; }
.editeur-aide { margin: .35rem 0 0; color: var(--gris-texte); font-size: .8rem; }
@media (max-width: 480px) {
  .editeur-outils { flex-basis: 100%; justify-content: space-between; }
  button.editeur-outil { width: 2rem; height: 2rem; }
}
/* Fin du bloc des billets (éditeur et rendu). */
/* Espace client page par page (L4) : nom du compte en première ligne du menu mobile, visible seulement sous le point
   de rupture du menu (D6) ; formulaires de ligne (DNS, utilisateurs) en pleine largeur dans les listes en cartes. */
.menu-compte { display: none; }
@media (max-width: 860px) {
  .menu-compte { display: block; margin: 0; padding: .8rem .5rem; border-bottom: 1px solid color-mix(in srgb, var(--hf-sur-secondaire) 25%, transparent); color: var(--hf-sur-secondaire); font-size: .9rem; overflow-wrap: anywhere; }
  .menu-compte a { margin-left: .4rem; color: inherit; }
}
@media (max-width: 600px) {
  .liste-cartes td.formulaires-ligne { display: block; text-align: left; }
  .liste-cartes td.formulaires-ligne form + form { margin-top: .6rem; }
  .liste-cartes td.formulaires-ligne:empty { display: none; }
}
/* Fin du bloc L4. */
/* Accueil : facturation en pleine largeur, puis domaines, services et billets sur une rangée de trois. */
.accueil-facturation, .accueil-annonces { margin: 0 0 1.25rem; }
.accueil-rangee { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.25rem; }
.accueil-rangee > .carte-danger, .accueil-rangee > .carte-attention { grid-column: auto; }
@media (max-width: 960px) { .accueil-rangee { grid-template-columns: 1fr; } }
/* Fin du bloc Accueil. */
/* Fiche domaine : cartes de gestion de même hauteur, formulaires aérés, titre des demandes détaché des cartes. */
.domaine-gestion { align-items: stretch; margin-bottom: 1.5rem; }
.domaine-gestion > .carte { display: flex; flex-direction: column; }
.domaine-gestion form { margin: 0; }
.domaine-gestion form + form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--hf-texte) 12%, transparent); }
.domaine-gestion form label:not(.case) { display: block; margin: .6rem 0 .3rem; }
.domaine-gestion form label.case { display: flex; gap: .5rem; align-items: flex-start; margin: .2rem 0 .7rem; }
.domaine-gestion form label.case input { margin-top: .25rem; flex: none; }
.domaine-gestion form button { margin-top: .4rem; }
.titre-section { margin-top: 2rem; }
/* Fin du bloc Fiche domaine. */
/* Plan « VM au portail » : graphiques des statistiques d'une VM, SVG rendu par le serveur (app/metier/GraphiqueSvg.php),
   couleurs par classes seulement (CSP sans style en ligne). */
.graphe-cadre { margin: .8rem 0; }
.graphe { display: block; width: 100%; height: auto; max-width: 720px; }
.graphe-axe { stroke: var(--gris-3); stroke-width: 1; }
.graphe-grille { stroke: var(--gris-2); stroke-width: 1; stroke-dasharray: 4 4; }
.graphe-texte { fill: var(--gris-texte); font-size: 12px; }
.graphe-cpu, .graphe-ram, .graphe-net-in, .graphe-net-out { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graphe-cpu { stroke: var(--hf-primaire, #d97706); }
.graphe-ram { stroke: var(--info); }
.graphe-net-in { stroke: var(--ok); }
.graphe-net-out { stroke: var(--attention); }
.graphe-cpu-plein { fill: var(--hf-primaire, #d97706); }
.graphe-ram-plein { fill: var(--info); }
.graphe-net-in-plein { fill: var(--ok); }
.graphe-net-out-plein { fill: var(--attention); }
/* Fin du bloc VM au portail. */
