/* =========================================================
   LA MIE DORÉE – site d'exemple (L'Atelier Web)
   Esprit : devanture de boulangerie parisienne, papier,
   encre verte, lettres dorées, ardoise à la craie.
   ========================================================= */
:root {
  --papier: #f4eee2;
  --papier-2: #ebe3d2;
  --encre: #1f3a2d;       /* vert devanture */
  --or: #c9a14a;
  --or-fonce: #8a6a2c;
  --texte: #2a2620;
  --texte-doux: #6b6254;
  --filet: #cfc4ad;
  --ardoise: #2b2f2c;
  --craie: #efece4;
  --titre: 'DM Serif Display', Georgia, serif;
  --corps: 'Libre Baskerville', Georgia, serif;
  --main: 'Caveat', cursive;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--papier); color: var(--texte); font-family: var(--corps); font-size: 16px; line-height: 1.75; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.1; color: var(--encre); }
.page { width: min(100% - 40px, 1080px); margin-inline: auto; }
.cache { display: none; }
.apparait { opacity: 0; transform: translateY(14px); transition: opacity .8s, transform .8s; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } }

/* Titres de section façon filet double d'imprimerie */
.rubrique { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.rubrique h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); white-space: nowrap; }
.rubrique::before, .rubrique::after { content: ''; flex: 1; border-top: 3px double var(--encre); }
.rubrique.gauche::before { display: none; }

