/* MaPlaqueIci : styles du site (le configurateur a sa propre feuille, configurateur.css) */

:root {
  --encre: #1b1f24;
  --gris: #5b636d;
  --trait: #d5dae0;
  --fond: #ffffff;
  --fond-doux: #f3f4f5;
  --ardoise: #274b7a;
  --ardoise-clair: #e8eef6;
  --laiton: #a7873e;
  --danger: #b3261e;
  --succes: #1e7e34;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 7px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--encre); background: var(--fond);
}
img { max-width: 100%; height: auto; }
a { color: var(--ardoise); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ardoise); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); letter-spacing: -.005em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.cadre { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.saut { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .6rem 1rem; background: var(--encre); color: #fff; }
.saut:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }

/* Bandeau et en-tête : le filet laiton rappelle le métal des plaques */
.bandeau { background: var(--encre); color: #e9e7e2; border-bottom: 3px solid var(--laiton); font-size: .85rem; }
.bandeau p { margin: 0 auto; padding: .5rem 1.25rem; text-align: center; font-size: .92rem; }
.bandeau strong { color: #fff; font-weight: 600; }
/* Mode visite (ventes suspendues depuis l'administration) */
.bandeau-ferme { background: #5c1410; }
.entete { background: var(--fond); border-bottom: 1px solid var(--trait); }
.entete-in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; min-height: 4.75rem; padding-top: .6rem; padding-bottom: .6rem; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--encre); margin-right: auto; }
.logo img { display: block; height: 40px; width: auto; max-width: 100%; }
.logo-texte { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: .01em; }
.nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: .35rem 0; color: var(--encre); text-decoration: none; font-size: .97rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--trait); }
.nav a[aria-current="page"] { border-bottom-color: var(--laiton); }
.lien-panier { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre); text-decoration: none; font-size: .97rem; }
.lien-panier:hover, .lien-panier[aria-current="page"] { border-color: var(--ardoise); }
.pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 1.45rem; height: 1.45rem; padding: 0 .4rem; border-radius: 999px; background: var(--ardoise); color: #fff; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.deconnexion { margin: 0; }
.bouton-lien { padding: 0; border: 0; background: none; color: var(--ardoise); font: inherit; font-size: .97rem; text-decoration: underline; cursor: pointer; }

@media (max-width: 760px) {
  .entete-in { gap: .35rem 1rem; }
  .logo img { height: 30px; }
  .nav { order: 3; width: 100%; }
  .nav ul { gap: 0 1.1rem; }
  .nav a { font-size: .93rem; }
}

.contenu { flex: 1 0 auto; padding-top: 2rem; padding-bottom: 3rem; }
.intro { color: var(--gris); max-width: 62ch; font-size: 1.05rem; }

/* Messages */
.avis { margin: 0 0 1.25rem; padding: .75rem 1rem; border-radius: var(--rayon); border-left: 4px solid var(--ardoise); background: var(--ardoise-clair); }
.avis-erreur { border-left-color: var(--danger); background: #fbeceb; color: #7d1a14; }
.avis-ok { border-left-color: var(--succes); background: #e9f4ec; color: #14532a; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .55rem 1.35rem; border: 1px solid var(--ardoise); border-radius: var(--rayon);
  background: var(--ardoise); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.bouton:hover { filter: brightness(1.08); }
.bouton-second { background: var(--fond); color: var(--ardoise); }
.bouton-second:hover { background: var(--ardoise-clair); filter: none; }
.bouton-petit { min-height: 2.3rem; padding: .3rem .85rem; font-size: .92rem; font-weight: 500; }
.bouton-large { width: 100%; }
.bouton-discret { border-color: var(--trait); background: var(--fond); color: var(--gris); }

/* Texte modifiable sous le configurateur (accueil) */
.texte-accueil { margin: 0 0 2.5rem; padding-top: 2rem; border-top: 1px solid var(--trait); }
.texte-accueil p { margin: 0 0 .9rem; }
.texte-accueil ul { margin: 0 0 .9rem; padding-left: 1.3rem; }
.texte-accueil strong { font-weight: 600; }

/* Étapes de commande (accueil) */
.etapes-bloc { margin-top: 1rem; padding-top: 2.25rem; border-top: 1px solid var(--trait); }
.etapes { display: grid; gap: 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: etape; }
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.etapes li { counter-increment: etape; position: relative; padding-left: 2.9rem; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: -.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--laiton);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.1rem; color: var(--encre);
}
.etapes h3 { margin-bottom: .3rem; }
.etapes p { margin: 0; color: var(--gris); }

/* Panier */
.panier-grille { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .panier-grille { grid-template-columns: minmax(0, 1fr) 340px; } }
.panier-liste { list-style: none; margin: 0; padding: 0; }
.panier-ligne { display: grid; gap: 1rem 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--trait); }
.panier-ligne:last-child { border-bottom: 1px solid var(--trait); }
@media (min-width: 640px) { .panier-ligne { grid-template-columns: 220px minmax(0, 1fr); } }
.panier-image { align-self: start; margin: 0; padding: .9rem; background: #d9d5ce; border-radius: var(--rayon); }
.panier-image img { display: block; width: 100%; }
.panier-detail h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin-bottom: .4rem; }
.lignes-texte { margin: 0 0 .9rem; padding-left: 1.3rem; color: var(--gris); font-size: .95rem; }
.lignes-texte li { margin: .1rem 0; }
.lignes-texte li.vide { font-style: italic; opacity: .8; }
.panier-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.25rem; }
.panier-actions form { display: flex; align-items: end; gap: .5rem; margin: 0; }
.panier-prix { margin: .9rem 0 0; font-weight: 600; }
.panier-prix span { color: var(--gris); font-weight: 400; }

