/*
 * ui.css — design system Labo Photo Smart Digital (BwaniaTech)
 * Mobile d'abord, aucune dépendance externe. Couleurs tirées du logo (vert #067203)
 * et de l'enseigne (rouge, réservé aux promotions). Voir docs/PHASE0.md §6.
 */

/* ---------- Jetons ---------- */
:root {
  --vert-800: #044a02;
  --vert-700: #056102;
  --vert-600: #067203;          /* primaire (logo) */
  --vert-500: #16a34a;
  --vert-100: #d6f0d4;
  --vert-50:  #ecf8ec;

  --rouge-600: #d7261e;         /* enseigne — promotions uniquement (À CONFIRMER) */
  --rouge-50:  #fdecea;

  --erreur:      #b42318;
  --erreur-fond: #fef3f2;
  --avert:       #b54708;
  --avert-fond:  #fef3c7;
  --info-fond:   var(--vert-50);

  --n-900: #111827;
  --n-700: #374151;
  --n-600: #4b5563;
  --n-500: #6b7280;
  --n-300: #d1d5db;
  --n-200: #e5e7eb;
  --n-100: #f3f4f6;
  --n-50:  #f9fafb;
  --blanc: #ffffff;

  /* Chaleur : le jaune et le crème de la bannière du labo. */
  --soleil-500: #f5c518;
  --soleil-400: #ffd43b;
  --soleil-100: #fff3c4;
  --creme: #fffbf0;
  --creme-fonce: #fdf3d8;
  --ombre-chaude: 0 10px 30px rgba(120, 80, 0, .14);

  --whatsapp: #157a42;          /* vert WhatsApp assombri : texte blanc lisible (contraste 5,4:1, AA) */

  --texte: var(--n-900);
  --texte-doux: var(--n-600);
  --fond: var(--blanc);
  --fond-doux: var(--n-50);
  --bordure: var(--n-200);
  --primaire: var(--vert-600);
  --primaire-survol: var(--vert-700);

  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 12px;
  --rayon-petit: 8px;
  --ombre: 0 1px 2px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .06);
  --conteneur: 1120px;
  --cible: 48px;                /* hauteur minimale des cibles tactiles */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1rem;              /* 16 px : lisible, évite le zoom iOS sur les champs */
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primaire); text-underline-offset: 2px; }
a:hover { color: var(--primaire-survol); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--vert-500); outline-offset: 2px; border-radius: 4px; }
/* L'attribut hidden doit toujours l'emporter, même sur un composant qui fixe son display (.badge, .btn…) : piège rencontré au lot L6. */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lien-evitement { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--blanc); padding: .5rem 1rem; }
.lien-evitement:focus { left: .5rem; top: .5rem; }

/* ---------- Mise en page ---------- */
.conteneur { width: 100%; max-width: var(--conteneur); margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section-douce { background: var(--fond-doux); }
.pile > * + * { margin-top: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grille { display: grid; gap: 1rem; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .grille-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
}

/* ---------- Texte ---------- */
.texte-doux { color: var(--texte-doux); }
.texte-petit { font-size: .875rem; }
.texte-centre { text-align: center; }
.gras { font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--cible); padding: .75rem 1.25rem;
  border: 2px solid transparent; border-radius: var(--rayon);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primaire { background: var(--primaire); color: var(--blanc); }
.btn-primaire:hover { background: var(--primaire-survol); color: var(--blanc); }
.btn-secondaire { background: var(--blanc); color: var(--primaire); border-color: var(--primaire); }
.btn-secondaire:hover { background: var(--vert-50); color: var(--primaire-survol); }
.btn-whatsapp { background: var(--whatsapp); color: var(--blanc); }
.btn-whatsapp:hover { background: #106636; color: var(--blanc); }
.btn-discret { background: transparent; color: var(--texte); border-color: var(--bordure); }
.btn-discret:hover { background: var(--n-100); color: var(--texte); }
.btn-bloc { display: flex; width: 100%; }
.btn-grand { min-height: 56px; font-size: 1.0625rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Cartes ---------- */
.carte {
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: 1rem; box-shadow: var(--ombre);
}

/* ---------- Badges & alertes ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .125rem .5rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.5;
  background: var(--n-100); color: var(--n-700);
}
.badge-info { background: var(--vert-50); color: var(--vert-700); }
.badge-avert { background: var(--avert-fond); color: var(--avert); }
.badge-promo { background: var(--rouge-600); color: var(--blanc); }
.badge-erreur { background: var(--erreur-fond); color: var(--erreur); }

.alerte { border-radius: var(--rayon-petit); padding: .75rem 1rem; border-left: 4px solid; }
.alerte-info { background: var(--info-fond); border-color: var(--vert-600); }
.alerte-avert { background: var(--avert-fond); border-color: var(--avert); }
.alerte-erreur { background: var(--erreur-fond); border-color: var(--erreur); }

/* Valeur provisoire à faire confirmer par le labo (visible, mais discrète). */
.a-confirmer { color: var(--avert); font-style: italic; }

/* ---------- Bandeau promo ---------- */
.bandeau { background: var(--rouge-600); color: var(--blanc); font-size: .9rem; font-weight: 600; text-align: center; padding: .5rem 16px; }
.bandeau a { color: var(--blanc); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--bordure); }
.entete-barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--texte); }
.logo:hover { color: var(--texte); }
.logo-marque { width: 40px; height: 40px; flex: none; }
.logo-texte { display: flex; flex-direction: column; line-height: 1.1; }
.logo-texte strong { font-size: 1rem; color: var(--vert-700); letter-spacing: .01em; }
.logo-texte span { font-size: .75rem; color: var(--texte-doux); }

/* Menu mobile sans JavaScript : <details>. */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; min-height: var(--cible); min-width: var(--cible); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--rayon-petit); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--n-100); }
.menu-liste {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .14); padding: .5rem; margin: 0; list-style: none;
}
.menu-liste a { display: block; padding: .75rem; border-radius: var(--rayon-petit); text-decoration: none; color: var(--texte); font-weight: 500; }
.menu-liste a:hover, .menu-liste a[aria-current="page"] { background: var(--vert-50); color: var(--vert-700); }
.nav-bureau { display: none; }
@media (min-width: 960px) {
  .menu { display: none; }
  .nav-bureau { display: flex; align-items: center; gap: .25rem; }
  .nav-bureau a { padding: .5rem .75rem; border-radius: var(--rayon-petit); text-decoration: none; color: var(--texte); font-weight: 500; }
  .nav-bureau a:hover, .nav-bureau a[aria-current="page"] { background: var(--vert-50); color: var(--vert-700); }
  .nav-bureau .btn { margin-left: .5rem; color: var(--blanc); }
}

