/* Au gre des petales — feuille de style unique.
   Les couleurs sont declarees une fois ici : changer la palette du site revient
   a changer ces quelques lignes. */

:root {
  --fond: #faf7f4;
  --fond-carte: #ffffff;
  --fond-appui: #f2ece7;
  --texte: #2e2723;
  --texte-doux: #6f635c;
  --accent: #a8456b;          /* rose profond : le petale */
  --accent-fonce: #82304f;
  --accent-clair: #fbeef3;
  --encre: #2f3a2c;           /* vert feuillage : banniere et pied */
  --bord: #e7ded7;
  --rayon: 12px;
  --largeur: 62rem;
  --police: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #19161a;
    --fond-carte: #221d21;
    --fond-appui: #272128;
    --texte: #ece7e4;
    --texte-doux: #ab9f99;
    --accent: #e094b1;
    --accent-fonce: #c97b99;
    --accent-clair: #2c1d24;
    --encre: #141813;
    --bord: #362e33;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); }
a:hover { text-decoration: none; }

h1, h2, h3 { line-height: 1.2; font-weight: 650; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--accent-clair);
  padding: .1em .35em;
  border-radius: 4px;
}

.evitement {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
}
.evitement:focus { left: .5rem; top: .5rem; z-index: 10; }

/* En-tete ------------------------------------------------------------- */
.entete { background: var(--fond-carte); border-bottom: 1px solid var(--bord); }

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.marque {
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--texte);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.marque__sous {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.menu__liste { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.menu__liste a { text-decoration: none; color: var(--texte-doux); padding: .2rem 0; }
.menu__liste a:hover,
.menu__liste a[aria-current="page"] {
  color: var(--texte);
  border-bottom: 2px solid var(--accent);
}

.menu__bouton { display: none; }

@media (max-width: 40rem) {
  .menu__bouton[hidden] { display: none; }
  .menu__bouton {
    display: block;
    font: inherit;
    color: var(--texte);
    background: var(--fond-appui);
    border: 1px solid var(--bord);
    border-radius: var(--rayon);
    padding: .35rem .9rem;
    cursor: pointer;
  }
  .menu[hidden] { display: none; }
  .menu { width: 100%; }
  .menu__liste { flex-direction: column; gap: .5rem; }
}

/* Banniere ------------------------------------------------------------ */
.banniere {
  background: var(--encre);
  color: #f1f4f7;
  padding: clamp(2.5rem, 8vw, 5rem) 0;
}

.banniere__texte { max-width: 42rem; }
.banniere h1 { color: #fff; }

.surtitre {
  margin: 0 0 .5rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}

.banniere .accroche { color: #c3ccd5; font-size: 1.15rem; }
.banniere__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Bande de chiffres --------------------------------------------------- */
.bande {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.bande__chiffre { flex: 0 0 auto; }
.bande__chiffre p { margin: 0; color: var(--texte-doux); max-width: 14rem; }
.chiffre { font-size: 2.4rem; font-weight: 750; color: var(--accent); line-height: 1; }
.bande__texte { flex: 1 1 22rem; margin: 0; font-size: 1.1rem; }

/* Cartes -------------------------------------------------------------- */
.cartes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.4rem;
}

.carte p { margin: 0; color: var(--texte-doux); }
.carte--accent { border-color: var(--accent); background: var(--accent-clair); }
.carte--accent p { color: var(--texte); }
.lien-fort { font-weight: 650; }

/* Interventions ------------------------------------------------------- */
.titre-page { padding-top: 2.5rem; }
.accroche { font-size: 1.15rem; color: var(--texte-doux); max-width: 40rem; }

.publics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 1.5rem;
}

.public {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-top: 3px solid var(--accent);
  border-radius: var(--rayon);
  padding: 1.4rem;
}

.public h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.public p { margin: 0 0 .7rem; color: var(--texte-doux); }

.avertissement {
  font-weight: 650;
  color: var(--accent-fonce) !important;
  background: var(--accent-clair);
  border-radius: 6px;
  padding: .4rem .7rem;
  display: inline-block;
}

/* Temoignages et galerie ---------------------------------------------- */
.temoignages, .galerie__grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.temoignage, .galerie figure {
  margin: 0;
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  overflow: hidden;
}

.temoignage img, .galerie img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
  background: var(--fond-appui);
}

/* Un temoignage sans photo : on remplace l'image par un filet d'accent, pour
   qu'il ait l'air voulu a cote de ceux qui en ont une. */
.temoignage--sans-photo {
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;   /* sans image, le texte se centre plutot que de
                                laisser un vide sous lui */
}

.temoignage blockquote { margin: 0; padding: 1rem 1.2rem .3rem; font-size: .98rem; }
.temoignage figcaption, .galerie figcaption {
  padding: 0 1.2rem 1.1rem;
  color: var(--texte-doux);
  font-size: .88rem;
}
.galerie figcaption { padding-top: .8rem; }

.note { color: var(--texte-doux); font-size: .92rem; }

/* En attendant les photographies : une zone qui annonce ce qui viendra,
   plutot qu'un blanc qui ressemble a une panne. */
.galerie .note, .galerie__grille .note {
  display: block;
  border: 1px dashed var(--bord);
  border-radius: var(--rayon);
  padding: 1.75rem;
  text-align: center;
  background: var(--fond-carte);
}

.appel {
  background: var(--fond-appui);
  border-radius: var(--rayon);
  padding: 1.75rem;
  margin: 3rem auto;
  text-align: center;
}
.appel h2 { margin-top: 0; }

/* Contact ------------------------------------------------------------- */
.contact {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  padding-bottom: 3rem;
}

@media (max-width: 46rem) {
  .contact { grid-template-columns: 1fr; }
}

.contact__coordonnees {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.4rem;
}
.contact__coordonnees h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.contact__coordonnees p { margin: 0 0 .7rem; }

/* Coordonnees et reseaux ---------------------------------------------- */
.coordonnees { margin: 0; }
.coordonnees dt {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texte-doux);
  font-weight: 650;
  margin-top: 1.75rem;
}
.coordonnees dt:first-child { margin-top: 0; }
.coordonnees dd { margin: .2rem 0 0; }

.gros-lien a, a.gros-lien {
  font-size: 1.3rem;
  font-weight: 650;
  text-decoration: none;
}
.gros-lien a:hover, a.gros-lien:hover { text-decoration: underline; }

.reseaux {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
}

.reseaux a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-weight: 600;
}
.reseaux a:hover { text-decoration: underline; }

