/* =========================================================
   Wafflessence de Paul — feuille de style
   ---------------------------------------------------------
   POLICES
   Hatton (Pangram Pangram) et TT Barrels (TypeType) sont des
   polices commerciales : elles ne sont pas fournies.
   Une fois les licences web achetées, déposez les fichiers
   .woff2 dans /assets/fonts/ et décommentez le bloc ci-dessous.
   En attendant, le site utilise des polices libres proches
   (DM Serif Display et Fraunces), hébergées sur votre serveur.
   ========================================================= */

/*
@font-face { font-family: "Hatton"; src: url("../fonts/Hatton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TT Barrels"; src: url("../fonts/TTBarrels-Regular.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
*/

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --petrole: #12698D;
  --petrole-profond: #0B4760;
  --petrole-clair: #5E9DB5;
  --brume: #EAF3F6;
  --encre: #1B2A31;
  --gris: #4E6069;
  --caramel: #9C5F17;
  --blanc: #FFFFFF;

  --f-barrels: "TT Barrels", "Fraunces", Georgia, serif;   /* grands titres, éléments emblématiques */
  --f-hatton: "Hatton", "DM Serif Display", Georgia, serif; /* police principale : titres de blocs, accroches */
  --f-texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; /* sous-titres et lecture */

  --mesure: 36rem;
  --large: 72rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--petrole); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--petrole); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blanc); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--petrole); color: var(--blanc); font-size: .9rem; }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 2.75rem; flex-wrap: wrap; }
.flag { display: block; width: 30px; height: 20px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.topbar__links { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.topbar__links li::before { content: "|"; opacity: .55; margin: 0 .6rem 0 0; }
.topbar__links li + li { margin-left: .6rem; }
.topbar a { color: var(--blanc); text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.langs { margin-left: auto; display: flex; gap: .25rem; }
.langs a { padding: .15rem .45rem; border-radius: 3px; font-weight: 600; letter-spacing: .02em; }
.langs a[aria-current="true"] { background: var(--blanc); color: var(--petrole); }

/* ---------- En-tête ---------- */
.site-header { background: var(--blanc); text-align: center; padding: 1.75rem 0 0; border-bottom: 1px solid #D5E5EB; }
.site-header .logo { display: inline-block; }
.site-header .logo img { width: clamp(220px, 34vw, 380px); }
.nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem clamp(.75rem, 3vw, 2.75rem); margin: 1rem 0 0; padding: 0 0 1rem; list-style: none; }
.nav a {
  display: inline-block; padding: .4rem .2rem;
  color: var(--petrole-profond); text-decoration: none;
  font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--petrole); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: .95rem 1.9rem; border-radius: 999px;
  background: var(--petrole); color: var(--blanc); text-decoration: none;
  font-family: var(--f-texte); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid var(--petrole); cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--petrole-profond); border-color: var(--petrole-profond); }
.btn--ghost { background: transparent; color: var(--petrole); }
.btn--ghost:hover { background: var(--petrole); color: var(--blanc); }
.btn--soft { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.center { text-align: center; }

/* ---------- Titres de section ---------- */
.section { padding-block: var(--section); }
.section--brume { background: var(--brume); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-family: var(--f-barrels); font-weight: 600; font-size: clamp(2.3rem, 5.5vw, 3.75rem); color: var(--petrole); }
.section-head .kicker { font-family: var(--f-texte); font-size: 1.05rem; font-weight: 500; color: var(--gris); margin: 0 0 .35rem; }
.section-head .kicker--caps { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 700; color: var(--petrole); }
.section-head .sub { font-family: var(--f-hatton); font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: var(--petrole-profond); margin: .75rem 0 0; }
.section-head p { margin-top: 1rem; }

.lead { font-family: var(--f-hatton); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--petrole-profond); }
.prose { max-width: var(--mesure); }
.prose h3 { font-family: var(--f-hatton); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--petrole); margin-bottom: .6rem; }
.prose .tagline { font-family: var(--f-texte); font-weight: 600; font-size: 1.15rem; color: var(--petrole-profond); margin-bottom: 1rem; }
.prose .closing { font-family: var(--f-hatton); font-style: italic; font-size: 1.3rem; color: var(--petrole); margin-top: 1.25rem; }