/* ---------- Barre d'action collante (mobile) ---------- */
.barre-collante {
  position: sticky; bottom: 0; z-index: 40; background: var(--blanc);
  border-top: 1px solid var(--bordure); padding: .75rem 16px calc(.75rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(17, 24, 39, .08);
}

/* ---------- Formulaires ---------- */
.champ { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.champ input, .champ select, .champ textarea { width: 100%; max-width: 100%; }
.champ label { font-weight: 600; font-size: .9375rem; }
.champ input, .champ select, .champ textarea {
  font: inherit; min-height: var(--cible); padding: .625rem .75rem;
  border: 1px solid var(--n-300); border-radius: var(--rayon-petit); background: var(--blanc); color: var(--texte);
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert-600); box-shadow: 0 0 0 3px var(--vert-100); }
.champ .aide { font-size: .8125rem; color: var(--texte-doux); }
.champ .erreur-champ { font-size: .8125rem; color: var(--erreur); }

/* ---------- Tableaux ---------- */
.tableau { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tableau th, .tableau td { padding: .625rem .75rem; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: middle; }
.tableau th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .03em; color: var(--texte-doux); background: var(--fond-doux); }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; }
.defile-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Page d'erreur ---------- */
.page-erreur { padding: 64px 0; text-align: center; }
.page-erreur .code { font-size: 3.5rem; font-weight: 800; color: var(--vert-600); line-height: 1; margin-bottom: .5rem; }
.detail-dev { text-align: left; font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; background: var(--n-100); padding: 1rem; border-radius: var(--rayon-petit); overflow-x: auto; white-space: pre-wrap; }

/* ---------- Pages de contenu ---------- */
.page-contenu { padding-top: 40px; padding-bottom: 64px; max-width: 760px; }
.page-contenu h1 { margin-bottom: 1rem; }
.page-contenu .tableau { margin: 1rem 0 2rem; }

/* ---------- Espace du personnel ---------- */
.alerte-succes { background: var(--vert-50); border-color: var(--vert-600); }
.alerte + .alerte, .alerte { margin-bottom: 1rem; }
.btn-petit { min-height: 36px; padding: .375rem .75rem; font-size: .875rem; }
.formulaire-etroit { max-width: 480px; }
.sans-retour { white-space: nowrap; }

body.admin { background: var(--fond-doux); }
.admin-barre {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 16px; background: var(--vert-800); color: var(--blanc);
}
.admin-marque { display: inline-flex; align-items: center; gap: .5rem; color: var(--blanc); text-decoration: none; font-weight: 700; }
.admin-marque:hover { color: var(--blanc); }
.admin-marque .logo-marque { width: 32px; height: 32px; }
.admin-marque small { font-weight: 500; opacity: .75; margin-left: .25rem; }
.admin-menu-mobile > summary { color: var(--blanc); }
.admin-menu-mobile > summary:hover { background: rgba(255, 255, 255, .12); }
.admin-cadre { display: block; }
.admin-nav { display: none; }
.admin-contenu { padding: 16px; max-width: 1100px; }
.admin-contenu > h1 { font-size: 1.5rem; }
.admin-contenu > * + * { margin-top: 1rem; }
.admin-session { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; color: var(--texte-doux); }
.admin-session form { margin: 0; }
@media (min-width: 960px) {
  .admin-menu-mobile { display: none; }
  .admin-cadre { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 56px); }
  .admin-nav { display: flex; flex-direction: column; gap: .25rem; padding: 16px 12px; background: var(--blanc); border-right: 1px solid var(--bordure); }
  .admin-nav a { padding: .625rem .75rem; border-radius: var(--rayon-petit); text-decoration: none; color: var(--texte); font-weight: 500; }
  .admin-nav a:hover, .admin-nav a[aria-current="page"] { background: var(--vert-50); color: var(--vert-700); }
  .admin-contenu { padding: 24px 32px; }
}