.reseaux__icone { width: 1.25em; height: 1.25em; flex: none; }

/* Boutons ------------------------------------------------------------- */
.bouton {
  display: inline-block;
  padding: .65rem 1.3rem;
  border-radius: var(--rayon);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
}
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }

.bouton--creux { background: transparent; color: #fff; border-color: #56646f; }
.bouton--creux:hover { background: #ffffff1a; border-color: #ffffff80; }

/* Pied ---------------------------------------------------------------- */
.pied {
  background: var(--encre);
  color: #b9c4ce;
  margin-top: 3rem;
  padding: 2.25rem 0 1.25rem;
  font-size: .95rem;
}

.pied a { color: #e5ebf0; }
.pied p { margin: 0 0 .3rem; }
.pied__nom { font-weight: 700; color: #fff; font-size: 1.05rem; }

.pied__grille {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-bottom: 1.5rem;
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #2a343e;
  padding-top: 1rem;
}

/* Version et date de compilation : presentes mais discretes. Pour les retirer,
   supprimer ce bloc et le paragraphe correspondant dans partials/pied.html. */
.pied__version { font-size: .8rem; opacity: .7; }

/* Formulaires ---------------------------------------------------------- */
.champs {
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.champ { margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ--case { flex-direction: row; align-items: flex-start; gap: .5rem; }
.champ--case label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.requis { color: var(--accent); }

.champ input, .champ textarea {
  font: inherit;
  color: var(--texte);
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: .6rem .7rem;
  width: 100%;
}

.champ input[type="checkbox"] { width: auto; }

.champ input:focus, .champ textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.piege { position: absolute; left: -9999px; }

/* Lu par les lecteurs d'ecran, invisible a l'oeil. */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.message { border-radius: var(--rayon); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.message p { margin: 0 0 .4rem; }
.message p:last-child { margin-bottom: 0; }
.message ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.message--ok { background: #e9f3ec; border: 1px solid #bcd9c6; color: #1e5334; }
.message--erreur { background: var(--accent-clair); border: 1px solid var(--accent); color: var(--accent-fonce); }

@media (prefers-color-scheme: dark) {
  .message--ok { background: #16281d; border-color: #2c5540; color: #bfe3cd; }
}

/* Catalogue et commandes ----------------------------------------------- */
.catalogue { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.catalogue th, .catalogue td {
  text-align: left;
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--bord);
  vertical-align: top;
}
.catalogue thead th {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.catalogue .col-prix { text-align: right; white-space: nowrap; }
.catalogue .col-qte { width: 7rem; }
.catalogue .col-qte input { width: 100%; }
.catalogue tfoot td { border-bottom: none; padding-top: .9rem; }
.unite { color: var(--texte-doux); font-weight: 400; }
.indispo { opacity: .55; }

/* Administration ------------------------------------------------------- */
.admin-barre {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  padding: .7rem 0;
  margin-top: 1rem;
}
.admin-barre nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.admin-barre a { text-decoration: none; color: var(--texte-doux); font-weight: 600; }
.admin-barre a:hover, .admin-barre a[aria-current="page"] { color: var(--accent); }

.admin-form {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.25rem 1.25rem .5rem;
}

.admin-connexion { max-width: 22rem; padding-bottom: 4rem; }

.lien-bouton {
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.lien-bouton--danger { color: #a33; }
.col-actions { white-space: nowrap; }
.col-actions form { display: inline; margin-left: .6rem; }
.col-actions a { margin-right: 0; }

.commande {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.commande--traitee { opacity: .6; }
.commande__tete {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .6rem;
}
.etiquette {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--fond-appui);
  border-radius: 999px;
  padding: .1rem .6rem;
  margin-left: .4rem;
}
.commande__client { display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; margin: 0 0 .6rem; }
.commande__client dt { color: var(--texte-doux); font-size: .85rem; }
.commande__client dd { margin: 0; }
.commande__message {
  border-left: 3px solid var(--bord);
  padding-left: .8rem;
  margin: .6rem 0 0;
  white-space: pre-wrap;
}

/* Variante du bouton creux sur fond clair : le creux d'origine est prevu pour
   la banniere sombre. */
.bouton--sombre { color: var(--accent); border-color: var(--bord); }
.bouton--sombre:hover { background: var(--fond-appui); color: var(--accent-fonce); }

/* Recapitulatif de commande : un encart qui apparait des la premiere quantite. */
.recap {
  background: var(--fond-carte);
  border: 1px solid var(--accent);
  border-radius: var(--rayon);
  padding: 1.2rem 1.4rem .4rem;
  margin: 2rem 0 1.5rem;
}
.recap[hidden] { display: none; }
.recap h2 { margin-top: 0; font-size: 1.15rem; }
.recap .catalogue { margin: .5rem 0 .5rem; }
.recap .catalogue td { padding: .45rem .3rem; }
.recap .note { margin-bottom: 1rem; }