.photo { margin: 0; overflow: hidden; border-radius: 3px; background: var(--brume); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- Accueil ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); text-align: center; }
.hero h1 {
  font-family: var(--f-barrels); font-weight: 600; color: var(--petrole);
  font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 1.02; letter-spacing: -.01em;
  max-width: 14ch; margin: 0 auto;
}
.hero .intro { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; color: var(--gris); max-width: 34rem; margin: 1.25rem auto 2rem; }
.hero__photo { margin-top: clamp(2.5rem, 6vw, 4rem); aspect-ratio: 4 / 5; max-height: 92vh; }
@media (min-width: 52rem) { .hero__photo { aspect-ratio: 16 / 10; } }
.hero__photo img { object-position: center 45%; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .intro, .hero .btn { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .intro { animation-delay: .12s; }
  .hero .btn { animation-delay: .24s; }
  .hero__photo img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes settle { from { transform: scale(1.06); } }
}

/* ---------- Le lieu ---------- */
.lugar__text { max-width: 40rem; margin: 0 auto; text-align: center; }
.lugar__big { margin-top: clamp(2.5rem, 5vw, 3.5rem); aspect-ratio: 4 / 5; }
@media (min-width: 52rem) { .lugar__big { aspect-ratio: 16 / 9; } }
.lugar__grid { display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem); margin-top: clamp(.75rem, 1.6vw, 1.25rem); }
.lugar__grid .photo { aspect-ratio: 3 / 4; }
.lugar__trio { display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
.lugar__trio .photo:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.lugar__trio .photo:last-child img { object-position: center 60%; }
@media (min-width: 52rem) {
  .lugar__grid { grid-template-columns: 1fr 1.25fr; }
  .lugar__grid > .photo { aspect-ratio: auto; }
  .lugar__trio .photo:last-child { aspect-ratio: 16 / 9; }
}

/* ---------- La carte ---------- */
.cards { display: grid; gap: clamp(1.5rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card .photo { aspect-ratio: 1; margin-bottom: 1.1rem; }
.card h3 { font-family: var(--f-texte); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--petrole); margin-bottom: .45rem; }
.card p { font-size: 1rem; color: var(--gris); }
.season { display: inline-block; font-size: .85rem; font-weight: 600; font-style: italic; color: var(--caramel); margin: -.1rem 0 .45rem; }

.types { margin-top: var(--section); }
.types .section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.types__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); }
@media (min-width: 52rem) { .types__grid { grid-template-columns: 1fr 1fr; } }
.types__grid .photo { aspect-ratio: 1; margin-bottom: 1.75rem; }
.types__grid .photo--tall img { object-position: center 55%; }