.lien-encre { display: inline-block; font-family: var(--corps); font-weight: 700; font-size: .95rem; color: var(--papier); background: var(--encre); padding: 14px 26px; text-decoration: none; border: 2px solid var(--encre); transition: background .2s, color .2s; cursor: pointer; }
.lien-encre:hover { background: transparent; color: var(--encre); }
.lien-simple { font-weight: 700; color: var(--encre); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Bandeau du haut ---------- */
.bandeau-haut { background: #172c22; color: var(--papier); font-size: .8rem; }
.bandeau-haut .page { display: flex; justify-content: space-between; gap: 6px 16px; padding: 8px 0; flex-wrap: wrap; }
.bandeau-haut a { text-decoration: none; }
.statut-ouverture::before { content: '● '; color: #9aa; }
.statut-ouverture.est-ouvert::before { color: #8fd18f; }
.statut-ouverture.est-ferme::before { color: #e48a7a; }

/* ---------- Devanture (en-tête) ---------- */
.facade { background: var(--encre); color: var(--or); text-align: center; }
.enseigne { padding: 34px 20px 24px; }
.enseigne-cadre { display: inline-block; border: 2px solid var(--or); outline: 1px solid var(--or); outline-offset: 5px; padding: 16px clamp(22px, 6vw, 70px) 14px; text-decoration: none; }
.enseigne small { display: block; font-family: var(--corps); font-size: .7rem; letter-spacing: .45em; text-transform: uppercase; }
.enseigne strong { display: block; font-family: var(--titre); font-weight: 400; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1.05; color: var(--or); margin: 6px 0 4px; }
.navigation { display: flex; justify-content: center; align-items: center; gap: 6px 28px; flex-wrap: wrap; padding: 10px 20px 16px; font-size: .92rem; }
.navigation a { color: var(--papier); text-decoration: none; }
.navigation a:hover { color: var(--or); }
.bouton-menu { display: none; background: none; border: 1px solid var(--or); color: var(--or); font-family: var(--corps); padding: 8px 18px; margin: 0 auto 16px; cursor: pointer; font-size: .9rem; }
.store { display: block; width: 100%; height: 56px; background: var(--papier); border-top: 6px solid #172c22; }

/* ---------- Vitrine (accueil) ---------- */
.vitrine { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 60px 0 90px; }
.vitrine h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); margin-bottom: 22px; }
.vitrine h1 i { color: var(--or-fonce); }
.vitrine p { font-size: 1.05rem; color: var(--texte-doux); max-width: 480px; }
.vitrine .actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.note-google { margin-top: 34px; font-size: .85rem; color: var(--texte-doux); }
.note-google b { color: var(--or); letter-spacing: 2px; }

.ardoise { background: var(--ardoise); color: var(--craie); font-family: var(--main); padding: 28px 34px 30px; border: 14px solid #7a5a3a; box-shadow: inset 0 0 40px rgba(0,0,0,.5); transform: rotate(1.2deg); position: relative; }
.ardoise::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 4px 4px; pointer-events: none; }
.ardoise h2 { font-family: var(--main); color: var(--craie); font-size: 2.4rem; font-weight: 700; text-align: center; }
.ardoise .date { text-align: center; font-size: 1.3rem; opacity: .7; margin-bottom: 12px; }
.ardoise ul { list-style: none; font-size: 1.55rem; line-height: 1.5; }
.ardoise li { display: flex; align-items: baseline; gap: 8px; }
.ardoise li i { flex: 1; border-bottom: 2px dotted rgba(239,236,228,.45); transform: translateY(-6px); }
.ardoise .nouveau { color: #f2d27a; }
.ardoise .craie-bas { text-align: center; margin-top: 12px; font-size: 1.3rem; color: #f3b6a6; }

/* ---------- La maison (style journal) ---------- */
.maison { padding: 10px 0 90px; }
.colonnes { columns: 2; column-gap: 50px; column-rule: 1px solid var(--filet); }
.colonnes p { margin-bottom: 16px; text-align: justify; hyphens: auto; }
.colonnes p:first-child::first-letter { float: left; font-family: var(--titre); font-size: 4.6rem; line-height: .8; padding: 8px 10px 0 0; color: var(--encre); }
.signature { font-family: var(--main); font-size: 1.9rem; color: var(--encre); line-height: 1.2; }
.maison-pied { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 30px; border-top: 1px solid var(--filet); padding-top: 20px; }
.maison-pied ul { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; font-size: .88rem; color: var(--texte-doux); }
.maison-pied strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 2rem; color: var(--encre); line-height: 1.1; }

/* ---------- Catalogue des produits ---------- */
.catalogue { background: var(--papier-2); padding: 90px 0; border-block: 1px solid #d8cdb6; }
.produits { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--encre); border-left: 1px solid var(--encre); }
.produit { border-right: 1px solid var(--encre); border-bottom: 1px solid var(--encre); padding: 24px 22px; display: flex; flex-direction: column; }
.produit svg { width: 100%; height: 110px; color: var(--encre); margin-bottom: 16px; }
.produit h3 { font-size: 1.35rem; margin-bottom: 6px; }
.produit p { font-size: .86rem; color: var(--texte-doux); flex: 1; }
.produit .prix { margin-top: 14px; font-family: var(--titre); font-size: 1.4rem; color: var(--or-fonce); }
.produit .marque { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); margin-bottom: 4px; }
.catalogue .renvoi { margin-top: 18px; font-size: .85rem; color: var(--texte-doux); font-style: italic; }

/* ---------- Sur commande ---------- */
.commandes { background: var(--encre); color: var(--papier); padding: 90px 0; }
.commandes .rubrique h2 { color: var(--or); }
.commandes .rubrique::before, .commandes .rubrique::after { border-color: var(--or); }
.commandes-grille { display: grid; grid-template-columns: repeat(3, 1fr); }
.commandes-grille > div { padding: 0 32px; border-left: 1px solid rgba(201,161,74,.4); }
.commandes-grille > div:first-child { border-left: 0; padding-left: 0; }
.commandes-grille h3 { color: var(--or); font-size: 1.5rem; margin-bottom: 10px; }
.commandes-grille p { font-size: .92rem; opacity: .85; }
.commandes-grille .a-partir { display: block; margin-top: 12px; font-family: var(--main); font-size: 1.6rem; color: #f2d27a; }
.commandes-bas { margin-top: 50px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(201,161,74,.4); padding-top: 26px; }
.commandes .lien-encre { background: var(--or); border-color: var(--or); color: var(--encre); }
.commandes .lien-encre:hover { background: transparent; color: var(--or); }

/* ---------- Horaires : pancarte de porte ---------- */
.horaires-zone { padding: 90px 0; }
.horaires-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.pancarte-fil { display: flex; justify-content: center; }
.pancarte-fil svg { width: 200px; height: 46px; color: #8b7d63; }
.pancarte { background: #fffdf8; border: 2px solid var(--encre); padding: 26px 30px 22px; box-shadow: 6px 6px 0 var(--encre); }
.pancarte h3 { text-align: center; font-size: 1.9rem; margin-bottom: 10px; }
.horaires { width: 100%; border-collapse: collapse; font-size: .93rem; }
.horaires td { padding: 7px 0; border-bottom: 1px dashed var(--filet); }
.horaires td:last-child { text-align: right; }
.horaires tr.aujourdhui td { font-weight: 700; color: var(--encre); }
.horaires tr.aujourdhui td:first-child::before { content: '› '; }
.pancarte .adresse { margin-top: 16px; text-align: center; font-size: .88rem; color: var(--texte-doux); }
.plan { border: 2px solid var(--encre); background: #fffdf8; }
.plan svg { width: 100%; height: auto; }
.plan figcaption { padding: 12px 16px; border-top: 2px solid var(--encre); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- Croquis (galerie) ---------- */
.croquis { padding: 0 0 90px; }
.croquis-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; border: 1px solid var(--encre); }
.croquis-grille figure { border-right: 1px solid var(--encre); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--encre); }
.croquis-grille figure:last-child { border-right: 0; }
.croquis-grille svg { width: 100%; height: 170px; }
.croquis-grille figcaption { font-family: var(--main); font-size: 1.5rem; margin-top: 10px; }

/* ---------- Avis ---------- */
.avis-zone { background: var(--papier-2); padding: 90px 0; border-block: 1px solid #d8cdb6; }
.avis-grille { display: grid; grid-template-columns: repeat(3, 1fr); }
.avis { padding: 0 30px; border-left: 1px solid var(--filet); }
.avis:first-child { border-left: 0; padding-left: 0; }
.avis blockquote { font-style: italic; font-size: 1rem; margin: 10px 0 16px; }
.avis .etoiles { color: var(--or); letter-spacing: 3px; }
.avis cite { font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); }
.avis-total { text-align: center; margin-top: 40px; font-size: .9rem; color: var(--texte-doux); }

/* ---------- Commande / contact ---------- */
.contact { padding: 90px 0; }
.contact-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-texte p { color: var(--texte-doux); margin-bottom: 22px; }
.telephone { display: block; font-family: var(--titre); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--encre); text-decoration: none; margin: 6px 0 18px; }
.contact-texte small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); }
.contact-texte .mail { color: var(--encre); font-weight: 700; word-break: break-word; }
.formulaire { display: grid; gap: 22px; border: 2px solid var(--encre); padding: 34px; background: #fffdf8; }
.formulaire h3 { font-size: 1.7rem; }
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.champ { display: grid; gap: 4px; }
.champ label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { font: inherit; font-size: 1rem; border: 0; border-bottom: 1px solid var(--encre); background: transparent; padding: 8px 2px; color: var(--texte); border-radius: 0; width: 100%; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-bottom: 2px solid var(--encre); }
.formulaire button { justify-self: start; }
.formulaire-retour { font-size: .92rem; color: var(--encre); font-weight: 700; }
.petit { font-size: .76rem; color: var(--texte-doux); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--papier); padding: 50px 0 80px; font-size: .88rem; }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.pied strong { font-family: var(--titre); font-weight: 400; font-size: 2rem; color: var(--or); display: block; }
.pied h3 { color: var(--or); font-size: 1.1rem; margin-bottom: 8px; }
.pied-bas { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(201,161,74,.35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; opacity: .8; }

/* ---------- Bandeau « site d'exemple » ---------- */
.bandeau-exemple { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #111; color: #ddd; font-family: system-ui, sans-serif; font-size: .8rem; display: flex; justify-content: center; align-items: center; gap: 6px 14px; padding: 8px 16px; flex-wrap: wrap; text-align: center; }
.bandeau-exemple a { color: #fff; font-weight: 600; }

/* ---------- Mentions légales ---------- */
.mentions { padding: 60px 0 90px; max-width: 760px; }
.mentions h1 { font-size: 2.6rem; margin-bottom: 20px; }
.mentions h2 { font-size: 1.4rem; margin: 26px 0 8px; }
.mentions p { color: var(--texte-doux); }

/* =========================================================
   TABLETTE ET TÉLÉPHONE
   ========================================================= */
@media (max-width: 900px) {
  .vitrine, .horaires-grille, .contact-grille { grid-template-columns: 1fr; gap: 50px; }
  .produits { grid-template-columns: repeat(2, 1fr); }
  .commandes-grille { grid-template-columns: 1fr; gap: 24px; }
  .commandes-grille > div { border-left: 0; padding: 0 0 22px; border-bottom: 1px solid rgba(201,161,74,.4); }
  .avis-grille { grid-template-columns: 1fr; gap: 28px; }
  .avis { border-left: 0; padding: 0 0 26px; border-bottom: 1px solid var(--filet); }
  .croquis-grille { grid-template-columns: 1fr 1fr; }
  .croquis-grille figure:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--encre); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .bouton-menu { display: inline-block; }
  .navigation { display: none; flex-direction: column; padding-top: 0; }
  .navigation.ouvert { display: flex; }
  .colonnes { columns: 1; }
  .produits { grid-template-columns: 1fr; }
  .rubrique h2 { white-space: normal; text-align: center; }
  .ardoise { padding: 20px 18px 22px; border-width: 10px; }
  .ardoise ul { font-size: 1.35rem; }
  .champ-double { grid-template-columns: 1fr; }
  .formulaire { padding: 24px 20px; }
  .maison-pied { flex-direction: column; align-items: flex-start; }
  .croquis-grille { grid-template-columns: 1fr; }
  .croquis-grille figure { border-right: 0 !important; border-bottom: 1px solid var(--encre); }
  .pied-grille { grid-template-columns: 1fr; }
  .bandeau-haut .page { justify-content: center; }
}
