/* ==========================================================
   Le Jardin d'Illyne — feuille de style
   Couleurs et polices modifiables ci-dessous (:root)
   ========================================================== */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --creme: #f5f0e7;
  --creme-fonce: #ebe3d4;
  --olive: #8f8a55;
  --olive-fonce: #6d6a3c;
  --brun: #5b3a22;
  --texte: #3d3228;
  --texte-doux: #6e6257;
  --blanc: #fffdf9;
  --serif: "Cormorant", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --largeur: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--texte); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--brun); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
.surtitre { font-family: var(--sans); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--olive-fonce); font-weight: 500; margin-bottom: .8em; display: block; }
.conteneur { width: min(var(--largeur), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--fonce { background: var(--creme-fonce); }
.centre { text-align: center; }
.intro { max-width: 680px; margin: 0 auto 3rem; color: var(--texte-doux); }

/* ---------- Boutons ---------- */
.bouton { display: inline-block; padding: .85em 2em; border: 1px solid currentColor; text-decoration: none; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; transition: background .25s, color .25s; cursor: pointer; background: none; font-family: var(--sans); }
.bouton--plein { background: var(--olive-fonce); border-color: var(--olive-fonce); color: var(--blanc); }
.bouton--plein:hover { background: var(--brun); border-color: var(--brun); }
.bouton:disabled, .bouton:disabled:hover { opacity: .45; cursor: not-allowed; background: var(--olive-fonce); border-color: var(--olive-fonce); }
.bouton--clair { color: var(--blanc); }
.bouton--clair:hover { background: var(--blanc); color: var(--brun); }
.bouton--brun { color: var(--brun); }
.bouton--brun:hover { background: var(--brun); color: var(--blanc); }

/* ---------- En-tête ---------- */
/* En-tête : grand en haut de page, réduit (fond crème) dès qu'on défile — classe .entete--reduit ajoutée par js/site.js */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 20; color: var(--blanc); transition: background .35s, color .35s, box-shadow .35s; }
.entete--plein { position: sticky; background: var(--creme); color: var(--brun); border-bottom: 1px solid var(--creme-fonce); }
.entete--reduit { background: rgba(245,240,231,.97); color: var(--brun); box-shadow: 0 2px 18px rgba(40,30,15,.12); }
.entete__inner { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0; transition: padding .35s; }
.entete--reduit .entete__inner { padding: .45rem 0; }
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo img { height: 100px; width: auto; transition: height .35s; }
.entete--reduit .logo img { height: 56px; }
.logo__texte { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; letter-spacing: .02em; transition: font-size .35s; }
.entete--reduit .logo__texte { font-size: 1.4rem; }
.logo__texte small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .35em; text-transform: uppercase; margin-top: .3rem; }
.entete:not(.entete--plein):not(.entete--reduit) .logo__texte { text-shadow: 0 1px 8px rgba(20,15,8,.45); }
.logo__fonce { display: none; }
.entete--plein .logo__clair, .entete--reduit .logo__clair { display: none; }
.entete--plein .logo__fonce, .entete--reduit .logo__fonce { display: block; }
.entete:not(.entete--plein):not(.entete--reduit) .logo__clair { filter: drop-shadow(0 1px 6px rgba(20,15,8,.45)); }
.nav a { transition: color .35s; }
@media (max-width: 600px) { .entete__inner { padding: .9rem 0; } .logo { gap: .7rem; } .logo img { height: 64px; } .entete--reduit .logo img { height: 44px; } .logo__texte { font-size: 1.35rem; } .entete--reduit .logo__texte { font-size: 1.15rem; } .logo__texte small { font-size: .55rem; letter-spacing: .22em; } }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav__bouton { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: .4rem; }
.nav__bouton span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; }

@media (max-width: 860px) {
  .nav__bouton { display: block; }
  .nav ul { position: fixed; inset: 0; background: var(--creme); color: var(--brun); flex-direction: column; justify-content: center; align-items: center; gap: 1.8rem; transform: translateX(100%); transition: transform .3s; }
  .nav ul.ouvert { transform: none; }
  .nav a { font-size: 1rem; }
  .nav__fermer { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2rem; background: none; border: 0; color: var(--brun); cursor: pointer; }
}
@media (min-width: 861px) { .nav__fermer { display: none; } }