.mucho { margin-top: var(--section); }
.mucho .photo { aspect-ratio: 4 / 5; }
.mucho .overline { font-family: var(--f-hatton); font-size: 1.2rem; color: var(--gris); margin: 0 0 .2rem; }
.after-cta { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Fenêtre des menus */
dialog.menus { border: 0; border-radius: 12px; padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 32rem; width: calc(100% - 2rem); color: var(--encre); }
dialog.menus::backdrop { background: rgba(11, 71, 96, .6); }
dialog.menus h2 { font-family: var(--f-hatton); color: var(--petrole); font-size: 1.9rem; margin-bottom: 1.25rem; }
.menu-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.menu-list a { display: block; padding: 1rem 1.2rem; border: 1px solid #C9DDE5; border-radius: 8px; text-decoration: none; color: var(--encre); }
.menu-list a:hover { border-color: var(--petrole); background: var(--brume); }
.menu-list strong { display: block; color: var(--petrole); font-size: 1.1rem; }
.menu-list span { font-size: .95rem; color: var(--gris); }
.dialog-close { background: none; border: 0; color: var(--petrole); font: 600 1rem var(--f-texte); cursor: pointer; padding: .5rem 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- L'histoire ---------- */
.historia .photo--family { aspect-ratio: 4 / 3; }
.historia .photo--beet { aspect-ratio: 4 / 3; background: #000; }
.historia .photo--sugar { aspect-ratio: 4 / 5; }
.historia .brand { display: grid; place-items: center; padding: clamp(2rem, 5vw, 3.5rem); background: var(--blanc); border-radius: 3px; }
.historia .brand img { width: min(100%, 22rem); }
.historia .big { font-family: var(--f-hatton); font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--petrole-profond); }
.historia .emph { font-family: var(--f-hatton); font-size: 1.45rem; color: var(--petrole); }

/* ---------- Cadeaux et expériences ---------- */
.regalos__big { aspect-ratio: 1; max-width: 46rem; margin: 0 auto; }
@media (min-width: 52rem) { .regalos__big { aspect-ratio: 16 / 11; } }
.regalos__row { display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 52rem) { .regalos__row { grid-template-columns: 1.6fr 1fr; } }
.regalos__row h3 { font-family: var(--f-hatton); font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--petrole); margin-bottom: .8rem; }
.ml-box { border: 1px solid #C9DDE5; border-radius: 12px; padding: 1.5rem; background: var(--blanc); font-size: .98rem; }
.ml-box h4 { font-family: var(--f-texte); font-weight: 700; font-size: 1.05rem; color: var(--petrole-profond); margin-bottom: .5rem; }
.ml-box .btn { margin-top: .25rem; padding: .75rem 1.3rem; font-size: .85rem; }
.taller { margin-top: var(--section); }
.taller .photo { aspect-ratio: 3 / 4; }
.taller .facts { margin: 1.25rem 0; padding: 1rem 0; border-block: 1px solid #C9DDE5; font-weight: 600; }
.taller .facts p { margin: 0; }
.price { font-family: var(--f-hatton); font-size: 2rem; color: var(--caramel); margin: 0 0 .5rem; }

/* ---------- Informations pratiques ---------- */
.info__top { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 52rem) { .info__top { grid-template-columns: 1.4fr 1fr; } }
.info__street { aspect-ratio: 4 / 3; }
.info__map { display: block; aspect-ratio: 4 / 5; border: 1px solid #C9DDE5; }
.info__map img { transition: transform .4s; }
.info__map:hover img { transform: scale(1.02); }
.label { font-family: var(--f-texte); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--petrole); margin: 0 0 .5rem; }
.address { font-style: normal; font-size: 1.15rem; margin: 1.5rem 0 1.25rem; }
.address .note { color: var(--gris); font-size: 1rem; }
.info__trio { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid #C9DDE5; }
@media (min-width: 52rem) { .info__trio { grid-template-columns: 1fr 1fr 1.3fr; } }
.info__trio .value { font-family: var(--f-hatton); font-size: 1.6rem; color: var(--petrole-profond); line-height: 1.25; margin: 0 0 .25rem; }
.info__trio .value a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.socials { display: grid; gap: .75rem; }
.social { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid #C9DDE5; border-radius: 10px; text-decoration: none; color: var(--encre); background: var(--blanc); }
.social:hover { border-color: var(--petrole); }
.social svg { width: 28px; height: 28px; flex: none; fill: var(--petrole); }
.social strong { display: block; }
.social span { font-size: .9rem; color: var(--gris); }
.fb-embed { margin-top: .75rem; width: 100%; max-width: 340px; height: 330px; border: 0; border-radius: 10px; background: var(--blanc); }
.facts4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-top: clamp(3rem, 6vw, 4.5rem); }
.fact { background: var(--blanc); border-radius: 10px; padding: 1.4rem 1.5rem; }
.fact p:last-child { margin: 0; }

.skyline-wrap { background: var(--brume); padding-top: clamp(2rem, 5vw, 3rem); overflow: hidden; }
.skyline { display: block; width: 100%; height: clamp(170px, 17vw, 270px); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--petrole-profond); color: #D9E9EF; padding: 3rem 0 2rem; text-align: center; font-size: .95rem; }
.site-footer img { width: 220px; margin: 0 auto 1.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.site-footer a { color: var(--blanc); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer small { display: block; opacity: .8; margin-top: 1rem; }

/* Bouton WhatsApp flottant (mobile) */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 5; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (min-width: 52rem) { .wa-float { display: none; } }

/* Page 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.notfound h1 { font-family: var(--f-barrels); color: var(--petrole); font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 1rem; }

.topbar .wrap { column-gap: .6rem; }
@media (max-width: 40rem) {
  .topbar .wrap { padding-block: .45rem; row-gap: .2rem; }
  .topbar__links { order: 3; flex-basis: 100%; justify-content: center; font-size: .88rem; }
  .topbar__links li:first-child::before { content: none; }
  .langs a { padding: .1rem .4rem; }
  .nav ul { gap: .1rem .95rem; }
  .nav a { font-size: .85rem; letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 51.99rem) { .site-footer { padding-bottom: 5.5rem; } }