.recap { padding: 1.4rem 1.25rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--fond); }
.recap h2 { font-size: 1.3rem; }
.recap dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 0; margin: 0 0 1.25rem; }
.recap dt { color: var(--gris); padding-right: 1rem; }
.recap dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.recap .total { padding-top: .6rem; border-top: 1px solid var(--trait); font-weight: 700; color: var(--encre); font-size: 1.15rem; }
.recap .mention { margin: -.5rem 0 1.1rem; font-size: .85rem; color: var(--gris); }
.recap .apres { margin: .9rem 0 0; font-size: .9rem; text-align: center; }
.recap-plaques { list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .93rem; }
.recap-plaques li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--trait); }

/* Formulaires */
.commande-grille { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .commande-grille { grid-template-columns: minmax(0, 1fr) 360px; } }
.formulaire fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; min-width: 0; }
.formulaire legend { padding: 0; margin-bottom: .9rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.champs { display: grid; gap: 1rem; }
@media (min-width: 600px) { .champs-2 { grid-template-columns: 1fr 1fr; } .champs-cp { grid-template-columns: 9rem 1fr; } }
.champ label, .champ .champ-label { display: block; margin-bottom: .3rem; font-weight: 500; }
.aide { color: var(--gris); font-size: .88rem; font-weight: 400; }
.champ .aide { display: block; }
.champ input, .champ textarea, .champ select {
  width: 100%; min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid var(--trait); border-radius: 6px;
  background: var(--fond); color: var(--encre); font: inherit;
}
.champ textarea { min-height: 6rem; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: 2px solid var(--ardoise); outline-offset: 1px; border-color: var(--ardoise); }
.champ.en-erreur input, .champ.en-erreur textarea { border-color: var(--danger); }
.champ .erreur { display: block; margin-top: .3rem; color: var(--danger); font-size: .88rem; }
.champ-fixe { padding: .55rem .7rem; border: 1px dashed var(--trait); border-radius: 6px; color: var(--gris); }
.case { display: flex; gap: .7rem; align-items: flex-start; }
.case input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; flex: none; accent-color: var(--ardoise); }
.case.en-erreur label { color: var(--danger); }
.sous-case { margin: .5rem 0 0 1.9rem; }
.note-retractation { font-size: .92rem; line-height: 1.5; }
.paiement-note { margin: .8rem 0 0; color: var(--gris); font-size: .9rem; }