/* Connexion */
body.admin-simple { background: linear-gradient(160deg, var(--vert-800), var(--vert-600)); justify-content: center; align-items: center; padding: 16px; }
.admin-simple-boite { flex: none; width: 100%; max-width: 400px; background: var(--blanc); border-radius: var(--rayon); padding: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.admin-simple-marque { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.admin-simple-marque strong { display: block; color: var(--vert-700); }
.admin-simple-marque span { font-size: .8125rem; color: var(--texte-doux); }
.admin-simple-titre { font-size: 1.375rem; }
.admin-simple-credit { color: #d6f0d4; font-size: .8125rem; margin-top: 1rem; text-align: center; }
.admin-simple-credit a { color: var(--blanc); font-weight: 600; }

/* Personnel */
details.ajout { padding: 0; box-shadow: none; border: none; background: transparent; }
details.ajout > summary { list-style: none; display: inline-flex; }
details.ajout > summary::-webkit-details-marker { display: none; }
details.ajout[open] > summary { margin-bottom: 1rem; }
details.ajout[open] { background: var(--blanc); border: 1px solid var(--bordure); padding: 1rem; }
.liste-personnel { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.personne-inactive { opacity: .7; }
.personne-entete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.personne-badges { display: flex; flex-wrap: wrap; gap: .375rem; align-items: flex-start; }
.personne-actions { margin-top: .75rem; border-top: 1px solid var(--bordure); padding-top: .5rem; }
.personne-actions > summary { cursor: pointer; color: var(--primaire); font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.ligne-formulaire { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin: .75rem 0; }
.ligne-formulaire .champ { flex: 1 1 200px; min-width: 0; }
.carte, .admin-contenu { min-width: 0; overflow-wrap: anywhere; }
.ligne-formulaire select, .champ select { display: block; width: 100%; }
.ligne-boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.mdp-provisoire-valeur code { display: inline-block; font-size: 1.375rem; letter-spacing: .08em; background: var(--blanc); padding: .375rem .75rem; border-radius: var(--rayon-petit); user-select: all; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }

/* ---------- Tarifs & catalogue (admin) ---------- */
.entete-page { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.entete-page h1 { margin: 0; }
kbd { font-family: inherit; font-size: .8125rem; padding: .05rem .375rem; border: 1px solid var(--n-300); border-bottom-width: 2px; border-radius: 4px; background: var(--blanc); }
.bloc-tarifs > h2 { font-size: 1.125rem; margin: 1.5rem 0 .5rem; }
.table-tarifs { padding: .75rem; margin-bottom: .75rem; }
.table-tarifs h3 { font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tableau-tarifs th, .tableau-tarifs td { padding: .5rem; }
.tableau-tarifs .tarif-article { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .9375rem; color: var(--texte); background: transparent; }
.champ-prix { font: inherit; width: 8.5rem; max-width: 100%; min-height: 44px; padding: .5rem .625rem; border: 1px solid var(--n-300); border-radius: var(--rayon-petit); text-align: right; font-variant-numeric: tabular-nums; }
.champ-prix:focus { outline: none; border-color: var(--vert-600); box-shadow: 0 0 0 3px var(--vert-100); }
.champ-prix::placeholder { color: var(--avert); font-style: italic; text-align: right; }
.tarif-actif input { width: 22px; height: 22px; accent-color: var(--vert-600); }
.tarif-etat { min-width: 9rem; }
.barre-tarifs { display: flex; align-items: center; gap: 1rem; margin: 1rem -16px 0; }
body.js-tarifs .barre-tarifs .btn { background: var(--blanc); color: var(--primaire); border-color: var(--primaire); }
@media (max-width: 700px) {
  /* Mobile : chaque ligne devient une petite carte (nom, puis CDF et USD côte à côte). */
  .tableau-tarifs thead { display: none; }
  .tableau-tarifs tr.ligne-tarif { display: grid; grid-template-columns: 1fr 1fr auto; gap: .375rem .5rem; padding: .625rem 0; border-bottom: 1px solid var(--bordure); }
  .tableau-tarifs tr.ligne-tarif > * { border: 0; padding: 0; }
  .tableau-tarifs .tarif-article { grid-column: 1 / -1; }
  .tableau-tarifs td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--texte-doux); }
  .tableau-tarifs .champ-prix { width: 100%; }
  .tableau-tarifs .tarif-etat { grid-column: 1 / -1; min-width: 0; }
  .tableau-tarifs .tarif-etat:empty { display: none; }
}
.case { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; font-weight: 600; }
.case input { width: 20px; height: 20px; accent-color: var(--vert-600); }
.ligne-formulaire .champ-court { flex: 0 1 110px; }
.ligne-formulaire .champ-large { flex: 1 1 100%; }
.champ textarea { width: 100%; }
.bloc-catalogue { padding: 0; }
.bloc-catalogue > *:not(summary) { margin-left: 1rem; margin-right: 1rem; }
.bloc-catalogue[open] { padding-bottom: 1rem; }
.bloc-catalogue-titre { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem; min-height: 56px; }
.produit-catalogue { border-top: 1px solid var(--bordure); padding-top: .75rem; margin-top: .75rem; }
.produit-catalogue h3 { font-size: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.produit-catalogue h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-doux); margin: .75rem 0 .25rem; }
.ligne-variante { margin: .25rem 0; padding: .5rem; background: var(--fond-doux); border-radius: var(--rayon-petit); }
.lien-details { cursor: pointer; color: var(--primaire); font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.ajout-produit { border-top: 1px dashed var(--n-300); margin-top: 1rem; padding-top: .5rem; }

/* ---------- Tarifs (public) ---------- */
.liste-prix { list-style: none; margin: 0; padding: 0; }
.liste-prix li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .625rem 0; border-bottom: 1px dashed var(--bordure); }
.liste-prix li:last-child { border-bottom: 0; }
.prix { font-weight: 700; color: var(--vert-700); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.prix small { display: block; font-weight: 500; color: var(--texte-doux); }
.prix-sur-demande { font-weight: 600; color: var(--texte-doux); font-style: italic; white-space: nowrap; }
.grille-tarifs { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .grille-tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.carte-tarifs { scroll-margin-top: 80px; }
.carte-tarifs h2 { font-size: 1.125rem; }
.carte-tarifs h3 { font-size: .9375rem; color: var(--texte-doux); margin: .75rem 0 .25rem; }
.lien-carte { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.lien-carte:hover { color: inherit; }
.lien-carte:hover h3 { color: var(--vert-700); }
.selecteur-devise { display: inline-flex; border: 1px solid var(--bordure); border-radius: 999px; padding: 3px; background: var(--blanc); }
.selecteur-devise a { padding: .375rem .875rem; border-radius: 999px; text-decoration: none; color: var(--texte); font-weight: 600; font-size: .875rem; min-height: 36px; display: inline-flex; align-items: center; }
.selecteur-devise a[aria-current="true"] { background: var(--vert-600); color: var(--blanc); }

/* =====================================================================
   Site public — ambiance chaleureuse (vert du logo + jaune et crème de la bannière)
   ===================================================================== */
body.site { background: var(--creme); }
.icone { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
.arrondi { border-radius: var(--rayon); }

/* Boutons chauds */
.btn-soleil { background: var(--soleil-500); color: var(--vert-800); box-shadow: 0 4px 0 #d4a600; }
.btn-soleil:hover { background: var(--soleil-400); color: var(--vert-800); }
.btn-soleil:active { transform: translateY(2px); box-shadow: 0 2px 0 #d4a600; }
.btn-clair { background: rgba(255, 255, 255, .12); color: var(--blanc); border-color: rgba(255, 255, 255, .5); }
.btn-clair:hover { background: rgba(255, 255, 255, .22); color: var(--blanc); }
.btn .icone { width: 20px; height: 20px; }

/* Barre d'information (au-dessus de l'en-tête) */
.barre-info { background: var(--vert-800); color: #e7f5e6; font-size: .8125rem; }
.barre-info-contenu { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.barre-info a { color: var(--soleil-400); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.barre-info .icone { width: 16px; height: 16px; }
.barre-info-lieu { display: none; align-items: center; gap: .35rem; }
@media (min-width: 640px) { .barre-info-lieu { display: inline-flex; } }
@media (max-width: 639px) { .barre-info-contenu { justify-content: center; } }

/* En-tête */
.entete { background: rgba(255, 255, 255, .97); border-bottom: 3px solid var(--soleil-500); }
.logo img { height: 52px; width: auto; display: block; }
@media (min-width: 960px) {
  .logo img { height: 58px; }
  .nav-bureau a:not(.btn) { font-weight: 600; }
  .nav-bureau .btn { margin-left: .75rem; }
}
.menu-liste a { display: flex; align-items: center; gap: .5rem; }

/* Surtitres et titres de section */
.surtitre {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--vert-800); background: var(--soleil-100); padding: .3rem .75rem;
  border-radius: 999px; margin: 0 0 .75rem;
}
.surtitre .icone { width: 15px; height: 15px; }
.surtitre-centre { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.surtitre-clair { background: rgba(245, 197, 24, .2); color: var(--soleil-400); }
.titre-section { text-align: center; font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.intro-section { max-width: 34rem; margin: 0 auto; }
.section-creme { background: var(--creme-fonce); }

/* Surlignage façon pinceau jaune (comme les bulles de la bannière) */
.surligne {
  background-image: linear-gradient(transparent 58%, var(--soleil-400) 58%, var(--soleil-400) 90%, transparent 90%);
  padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Héros */
.heros { position: relative; overflow: hidden; padding: 28px 0 36px; background: radial-gradient(120% 80% at 100% 0%, var(--soleil-100) 0%, transparent 55%), linear-gradient(180deg, var(--blanc) 0%, var(--creme) 100%); }
.heros-decor { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 114, 3, .10), transparent 70%); left: -160px; bottom: -180px; pointer-events: none; }
.heros-grille { position: relative; display: grid; gap: 1.75rem; align-items: center; }
.heros h1 { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.1; color: var(--vert-800); letter-spacing: -.01em; margin-bottom: .5rem; }
.heros-accroche { font-size: clamp(1.15rem, 4vw, 1.4rem); font-weight: 800; color: #b45309; font-style: italic; margin-bottom: .75rem; }
.heros-description { color: var(--n-700); max-width: 34rem; }
.heros-actions { display: grid; gap: .75rem; margin: 1.25rem 0 1rem; }
.heros-bientot { display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; color: var(--n-700); background: var(--blanc); border: 1px dashed var(--soleil-500); border-radius: var(--rayon-petit); padding: .625rem .75rem; max-width: 34rem; }
.heros-bientot .icone { color: var(--vert-600); margin-top: 2px; }
.heros-visuel { margin: 0; }
.heros-banniere { width: 100%; border-radius: 18px; border: 5px solid var(--blanc); box-shadow: var(--ombre-chaude), 0 0 0 1px rgba(0, 0, 0, .04); }
@media (min-width: 640px) { .heros-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .heros { padding: 56px 0 64px; }
  .heros-grille { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .heros-banniere { transform: rotate(1.2deg); }
}

/* Engagements (les 4 promesses de la bannière) */
.promesses { background: var(--vert-700); color: var(--blanc); }
.promesses-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem 1rem; padding-top: .875rem; padding-bottom: .875rem; }
.promesse { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .875rem; min-height: 40px; }
.promesse .icone { color: var(--soleil-400); width: 24px; height: 24px; }
@media (min-width: 768px) { .promesses-grille { grid-template-columns: repeat(4, 1fr); } .promesse { justify-content: center; font-size: 1rem; } }

/* Services */
.grille-services { list-style: none; padding: 0; margin: 1.75rem 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .grille-services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 960px) { .grille-services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.carte-service { background: var(--blanc); border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.carte-service:hover { transform: translateY(-3px); box-shadow: var(--ombre-chaude); }
.carte-service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carte-service .lien-carte { height: 100%; }
.carte-service-texte { padding: .75rem .875rem 1rem; border-top: 3px solid var(--soleil-500); flex: 1; }
.carte-service-texte h3 { font-size: 1rem; margin-bottom: .25rem; color: var(--vert-800); }
.carte-service-texte p { font-size: .8125rem; color: var(--texte-doux); margin: 0; }
.carte-service-icone { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--soleil-100), var(--vert-50)); color: var(--vert-700); }
.carte-service-icone .icone { width: 52px; height: 52px; }
@media (prefers-reduced-motion: reduce) { .carte-service, .carte-service:hover { transition: none; transform: none; } }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.etape { position: relative; background: var(--blanc); border-radius: 16px; padding: 1.25rem 1.25rem 1.25rem 4.5rem; box-shadow: var(--ombre); }
.etape h3 { margin: 0 0 .25rem; color: var(--vert-800); }
.etape p { margin: 0; }
.etape-numero { position: absolute; left: 1.1rem; top: 1.1rem; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soleil-500); color: var(--vert-800); font-weight: 900; font-size: 1.25rem; box-shadow: 0 3px 0 #d4a600; }
@media (min-width: 768px) { .etapes { grid-template-columns: repeat(3, 1fr); } }

/* Blocs image + texte */
.bloc-image-texte { display: grid; gap: 1.75rem; align-items: center; }
.bloc-image-texte > img { width: 100%; }
@media (min-width: 960px) { .bloc-image-texte { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.carte-chaude { border: 2px solid var(--soleil-500); box-shadow: var(--ombre-chaude); }
.carte-chaude h2 { color: var(--vert-800); }
.photo-cadree { margin: 0; justify-self: center; background: var(--blanc); padding: 12px 12px 0; border-radius: 6px; box-shadow: var(--ombre-chaude); transform: rotate(-2deg); max-width: 420px; }
.photo-cadree img { width: 100%; border-radius: 3px; }
.photo-cadree figcaption { text-align: center; font-weight: 800; font-style: italic; color: var(--vert-700); padding: .75rem 0 .875rem; }
.liste-coches { list-style: none; padding: 0; margin: 0; }
.liste-coches li { position: relative; padding-left: 2rem; margin-bottom: .625rem; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--vert-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12 3.5 3.5L17 9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Vidéo (chargée au clic) */
.section-video { background: linear-gradient(160deg, var(--vert-800), #023a01); color: var(--blanc); }
.section-video .titre-section { color: var(--blanc); }
.video-cadre { position: relative; max-width: 900px; margin: 1.5rem auto 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); border: 4px solid var(--soleil-500); }
.video-affiche { position: absolute; inset: 0; display: block; color: var(--blanc); text-decoration: none; }
.video-affiche img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.video-bouton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--soleil-500); color: var(--vert-800); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(245, 197, 24, .3); transition: transform .15s; }
.video-bouton .icone { width: 38px; height: 38px; margin-left: 5px; }
.video-affiche:hover .video-bouton, .video-affiche:focus-visible .video-bouton { transform: translate(-50%, -50%) scale(1.08); }
.video-legende { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font-weight: 800; font-size: 1.125rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { color: #c8e6c6; margin-top: .75rem; }

/* Accès */
.section-sombre { background: linear-gradient(180deg, var(--vert-800), #034001); color: #e7f5e6; }
.section-sombre .titre-section, .section-sombre h2 { color: var(--blanc); }
.section-sombre .a-confirmer { color: #fcd34d; }
.acces-grille { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.acces-infos { display: grid; gap: 1rem; align-content: start; }
.carte-adresse, .carte-itineraire { color: var(--texte); }
.carte-adresse p { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .625rem; }
.carte-adresse .icone { color: var(--vert-600); margin-top: 2px; }
.adresse-ligne strong { font-size: 1.0625rem; color: var(--vert-800); }
.adresse-repere { background: var(--soleil-100); border-radius: var(--rayon-petit); padding: .5rem .75rem; font-weight: 700; color: var(--vert-800); }
.acces-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.acces-actions .btn-clair { background: var(--vert-50); color: var(--vert-800); border-color: var(--vert-100); }
.carte-itineraire h3 { display: flex; gap: .5rem; align-items: center; color: var(--vert-800); font-size: 1.0625rem; }
.carte-itineraire h3 .icone { color: #b45309; }
.itineraire { margin: .5rem 0 0; padding-left: 1.25rem; }
.itineraire li { margin-bottom: .5rem; }
.itineraire li::marker { color: #b45309; font-weight: 800; }
.acces-cartes { display: grid; gap: 1rem; }
.carte-google { border-radius: 16px; overflow: hidden; border: 4px solid var(--soleil-500); aspect-ratio: 4 / 3; background: var(--vert-700); }
.carte-google iframe { width: 100%; height: 100%; border: 0; display: block; }
.plan-acces { margin: 0; background: var(--blanc); border-radius: 16px; padding: .75rem; color: var(--texte); }
.plan-acces img { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 8px; }
.plan-acces figcaption { text-align: center; font-weight: 700; color: var(--vert-800); padding-top: .5rem; font-size: .9375rem; }
@media (min-width: 960px) {
  .acces-grille { grid-template-columns: 1fr 1.2fr; gap: 2rem; }
  .acces-cartes { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .carte-google { aspect-ratio: auto; height: 100%; min-height: 420px; }
}

/* Bouton WhatsApp flottant (mobile surtout) */
.whatsapp-flottant {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--blanc);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.whatsapp-flottant .icone { width: 32px; height: 32px; }
.whatsapp-flottant:hover { color: var(--blanc); transform: scale(1.05); }

/* Pied de page */
.pied { position: relative; background: #0f1d0e; color: #cfd8ce; padding: 48px 0 24px; font-size: .9375rem; margin-top: auto; }
.pied-vague { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--vert-600), var(--soleil-500), var(--vert-600)); }
.pied a { color: var(--blanc); }
.pied h2 { font-size: 1rem; color: var(--soleil-400); margin-bottom: .75rem; }
.pied-titre-secondaire { margin-top: 1.25rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied-liste li { display: flex; gap: .5rem; align-items: flex-start; }
.pied-liste li + li { margin-top: .5rem; }
.pied-liste .icone { color: var(--soleil-400); margin-top: 2px; }
.pied .a-confirmer { color: #fbbf24; }
.pied-logo { display: inline-block; background: var(--blanc); border-radius: 12px; padding: 6px 10px; }
.pied-logo img { height: 56px; width: auto; display: block; }
.pied-signature { font-weight: 800; font-style: italic; color: var(--soleil-400); font-size: 1.125rem; margin: .75rem 0 .25rem; }
.pied-grille { display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .pied-grille { grid-template-columns: 1.2fr 1fr 1fr; } }
.pied-bas { border-top: 1px solid #263a25; margin-top: 2rem; padding-top: 1rem; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .8125rem; color: #8fa38d; }
.pied-bas a { color: #cfd8ce; }
.credit a { color: var(--soleil-400); font-weight: 700; }
@media (min-width: 960px) { .pied-bas { padding-bottom: 0; } }
@media (max-width: 639px) {
  /* Petit écran : bouton plus compact et légende sous le bouton, sans chevauchement. */
  .video-bouton { width: 64px; height: 64px; box-shadow: 0 0 0 7px rgba(245, 197, 24, .3); }
  .video-bouton .icone { width: 30px; height: 30px; }
  .video-legende { bottom: 6%; font-size: 1rem; }
}
.lien-carte-externe { display: inline-flex; align-items: center; gap: .4rem; color: var(--soleil-400); font-weight: 700; font-size: .9375rem; }
.lien-carte-externe:hover { color: var(--blanc); }
.admin-logo { display: inline-flex; background: var(--blanc); border-radius: 8px; padding: 3px 6px; }
.admin-logo img { height: 34px; width: auto; display: block; }
.admin-simple-marque img { height: 60px; width: auto; }
body.admin-simple { background: linear-gradient(160deg, var(--vert-800), var(--vert-600) 60%, #8a7a00); }

/* ---------- Pages intérieures (lot L4) ---------- */
.conteneur-etroit { max-width: 820px; }
.titre-page { padding: 28px 0 32px; background: radial-gradient(120% 90% at 100% 0%, var(--soleil-100) 0%, transparent 60%), linear-gradient(180deg, var(--blanc), var(--creme)); border-bottom: 1px solid var(--creme-fonce); }
.titre-page h1 { color: var(--vert-800); font-size: clamp(1.8rem, 6vw, 2.6rem); margin: .25rem 0 .5rem; }
.titre-page-intro { font-size: 1.0625rem; color: var(--n-700); max-width: 40rem; margin: 0; }
.ariane { font-size: .8125rem; color: var(--texte-doux); margin-bottom: .75rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.ariane a { color: var(--vert-700); }

.produit-public { margin-bottom: 1rem; }
.produit-public h2 { font-size: 1.25rem; }
.produit-public .icone { width: 16px; height: 16px; color: var(--vert-600); }
.actions-service { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .75rem; }

.appel-action { background: linear-gradient(120deg, var(--vert-700), var(--vert-800)); color: var(--blanc); padding: 36px 0; }
.appel-action h2 { color: var(--soleil-400); margin-bottom: .25rem; }
.appel-action p { margin: 0; color: #e7f5e6; }
.appel-action-contenu { display: grid; gap: 1.25rem; align-items: center; }
.appel-action-boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .appel-action-contenu { grid-template-columns: 1fr auto; } }

.grille-contact { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grille-contact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille-contact { grid-template-columns: repeat(4, 1fr); } }
.carte-contact { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--texte); border-top: 4px solid var(--soleil-500); transition: transform .15s, box-shadow .15s; }
.carte-contact:hover { color: var(--texte); transform: translateY(-2px); box-shadow: var(--ombre-chaude); }
.carte-contact strong { font-size: 1.0625rem; color: var(--vert-800); }
.carte-contact-icone { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--vert-50); color: var(--vert-700); margin-bottom: .5rem; }
.carte-contact-icone .icone { width: 24px; height: 24px; }
.carte-contact-whatsapp .carte-contact-icone { background: #25d366; color: var(--blanc); }

.faq { display: grid; gap: .625rem; margin-top: 1.5rem; }
.faq-question { background: var(--blanc); border-radius: 12px; box-shadow: var(--ombre); border-left: 4px solid var(--soleil-500); }
.faq-question summary { cursor: pointer; list-style: none; padding: 1rem 2.75rem 1rem 1rem; font-weight: 700; color: var(--vert-800); position: relative; min-height: var(--cible); }
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--soleil-100); color: var(--vert-800); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.faq-question[open] summary::after { content: "−"; }
.faq-question p { margin: 0; padding: 0 1rem 1rem; color: var(--n-700); }

.texte-legal h2 { font-size: 1.25rem; color: var(--vert-800); margin-top: 2rem; }
.texte-legal ul:not(.liste-coches) { padding-left: 1.25rem; }
.texte-legal li { margin-bottom: .375rem; }

/* ---------- Paramètres (admin) ---------- */
.sommaire-parametres { display: flex; flex-wrap: wrap; gap: .375rem; }
.sommaire-parametres a { font-size: .8125rem; font-weight: 600; padding: .375rem .75rem; border-radius: 999px; background: var(--blanc); border: 1px solid var(--bordure); text-decoration: none; color: var(--vert-700); }
.sommaire-parametres a:hover { background: var(--vert-50); }
.bloc-parametres { scroll-margin-top: 72px; }
.bloc-parametres h2 { font-size: 1.125rem; color: var(--vert-800); }
.grille-parametres { display: grid; gap: .875rem 1rem; }
@media (min-width: 760px) { .grille-parametres { grid-template-columns: 1fr 1fr; } .grille-parametres .champ-large { grid-column: 1 / -1; } }
.pied-formulaire { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.faq-edition { border: 1px solid var(--bordure); border-radius: var(--rayon-petit); padding: .75rem; display: grid; gap: .5rem; }
.faq-edition legend { font-size: .8125rem; font-weight: 700; color: var(--texte-doux); padding: 0 .25rem; }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
@media (max-width: 639px) {
  /* Mobile : cartes de contact compactes (icône à gauche). */
  .carte-contact { display: grid; grid-template-columns: 48px 1fr; column-gap: .875rem; row-gap: 0; align-items: center; padding: .875rem 1rem; }
  .carte-contact-icone { grid-row: 1 / span 3; margin-bottom: 0; }
}

/* ---------- Envoyer mes photos (lot L6) ---------- */
.etapes-envoi { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; gap: .375rem; }
.etapes-envoi li { flex: 1; text-align: center; font-size: .8125rem; font-weight: 700; color: var(--texte-doux); padding: .5rem .25rem; border-bottom: 4px solid var(--bordure); }
.etapes-envoi li.actif { color: var(--vert-800); border-color: var(--soleil-500); }
.etapes-envoi li.fait { color: var(--vert-700); border-color: var(--vert-600); }
.zone-choix { display: flex; flex-direction: column; align-items: center; gap: .375rem; text-align: center; padding: 1.75rem 1rem; border: 3px dashed var(--soleil-500); border-radius: 18px; background: var(--blanc); cursor: pointer; transition: background .15s; }
.zone-choix:hover, .zone-choix:focus-within { background: var(--soleil-100); }
.zone-choix strong { font-size: 1.25rem; color: var(--vert-800); }
.zone-choix input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zone-choix-icone { width: 64px; height: 64px; border-radius: 50%; background: var(--vert-600); color: var(--blanc); display: flex; align-items: center; justify-content: center; }
.zone-choix-icone .icone { width: 32px; height: 32px; }
.confidentialite-envoi { display: flex; gap: .5rem; align-items: flex-start; margin: .75rem 0 1rem; }
.confidentialite-envoi .icone { color: var(--vert-600); }
.progression-envoi { background: var(--blanc); border-radius: var(--rayon-petit); padding: .75rem; box-shadow: var(--ombre); margin-bottom: 1rem; position: sticky; top: 70px; z-index: 20; }
.progression-texte { font-size: .875rem; font-weight: 600; margin-bottom: .375rem; overflow-wrap: anywhere; }
.progression-barre { height: 10px; background: var(--n-200); border-radius: 999px; overflow: hidden; }
.progression-barre span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--vert-600), var(--soleil-500)); transition: width .3s; }
.appliquer-tout { background: var(--vert-50); border: 1px solid var(--vert-100); border-radius: var(--rayon); padding: .75rem; margin-bottom: 1rem; }
.appliquer-tout strong { display: block; font-size: .875rem; color: var(--vert-800); margin-bottom: .5rem; }
.appliquer-tout-champs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.appliquer-tout-champs select, .appliquer-tout-champs input { font: inherit; min-height: 44px; padding: .375rem .5rem; border: 1px solid var(--n-300); border-radius: var(--rayon-petit); background: var(--blanc); min-width: 0; }
@media (min-width: 700px) { .appliquer-tout-champs { grid-template-columns: 2fr 1.5fr 90px auto; } }
.grille-photos { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .grille-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grille-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.carte-photo { background: var(--blanc); border-radius: 14px; box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.carte-photo-image { position: relative; aspect-ratio: 1; background: var(--n-100); }
.carte-photo-image img { width: 100%; height: 100%; object-fit: cover; }
.carte-photo-envoi .carte-photo-image img { opacity: .55; }
.carte-photo-statut { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(15, 29, 14, .82); color: var(--blanc); font-size: .75rem; font-weight: 700; border-radius: 6px; padding: .25rem .375rem; text-align: center; }
.carte-photo-rejetee .carte-photo-statut { background: var(--erreur); }
.carte-photo-rejetee .carte-photo-image img { filter: grayscale(1); opacity: .4; }
.badge-resolution { position: absolute; top: 6px; left: 6px; }
.carte-photo-corps { padding: .5rem; display: grid; gap: .375rem; }
.carte-photo-nom { margin: 0; font-size: .75rem; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-photo-corps select { font: inherit; font-size: .875rem; min-height: 40px; width: 100%; padding: .25rem .375rem; border: 1px solid var(--n-300); border-radius: var(--rayon-petit); background: var(--blanc); }
.carte-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.carte-photo-actions .quantite { flex: 1 1 100%; justify-content: space-between; margin-right: 0; }
.carte-photo-actions .bouton-icone { flex: 1 1 0; }
@media (min-width: 1024px) { .carte-photo-actions .quantite { flex: 0 0 auto; margin-right: auto; } .carte-photo-actions .bouton-icone { flex: 0 0 40px; } }
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--n-300); border-radius: 999px; overflow: hidden; margin-right: auto; }
.quantite-bouton { width: 40px; height: 40px; border: 0; background: var(--vert-50); color: var(--vert-800); font-size: 1.25rem; font-weight: 800; cursor: pointer; }
.quantite-bouton:active { background: var(--vert-100); }
.quantite-valeur { min-width: 2rem; text-align: center; font-weight: 800; }
.bouton-icone { width: 40px; height: 40px; border: 1px solid var(--bordure); border-radius: var(--rayon-petit); background: var(--blanc); cursor: pointer; font-size: 1.05rem; }
.bouton-supprimer:hover { background: var(--erreur-fond); }
.carte-photo-prix { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--vert-700); }
.barre-envoi { margin: 0 -16px; }
.recap { margin: 1rem 0; }
.ligne-total { border-top: 2px solid var(--vert-600) !important; padding-top: .75rem !important; }
.formulaire-commande h2 { font-size: 1.125rem; }
.choix-paiement { border: 1px solid var(--bordure); border-radius: var(--rayon-petit); padding: .5rem .75rem; }
.choix-paiement legend { font-weight: 700; padding: 0 .25rem; }
.case-consentement { align-items: flex-start; font-weight: 500; }
.case-consentement input { margin-top: .2rem; flex: none; }
.menu-envoyer { background: var(--soleil-100); font-weight: 700 !important; }
.selecteur-devise button { font: inherit; padding: .375rem .875rem; border: 0; border-radius: 999px; background: transparent; font-weight: 700; min-height: 36px; cursor: pointer; }
.selecteur-devise button[aria-checked="true"] { background: var(--vert-600); color: var(--blanc); }

/* ---------- Suivi de commande ---------- */
.reference-commande { font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; letter-spacing: .06em; color: var(--vert-800); margin: .25rem 0; font-variant-numeric: tabular-nums; }
.confirmation-commande { margin-bottom: 1rem; }
.frise-statut { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; counter-reset: etape; }
.frise-statut li { position: relative; text-align: center; font-size: .75rem; font-weight: 700; color: var(--texte-doux); padding-top: 2.25rem; }
.frise-statut li::before { counter-increment: etape; content: counter(etape); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--n-200); color: var(--n-700); display: flex; align-items: center; justify-content: center; }
.frise-statut li.fait { color: var(--vert-800); }
.frise-statut li.fait::before { content: "✓"; background: var(--vert-600); color: var(--blanc); }
.lien-suivi code { display: block; font-size: .75rem; word-break: break-all; background: var(--n-100); padding: .5rem; border-radius: var(--rayon-petit); margin-top: .75rem; }

/* ---------- Commandes (personnel, lot L7) ---------- */
.entete-commandes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.entete-commandes h1 { margin: 0; }
.recherche-commandes { display: flex; gap: .5rem; flex: 1 1 18rem; max-width: 26rem; }
.recherche-commandes input { flex: 1; min-width: 0; padding: .5rem .75rem; border: 1px solid var(--bordure); border-radius: var(--rayon-petit); font: inherit; }
.navigation-jour { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .75rem; }
.navigation-jour strong { font-size: 1.0625rem; }
.filtres-commandes { display: flex; gap: .375rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.filtres-commandes a { flex: none; padding: .375rem .875rem; border-radius: 999px; border: 1px solid var(--bordure); background: var(--blanc); color: var(--texte); text-decoration: none; font-size: .875rem; font-weight: 600; }
.filtres-commandes a[aria-current="true"] { background: var(--vert-600); border-color: var(--vert-600); color: var(--blanc); }
.vide-commandes p { margin: .25rem 0; }

.liste-commandes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.ligne-commande {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: .75rem 1rem;
}
.ligne-commande > * { min-width: 0; }
.ligne-commande-titres { display: none; }
.ligne-commande-ref { display: flex; flex-direction: column; text-decoration: none; color: var(--vert-700); font-variant-numeric: tabular-nums; }
.ligne-commande-ref::after { content: ""; position: absolute; inset: 0; } /* toute la ligne est cliquable */
.ligne-commande { position: relative; }
.ligne-commande-client { display: flex; flex-direction: column; grid-column: 1 / -1; overflow-wrap: anywhere; }
.ligne-commande .nombre { text-align: right; font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; }
.ligne-commande-statuts { display: flex; flex-wrap: wrap; gap: .25rem; grid-column: 1 / -1; }
.ligne-commande:hover { border-color: var(--vert-500); }
@media (min-width: 900px) {
  .ligne-commande { grid-template-columns: 9.5rem minmax(10rem, 1.4fr) 1fr 8rem 1.6fr; padding: .625rem 1rem; }
  .ligne-commande-client, .ligne-commande-statuts { grid-column: auto; }
  .ligne-commande .nombre { grid-row: auto; grid-column: auto; }
  .ligne-commande-titres { display: grid; background: transparent; border: 0; padding-top: 0; padding-bottom: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--texte-doux); }
}
.totaux-jour { display: flex; flex-direction: column; gap: .25rem; }

.ariane-admin { margin: 0 0 .5rem; }
.entete-fiche { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem 1rem; margin-bottom: 1rem; }
.entete-fiche p { margin: .25rem 0 0; }
.reference-fiche { margin: 0; font-size: 1.75rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.grille-fiche { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .grille-fiche { grid-template-columns: 1fr 1.3fr; } }
.titre-carte { font-size: 1.0625rem; margin: 0 0 .75rem; }
.note-client { margin: .75rem 0 0; padding: .5rem .75rem; background: var(--fond-doux); border-radius: var(--rayon-petit); overflow-wrap: anywhere; }
.form-statut { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .625rem; }
.form-statut > label, .form-statut > span:first-child { width: 6.5rem; font-weight: 600; }
.form-statut select, .form-statut input[type="text"] { padding: .4rem .5rem; border: 1px solid var(--bordure); border-radius: var(--rayon-petit); font: inherit; min-width: 0; }
.form-statut input[type="text"] { flex: 1 1 12rem; }
.bloc-zip { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.bloc-zip p { margin: 0; }
.bloc-zip .btn-grand { white-space: normal; }
.zip-attente { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.indicateur { width: 1rem; height: 1rem; border-radius: 50%; border: 3px solid var(--vert-100); border-top-color: var(--vert-600); animation: tourne 1s linear infinite; flex: none; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .indicateur { animation: none; } }

.groupe-format { padding: .75rem 0; border-bottom: 1px solid var(--bordure); }
.groupe-format:first-of-type { padding-top: 0; }
.groupe-format-titre { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; margin-bottom: .5rem; }
.groupe-format-titre .texte-petit { grid-column: 1; }
.groupe-format-titre .nombre { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.photos-fiche { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .75rem; }
.photo-fiche { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.photo-fiche img, .photo-fiche-vide { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon-petit); background: var(--fond-doux); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--texte-doux); }
.photo-fiche-nom { font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-fiche-absente .photo-fiche-nom { color: var(--erreur); }
.historique-commande { margin: 0; padding-left: 1.25rem; display: grid; gap: .375rem; font-size: .9375rem; }

.compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.compteur { display: flex; flex-direction: column; gap: .125rem; text-decoration: none; color: var(--texte); }
.compteur strong { font-size: 1.75rem; color: var(--vert-700); line-height: 1.1; }
.compteur:hover { border-color: var(--vert-500); }

/* ---------- État du système (Maintenance, lot L8) ---------- */
.liste-controle { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .375rem; }
.liste-controle li { display: flex; gap: .5rem; align-items: baseline; overflow-wrap: anywhere; font-size: .9375rem; }
.controle-symbole { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.controle-ok .controle-symbole { background: var(--vert-50); color: var(--vert-700); }
.controle-avert .controle-symbole { background: var(--avert-fond); color: var(--avert); }
.controle-erreur .controle-symbole { background: var(--erreur-fond); color: var(--erreur); }
.badge-prefixe { font-weight: 500; opacity: .75; }
