/* Affluéa · la vitrine pour les artisans. Une seule feuille, pour toutes les pages.
   Dans l'esprit d'arbrea.fr (papier, encre, Cormorant et EB Garamond), en vert forêt. */

@font-face { font-family: "Cormorant"; src: url("polices/Cormorant-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("polices/Cormorant-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("polices/EBGaramond.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("polices/EBGaramond-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400 700; font-display: swap; }

:root {
  --papier: #F4EFE5;
  --papier-clair: #FBF8F2;
  --papier-fonce: #E8E0D0;
  --encre: #1E2620;
  --encre-douce: #4F5A50;
  --filet: #D6CDBB;
  --foret: #2E4A3A;
  --foret-fonce: #22382B;
  --action: #B5452F;
  --action-fonce: #93361F;
  --action-ombre: #7F2E1B;
  --titre: "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;
  --texte: "EB Garamond", Garamond, Georgia, serif;
  --large: 1080px;
  --etroit: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--texte); font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--foret); text-underline-offset: 3px; }
a:hover { color: var(--action); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, .montant, .etapes li::before { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--encre); }
h1 { font-size: clamp(2.5rem, 8.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h3 { font-size: 1.5rem; margin-bottom: .3em; }
p { margin: 0 0 1em; }

.page { max-width: var(--large); margin: 0 auto; padding: 0 22px; }
.etroit { max-width: var(--etroit); }

/* La barre du haut */
.haut { border-bottom: 1px solid var(--filet); background: var(--papier); }
.haut .page { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque svg { width: 30px; height: 30px; flex: 0 0 30px; }
.marque span { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; letter-spacing: .01em; }
.haut .lien-haut { font-size: 1rem; color: var(--encre); text-decoration: none; border: 1px solid var(--filet); padding: 8px 14px; border-radius: 999px; background: var(--papier-clair); white-space: nowrap; }
.haut .lien-haut:hover { border-color: var(--foret); color: var(--foret); }
@media (max-width: 759px) { .haut .lien-haut { display: none; } }

/* Le bouton, un seul */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--texte); font-size: 1.12rem; font-weight: 600; letter-spacing: .01em;
  color: #fff; background: var(--action); border: 0; border-radius: 10px;
  padding: 16px 26px; min-height: 56px; text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--action-ombre); transition: background .15s, transform .05s;
}
.btn:hover { background: var(--action-fonce); color: #fff; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--action-ombre); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Le premier écran */
.une { padding: 34px 0 48px; }
.surtitre { font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--foret); margin-bottom: 14px; font-weight: 600; }
.une h1 { max-width: 16ch; }
.une .chapeau { font-size: clamp(1.16rem, 3.4vw, 1.42rem); color: var(--encre-douce); max-width: 34em; margin-bottom: 22px; }
.trois-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.trois-points li { display: flex; gap: 12px; align-items: baseline; font-size: 1.15rem; }
.trois-points li::before { content: ""; flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--foret); transform: translateY(-2px); }
.sous-bouton { font-size: 1rem; color: var(--encre-douce); margin: 14px 0 0; }

/* Les sections */
section.bloc { padding: 64px 0; border-top: 1px solid var(--filet); }
section.bloc.clair { background: var(--papier-clair); }
.intro { font-size: 1.15rem; color: var(--encre-douce); max-width: 36em; margin-bottom: 34px; }

.etapes { list-style: none; counter-reset: e; padding: 0; margin: 0; display: grid; gap: 18px; }
.etapes li { counter-increment: e; background: var(--papier-clair); border: 1px solid var(--filet); border-radius: 14px; padding: 24px 24px 20px 24px; position: relative; }
.bloc.clair .etapes li { background: var(--papier); }
.etapes li::before { content: counter(e); font-family: var(--titre); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--foret); display: block; margin-bottom: 8px; }
.etapes p { margin: 0; color: var(--encre-douce); }

.duo { display: grid; gap: 28px; }
.carte { background: var(--papier-clair); border: 1px solid var(--filet); border-radius: 14px; padding: 26px; }
.bloc.clair .carte { background: var(--papier); }
.carte h3 { margin-top: 0; }
.liste { padding-left: 1.1em; margin: 0; }
.liste li { margin-bottom: .45em; }
.liste.non li::marker { content: "× "; color: var(--action); }