/* Pages de texte */
.texte { max-width: 72ch; }
.texte h2 { margin-top: 2rem; }
.texte h3 { margin-top: 1.5rem; }
.texte ul, .texte ol { padding-left: 1.3rem; }
.texte li { margin: .25rem 0; }
.texte table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: .95rem; }
.texte th, .texte td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.a-completer { background: #fff4d6; padding: 0 .2rem; border-radius: 3px; }
.encadre { margin: 1.25rem 0 1.5rem; padding: 1.1rem 1.3rem .3rem; border: 2px solid var(--encre); border-radius: 4px; font-size: .95rem; }

/* Paiement par chèque et facturation (page de commande) */
.choix-paiement { display: grid; gap: .6rem; }
.choix { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--trait); border-radius: var(--rayon); cursor: pointer; }
.choix input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--ardoise); }
.choix:has(input:checked) { border-color: var(--ardoise); background: var(--ardoise-clair); }
.choix .aide { display: block; margin-top: .15rem; }
.fact-champs { margin-top: 1rem; }
.encadre-cheque { margin: 1.25rem 0; padding: 1.1rem 1.3rem .2rem; border-left: 4px solid var(--laiton); background: var(--fond-doux); border-radius: 0 var(--rayon) var(--rayon) 0; }
.encadre-cheque strong { white-space: nowrap; }
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.reglage { margin-bottom: 1.75rem; padding: .9rem 1rem; border: 1px solid var(--trait); border-radius: var(--rayon); max-width: 52rem; }
.statut-attente_cheque { background: var(--ardoise-clair); color: var(--ardoise); }

/* Confirmation */
.confirmation { max-width: 62ch; }
.confirmation .numero { font-family: var(--serif); font-size: 1.3rem; }

/* Pied de page */
.pied { flex-shrink: 0; background: var(--fond-doux); border-top: 1px solid var(--trait); font-size: .92rem; color: var(--gris); }
.pied-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pied-nom { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--encre); }
.pied-liens { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.pied-liens a { color: var(--gris); }
.pied-tva { margin: 0; width: 100%; font-size: .85rem; }

/* Administration */
.est-admin .contenu { padding-top: 1.5rem; }
.onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.onglets a { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre); text-decoration: none; font-size: .93rem; }
.onglets a[aria-current="page"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.tableau-defile { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau th, .tableau td { padding: .65rem .6rem; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; white-space: nowrap; }
.tableau th { font-weight: 600; color: var(--gris); font-size: .88rem; }
.tableau td.nombre, .tableau th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
.tableau tbody tr:hover { background: var(--fond-doux); }
.statut { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.statut-payee { background: #fff1cf; color: #6b4e00; }
.statut-expediee { background: #e3f1e6; color: #14532a; }
.statut-attente { background: var(--fond-doux); color: var(--gris); }
.statut-annulee { background: var(--fond-doux); color: var(--gris); text-decoration: line-through; }
.fiche { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .fiche { grid-template-columns: minmax(0, 1fr) 360px; } }
.fiche-bloc { margin-bottom: 1.75rem; }
.fiche-bloc h2 { font-size: 1.25rem; }
.plaque-admin { display: grid; gap: 1rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--trait); }
@media (min-width: 640px) { .plaque-admin { grid-template-columns: 260px minmax(0, 1fr); } }
.plaque-admin .boutons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.adresse { white-space: pre-line; margin: 0 0 1rem; }
.connexion { max-width: 24rem; margin: 2rem auto; }
.editeur { max-width: 52rem; margin-bottom: 1.5rem; }
.editeur textarea { min-height: 18rem; line-height: 1.55; }
.aide-mise-en-forme { max-width: 52rem; padding: .9rem 1.1rem; border-radius: var(--rayon); background: var(--fond-doux); font-size: .92rem; color: var(--gris); }
.aide-mise-en-forme p { margin: 0 0 .3rem; color: var(--encre); }
.aide-mise-en-forme ul { margin: 0; padding-left: 1.2rem; }
.actions-texte { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Liens en pastilles (accueil et pages métier) */
.liens-pastilles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.liens-pastilles a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre); text-decoration: none; font-size: .93rem; }
.liens-pastilles a:hover { border-color: var(--ardoise); }

/* Accueil : exemples par métier */
.metiers-accueil { margin-top: 2.5rem; padding-top: 2.25rem; border-top: 1px solid var(--trait); }
.metiers-accueil .intro { margin-bottom: 1.1rem; }

/* Administration : réglages de la boutique */
.reglage-titre { margin: 0 0 .8rem; font-family: var(--sans); font-size: 1.05rem; }
.reglage .champ { margin: 1rem 0 0; }

/* Administration : photos des exemples */
.exemples-admin-titre { margin: 2rem 0 .5rem; font-size: 1.2rem; }
.exemples-admin-titre a { margin-left: .5rem; font-family: var(--sans); font-size: .85rem; font-weight: 400; }
.exemples-admin { max-width: 52rem; margin: 0; padding: 0; list-style: none; }
.exemples-admin li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--trait); }
.exemples-admin img { display: block; width: 100%; height: auto; border-radius: 4px; }
.exemples-admin .champ { margin: 0; }
