/* Mariage Victor & Claire — thème nature : sauge, miel, terre, lin. */
:root {
  --lin: #f6f1e7;        /* fond */
  --papier: #fffdf8;     /* cartes */
  --sable: #e9dfcc;      /* bordures, séparateurs */
  --ble: #f1e6bf;        /* jaune très doux */
  --miel: #c9a03a;       /* jaune accent */
  --miel-fonce: #8f6d14; /* jaune lisible sur clair */
  --sauge: #7d8f69;
  --sauge-clair: #dfe5d3;
  --foret: #3e4d33;      /* vert profond : boutons, titres */
  --terre: #6b4f3a;      /* brun : texte principal */
  --ecorce: #8a6c55;     /* brun doux : texte secondaire */
  --erreur: #a2412b;
  --ombre: 0 1px 2px rgba(62, 77, 51, .06), 0 8px 24px rgba(62, 77, 51, .07);
  --r: 14px;
  --titre: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Cormorant Garamond", cursive;
  --texte: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--lin); color: var(--terre);
  font: 400 17px/1.6 var(--texte); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--foret); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); color: var(--foret); font-weight: 500; line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.script { font-family: var(--script); font-weight: 400; }
.muet { color: var(--ecorce); }
.petit { font-size: .9rem; }
.centre { text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--miel); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.conteneur { width: min(1080px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(720px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 9vw, 96px) 0; }
section.alt { background: var(--papier); border-block: 1px solid var(--sable); }

/* Ornement : petit rameau entre titre et texte */
.rameau { display: block; width: 120px; height: 24px; margin: 4px auto 28px; color: var(--sauge); }

/* Boutons */
.btn {
  --fond: var(--foret); --encre: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--fond); color: var(--encre); font: 500 1rem var(--texte); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, opacity .2s;
}
.btn:hover { background: #33402a; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.doux { --fond: var(--sauge-clair); --encre: var(--foret); }
.btn.doux:hover { background: #d2dac3; }
.btn.miel { --fond: var(--miel); --encre: #2c2410; }
.btn.miel:hover { background: #b88f2c; }
.btn.lien { --fond: transparent; --encre: var(--foret); padding: 0 12px; text-decoration: underline; }
.btn.lien:hover { background: var(--sauge-clair); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.petit { min-height: 40px; padding: 0 16px; font-size: .92rem; }

/* Champs */
label.champ { display: block; margin-bottom: 16px; }
label.champ > span { display: block; font-weight: 500; color: var(--foret); margin-bottom: 6px; font-size: .95rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=url], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--sable); border-radius: 10px;
  background: #fff; color: var(--terre); font: 400 1rem var(--texte); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sauge); box-shadow: 0 0 0 3px var(--sauge-clair); }
.aide { font-size: .85rem; color: var(--ecorce); margin-top: 4px; }
.message-erreur { color: var(--erreur); font-weight: 500; min-height: 1.5em; margin: 8px 0 0; }

/* Puces à cocher (régimes, allergies, oui/non) */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; }
.puce input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.puce span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--sable); border-radius: 999px; background: #fff; color: var(--terre);
  font-size: .95rem; transition: background .2s, border-color .2s, color .2s; user-select: none;
}
.puce:hover span { border-color: var(--sauge); }
.puce input:checked + span { background: var(--foret); border-color: var(--foret); color: #fff; }
.puce input:focus-visible + span { outline: 2px solid var(--miel); outline-offset: 2px; }
.puce.non input:checked + span { background: var(--terre); border-color: var(--terre); }

/* Cartes */
.carte { background: var(--papier); border: 1px solid var(--sable); border-radius: var(--r); padding: 24px; box-shadow: var(--ombre); }
.grille { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* Cartes géographiques */
.carte-geo { height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--sable); margin: 14px 0 12px; background: var(--sauge-clair); }
.liens-gps { display: flex; flex-wrap: wrap; gap: 8px; }
.pin-mariage { color: var(--foret); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.leaflet-container { font-family: var(--texte) !important; }
.tuiles-nature { filter: saturate(.75) sepia(.12) brightness(1.02); }

/* Icônes en ligne */
.ico { width: 20px; height: 20px; flex: none; color: var(--sauge); vertical-align: -4px; }
.ligne-ico { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.ligne-ico .ico { margin-top: 3px; }

/* Compte à rebours */
.rebours { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); margin: 24px 0; }
.rebours div { min-width: 70px; text-align: center; }
.rebours b { display: block; font: 500 clamp(2.2rem, 7vw, 3.4rem)/1 var(--titre); font-variant-numeric: lining-nums tabular-nums; }
.rebours small { display: block; margin-top: 6px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

.notice { background: var(--ble); border-radius: 10px; padding: 12px 16px; color: #5b4a17; font-size: .95rem; }
.chargement { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.apparait { animation: apparait .45s ease-out both; }