/* Le prix */
.prix { display: grid; gap: 18px; }
.prix .carte.principale { border: 2px solid var(--foret); }
.montant { font-family: var(--titre); font-weight: 700; font-size: 3.4rem; line-height: 1; margin: 6px 0 2px; }
.montant small { font-family: var(--texte); font-size: 1.05rem; font-weight: 400; color: var(--encre-douce); }
.etiquette { display: inline-block; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--foret); background: #E2E8DE; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.coche { list-style: none; padding: 0; margin: 16px 0 0; }
.coche li { padding-left: 28px; position: relative; margin-bottom: .5em; }
.coche li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px; border-left: 2.5px solid var(--foret); border-bottom: 2.5px solid var(--foret); transform: rotate(-45deg); }
.note { font-size: 1rem; color: var(--encre-douce); }

/* La FAQ */
.faq details { border-bottom: 1px solid var(--filet); }
.faq details:first-of-type { border-top: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 1.18rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--titre); font-size: 2rem; line-height: 1; color: var(--foret); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--encre-douce); }

/* Le formulaire */
.reserver { background: var(--foret); color: #F4EFE5; border-top: 0; }
.reserver h2, .reserver .intro { color: #F4EFE5; }
.reserver .intro { opacity: .9; }
form.resa { background: var(--papier-clair); color: var(--encre); border-radius: 16px; padding: 26px 22px; display: grid; gap: 18px; max-width: 560px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1.05rem; }
.champ input, .champ select {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--encre); background: #fff;
  border: 1.5px solid var(--filet); border-radius: 10px; padding: 13px 14px; min-height: 54px;
  appearance: none; -webkit-appearance: none;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--foret) 50%), linear-gradient(135deg, var(--foret) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.champ input:focus, .champ select:focus { border-color: var(--foret); outline: none; box-shadow: 0 0 0 3px rgba(46,74,58,.18); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: .95rem; color: var(--encre-douce); margin: 0; }
.resa .btn { width: 100%; }
.retour { border-radius: 10px; padding: 14px 16px; font-size: 1.05rem; display: none; }
.retour.ok { display: block; background: #E2E8DE; color: var(--foret-fonce); }
.retour.ko { display: block; background: #F4E1DA; color: #7A2E1E; }
.merci { display: none; }
.merci h3 { color: var(--foret); }
.reserver .contact { margin-top: 22px; color: #F4EFE5; opacity: .9; font-size: 1.05rem; }
.reserver .contact a { color: #fff; }

/* Le bas */
footer.bas { padding: 34px 0 110px; font-size: 1rem; color: var(--encre-douce); }
footer.bas .page { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer.bas nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.bas a { color: var(--encre-douce); }

/* La barre collante, sur téléphone */
.collant { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(244,239,229,.96); border-top: 1px solid var(--filet); backdrop-filter: blur(6px); z-index: 10; transition: transform .2s; }
.collant .btn { width: 100%; min-height: 52px; padding: 12px 18px; }
.collant.cache { transform: translateY(110%); }

/* Les pages de texte (conditions, mentions, confidentialité) */
.texte { padding: 48px 0 40px; }
.texte h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.texte h2 { font-size: 1.7rem; margin-top: 1.6em; }
.texte .maj { color: var(--encre-douce); font-size: 1rem; }
.texte ul { padding-left: 1.2em; }
.texte li { margin-bottom: .4em; }
.texte address { font-style: normal; background: var(--papier-clair); border: 1px solid var(--filet); border-radius: 12px; padding: 16px 18px; margin: 0 0 1em; }

@media (min-width: 760px) {
  body { font-size: 20px; }
  .une { padding: 88px 0 80px; }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .duo { grid-template-columns: 1fr 1fr; }
  .prix { grid-template-columns: 1.25fr 1fr; align-items: start; }
  section.bloc { padding: 88px 0; }
  form.resa { padding: 32px; }
  .collant { display: none; }
  footer.bas { padding-bottom: 40px; }
}

/* L'aperçu d'une demande, à droite du premier écran (sous lui sur téléphone) */
.une-grille { display: grid; gap: 40px; }
.apercu { max-width: 420px; }
.apercu-titre { font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); font-weight: 600; margin-bottom: 12px; }
.bulle { background: #fff; border: 1px solid var(--filet); border-radius: 16px 16px 16px 4px; padding: 18px 20px 20px; box-shadow: 0 14px 34px rgba(30,38,32,.10); }
.bulle-tete { font-weight: 700; color: var(--foret); margin: 0 0 12px; font-size: 1.05rem; }
.bulle dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; }
.bulle dt { font-weight: 600; }
.bulle dd { margin: 0; color: var(--encre-douce); }
.bulle-bouton { display: block; text-align: center; border: 1.5px solid var(--foret); color: var(--foret); border-radius: 10px; padding: 10px; font-weight: 600; }
.apercu-note { font-size: 1rem; color: var(--encre-douce); margin: 12px 0 0; }
@media (min-width: 960px) {
  .une-grille { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 56px; }
}