/* ---------- Héros ---------- */
.heros { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center; color: var(--blanc); overflow: hidden; }
.heros > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(30,24,14,.42), rgba(30,24,14,.12) 70%), linear-gradient(to bottom, rgba(30,25,15,.35), transparent 30%); }
.heros__texte { text-shadow: 0 1px 3px rgba(20,15,8,.55), 0 2px 30px rgba(20,15,8,.6); }
.heros .surtitre { font-weight: 500; font-size: .85rem; }
.heros--page::after { background: rgba(30,24,14,.38); }
.heros__texte { position: relative; z-index: 1; padding: 9rem 1rem 3rem; }
.heros h1 { color: var(--blanc); font-size: clamp(3.4rem, 10vw, 7rem); font-weight: 500; margin: .1em 0 .3em; }
.heros .surtitre { color: var(--blanc); }
.heros__boutons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.heros--page { min-height: 58vh; }
.heros > img.cadre-haut { object-position: center 30%; }
.heros--page h1 { font-size: clamp(2.8rem, 7vw, 5rem); }

/* ---------- Blocs texte + image ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.duo--inverse .duo__image { order: 2; }
.duo__image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.duo__image--paysage img { aspect-ratio: 4/3; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--olive-fonce); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo--inverse .duo__image { order: 0; } }

/* ---------- Univers (3 catégories) ---------- */
.univers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.univers a { position: relative; display: block; overflow: hidden; color: var(--blanc); text-decoration: none; aspect-ratio: 3/4; }
.univers img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.univers a:hover img { transform: scale(1.05); }
.univers__texte { position: absolute; inset: auto 0 0 0; padding: 3rem 1.5rem 1.6rem; background: linear-gradient(transparent, rgba(30,22,12,.75)); }
.univers h3 { color: var(--blanc); font-size: 2.2rem; font-weight: 500; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.univers span { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 860px) { .univers { grid-template-columns: 1fr; } .univers a { aspect-ratio: 4/3; } }

/* ---------- Bandeau image ---------- */
.bandeau { position: relative; padding: clamp(6rem, 14vw, 10rem) 0; color: var(--blanc); text-align: center; overflow: hidden; }
.bandeau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::after { content: ""; position: absolute; inset: 0; background: rgba(35,28,18,.42); }
.bandeau .conteneur { position: relative; z-index: 1; }
.bandeau h2 { color: var(--blanc); font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 2px 24px rgba(0,0,0,.4); }

/* ---------- Produits ---------- */
.produits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.produit { background: var(--blanc); display: flex; flex-direction: column; }
.produit img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.produit__corps { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; border: 1px solid var(--creme-fonce); border-top: 0; }
.produit h3 { margin-bottom: .3em; }
.produit p { color: var(--texte-doux); font-size: .95rem; flex: 1; }
.produit__prix { font-family: var(--serif); font-size: 1.35rem; color: var(--brun); margin: .3rem 0 1.1rem; }
.produit__prix small { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); }
.produit .bouton { align-self: flex-start; }
@media (max-width: 900px) { .produits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .produits { grid-template-columns: 1fr; } }

/* ---------- Encadré info ---------- */
.info { background: var(--blanc); border-left: 3px solid var(--olive); padding: 2rem 2.2rem; margin-top: 3rem; }
.info h3 { font-size: 1.5rem; }
.info p:last-child { margin-bottom: 0; }

/* ---------- Galerie ---------- */
.galerie { columns: 3 260px; column-gap: 1rem; }
.galerie a { display: block; margin-bottom: 1rem; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.galerie img { width: 100%; transition: transform .6s ease; }
.galerie a:hover img { transform: scale(1.03); }

.visionneuse { position: fixed; inset: 0; background: rgba(20,16,10,.92); display: none; place-items: center; z-index: 100; padding: 2rem; }
.visionneuse.ouverte { display: grid; }
.visionneuse img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.visionneuse button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 1rem; line-height: 1; }
.visionneuse .v-fermer { top: .5rem; right: .8rem; }
.visionneuse .v-prec { left: .3rem; top: 50%; transform: translateY(-50%); }
.visionneuse .v-suiv { right: .3rem; top: 50%; transform: translateY(-50%); }

