/* memovIA v2 (23/11) : creme, pastels francs, encre noire, surligneur jaune.
   Inspire de caats.co : gros titres ronds, cartes a bord noir et ombre decalee. */
:root {
  --creme: #fff7ea;
  --encre: #161412;
  --doux: rgba(22, 20, 18, 0.74);
  --rose: #ff8fa3;
  --rose-fonce: #c2344f;
  --ciel: #bfe8f7;
  --menthe: #c9f0d3;
  --citron: #fff07a;
  --peche: #ffd2b3;
  --titre: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ombre: 4px 4px 0 var(--encre);
  --marge: clamp(18px, 5vw, 64px);
  /* Une seule colonne pour tout le site (25/11) : barre, ouverture, sections et pied
     s'alignent sur --large ; les textes a lire sur --etroit. Les fonds restent pleine largeur :
     c'est le retrait (--bord) qui grandit, pas le bloc. */
  --large: 1200px;
  --etroit: 820px;
  --bord: max(var(--marge), calc((100% - var(--large)) / 2));
  --rayon: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; }
/* Pied colle en bas meme quand la page est courte (suivi, pages legales, admin). */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
/* Mot fort : juste la couleur corail (surligneur, pastille et trait refuses le 23/11). */
mark { background: none; color: var(--rose-fonce); white-space: nowrap; }
.final mark { color: var(--encre); }

.fond-rose { background: var(--rose); }
.fond-ciel { background: var(--ciel); }
.fond-menthe { background: var(--menthe); }
.fond-citron { background: var(--citron); }
.fond-peche { background: var(--peche); }

/* Barre */
.barre {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--bord);
  background: rgba(255, 247, 234, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--encre);
}
.marque { display: flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; text-decoration: none; }
.mot { font-family: var(--titre); font-weight: 800; font-size: 25px; letter-spacing: -0.02em; }
.mot b { color: var(--rose-fonce); }
.barre nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.barre nav a { text-decoration: none; white-space: nowrap; }
.barre nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border: 2px solid var(--encre); border-radius: 999px;
  background: var(--rose); color: var(--encre);
  font: 800 16px/1 var(--titre); letter-spacing: 0.01em; text-decoration: none;
  box-shadow: var(--ombre); cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bouton .ico { margin-right: 8px; }
.choix-nom .ico, .option-ia-titre .ico, .pastilles strong .ico { margin-right: 4px; color: var(--rose-fonce); }
.sobre b .ico { margin-right: 2px; }
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.bouton-clair { background: #fff; }
.bouton-petit { min-height: 44px; padding: 0 20px; font-size: 15px; }
.bouton-grand { min-height: 60px; padding: 0 36px; font-size: 19px; }

/* Ouverture + devis */
.ouverture {
  /* Panneau de commande : 2/5 de l'ecran (Jeremy, 05/12 : la place pour le prix d'un coup d'oeil). */
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 40vw, 540px);
  gap: clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 5vw, 64px) var(--bord) clamp(40px, 5vw, 72px);
  background-image: radial-gradient(rgba(22, 20, 18, 0.13) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
}
/* Etapes 2 et 3 (site.js) : plus de texte d'accueil, la commande sur toute la largeur. */
.ouverture.commande-large { grid-template-columns: minmax(0, var(--large)); justify-content: center; }
.commande-large .ouverture-texte { display: none; }
/* Des l'etape 2 de la commande, plus de choix « Je commande » / « J'offre » (Jeremy, 05/12). */
.commande-large .mode:has(input[value="commande"]:checked) { display: none; }
/* Choix « J'offre » en cours de commande : l'accueil revient a cote du panneau. */
.commande-large:has(.mode input[value="cadeau"]:checked) .ouverture-texte { display: block; }
@media (min-width: 901px) {
  .ouverture.commande-large:has(.mode input[value="cadeau"]:checked) { grid-template-columns: minmax(0, 1fr) clamp(360px, 40vw, 540px); justify-content: normal; }
}
/* Ruban de pellicule : bande noire, perforations en haut et en bas. */
.ruban {
  position: relative; display: inline-block; margin-bottom: 20px; padding: 15px 20px;
  background: var(--encre); color: var(--creme); border-radius: 3px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em; transform: rotate(-2deg);
}
.ruban::before, .ruban::after {
  content: ""; position: absolute; left: 7px; right: 7px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--creme) 0 8px, transparent 8px 15px);
}
.ruban::before { top: 4px; }
.ruban::after { bottom: 4px; }
h1 { font-size: clamp(40px, 5.6vw, 76px); }
.chapeau { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); color: var(--doux); }
.souverain {
  position: relative; margin-top: 22px; padding: 16px 18px 16px 64px;
  border: 2px solid var(--encre); border-radius: 18px; background: #fff; box-shadow: var(--ombre);
}
.souverain .souverain-ico {
  position: absolute; left: 14px; top: 16px; display: grid; place-items: center;
  width: 38px; height: 38px; border: 2px solid var(--encre); border-radius: 50%;
  background: var(--ciel); font-size: 18px;
}
.souverain-titre { font-family: var(--titre); font-weight: 800; font-size: 20px; line-height: 1.15; }
.souverain p + p { margin-top: 6px; font-size: 15px; color: var(--doux); }
.preuves { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-weight: 600; }
.preuves li { display: flex; gap: 10px; align-items: center; }
.preuves li .ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--encre); border-radius: 50%; background: var(--citron); font-size: 13px; }
.ouverture-photo { position: relative; margin: 30px 0 0; }
.ouverture-photo img { border: 2px solid var(--encre); border-radius: var(--rayon); box-shadow: 8px 8px 0 var(--encre); transform: rotate(-1.2deg); }
.bulle {
  position: absolute; right: -8px; bottom: -18px; max-width: 250px;
  padding: 10px 14px; border: 2px solid var(--encre); border-radius: 16px 16px 4px 16px;
  background: var(--citron); font-weight: 700; font-size: 14px; line-height: 1.35;
  transform: rotate(2deg); box-shadow: var(--ombre);
}

.devis {
  padding: 22px 22px 24px; border: 2px solid var(--encre); border-radius: 26px;
  background: #fff; box-shadow: 10px 10px 0 var(--encre);
}
.devis-titre { font-family: var(--titre); font-weight: 800; font-size: 27px; line-height: 1.1; }
/* Deux choix en tete du panneau (index.php) : numeriser ou offrir. Bascule sans JavaScript. */
.mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; container-type: inline-size; }
/* Les deux bulles restent a la meme place : la choisie prend la couleur, l'ombre et une pastille cochee,
   sans se decaler (le decalage les desalignait). Tout est centre, titre compris. */
.mode-choix { position: relative; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 11px 10px 12px; border: 2px solid var(--encre); border-radius: 16px; background: #fff; text-align: center; cursor: pointer; transition: box-shadow 0.15s, background 0.15s; }
.mode-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* Titre sur une ligne : la taille suit la largeur du panneau (« Je commande » passait sur deux lignes a 1024 px). */
.mode-titre { font-family: var(--titre); font-weight: 800; font-size: clamp(13px, 4.6cqi, 18px); line-height: 1.15; white-space: nowrap; }
.mode-titre { display: flex; align-items: center; gap: 7px; }
.mode-titre .ico { margin: 0; color: var(--rose-fonce); }
/* Deux lignes fixes dans chaque bulle (Jeremy, 05/12 : memes tailles, meme nombre de lignes). */
.mode-sous { font-size: 13px; line-height: 1.3; color: var(--doux); text-align: center; }
.mode-sous > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-choix:hover { background: var(--creme); }
.mode-choix:has(input:checked) { background: var(--citron); box-shadow: var(--ombre); }
.mode-choix:has(input:checked) .ico { color: var(--encre); }
.mode-choix:has(input:checked)::after { content: ""; position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border: 2px solid var(--encre); border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23161412' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.mode-choix:has(input:focus-visible) { outline: 3px solid var(--rose-fonce); outline-offset: 2px; }
.commande-bloc:has(.mode input[value="cadeau"]:checked) .commande-form,
.commande-bloc:has(.mode input[value="commande"]:checked) .carte-form { display: none; }
/* Ancres #commande et #carte : les deux choix restent visibles au-dessus. */
.commande-bloc > form { scroll-margin-top: 110px; }
.carte-form .devis-titre { margin-bottom: 6px; }
.devis-etape { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--doux); }
.devis-barre { height: 10px; margin: 10px 0 18px; border: 2px solid var(--encre); border-radius: 999px; background: var(--creme); overflow: hidden; }
.devis-barre span { display: block; height: 100%; width: 33.4%; background: var(--rose); border-right: 2px solid var(--encre); transition: width 0.35s; }
.etape { border: 0; margin: 0; padding: 0; min-width: 0; }
.etape + .etape { margin-top: 26px; }
.etape legend { padding: 0; font-family: var(--titre); font-weight: 800; font-size: 21px; margin-bottom: 4px; }
.aide { font-size: 14px; color: var(--doux); margin-bottom: 12px; }
.js .etape { display: none; }
.js .etape.active { display: block; animation: glisse 0.35s ease; }
.js .etape + .etape { margin-top: 0; }
@keyframes glisse { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.support { border: 2px solid var(--encre); border-radius: 16px; margin-top: 10px; overflow: hidden; }
.support-tete { display: grid; grid-template-columns: 22px 44px 1fr; align-items: center; gap: 0 12px; padding: 10px 14px; min-height: 60px; cursor: pointer; font-family: var(--titre); font-weight: 800; font-size: 18px; }
.support-tete input { grid-row: span 2; width: 22px; height: 22px; accent-color: var(--encre); }
.support-tete img { grid-row: span 2; width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 2px solid var(--encre); }
.seuils { display: none; grid-template-columns: minmax(0, 230px) 1fr; align-items: center; gap: 8px 14px; padding: 0 14px 14px; }
.support:has(.support-tete input:checked) .seuils { display: grid; }
.support-nom { line-height: 1.15; }
.support-prix { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; font-family: var(--texte); font-weight: 700; font-size: 12px; }
/* Paliers de prix en pastilles : le palier atteint s'allume (site.js). */
.palier { padding: 1px 7px; border: 1.5px solid var(--encre); border-radius: 999px; background: rgba(255, 255, 255, 0.6); white-space: nowrap; line-height: 1.3; transition: background 0.15s, color 0.15s; }
.palier.actif { background: var(--encre); color: #fff; }
.support-formats { grid-column: 3; font-family: var(--texte); font-weight: 400; font-size: 12px; color: var(--doux); }
.support-formats::first-letter { text-transform: uppercase; }
.quantite-champ {
  display: flex; align-items: center; min-height: 50px; padding: 0 14px 0 0;
  border: 2px solid var(--encre); border-radius: 14px; background: #fff; cursor: text;
}
.quantite-champ:focus-within { outline: 3px solid var(--rose-fonce); outline-offset: 1px; }
.quantite {
  flex: 1; min-width: 0; height: 46px; padding: 0 8px 0 14px; border: 0; border-radius: 12px; background: transparent;
  font: 800 21px/1 var(--titre); color: var(--encre);
}
.quantite:focus { outline: 0; }
.quantite::placeholder { font: 600 16px/1 var(--texte); color: var(--doux); }
/* Pas de fleches haut / bas dans « Combien ? » (Jeremy, 26/11) ; plus de raccourcis (05/12) : on tape. */
.quantite { appearance: textfield; -moz-appearance: textfield; }
.quantite::-webkit-inner-spin-button, .quantite::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantite-unite { flex: none; font-weight: 700; font-size: 14px; color: var(--doux); }
.ligne-prix { display: grid; justify-items: end; text-align: right; line-height: 1.2; }
.ligne-total { font-family: var(--titre); font-weight: 800; font-size: 24px; }
.ligne-detail { font-size: 12px; color: var(--doux); }
.seuils .alerte-quantite, .seuils .alerte-volume { grid-column: 1 / -1; }
.alerte-volume, .alerte-quantite { flex-basis: 100%; padding: 8px 12px; border-radius: 10px; background: var(--encre); color: #fff; font-weight: 700; font-size: 13px; }
.choix:has(input:focus-visible) { outline: 3px solid var(--rose-fonce); outline-offset: 2px; }
.sous-total { margin-top: 14px; text-align: right; font-size: 15px; }
.sous-total strong { font-family: var(--titre); font-size: 22px; }
.lien-devis { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; font: 700 14px/1.3 var(--texte); text-underline-offset: 3px; }
.alerte-volume a { color: inherit; }

/* Devis sur mesure : encart a part, sous l'ouverture. */
.devis-section { background: var(--peche); }
.devis-grille { display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: clamp(28px, 5vw, 72px); align-items: start; max-width: var(--large); margin: 0 auto; }
.devis-libre .devis-titre { margin-bottom: 14px; }
.cas { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.cas legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: 15px; }
.cas-choix { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.cas-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cas-choix:has(input:checked) { background: var(--encre); color: #fff; }
.cas-choix:has(input:focus-visible) { outline: 3px solid var(--rose-fonce); outline-offset: 2px; }
.bouton-plein { width: 100%; margin-top: 18px; }
.adresse[hidden] { display: none; }
.adresse { display: grid; gap: 10px; padding: 12px; border: 2px dashed rgba(22, 20, 18, 0.35); border-radius: 14px; }
.adresse .options-titre small { font-weight: 400; color: var(--doux); }
.cp-ville { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; }
.recap { margin-top: 16px; padding: 14px 16px; border: 2px solid var(--encre); border-radius: 14px; background: var(--creme); }
.recap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.recap li { display: flex; justify-content: space-between; gap: 12px; }
.recap-ht, .recap-tva { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; }
.recap-ht { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--encre); }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-weight: 800; }
.recap-total strong { font-family: var(--titre); font-size: 26px; }
.recap .petit { text-align: left; margin-top: 6px; }

.option-ia {
  display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; margin: 4px 0 18px; padding: 14px 16px;
  border: 2px solid var(--encre); border-radius: 16px; cursor: pointer;
  background: linear-gradient(120deg, var(--rose), var(--peche) 55%, var(--citron));
}
.option-ia:has(input:checked) { box-shadow: var(--ombre); }
.option-urgence { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; margin: -6px 0 18px; padding: 14px 16px; border: 2px solid var(--encre); border-radius: 16px; background: var(--ciel); cursor: pointer; }
.option-urgence:has(input:checked) { box-shadow: var(--ombre); }
.option-nettoyage { background: var(--menthe); }
.option-urgence:has(input:disabled) { opacity: 0.75; cursor: not-allowed; }
.option-urgence input { grid-row: span 3; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--encre); }
.urgence-refus { font-size: 13px; font-weight: 700; }
.recap-delai { margin-top: 8px; font-size: 14px; font-weight: 700; }
.option-ia:has(input:focus-visible) { outline: 3px solid var(--rose-fonce); outline-offset: 2px; }
.option-ia input { grid-row: span 3; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--encre); }
.option-ia-titre { font-family: var(--titre); font-weight: 800; font-size: 19px; }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px; vertical-align: 3px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; font: 800 11px/1.3 var(--texte); letter-spacing: 0.05em; text-transform: uppercase; }
.option-ia-texte { font-size: 14px; line-height: 1.4; }
.option-ia-prix { font-size: 14px; }
.option-ia-prix strong { font-family: var(--titre); font-size: 18px; }
.tarif-ia { margin: 18px 0; font-weight: 700; }
.options + .options { margin-top: 18px; }
.options-fichiers { margin-top: 18px; }
.options-titre { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.options .aide { margin-bottom: 8px; }
.choix {
  display: grid; grid-template-columns: 22px 1fr; gap: 0 10px;
  padding: 11px 14px; margin-top: 8px; border: 2px solid var(--encre); border-radius: 14px;
  background: #fff; cursor: pointer;
}
.choix:has(input:checked) { background: var(--citron); }
.choix input { grid-row: span 2; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--encre); }
.choix-nom { font-weight: 800; font-size: 16px; }
.choix-prix { font-size: 14px; color: var(--rose-fonce); white-space: nowrap; }
.choix-prix s { color: var(--doux); font-weight: 400; }
.remise { display: inline-block; padding: 0 7px; border: 2px solid var(--encre); border-radius: 999px; background: var(--citron); color: var(--encre); font-size: 12px; }
.choix small { font-size: 13px; line-height: 1.4; color: var(--doux); text-align: justify; hyphens: auto; }
.sobre { grid-column: 2; margin-top: 6px; font-size: 13px; line-height: 1.4; }
.sobre b { display: inline-block; margin-right: 6px; padding: 1px 8px; border: 2px solid var(--encre); border-radius: 999px; background: var(--menthe); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.coordonnees { display: grid; gap: 12px; }
.coordonnees label { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.coordonnees small { font-weight: 400; color: var(--doux); }
.coordonnees input, .coordonnees textarea, .coordonnees select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 2px solid var(--encre); border-radius: 12px; background: var(--creme);
  font: 16px/1.4 var(--texte); color: var(--encre);
}
.coordonnees textarea { resize: vertical; }
.coordonnees input:focus, .coordonnees textarea:focus, .coordonnees select:focus { outline: 3px solid var(--rose); outline-offset: 1px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.etape-boutons { display: flex; gap: 10px; margin-top: 18px; }
.etape-boutons .bouton { flex: 1; }
html:not(.js) .etape-boutons button[type="button"] { display: none; }
.etape-erreur { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--rose); font-weight: 700; font-size: 14px; }
.petit { margin-top: 12px; font-size: 13px; color: var(--doux); text-align: center; }
.message { margin-bottom: 16px; padding: 12px 16px; border: 2px solid var(--encre); border-radius: 14px; font-size: 15px; }
.reussite { background: var(--menthe); }
.echec { background: var(--rose); }

/* Bandeau defilant */
.defile { overflow: hidden; background: var(--encre); color: var(--creme); border-block: 2px solid var(--encre); }
.defile p { display: flex; width: max-content; animation: defile 28s linear infinite; }
.defile span { padding: 14px 22px; font-family: var(--titre); font-weight: 800; font-size: 20px; white-space: nowrap; }
.defile span::after { content: "\2022"; margin-left: 44px; color: var(--rose); }
@keyframes defile { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(56px, 8vw, 110px) var(--bord); border-bottom: 2px solid var(--encre); }
.tete { max-width: var(--etroit); margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.surtitre { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.4vw, 58px); }
.grand { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--doux); }

/* Supports : 3 + 2 cartes centrees (2 par ligne sous 1000 px), l'accroche tient en deux lignes. */
.cartes { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: var(--large); margin: 0 auto; }
.carte { display: flex; flex: 0 1 calc((100% - 48px) / 3); flex-direction: column; border: 2px solid var(--encre); border-radius: var(--rayon); overflow: hidden; box-shadow: 6px 6px 0 var(--encre); transition: transform 0.2s; }
.carte:hover { transform: translateY(-6px) rotate(-0.6deg); }
.carte img { aspect-ratio: 1; object-fit: cover; object-position: 50% 55%; border-bottom: 2px solid var(--encre); }
.carte-texte { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.carte h3 { font-size: 28px; }
.carte-prix { display: flex; flex-direction: column; align-items: center; margin-top: 8px; padding: 5px 10px; border: 2px solid var(--encre); border-radius: 16px; background: #fff; font-weight: 800; font-size: 14px; line-height: 1.3; text-align: center; }
.carte-prix span { white-space: nowrap; }
.accroche { min-height: 2.6em; margin-top: 10px; font-weight: 800; font-size: 18px; line-height: 1.3; text-align: justify; hyphens: auto; }
.carte p:not(.accroche):not(.carte-prix) { margin-top: 8px; font-size: 15px; color: var(--doux); text-align: justify; hyphens: auto; }
.carte-action { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: auto; padding: 6px 10px; border: 2px solid var(--encre); border-radius: 999px; background: var(--encre); color: #fff; font: 800 14px/1.15 var(--titre); text-align: center; text-decoration: none; box-shadow: 3px 3px 0 #fff; transition: transform 0.15s, box-shadow 0.15s; }
.carte p:not(.carte-prix):last-of-type { margin-bottom: 16px; }
.carte-action:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #fff; }
.carte-action .ico { margin-right: 6px; }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: var(--large); margin: 0 auto; }
.pastilles-titre { margin-top: 26px; font-weight: 800; }
.pastilles { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.pastilles li { padding: 12px 16px; border: 2px solid var(--encre); border-radius: 14px; background: #fff; font-size: 15px; }
.pastilles strong { display: block; font-family: var(--titre); font-size: 17px; }
.compare { margin: 0; }
.options-ia { max-width: var(--large); margin: clamp(8px, 2vw, 20px) auto 0; }
.compare-cadre { position: relative; border: 2px solid var(--encre); border-radius: var(--rayon); overflow: hidden; box-shadow: 8px 8px 0 var(--encre); --pos: 50%; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare-cadre img, .compare-cadre video { pointer-events: none; -webkit-user-drag: none; }
.compare-cadre video { display: block; width: 100%; height: auto; }
/* Film avant / apres (php/img/film-*.mp4), sous la photo d'illustration, sur toute la largeur. */
.compare-film { max-width: var(--etroit); margin: clamp(40px, 6vw, 72px) auto 0; }
.compare-film-titre { margin-bottom: 18px; font: 800 clamp(22px, 2.6vw, 30px)/1.15 var(--titre); text-align: center; }
.compare-cadre:has(.compare-curseur:focus-visible) { outline: 3px solid var(--rose-fonce); outline-offset: 3px; }
/* Poignee visible : on la voit, on la tire (doigt ou souris, partout sur l'image). */
.compare-poignee .ico { font-size: 18px; }
.compare-poignee { position: absolute; top: 50%; left: var(--pos); z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; transform: translate(-50%, -50%); border: 2px solid var(--encre); border-radius: 50%; background: #fff; box-shadow: var(--ombre); font-weight: 900; font-size: 18px; pointer-events: none; }
.compare-avant { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-cadre::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px var(--encre); pointer-events: none; }
.compare-curseur { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.etiquette { position: absolute; top: 12px; padding: 4px 10px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; font-weight: 800; font-size: 13px; pointer-events: none; }
.etiquette-avant { left: 12px; }
.etiquette-apres { right: 12px; background: var(--citron); }
.etiquette { transition: opacity 0.15s; }
.etiquette.cachee { opacity: 0; }
/* Mention de l'avant/apres simule (Jeremy, 28/11 : « Image virtuelle », comme le post Instagram). */
.compare-mention { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(22, 20, 18, 0.82); color: #fff7ea; font-weight: 700; font-size: 12px; pointer-events: none; }
.compare figcaption { margin-top: 14px; font-size: 13px; color: var(--doux); text-align: center; }

.etapes-liste { list-style: none; padding: 0; margin: 0 auto; max-width: var(--large); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.etapes-liste img { width: calc(100% + 40px); max-width: none; margin: -24px -20px 18px; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--encre); border-radius: 18px 18px 0 0; }
.etapes-liste li { overflow: hidden; padding: 24px 20px; border: 2px solid var(--encre); border-radius: var(--rayon); box-shadow: 6px 6px 0 var(--encre); }
.chiffre { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border: 2px solid var(--encre); border-radius: 50%; background: #fff; font-family: var(--titre); font-weight: 800; font-size: 26px; }
.etapes-liste h3 { font-size: 22px; }
.etapes-liste p { margin-top: 8px; font-size: 15px; color: var(--doux); }

.deux-choix { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; max-width: var(--large); margin: 0 auto; align-items: start; }
.choix-carte img { width: calc(100% + 48px); max-width: none; margin: -26px -24px 20px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--encre); }
.choix-carte { overflow: hidden; padding: 26px 24px; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; box-shadow: 6px 6px 0 var(--encre); }
.choix-carte > p:not(.choix-carte-titre) { margin-top: 10px; color: var(--doux); }
.choix-carte-titre { font-family: var(--titre); font-weight: 800; font-size: 26px; }
.choix-vert .choix-carte-titre::after { content: "Confidentiel"; display: inline-block; margin-left: 10px; padding: 2px 10px; vertical-align: 4px; border: 2px solid var(--encre); border-radius: 999px; background: var(--menthe); font-family: var(--texte); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.dechets { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.dechets li { padding: 10px 14px 10px 44px; position: relative; border: 2px solid var(--encre); border-radius: 14px; background: var(--creme); font-size: 15px; }
.dechets .dechet-ico { position: absolute; left: 14px; top: 13px; font-size: 16px; color: var(--encre); }
.dechets strong { display: block; }
.petit-gras { margin-top: 16px; font-weight: 700; font-size: 14px; }
.franchise { margin-top: 14px; padding: 10px 14px; border-left: 4px solid var(--encre); background: var(--creme); font-size: 14px; }

.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--large); margin: 0 auto; }
.trois > div { padding: 26px 22px; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; text-align: center; }
.trois h3 { font-size: 24px; }
.trois .engagement-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border: 2px solid var(--encre); border-radius: 50%; background: var(--menthe); font-size: 22px; }
.trois p { margin-top: 8px; color: var(--doux); }

.faq { max-width: var(--etroit); margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 2px solid var(--encre); border-radius: 16px; background: #fff; }
.faq summary { position: relative; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none; font-family: var(--titre); font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--encre); border-radius: 50%; background: var(--citron); font-size: 20px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--doux); }
.grille { margin: -6px 20px 14px; padding-left: 18px; font-size: 15px; color: var(--doux); }
.grille li + li { margin-top: 4px; }
.grille strong { color: var(--encre); }

.final { padding: clamp(64px, 9vw, 120px) var(--bord); background: var(--rose); text-align: center; border-bottom: 2px solid var(--encre); }
.final h2 { margin-bottom: 30px; }
.final .bouton { background: var(--citron); }

.pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 30px var(--bord); background: var(--encre); color: var(--creme); font-size: 14px; }
.pied .mot b { color: var(--rose); }


/* Apparitions */
.js .apparait { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .apparait.vu { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .etapes-liste { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .carte { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 1300px) {
  .barre nav { display: none; }
  .barre .bouton-petit { margin-left: auto; }
}
@media (max-width: 900px) {
  .ouverture { grid-template-columns: 1fr; }
  .ouverture-photo { display: none; }
  .deux-colonnes, .deux-choix, .trois, .devis-grille { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .mot { font-size: 22px; }
  .barre { padding: 10px var(--bord); }
  .ouverture { padding-top: 18px; gap: 22px; }
  .ruban { margin-bottom: 14px; font-size: 13px; }
  h1 { font-size: 38px; }
  .chapeau { margin-top: 12px; font-size: 17px; }
  .preuves { display: none; }
  .souverain { margin-top: 16px; padding: 12px 14px 12px 58px; }
  .souverain-titre { font-size: 17px; }
  .souverain p + p { font-size: 14px; }
  .devis { padding: 18px 14px 20px; border-radius: 22px; box-shadow: 6px 6px 0 var(--encre); }
  .mode { gap: 8px; margin-bottom: 16px; }
  .mode-choix { padding: 9px 8px 10px; border-radius: 14px; }
  .mode-sous { font-size: 12px; }
  .seuils { grid-template-columns: minmax(0, 1fr) auto; }
  /* Supports : liste compacte (photo carree a gauche), les cinq visibles sans glisser.
     Le texte long reste sur PC ; ici, nom, prix, accroche et bouton. */
  .cartes { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .carte { display: grid; grid-template-columns: 96px 1fr; box-shadow: 4px 4px 0 var(--encre); }
  .carte img { align-self: stretch; width: 96px; height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--encre); }
  .carte-texte { padding: 12px 14px 14px; }
  .carte h3 { font-size: 20px; }
  .carte-prix { margin-top: 6px; border-radius: 12px; font-size: 13px; }
  .accroche { margin-bottom: 10px; font-size: 15px; }
  .carte p:not(.accroche):not(.carte-prix) { display: none; }
  .carte:hover { transform: none; }
  .etapes-liste { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .defile p { animation: none; }
  .js .apparait { opacity: 1; transform: none; transition: none; }
  .js .etape.active { animation: none; }
  .bouton, .carte { transition: none; }
}

/* Cartes cadeaux : section d'achat et carte imprimable (cadeau.php). */
.cadeau-section .devis-titre { margin-bottom: 14px; }
/* Apercu de la carte sous les pastilles : il comble la colonne et cale son bas sur celui du
   formulaire (PC seulement ; sur mobile la colonne est seule, l'apercu ne ferait qu'allonger). */
.carte-apercu { margin: 0; }
.carte-apercu .carte-cadeau { width: auto; padding: 24px 22px; box-shadow: 6px 6px 0 var(--encre); transform: rotate(-1.5deg); }
.carte-apercu .carte-montant { font-size: 52px; }
.carte-apercu figcaption { margin-top: 14px; font-size: 14px; text-align: center; }
@media (max-width: 900px) { .carte-apercu { display: none; } }
@media (min-width: 901px) {
  .cadeau-section .devis-grille { align-items: center; }
  /* Originaux : la carte Retour prend la hauteur de Destruction, sa photo comble l'ecart. */
  /* Avant / apres : le texte et le comparateur finissent ensemble, les cinq pastilles en rangee. */
  #avant-apres .deux-colonnes { align-items: end; }
  .options-ia .pastilles { grid-template-columns: repeat(5, 1fr); }
  .deux-choix { align-items: stretch; }
  .choix-carte:not(.choix-vert) { display: flex; flex-direction: column; }
  .choix-carte:not(.choix-vert) img { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
}
.devis-libre .montant-libre { display: none; }
.devis-libre:has(input[value="libre"]:checked) .montant-libre { display: grid; }
.page-carte { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--rose); }
.carte-cadeau {
  width: min(100%, 560px); padding: 34px 30px; text-align: center;
  border: 3px solid var(--encre); border-radius: 26px; background: #fff; box-shadow: 10px 10px 0 var(--encre);
}
.carte-marque { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--titre); }
.carte-marque b { color: var(--rose-fonce); }
.carte-titre { margin-top: 18px; font: 800 18px/1 var(--texte); letter-spacing: 0.12em; text-transform: uppercase; }
.carte-montant { margin-top: 10px; font: 800 64px/1 var(--titre); color: var(--rose-fonce); }
.carte-pour { margin-top: 12px; font: 800 22px/1.2 var(--titre); }
.carte-message { margin-top: 10px; font-style: italic; color: var(--doux); }
.carte-texte { margin-top: 16px; color: var(--doux); }
.carte-code { display: inline-block; margin-top: 20px; padding: 10px 18px; border: 2px dashed var(--encre); border-radius: 14px; background: var(--citron); font: 800 clamp(18px, 5.6vw, 24px)/1 ui-monospace, Menlo, monospace; letter-spacing: 0.08em; white-space: nowrap; }
.carte-mode { margin-top: 14px; font-size: 14px; color: var(--doux); }
.carte-imprimer { margin-top: 22px; }
.carte-retour { position: absolute; top: 16px; left: 16px; }
@media print {
  .page-carte { background: #fff; min-height: 0; }
  .carte-cadeau { box-shadow: none; }
  .carte-imprimer, .carte-retour { display: none; }
}
.envoi-poste { margin-top: 0; }
/* La case de l'envoi postal est rangee avec les champs texte : elle ne doit pas heriter de leur
   largeur 100 %, de leurs marges ni de leur hauteur (elle chevauchait l'icone sur Safari). */
.coordonnees .choix input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; border: 0; background: none; }
.adresse-envoi { display: none; gap: 10px; padding: 12px; border: 2px dashed rgba(22, 20, 18, 0.35); border-radius: 14px; }
.devis-libre:has(.envoi-poste input:checked) .adresse-envoi { display: grid; }
.carte-de { margin-top: 8px; font-weight: 700; }

/* Pages legales (CGV, confidentialite) */
.legal { max-width: var(--etroit); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--marge) clamp(48px, 8vw, 96px); }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--doux); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 6px; }
.legal strong { color: var(--encre); }
.legal-version { font-size: 15px; }
.legal-encart { margin-top: 16px; padding: 18px 20px; border: 2px solid var(--encre); border-radius: 16px; background: #fff; box-shadow: var(--ombre); }

/* Case des conditions de vente */
.accord { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.accord input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rose-fonce); }

/* Contact sous la FAQ */
.contact { max-width: var(--etroit); margin: 36px auto 0; text-align: center; }
.contact-titre { font-family: var(--titre); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; }
.contact-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Pied : reseaux et liens legaux */
.pied-reseaux { display: flex; gap: 8px; }
.pied-reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--creme); border-radius: 50%; text-decoration: none; font-size: 20px; }
.pied-reseaux a:hover { background: var(--rose); color: var(--encre); border-color: var(--rose); }
.pied-liens a { white-space: nowrap; }

/* Suivi de commande (client et admin) : etapes faites, en cours, a venir. */
.suivi-etapes { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 0; }
.suivi-etapes li { position: relative; padding: 0 0 22px 34px; color: var(--doux); }
.suivi-etapes li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border: 2px solid var(--encre); border-radius: 50%; background: #fff; }
.suivi-etapes li::after { content: ""; position: absolute; left: 10px; top: 23px; bottom: 0; width: 2px; background: var(--encre); }
.suivi-etapes li:last-child::after { display: none; }
.suivi-etapes li.fait::before { background: var(--menthe); }
.suivi-etapes li.en-cours::before { background: var(--rose); box-shadow: 0 0 0 4px rgba(255, 143, 163, 0.35); }
.suivi-etapes li.a-venir { opacity: 0.55; }
.suivi-etapes strong { font-family: var(--titre); font-size: 19px; color: var(--encre); }
.suivi-etapes span { font-size: 14px; }
.suivi-etapes p { margin-top: 4px; }
.suivi-note { padding: 8px 12px; border-radius: 12px; background: #fff; border: 2px solid var(--encre); color: var(--encre); font-size: 15px; }
.suivi-note span { color: var(--doux); }
.suivi h1 span, .admin-page h1 span { white-space: nowrap; }
/* Formulaires seuls sur leur page : 480 px. L'encart d'etape de la fiche admin prend la largeur
   de la fiche, comme l'encart client au-dessus. */
.suivi-form, .admin-etape { margin-top: 20px; max-width: 480px; }
.admin-inline { display: inline; }
/* Fiche d'envoi vers la consigne (memovia_envoi_html : merci.php, suivi.php), 28/11. */
.fiche-envoi { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; padding: 12px 14px; border: 2px solid var(--encre); border-radius: 14px; background: #fff; font-size: 15px; }
.fiche-envoi dt { font-weight: 700; color: var(--encre); }
.fiche-envoi dd { margin: 0; color: var(--doux); overflow-wrap: anywhere; }
.fiche-envoi-liens { margin-top: 8px; font-size: 14px; }
@media (max-width: 520px) { .fiche-envoi { grid-template-columns: minmax(0, 1fr); gap: 2px; } .fiche-envoi dd { margin-bottom: 8px; } }
.suivi-ou { margin-top: 32px; }
.admin-etape { max-width: none; }

/* Admin */
.admin .barre form { margin-left: auto; }
/* Notes de l'admin sous un titre ou dans un encart aligne a gauche : alignees comme lui. */
.admin .petit { text-align: left; }
.admin-vues { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.admin-liste { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.legal .admin-liste { padding: 0; }
.admin-liste li { padding: 12px 14px; border: 2px solid var(--encre); border-radius: 14px; background: #fff; color: var(--encre); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.admin-liste a { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; width: 100%; min-height: 44px; text-decoration: none; }
.admin-liste small { flex-basis: 100%; color: var(--doux); font-size: 14px; }
.admin-liste small a { display: inline; width: auto; min-height: 0; text-decoration: underline; }
.admin-etat { padding: 1px 10px; border-radius: 999px; border: 2px solid var(--encre); font-size: 13px; font-weight: 700; background: var(--citron); }
.etat-paye, .etat-active, .etat-livraison, .etat-originaux { background: var(--menthe); }
.etat-attente, .etat-abandon, .etat-annulee { background: var(--rose); }
.etat-numerisation, .etat-arrivee { background: var(--ciel); }
.admin-message { padding: 10px 12px; border-radius: 12px; background: var(--creme); white-space: normal; }
.admin-case { display: flex !important; align-items: center; gap: 10px; }
.coordonnees .admin-case input { flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; }
.admin code { font-size: 13px; word-break: break-all; }
.legal-encart a { word-break: break-all; }

/* Photos du carton, demo IA, parrainage (suivi) */
.suivi-photo { display: inline-block; margin: 8px 8px 0 0; }
.suivi-photo img { width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--encre); border-radius: 12px; }
.suivi-demo { display: block; width: 100%; max-width: 720px; margin: 12px 0; border: 2px solid var(--encre); border-radius: 14px; background: var(--encre); }
.suivi-ia, .suivi-parrain { margin-top: 28px; }
.suivi-ia h2, .suivi-parrain h2 { margin-top: 0; }
.suivi-ia form { margin-top: 12px; }
.suivi-ia .coordonnees + .suivi-case { margin: 16px 0; }
/* Fichiers a telecharger (suivi, 29/11) : nom et compteur, bouton dessous sur telephone. */
.suivi-fichiers { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.suivi-fichiers li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 2px solid var(--encre); border-radius: 12px; background: var(--creme); }
.suivi-fichiers span { min-width: 0; overflow-wrap: anywhere; }
.suivi-fichiers small { display: block; color: var(--doux); }
.suivi-fichiers button { min-height: 44px; }
.legal .suivi-fichiers { padding: 0; }
.suivi-ia .suivi-fichiers form, .suivi-fichiers .bouton { margin: 0; }
.suivi-fichiers b { color: var(--encre); }
.suivi-case { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--encre); }
.suivi-case input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.suivi-code { margin-top: 12px; font: 800 26px/1.2 var(--titre); letter-spacing: 0.06em; color: var(--encre); user-select: all; }

/* Avis : etoiles a cocher (avis.php) et liste (accueil) */
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avis-etoiles { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0 0 16px; }
.avis-etoiles legend { width: 100%; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.avis-etoiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avis-etoiles label { display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; font-size: 38px; line-height: 1; color: #c9c2b6; }
.avis-etoiles label::before { content: "★"; }
.avis-etoiles input:checked ~ label, .avis-etoiles label:hover, .avis-etoiles label:hover ~ label { color: var(--rose-fonce); }
.avis-etoiles input:focus-visible + label { outline: 3px solid var(--rose); border-radius: 8px; }
.avis-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; max-width: var(--large); margin: 0 auto; }
.avis { margin: 0; padding: 18px 20px; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.avis-note { color: var(--rose-fonce); font-size: 20px; letter-spacing: 2px; }
.avis blockquote { margin: 8px 0 0; }
.avis figcaption { margin-top: 10px; font-size: 14px; color: var(--doux); }
.avis-regles { max-width: var(--etroit); margin: 24px auto 0; font-size: 14px; color: var(--doux); }
.avis-regles summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* Admin : avis et photos WhatsApp */
.admin-avis { flex-basis: 100%; padding: 8px 10px; border-radius: 10px; background: var(--creme); font-size: 15px; }
.admin-liste li form { display: inline-flex; }
.admin-photo img { width: 100%; max-width: 320px; border: 2px solid var(--encre); border-radius: 12px; }
.admin-photo { flex-basis: 100%; }
.admin-reponse { flex-basis: 100%; display: grid !important; gap: 8px; }
.admin-reponse textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 2px solid var(--encre); border-radius: 12px; background: var(--creme); font: 16px/1.4 var(--texte); }
.etat-publie { background: var(--menthe); }
.etat-refuse { background: var(--rose); }
.legal-encart video, .legal video { max-width: 100%; }
.legal .devis-titre { color: var(--encre); }

/* Barres : « Mon suivi » (lien garde sur l'appareil) et « Retour au site » (suivi). */
.barre .bouton-suivi, .barre .bouton-retour { margin-left: auto; }
.barre nav + .bouton-suivi { margin-left: 0; }
.barre .bouton-suivi + .bouton-petit { margin-left: 0; }
@media (max-width: 1300px) { .barre nav + .bouton-suivi { margin-left: auto; } .barre .bouton-suivi ~ .bouton-petit { margin-left: 0; } }
@media (max-width: 520px) {
  .barre:has(.bouton-suivi) { gap: 10px; }
  .barre .bouton-suivi { padding: 0 14px; }
  .barre .bouton-suivi span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .barre .bouton-suivi .ico { margin: 0; }
  .barre .bouton-retour { padding: 0 14px; font-size: 14px; }
}
/* Logo, « Mon suivi », discussion et « Commander » demandent 480 px : en dessous, le M seul suffit
   (a 420 px, la barre debordait de 19 px sur un iPhone Pro Max de 440 px). */
@media (max-width: 500px) { .barre:has(.bouton-suivi, .retrouver) .mot { display: none; } }
/* Sous 375 px (iPhone SE 1re gen., petits Android) : sans le panier ni les marges larges, 320 px suffisent. */
@media (max-width: 374px) {
  header.barre:has(.retrouver) { gap: 6px; }
  .barre:has(.retrouver) > a.bouton-petit { padding: 0 14px; }
  .barre:has(.retrouver) > a.bouton-petit .ico { display: none; }
}
/* Cartes supports sur petit telephone : photo plus etroite, accroche en deux lignes, bouton sur une. */
@media (max-width: 380px) {
  .carte { grid-template-columns: 72px 1fr; }
  .carte img { width: 72px; }
  .carte-texte { padding: 12px 12px 14px; }
  .accroche { font-size: 14px; }
  .carte-action { padding: 6px 8px; font-size: 13px; }
}

/* Accueil : « Mon suivi » ouvre un panneau sous la barre (lien garde, ou numero + nom). */
.retrouver > summary { list-style: none; }
.retrouver > summary::-webkit-details-marker { display: none; }
.retrouver[open] > summary { background: var(--citron); }
.retrouver-panneau { position: absolute; top: calc(100% + 8px); right: var(--bord); width: min(360px, calc(100% - 2 * var(--marge))); display: grid; gap: 12px; padding: 18px; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.retrouver-panneau .bouton-plein { margin-top: 4px; }
.retrouver-titre { font: 800 20px var(--titre); }
.retrouver-aide { font-size: 14px; color: var(--doux); }
@media (max-width: 1300px) { .barre nav + .retrouver { margin-left: auto; } .barre .retrouver ~ .bouton-petit { margin-left: 0; } }
/* « Mon suivi » en toutes lettres + discussion + « Commander » demandent 610 px : icone seule en dessous. */
@media (max-width: 640px) {
  .barre:has(.retrouver) { gap: 10px; }
  .retrouver > summary { padding: 0 14px; }
  .retrouver > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .retrouver > summary .ico { margin: 0; }
}

/* Colis et discussion du suivi */
.suivi-colis { display: block; margin-top: 4px; color: var(--encre); }
.suivi-colis a { font-weight: 700; white-space: nowrap; }
.suivi-colis .ico { margin-right: 4px; }
.suivi-messages { margin-top: 28px; }
.suivi-messages h2 { margin-top: 0; }
.fil { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.fil li { max-width: 86%; padding: 10px 14px; border: 2px solid var(--encre); border-radius: 16px; background: #fff; color: var(--encre); }
.fil li p { margin: 0; overflow-wrap: anywhere; }
.fil .bulle-memovia { justify-self: start; border-bottom-left-radius: 4px; background: var(--ciel); }
.fil .bulle-client { justify-self: end; border-bottom-right-radius: 4px; background: var(--citron); }
.fil .fil-qui { margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--doux); }
.fil-reponse { display: grid; gap: 10px; }
.fil-reponse label:not(.admin-case) { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.fil-reponse textarea { width: 100%; min-height: 88px; padding: 11px 14px; border: 2px solid var(--encre); border-radius: 12px; background: var(--creme); font: 16px/1.4 var(--texte); color: var(--encre); resize: vertical; }
.fil-reponse textarea:focus { outline: 3px solid var(--rose); outline-offset: 1px; }
.fil-reponse .bouton-plein { margin-top: 0; }
.suivi-oublier { margin-top: 10px; text-align: center; }
.suivi-oublier button { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--doux); font: 13px var(--texte); text-decoration: underline; cursor: pointer; }

/* Connexion admin : une carte au centre de l'ecran. */
.admin-entree { display: grid; place-items: center; min-height: 62vh; padding: 24px 0; }
.admin-entree-carte { width: min(440px, 100%); display: grid; justify-items: center; gap: 12px; padding: 34px 28px 28px; border: 2px solid var(--encre); border-radius: 26px; background: #fff; box-shadow: 10px 10px 0 var(--encre); text-align: center; }
.admin-entree-ico { display: grid; place-items: center; width: 76px; height: 76px; border: 2px solid var(--encre); border-radius: 50%; background: var(--ciel); box-shadow: var(--ombre); font-size: 34px; }
.legal .admin-entree-carte h1 { margin: 0; font-size: 34px; }
.admin-entree-carte h1 b { color: var(--rose-fonce); }
.admin-entree-sur { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--doux); }
.admin-entree-texte { color: var(--doux); }
.admin-entree-carte .message { width: 100%; margin: 0; }
.admin-entree-carte .bouton-plein { margin-top: 8px; }
.legal .admin-entree-etapes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: e; font-size: 14px; color: var(--doux); }
.admin-entree-etapes li { counter-increment: e; }
.admin-entree-etapes li::before { content: counter(e); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border: 2px solid var(--encre); border-radius: 50%; background: var(--citron); color: var(--encre); font-size: 12px; font-weight: 800; }

/* Admin pleine largeur (PC) ; une colonne sur telephone. */
.admin .admin-page { max-width: 1680px; padding-inline: var(--marge); }
.admin .barre { padding-inline: var(--marge); }
.admin h1 .compte { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin-left: 8px; padding: 0 10px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; font: 800 18px var(--texte); vertical-align: middle; }
.admin-retour { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; box-shadow: 3px 3px 0 var(--encre); font-weight: 800; font-size: 15px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.admin-retour:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--encre); }
.fiche-tete { display: grid; justify-items: start; gap: 14px; margin-bottom: 22px; }
.fiche-tete h1 { margin: 0; }
.fiche-etats { display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-etats .admin-etat { padding: 4px 14px; font-size: 15px; }
.admin-urgent { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 2px solid var(--encre); border-radius: 999px; background: var(--rose-fonce); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.admin-nonlu { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 2px solid var(--encre); border-radius: 999px; background: var(--citron); font-weight: 800; font-size: 14px; }
.fiche { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); gap: 28px; align-items: start; }
.fiche-principale, .fiche-cote { display: grid; gap: 22px; min-width: 0; }
.fiche-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.fiche-carte, .fiche-bloc { padding: 18px 20px; border: 2px solid var(--encre); border-radius: 18px; background: #fff; box-shadow: var(--ombre); color: var(--encre); }
.legal .fiche-carte h2, .legal .fiche-bloc h2 { margin: 0 0 10px; font-size: 22px; }
.fiche-carte h2 .ico { margin-right: 6px; font-size: 18px; }
.fiche-infos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.legal .fiche-infos { padding: 0; }
.fiche-infos .ico { width: 20px; margin-right: 6px; color: var(--doux); text-align: center; }
.fiche-infos a { overflow-wrap: anywhere; }
.fiche-total { font: 800 32px/1.1 var(--titre); }
.fiche-total small { font-size: 15px; color: var(--doux); }
.fiche-lien { margin-top: 12px; font-size: 14px; color: var(--doux); }
.fiche .suivi-etapes { margin: 6px 0 0; }
.fiche .admin-etape, .fiche .admin-messages { margin-top: 0; }
.admin-colis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.admin-messages .devis-titre .ico { margin-right: 6px; font-size: 22px; }
.admin-messages .fil li { max-width: 92%; }

/* Liste des commandes : tableau sur PC, cartes sur telephone. */
.admin-tableau li, .admin-tableau li a { display: grid; grid-template-columns: 150px minmax(140px, 1fr) minmax(160px, 1.4fr) 110px 190px 200px; gap: 6px 16px; align-items: center; }
.admin-tableau li { padding: 0; }
.admin-tableau li a { grid-column: 1 / -1; padding: 12px 16px; min-height: 60px; }
.admin-tableau li a:hover { background: var(--creme); border-radius: 12px; }
.admin-tableau .entete { padding: 4px 16px; border: 0; background: none; color: var(--doux); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-tableau .vide { display: block; padding: 14px 16px; }
.col-ref strong { display: block; font-size: 16px; white-space: nowrap; }
.col-ref small, .col-contenu { color: var(--doux); font-size: 14px; flex-basis: auto; }
.col-montant { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.col-signaux { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-tableau li.urgente { border-color: var(--rose-fonce); border-width: 2px 2px 2px 10px; background: #fff0f3; box-shadow: 4px 4px 0 var(--rose-fonce); }
.admin-tableau li.urgente .col-ref strong { color: var(--rose-fonce); }

/* Suivi de la fiche : tableau, la plus recente en haut ; cartes empilees sur telephone. */
.admin-suivi { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-suivi th, .admin-suivi td { padding: 10px 12px; border-bottom: 2px solid var(--creme); text-align: left; vertical-align: top; }
.admin-suivi thead th { padding-top: 4px; border-bottom: 2px solid var(--encre); color: var(--doux); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.admin-suivi tbody th { font: 800 17px/1.25 var(--titre); white-space: nowrap; }
.admin-suivi td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--doux); }
.admin-suivi td:last-child { white-space: nowrap; }
.admin-suivi tr.derniere { background: #f0fbf3; }
.admin-suivi tr.derniere th::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 2px solid var(--encre); border-radius: 50%; background: var(--menthe); }
.admin-suivi tbody tr:last-child > * { border-bottom: 0; }
.admin-suivi p { margin: 0; }
.admin-suivi .suivi-colis { margin-top: 0; }
.admin-suivi p + .suivi-colis, .admin-suivi-photos { margin-top: 6px; }
.admin-suivi .suivi-photo { margin: 0 6px 0 0; }
.admin-suivi .suivi-photo img { width: 72px; height: 72px; }
.admin-suivi .vide { color: var(--doux); }

/* Ventes */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.ventes-files { margin-top: 40px; gap: 28px; }
.tuile { padding: 16px 18px; border: 2px solid var(--encre); border-radius: 18px; background: #fff; box-shadow: var(--ombre); color: var(--encre); }
.tuile-titre { font-weight: 700; font-size: 14px; color: var(--doux); }
.legal .tuile p { margin: 0; }
.tuile-valeur { font: 800 34px/1.15 var(--titre); font-variant-numeric: tabular-nums; }
.legal .tuile .tuile-detail { margin-top: 4px; font-size: 14px; color: var(--doux); }
.histo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 260px; margin-top: 8px; }
.histo-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.histo-val { min-height: 18px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.histo-barre { align-self: end; height: var(--h); min-height: 2px; border: 2px solid var(--encre); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--ciel); }
.histo-courant .histo-barre { background: var(--rose); }
.histo-mois { padding-top: 6px; border-top: 2px solid var(--encre); font-size: 13px; color: var(--doux); }
.file { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal .file { padding: 0; }
.file li > a, .file li > span:only-child, .file li { display: flex; justify-content: space-between; gap: 12px; }
.file li { padding: 8px 12px; border-radius: 12px; background: var(--creme); }
.file li > a { width: 100%; text-decoration: none; }
.file b { font: 800 20px var(--titre); }

@media (max-width: 1100px) {
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .admin-tableau li, .admin-tableau li a { grid-template-columns: 130px minmax(0, 1fr) 100px 170px; }
  .admin-tableau .col-contenu { display: none; }
  .admin-tableau .col-signaux { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-tableau .col-signaux:empty { display: none; }
  .admin-tableau .entete span:nth-child(3), .admin-tableau .entete span:last-child { display: none; }
}
@media (max-width: 700px) {
  .admin-tableau .entete { display: none; }
  .admin-tableau li, .admin-tableau li a { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-tableau .col-ref { grid-column: 1; grid-row: 1; }
  .admin-tableau .col-montant { grid-column: 2; grid-row: 1; align-self: start; }
  .admin-tableau .col-client { grid-column: 1 / -1; font-weight: 700; }
  .admin-tableau .col-contenu { display: block; grid-column: 1 / -1; }
  .admin-tableau .col-etat { grid-column: 1; }
  .admin-tableau .col-signaux { grid-column: 2; justify-content: flex-end; }
  .admin-tableau li.urgente { border-width: 2px 2px 2px 8px; }
  .admin-colis { grid-template-columns: minmax(0, 1fr); }
  .admin-suivi thead { display: none; }
  .admin-suivi, .admin-suivi tbody, .admin-suivi tr, .admin-suivi th, .admin-suivi td { display: block; }
  .admin-suivi tr { padding: 10px 0; border-bottom: 2px solid var(--creme); }
  .admin-suivi tbody tr:last-child { border-bottom: 0; }
  .admin-suivi th, .admin-suivi td { padding: 2px 4px; border: 0; }
  .admin-suivi tr.derniere { margin: 0 -8px; padding-inline: 8px; border-radius: 12px; }
  .admin-suivi td:last-child { font-size: 14px; color: var(--doux); }
  .admin-suivi td:last-child::before { content: attr(data-titre) " : "; }
  .admin-suivi td:has(> .vide:only-child):not(:last-child) { display: none; }
  /* Tableau de chiffres (Visites, 29/11) : chaque valeur garde son intitule une fois empile. */
  .admin-chiffres td:not(:first-child)::before { content: attr(data-titre) " : "; color: var(--doux); font-size: 14px; }
  .admin-chiffres td:first-child { color: var(--encre); }
  .ventes-files { margin-top: 28px; gap: 18px; }
  .histo { gap: 3px; height: 200px; }
  .histo-val { font-size: 0; }
  .histo-mois { font-size: 11px; }
  .tuile-valeur { font-size: 28px; }
}

/* Page des reseaux sociaux (liens.php) : une colonne au pouce, gros boutons. */
.liens { display: flex; flex-direction: column; align-items: center; max-width: 520px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 40px var(--marge) 28px; text-align: center; }
.liens-marque { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.liens-marque .mot { font-size: 30px; }
.liens-accroche { margin-top: 18px; font: 800 clamp(26px, 7vw, 34px)/1.1 var(--titre); }
.liens-sous { margin-top: 10px; color: var(--doux); }
.liens-liste { width: 100%; margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.liens-bouton { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border: 2px solid var(--encre); border-radius: 18px; background: #fff; box-shadow: var(--ombre); color: var(--encre); text-align: left; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.liens-bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.liens-bouton > .ico:first-child { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 2px solid var(--encre); border-radius: 50%; background: var(--rose); font-size: 17px; }
.liens-liste li:nth-child(2) .ico:first-child { background: var(--ciel); }
.liens-liste li:nth-child(3) .ico:first-child { background: var(--citron); }
.liens-liste li:nth-child(4) .ico:first-child { background: var(--menthe); }
.liens-liste li:nth-child(5) .ico:first-child { background: var(--peche); }
.liens-bouton span { display: flex; flex-direction: column; flex: 1; }
.liens-bouton strong { font: 800 18px/1.2 var(--titre); }
.liens-bouton small { margin-top: 2px; font-size: 13px; color: var(--doux); }
.liens-fleche { flex: none; }
.liens-reseaux { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.liens-reseaux a { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--encre); border-radius: 50%; background: #fff; color: var(--encre); font-size: 21px; text-decoration: none; }
.liens-pied { margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--doux); }

/* Admin, page Tarifs (admin/tarifs.php) : une section par grille, tableaux de paliers compacts. */
.admin-tarifs .admin-etat { vertical-align: 4px; font-family: var(--texte); }
.admin-tarifs .etat-sans { background: #fff; color: var(--doux); }
.admin-tarif { border-collapse: collapse; margin: 10px 0 14px; }
.admin-tarif th { padding: 4px 8px; font-size: 13px; text-align: left; }
.admin-tarif td { padding: 3px 8px 3px 0; }
.admin-tarif input { width: 120px; min-height: 40px; padding: 6px 10px; border: 2px solid var(--encre); border-radius: 10px; font: inherit; }
.admin-tarifs-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.admin-tarifs-deux h3 { margin-top: 10px; font-size: 16px; }
.admin-tarifs-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-tarif-histo { margin-top: 8px; }
.admin-tarif-histo code { word-break: break-all; font-size: 12px; }
.admin-tarifs-table tbody th { white-space: normal; }
@media (max-width: 700px) { .admin-tarifs-table td::before { content: attr(data-titre) " : "; font-weight: 700; } }

/* Operation commerciale en cours (operations.php) : bandeau sous la barre, sur toute la largeur. */
.bandeau-operation { margin: 0; padding: 10px var(--bord); border-bottom: 2px solid var(--encre); background: var(--citron); font-weight: 700; font-size: 15px; line-height: 1.4; text-align: center; }
.bandeau-operation a { margin-left: 6px; font-weight: 600; }

/* Originaux au cas par cas : une ligne par support coche, case « Detruire », alerte et case de
   confirmation a l'etape 3 (demande.php refuse sans elle). */
.detruire-par-support { margin-top: 12px; padding: 12px 14px; border: 2px solid var(--encre); border-radius: 14px; background: #fff; }
.detruire-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid var(--creme); font-weight: 700; cursor: pointer; }
.detruire-ligne[hidden], .accord[hidden] { display: none; }
.detruire-choix { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.detruire-choix input { width: 20px; height: 20px; accent-color: var(--rose-fonce); }
.detruire-alerte { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--rose-fonce); text-align: justify; }
.accord-destruction { padding: 10px 12px; border: 2px solid var(--rose-fonce); border-radius: 12px; }

/* Commande passee (merci.php) : retour de Stripe, un bloc qui mene au suivi. */
.page-merci { min-height: 100vh; min-height: 100dvh; background: var(--rose); }
.merci { display: grid; place-items: start center; padding: clamp(24px, 5vw, 56px) var(--marge) 64px; }
.merci-carte { width: min(100%, 640px); padding: clamp(26px, 5vw, 40px) clamp(18px, 4vw, 40px); border: 3px solid var(--encre); border-radius: 26px; background: #fff; box-shadow: 10px 10px 0 var(--encre); text-align: center; }
.merci-badge { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border: 3px solid var(--encre); border-radius: 50%; background: var(--menthe); box-shadow: var(--ombre); font-size: 34px; }
.merci h1 { font-size: clamp(32px, 6vw, 48px); }
.merci-statut { margin-top: 14px; color: var(--doux); }
.merci-numero { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 24px; padding: 14px 28px; border: 2px dashed var(--encre); border-radius: 16px; background: var(--citron); transform: rotate(-1.5deg); }
.merci-numero span { font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.merci-numero strong { font: 800 clamp(22px, 6.4vw, 40px)/1 ui-monospace, Menlo, monospace; letter-spacing: 0.04em; white-space: nowrap; }
.merci-contenu { margin-top: 16px; font-weight: 700; font-size: 15px; }
.merci h2 { margin-top: 32px; font-size: 24px; text-align: left; }
.merci-etapes { list-style: none; counter-reset: etape; display: grid; gap: 10px; margin: 14px 0 0; padding: 0; text-align: left; }
.merci-etapes li { position: relative; counter-increment: etape; padding: 13px 16px 13px 60px; border: 2px solid var(--encre); border-radius: 16px; background: var(--creme); font-size: 15px; }
.merci-etapes li::before { content: counter(etape); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--encre); border-radius: 50%; background: var(--rose); font: 800 16px/1 var(--titre); }
.merci-etapes b { display: block; font-family: var(--titre); font-size: 18px; }
.merci-actions { display: grid; justify-items: center; gap: 14px; margin-top: 28px; }
.merci-actions .bouton-grand { width: 100%; padding: 0 20px; }
.bouton .ico-apres { margin: 0 0 0 10px; }
.merci-retour { font-weight: 700; font-size: 15px; text-underline-offset: 3px; }

/* Admin : menu lateral commun (colonne sombre sur PC, barre en haut sur telephone) et tableau de bord. */
.admin-cadre { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.admin-menu { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 24px; background: var(--encre); color: var(--creme); }
.admin-menu-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 6px 16px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 247, 234, 0.18); }
.admin-menu .marque { display: flex; align-items: center; gap: 8px; color: var(--creme); text-decoration: none; }
.admin-menu .mot { font-size: 22px; }
.admin-menu .mot b { color: var(--rose); }
.admin-menu-sous { padding: 1px 8px; border-radius: 999px; background: var(--rose); color: var(--encre); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-menu-tete form { margin-left: auto; }
.admin-sortir { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1.5px solid rgba(255, 247, 234, 0.35); border-radius: 999px; background: none; color: var(--creme); font: 700 13px var(--texte); cursor: pointer; }
.admin-sortir:hover { background: rgba(255, 247, 234, 0.1); }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--creme); text-decoration: none; font-weight: 700; font-size: 15px; }
.admin-nav a > i:first-child { width: 20px; font-size: 16px; text-align: center; opacity: 0.85; }
.admin-nav a:hover { background: rgba(255, 247, 234, 0.1); }
.admin-nav a.actif { background: var(--citron); color: var(--encre); box-shadow: 3px 3px 0 var(--rose); }
.admin-nav a.actif > i { opacity: 1; }
.admin-pastille { display: grid; place-items: center; min-width: 24px; height: 24px; margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--rose); color: var(--encre); font: 800 13px var(--texte); }
.admin-nav a.actif .admin-pastille { background: var(--encre); color: var(--citron); }
.admin-externe { margin-left: auto; font-size: 11px; opacity: 0.5; }
.admin-nav a.admin-nav-externe { margin-top: 14px; border: 1.5px dashed rgba(255, 247, 234, 0.3); }
.legal .admin-titre-liste { margin: 34px 0 12px; }
.admin-cadre .admin-page { width: 100%; padding-top: clamp(24px, 4vw, 44px); }

.admin-date { margin: 0 0 4px; font-weight: 700; color: var(--doux); }
.admin-date::first-letter { text-transform: uppercase; }
.legal .admin-accueil h1 { margin-bottom: 22px; }
.tuile-lien { position: relative; display: block; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.tuile-lien:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.tuile-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border: 2px solid var(--encre); border-radius: 50%; background: var(--citron); font-size: 17px; }
.tuile-lien:nth-child(2) .tuile-ico { background: var(--menthe); }
.tuile-lien:nth-child(3) .tuile-ico { background: var(--peche); }
.tuile-lien:nth-child(4) .tuile-ico { background: var(--ciel); }
.tuile-lien:nth-child(5) .tuile-ico { background: var(--rose); }
.legal .tuile .tuile-valeur { color: var(--encre); }
.legal .tuile-alerte .tuile-valeur { color: var(--rose-fonce); }
.tuile-alerte { background: #fff0f3; }
.admin h2 .compte { display: inline-grid; place-items: center; min-width: 34px; height: 34px; margin-left: 8px; padding: 0 9px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; font: 800 16px var(--texte); vertical-align: middle; }

@media (max-width: 900px) {
  .admin-cadre { display: block; }
  .admin-menu { position: static; height: auto; gap: 10px; padding: 12px var(--marge) 10px; }
  .admin-menu-tete { padding: 0; margin: 0; border: 0; }
  .admin-nav { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--marge)); padding: 2px var(--marge) 4px; scrollbar-width: none; }
  .admin-nav a { flex: none; min-height: 40px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .admin-nav a.admin-nav-externe { margin-top: 0; }
  .admin-cadre .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-cadre .tuile { padding: 12px 14px; }
  .admin-cadre .tuile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .admin-cadre .tuile-valeur { font-size: 26px; }
  .tuile-ico { width: 34px; height: 34px; margin-bottom: 8px; font-size: 15px; }
}

/* Page Tarifs (consultation) : sections espacees, cellules aerees, etat base / code par ligne. */
.admin-tarifs-page { display: grid; gap: 26px; }
.legal .admin-tarifs-page h1 { margin-bottom: 0; }
.admin-tarifs-page > .petit { margin-top: -14px; max-width: 760px; }
.admin-tarifs-page .fiche-bloc { padding: 22px 26px 24px; }
.legal .admin-tarifs-page .fiche-bloc h2 { margin-bottom: 16px; }
.admin-tarifs-page .admin-tarifs-table th, .admin-tarifs-page .admin-tarifs-table td { padding: 14px 12px; line-height: 1.6; vertical-align: top; }
.admin-tarifs-page .admin-tarifs-table thead th { padding-top: 6px; padding-bottom: 10px; white-space: normal; }
.admin-tarifs-page .fiche-bloc { overflow-x: auto; }
.admin-tarifs-page .admin-tarifs-table tbody tr:nth-child(even) { background: #fffbf4; }
.admin-tarifs-page .fiche-bloc > .petit { margin-top: 14px; }
.tarif-etat { display: inline-block; padding: 3px 10px; border: 2px solid var(--encre); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.tarif-egal { background: var(--menthe); }
.tarif-absent { background: var(--citron); }
.tarif-different { border-color: var(--rose-fonce); background: #fff0f3; color: var(--rose-fonce); }
.tarifs-controle .ico { margin-right: 6px; }
.tarifs-controle .file li { align-items: center; }
.tarif-json { display: block; margin-top: 4px; color: var(--doux); font-size: 13px; }
.admin-tarifs-page .tarif-paliers { min-width: 170px; white-space: nowrap; }
.tarif-paliers small, .tarif-sous { display: block; margin-top: 4px; color: var(--doux); font-size: 13px; white-space: normal; }

/* Chat du site (index.php, site.js) : bulle en bas a droite, panneau ; plein bas sur telephone. */
/* Le bouton est dans la barre du haut (04/12) : rien ne flotte sur la page ; le panneau s'ouvre sous la barre. */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); top: 84px; z-index: 40; display: grid; justify-items: end; }
.barre .chat-ouvrir[aria-expanded="true"] { background: var(--citron); }
/* Ouvert, au-dessus du bandeau cookies (z-index 60), qui ne cache plus la saisie. */
.chat.ouvert { z-index: 70; }
/* Icone seule partout (texte lu par les lecteurs d'ecran, infobulle au survol) ; boutons sur une ligne, logo jamais
   ecrase : le menu se replie sous 1300 px, la ou ses liens chevauchaient le logo (mesure du 04/12). */
.barre .chat-ouvrir { padding: 0 14px; } .barre .chat-ouvrir span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .barre .chat-ouvrir .ico { margin: 0; }
.barre .bouton { white-space: nowrap; } .barre .marque { flex-shrink: 0; }
.chat-panneau { display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 110px)); border: 2px solid var(--encre); border-radius: 22px; background: #fff; box-shadow: 8px 8px 0 var(--encre); overflow: hidden; }
.chat-panneau[hidden] { display: none; }
.chat-tete { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: var(--encre); color: var(--creme); }
.chat-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--rose-fonce); }
.chat-tete p { flex: 1; margin: 0; line-height: 1.25; }
.chat-tete b { display: block; font-family: var(--titre); font-size: 16px; }
.chat-fermer { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 247, 234, 0.12); color: var(--creme); font-size: 18px; cursor: pointer; }
.chat-fermer .ico { margin: 0; }
.chat-fil { flex: 1; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px; overflow-y: auto; list-style: none; background: var(--creme); }
.chat-fil li { max-width: 86%; padding: 9px 12px; border: 2px solid var(--encre); border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.chat-bot { align-self: flex-start; border-bottom-left-radius: 4px !important; background: #fff; }
.chat-client { align-self: flex-end; border-bottom-right-radius: 4px !important; background: var(--citron); }
.chat-attente::before { content: "• • •"; letter-spacing: 1px; }
.chat-attente { animation: chat-pulse 1s ease-in-out infinite; }
@keyframes chat-pulse { 50% { opacity: 0.35; } }
.chat-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 6px; border-top: 2px solid var(--encre); background: #fff; }
.chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-saisie textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 2px solid var(--encre); border-radius: 14px; background: var(--creme); font: 16px/1.35 var(--texte); resize: none; }
.chat-saisie button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--encre); border-radius: 50%; background: var(--rose); box-shadow: 2px 2px 0 var(--encre); font-size: 17px; cursor: pointer; }
.chat-saisie button .ico { margin: 0; }
.chat-lien { display: flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 10px; padding: 0 14px; border: 2px solid var(--encre); border-radius: 999px; background: var(--rose); box-shadow: 2px 2px 0 var(--encre); color: var(--encre); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.chat-note { margin: 0; padding: 2px 12px 10px; background: #fff; color: var(--doux); font-size: 12px; }
/* Telephone (Jeremy 28/11 : « ca rend mal sur mobile ») : bulle compacte ; ouvert, le chat prend tout
   l'ecran (la page ne se voit plus coupee au-dessus ni ne defile derriere), encoche et barre d'accueil
   respectees ; ouvert, il couvre tout l'ecran et ses marges --chat-haut / --chat-bas (site.js) gardent
   l'en-tete et la saisie dans la zone visible, au-dessus du clavier. */
@media (max-width: 600px) {
  .chat.ouvert { top: 0; right: 0; bottom: 0; left: 0; overscroll-behavior: contain; }
  .chat-fil, .chat-saisie textarea { overscroll-behavior: contain; }
  .chat-panneau { box-sizing: border-box; width: 100%; height: 100%; padding: var(--chat-haut, 0px) 0 var(--chat-bas, 0px); border: 0; border-radius: 0; box-shadow: none; }
  .chat-tete { padding: max(10px, env(safe-area-inset-top)) 10px 10px 16px; }
  .chat-fil { padding: 16px 14px; }
  .chat-fil li { max-width: 88%; font-size: 15.5px; }
  .chat-saisie { padding: 10px 12px 6px; }
  .chat-note { padding: 2px 14px max(10px, env(safe-area-inset-bottom)); font-size: 11.5px; }
  body.chat-fige { position: fixed; right: 0; left: 0; width: 100%; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .chat-attente { animation: none; } }
@media print { .chat { display: none; } }

/* Affiche du mediateur (CM2C), article 14 des CGV. */
.legal-mediateur { display: block; width: 220px; max-width: 60%; height: auto; margin: 4px 0 18px; border-radius: 8px; }
/* Mention reCAPTCHA (badge masque, FAQ Google), sous chaque formulaire protege (29/11). */
.recaptcha-mention { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--doux); }
.recaptcha-mention a { color: inherit; }
.chat .recaptcha-mention { margin: 0; padding: 4px 12px 2px; background: #fff; font-size: 11px; }
/* Inventaire : « dont non traitables » sous chaque support (29/11). */
.coordonnees .inventaire-nt { margin: -6px 0 4px 14px; padding-left: 10px; border-left: 3px solid var(--rose); font-weight: 600; font-size: 13px; }
/* Fiche commande (29/11) : coordonnees modifiables, annulation. */
.fiche-modifier { margin-top: 10px; }
.fiche-modifier summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--rose-fonce); }
.fiche-modifier form { margin-top: 8px; }
.admin-annuler { border-color: var(--rose-fonce); }