/* ---------- Prestations mariage ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.trio img { aspect-ratio: 4/5; object-fit: cover; width: 100%; margin-bottom: 1.4rem; }
.trio p { color: var(--texte-doux); font-size: .97rem; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ---------- Formulaire de commande ---------- */
.formulaire { background: var(--blanc); padding: clamp(1.5rem, 5vw, 3.5rem); max-width: 860px; margin: 0 auto; }
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 2.4rem; }
.formulaire legend { font-family: var(--serif); font-size: 1.7rem; color: var(--brun); margin-bottom: 1rem; padding: 0; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.champs .large { grid-column: 1 / -1; }
.formulaire label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: .35rem; color: var(--texte-doux); }
.formulaire input, .formulaire select, .formulaire textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #d8cfbf; background: var(--creme); font: inherit; font-weight: 400; color: var(--texte); border-radius: 0; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.formulaire textarea { min-height: 110px; resize: vertical; }
.choix { display: flex; gap: 1rem; flex-wrap: wrap; }
.choix label { display: flex; align-items: center; gap: .6rem; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--texte); border: 1px solid #d8cfbf; padding: .8rem 1.2rem; cursor: pointer; background: var(--creme); margin: 0; }
.choix input { width: auto; }
.choix label:has(input:checked) { border-color: var(--olive-fonce); background: #eeeadb; }
.aide { font-size: .85rem; color: var(--texte-doux); margin-top: .35rem; }
.formulaire .consentement { text-transform: none; letter-spacing: 0; font-weight: 400; display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--texte-doux); margin-bottom: 1.6rem; }
.consentement input { width: auto; margin-top: .35rem; }
.piege { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cache { display: none !important; }
.message { padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.message--ok { background: #e7ecd8; border-left: 3px solid var(--olive-fonce); }
.message--erreur { background: #f5e1d8; border-left: 3px solid #a2492b; }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--olive); color: var(--blanc); padding: 4.5rem 0 2rem; font-size: .95rem; }
.pied__colonnes { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 2.5rem 3rem; align-items: start; }
.pied__logo { align-self: center; }
.pied__logo img { width: 150px; height: auto; }
.pied h3 { color: var(--blanc); font-size: 1.6rem; }
.pied a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.pied a:hover { border-bottom-color: #fff; }
.pied p { margin-bottom: .5em; }
.pied__bas { border-top: 1px solid rgba(255,255,255,.3); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; opacity: .9; }
@media (max-width: 960px) { .pied__colonnes { grid-template-columns: 1fr 1fr; } .pied__logo { align-self: start; } }
@media (max-width: 760px) {
  .pied { padding: 3rem 0 1.5rem; text-align: center; }
  .pied__logo { display: none; }
  .pied__colonnes { grid-template-columns: 1fr; gap: 0; }
  .pied__colonnes > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.28); }
  .pied__colonnes > div { padding: 1.6rem 0; }
  .pied h3 { font-size: 1.45rem; margin-bottom: .45em; }
  .pied__bas { justify-content: center; text-align: center; margin-top: 1rem; }
}

/* ---------- Texte légal ---------- */
.legal h2 { font-size: 1.8rem; margin-top: 2rem; }
.legal { max-width: 760px; }

/* ---------- Page contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact__bloc { background: var(--blanc); padding: clamp(1.6rem, 4vw, 3rem); }
.contact__bloc--boutique { position: relative; }
.contact__logo { position: absolute; top: clamp(1.2rem, 3vw, 2.2rem); right: clamp(1.2rem, 3vw, 2.2rem); width: 130px; height: auto; opacity: .9; }
@media (max-width: 420px) { .contact__logo { width: 95px; } }
.contact__lien { color: var(--brun); }
.contact__boutons { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.horaires { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.horaires th, .horaires td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--creme-fonce); vertical-align: top; }
.horaires th { font-weight: 500; width: 40%; }
.horaires small { color: var(--texte-doux); }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--olive-fonce); font-weight: 500; }
.carte { height: 440px; background: var(--creme-fonce); position: relative; }
.carte iframe { width: 100%; height: 100%; border: 0; display: block; }
.carte__agrandir { position: absolute; right: 1rem; bottom: 1rem; background: var(--blanc); color: var(--brun); padding: .5rem 1rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* Ancres (#boutique, #contact…) : ne pas passer sous l'en-tête fixe */
section[id], footer[id] { scroll-margin-top: 90px; }

/* Utilitaires */
.bandeau .surtitre { color: var(--blanc); }
.champs--espace { margin-top: 1.4rem; }
.espace-haut { margin-top: 2rem; }
h1.titre-page { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
