/* =========================================================
   Romaretti — gelati artigianali
   Palette & type from the brand logo.
   ========================================================= */

:root {
  /* Brand colours */
  --sage:        #8BA885;
  --sage-dark:   #6E8A68;
  --sage-deep:   #566E51;
  --espresso:    #3A2D2A;
  --espresso-soft:#5A4A44;
  --cream:       #F4EDE1;
  --cream-light: #FBF7EF;
  --caramel:     #C79A65;
  --white:       #ffffff;

  /* Roles */
  --bg:          var(--cream-light);
  --ink:         var(--espresso);
  --ink-soft:    var(--espresso-soft);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Caveat", "Segoe Script", cursive;

  /* Spacing / layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 18px;
  --radius-lg: 26px;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(58, 45, 42, .14);
  --shadow-md: 0 16px 34px -18px rgba(58, 45, 42, .42);
  --shadow-lg: 0 30px 60px -28px rgba(58, 45, 42, .5);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

::selection { background: var(--sage); color: var(--cream-light); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--cream       { background: var(--cream-light); }
.section--cream-deep  { background: var(--cream); }

/* Soft scalloped divider between cream tones */
.section--cream-deep { position: relative; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--espresso);
  color: var(--cream-light);
  padding: .7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); outline: 3px solid var(--caramel); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
/* Scrolled state (toggled by JS) */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--cream-light) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow-sm);
}
/* Over the dark hero (before scroll) the header text turns cream for contrast */
.site-header:not(.is-scrolled) .brand__name,
.site-header:not(.is-scrolled) .nav__link { color: var(--cream-light); }
.site-header:not(.is-scrolled) .nav__link::after { background: var(--cream-light); }
.site-header:not(.is-scrolled) .burger__bar { background: var(--cream-light); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--espresso);
}
.brand__mark { width: 44px; height: 44px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  padding: 0;
}
.nav__link {
  text-decoration: none;
  color: var(--espresso);
  font-weight: 500;
  font-size: 1rem;
  padding-block: .4rem;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--sage-deep);
  transition: right .3s var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { right: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--espresso);
  --btn-fg: var(--cream-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--solid { --btn-bg: var(--sage-deep); --btn-fg: var(--cream-light); }
.btn--solid:hover { background: var(--espresso); }

.btn--cream { --btn-bg: var(--cream-light); --btn-fg: var(--espresso); }
.btn--cream:hover { background: var(--white); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream-light);
  border-color: color-mix(in srgb, var(--cream-light) 70%, transparent);
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--cream-light) 16%, transparent);
  border-color: var(--cream-light);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--sage-deep);
  border-color: color-mix(in srgb, var(--sage) 55%, transparent);
}
.btn--outline:hover {
  background: color-mix(in srgb, var(--sage) 12%, var(--cream-light));
  border-color: var(--sage-deep);
}

/* ---------- Burger / mobile menu ---------- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
}
.burger__bar {
  width: 24px; height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: var(--cream-light);
  border-top: 1px solid color-mix(in srgb, var(--espresso) 12%, transparent);
  box-shadow: var(--shadow-md);
  padding: 1rem var(--gutter) 2rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu__list a {
  display: block;
  text-decoration: none;
  color: var(--espresso);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  padding: .75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--espresso) 10%, transparent);
}
.mobile-menu__cta { width: 100%; margin-top: 1.25rem; }
.mobile-menu__slogan {
  font-family: var(--font-script);
  color: var(--sage-deep);
  font-size: 1.9rem;
  text-align: center;
  margin-top: 1.1rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--sage) 86%, white) 0%, var(--sage) 46%, var(--sage-dark) 100%);
  color: var(--cream-light);
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 7rem 4rem;
  overflow: hidden;
}
/* Background carousel: stacked, cross-faded by opacity */
.hero__carousel { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }

/* Dark veil so the hero logo + cream text stay legible over any photo.
   Kept fairly present (~52%), a touch deeper top/bottom for framing. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(42, 29, 24, .58) 0%,
    rgba(42, 29, 24, .52) 42%,
    rgba(42, 29, 24, .66) 100%);
}

.hero__grain {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero__inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: min(440px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(38, 30, 26, .22));
  margin-bottom: 1.6rem;
}
.hero__title {
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem);
  font-weight: 600;
  color: var(--cream-light);
  max-width: 16ch;
}
.hero__lead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
  max-width: 40ch;
  color: color-mix(in srgb, var(--cream-light) 92%, var(--sage));
}
.hero__actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  z-index: 4;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid color-mix(in srgb, var(--cream-light) 65%, transparent);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.hero__scroll-dot {
  width: 5px; height: 8px;
  border-radius: 999px;
  background: var(--cream-light);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   SHARED SECTION BITS
   ========================================================= */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}
.eyebrow__line {
  display: block;
  width: clamp(22px, 6vw, 44px);
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: .75;
}

.section__title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  color: var(--espresso);
  max-width: 18ch;
}
.section__title--center { margin-inline: auto; text-align: center; max-width: 22ch; }

.section__intro {
  text-align: center;
  max-width: 56ch;
  margin: 1rem auto 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.lead em, p em { font-style: italic; color: var(--espresso); }

/* =========================================================
   NOTRE MAISON
   ========================================================= */
.maison__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.4rem;
}
.maison__intro p + p { margin-top: 1rem; }
.maison__signoff {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--sage-deep);
  margin-top: 1.4rem;
  line-height: 1;
}

.maison__features { list-style: none; padding: 0; display: grid; gap: 1rem; }
.feature {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 22%, var(--cream-light));
  color: var(--sage-deep);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-size: 1.2rem; font-weight: 600; }
.feature__text { color: var(--ink-soft); margin-top: .2rem; font-size: .98rem; }

/* =========================================================
   NOTRE SAVOIR-FAIRE — mise en page reprise de la brochure :
   bandeau titre sauge → picto « Fabrication artisanale » + intro
   → trois colonnes (visuel, titre, texte) → bandeau de clôture espresso.
   ========================================================= */
.savoir {
  background: var(--cream-light);
  scroll-margin-top: 76px; /* le header fixe ne recouvre pas le bandeau à l'ancrage */
}

/* Bandeau titre sur fond sauge (même dégradé radial que le hero) */
.savoir__banner {
  background:
    radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--sage) 86%, white) 0%, var(--sage) 52%, var(--sage-dark) 100%);
  color: var(--cream-light);
  text-align: center;
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
.savoir__banner .eyebrow { color: var(--cream-light); }
/* Une seule ligne sur desktop : neutralise les max-width de .section__title,
   y compris celui de la media query ≥1024px (d'où le sélecteur composé). */
.savoir__banner .savoir__banner-title { color: var(--cream-light); max-width: none; }

.savoir__body { padding-block: clamp(2.8rem, 6vw, 4.5rem) var(--section-y); }

/* Picto rond « Fabrication artisanale » à gauche + texte d'introduction */
.savoir__intro {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
  max-width: 860px;
  margin-inline: auto;
}
.savoir__stamp {
  flex: none;
  width: clamp(124px, 16vw, 150px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .55rem;
  padding: 1rem;
  text-align: center;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--sage-deep) 60%, transparent);
  background: color-mix(in srgb, var(--sage) 16%, var(--cream-light));
  color: var(--sage-deep);
}
.savoir__stamp svg { width: 32px; height: 32px; }
.savoir__stamp-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.6;
}
.savoir__intro-text { font-size: 1.12rem; color: var(--ink-soft); }

/* Trois colonnes : visuel + titre + texte */
.savoir__cols {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.6rem, 6vw, 4rem);
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.savoir-col { text-align: center; }
.savoir-col__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background:
    radial-gradient(80% 90% at 50% 120%, color-mix(in srgb, var(--sage) 38%, var(--cream-light)) 0%, color-mix(in srgb, var(--sage) 16%, var(--cream-light)) 60%, var(--cream-light) 100%);
}
.savoir-col__img { width: 100%; height: 100%; object-fit: cover; }

/* Repli propre si une photo manque (onerror) : cadre « photo à venir »
   à la charte. NB : les visuels de cette section ne sont pas signés
   (pas de .is-signed) — le monogramme alourdirait ces photos d'ingrédients. */
.savoir-col__ph { display: none; }
.savoir-col__visual.is-missing {
  border: 1px dashed color-mix(in srgb, var(--sage-deep) 55%, transparent);
  box-shadow: none;
  color: var(--sage-deep);
}
.savoir-col__visual.is-missing .savoir-col__ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .7rem;
  height: 100%;
}

.savoir-col__title {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--espresso);
  margin-top: 1.15rem;
}
.savoir-col__text {
  color: var(--ink-soft);
  font-size: .97rem;
  margin-top: .5rem;
  max-width: 40ch;
  margin-inline: auto;
}

/* Bloc « Bientôt, nos artisans partenaires » — liste sobre, sans photo */
.savoir__future {
  margin-top: clamp(2.8rem, 6vw, 4rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid color-mix(in srgb, var(--sage) 40%, transparent);
  text-align: center;
}
.savoir__future-title {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  color: var(--espresso);
  max-width: 24ch;
  margin-inline: auto;
}
.savoir__future-intro {
  max-width: 54ch;
  margin: .6rem auto 0;
  color: var(--ink-soft);
}
.artisans {
  list-style: none;
  padding: 0;
  margin: clamp(1.5rem, 3vw, 2.2rem) auto 0;
  max-width: 620px;
}
.artisan {
  padding: 1.05rem .5rem;
  border-top: 1px solid color-mix(in srgb, var(--sage) 28%, transparent);
}
.artisan:first-child { border-top: 0; }
.artisan__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--espresso);
}
.artisan__role {
  display: block;
  margin-top: .28rem;
  font-size: .93rem;
  color: var(--ink-soft);
}

/* Bandeau de clôture sur fond espresso, sous-ligne en script */
.savoir__closing {
  background: var(--espresso);
  color: var(--cream-light);
  text-align: center;
  padding-block: clamp(2.8rem, 6vw, 4.2rem);
}
.savoir__closing-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin-inline: auto;
  text-wrap: balance;
}
.savoir__closing-script {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem);
  color: var(--sage);
  margin-top: 1.1rem;
  line-height: 1.25;
}

@media (min-width: 720px) {
  .savoir__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 719px) {
  .savoir__intro { flex-direction: column; text-align: center; }
}

/* =========================================================
   NOS GLACES — la vitrine
   ========================================================= */
.vitrine { margin-top: 2.6rem; }
.vitrine__note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 auto 2rem;
  text-align: center;
  width: max-content;
  max-width: 100%;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .92rem;
  color: var(--espresso);
  background: color-mix(in srgb, var(--caramel) 26%, var(--cream-light));
  border: 1px dashed color-mix(in srgb, var(--caramel) 70%, var(--espresso));
}
.vitrine { display: flex; flex-direction: column; align-items: center; }
.vitrine__note strong { font-weight: 700; }

.flavors {
  list-style: none;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.flavor {
  position: relative;
  background: var(--cream-light);
  border: 1px solid color-mix(in srgb, var(--sage) 26%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.flavor:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.flavor__badge {
  position: absolute;
  top: .9rem; right: .9rem;
  z-index: 2;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--espresso);
  background: color-mix(in srgb, var(--caramel) 55%, var(--cream-light));
  padding: .28rem .6rem;
  border-radius: 999px;
}

.flavor__visual {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 90% at 50% 120%, color-mix(in srgb, var(--sage) 38%, var(--cream-light)) 0%, color-mix(in srgb, var(--sage) 16%, var(--cream-light)) 60%, var(--cream-light) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 22%, transparent);
}

/* Photo réelle du parfum (champ "image" de parfums.json).
   Boîte portrait uniforme pour les cartes classiques/du moment : les photos
   la remplissent, et les parfums sans photo affichent la pastille CSS centrée
   sur le même dégradé sauge. Les duos « à l'italienne » gardent leur boîte. */
.flavors:not(.flavors--duos) .flavor__visual { aspect-ratio: 4 / 5; }
/* Les duos avec photo réelle adoptent aussi le portrait ; sans photo, ils
   gardent leur boîte paysage à deux boules (.duo__visual). */
.flavors--duos .flavor__visual--photo { aspect-ratio: 4 / 5; }
.flavor__visual--photo { display: block; padding: 0; position: relative; overflow: hidden; }
.flavor__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Signature « monogramme R » — filigrane en bas-droite des photos.
   But : signer chaque visuel avec élégance. Le monogramme est ENTIER, jamais
   rogné : marge égale de 14px en bas et à droite pour qu'il ne touche pas le bord.
   Taille ~14 % de la largeur de la carte, opacité .9, avec une ombre portée CSS
   (« ombre ») pour rester lisible sur les photos claires (plan de travail beige).
   RÉUTILISABLE : posez la classe .is-signed sur n'importe quel conteneur
   d'image (un <div> qui enveloppe l'<img>, pas l'<img> lui-même) pour le
   signer de la même façon — carousel, ambiance, futurs visuels. Appliqué
   automatiquement aux photos de parfum via .flavor__visual--photo.
   NB : l'ancien watermark « étoile » des photos sources a déjà été effacé — le
   monogramme est donc purement décoratif (plus rien à recouvrir).
   ============================================================ */
.is-signed { position: relative; overflow: hidden; }
.flavor__visual--photo::after,
.is-signed::after {
  content: "";
  position: absolute;
  right: 14px;                /* marge égale bas/droite : le monogramme ne touche pas le bord */
  bottom: 14px;
  width: 14%;                 /* ~14 % de la largeur de la carte : assez grand, monogramme entier */
  aspect-ratio: 462 / 631;    /* proportions exactes du monogramme (pas de déformation) */
  background: url("../img/monogram-blanc.png") center / contain no-repeat;
  opacity: .9;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));  /* « ombre » : lisible sur photo claire */
  pointer-events: none;
  z-index: 2;
}

/* The gelato scoop, drawn entirely in CSS from --flavor */
.scoop {
  --hi: color-mix(in srgb, var(--flavor) 72%, white);
  --lo: color-mix(in srgb, var(--flavor) 82%, #2a1d18);
  position: relative;
  width: 47%;
  aspect-ratio: 1 / 0.92;
  border-radius: 50% 50% 48% 48% / 60% 60% 42% 42%;
  background: radial-gradient(circle at 36% 30%, var(--hi) 0%, var(--flavor) 52%, var(--lo) 110%);
  box-shadow:
    inset 7px 9px 16px rgba(255, 255, 255, .38),
    inset 0 -12px 18px rgba(42, 29, 24, .16),
    0 14px 22px -10px rgba(58, 45, 42, .4);
}
.scoop::before { /* little swirl peak */
  content: "";
  position: absolute;
  top: -8%; left: 50%;
  transform: translateX(-50%);
  width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--hi), var(--flavor) 70%);
  box-shadow: inset 3px 4px 8px rgba(255,255,255,.4);
}
.scoop::after { /* the cup / coppetta */
  content: "";
  position: absolute;
  bottom: -16%; left: 50%;
  transform: translateX(-50%);
  width: 116%; height: 34%;
  border-radius: 0 0 46% 46% / 0 0 100% 100%;
  background: linear-gradient(180deg, var(--cream-light), #efe6d5);
  box-shadow: inset 0 5px 7px rgba(58,45,42,.12), 0 10px 16px -8px rgba(58,45,42,.35);
  z-index: -1;
}
/* Stracciatella — chocolate shards over the cream */
.flavor--stracciatella .scoop {
  background-image:
    radial-gradient(circle at 30% 35%, #3a2a22 0 3px, transparent 4px),
    radial-gradient(circle at 62% 30%, #3a2a22 0 2px, transparent 3px),
    radial-gradient(circle at 45% 55%, #3a2a22 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, #3a2a22 0 2px, transparent 3px),
    radial-gradient(circle at 36% 70%, #3a2a22 0 2px, transparent 3px),
    radial-gradient(circle at 58% 75%, #3a2a22 0 3px, transparent 4px),
    radial-gradient(circle at 36% 30%, var(--hi) 0%, var(--flavor) 52%, var(--lo) 110%);
}

.flavor__body { padding: 1.2rem 1.3rem 1.45rem; }
.flavor__name { font-size: 1.32rem; font-weight: 600; color: var(--espresso); }
.flavor__origin {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--sage-deep);
  font-size: 1rem;
  margin-top: .1rem;
}
.flavor__desc { margin-top: .55rem; color: var(--ink-soft); font-size: .97rem; }

/* Carte data-driven (parfums.json) : sous-sections + ligne « caractère » */
/* La note d'exemple se centre seule (le conteneur .vitrine a été retiré) */
.vitrine__note { display: flex; }

.parfums-group { margin-top: clamp(2.4rem, 6vw, 4rem); }
.parfums-group__title {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  color: var(--espresso);
  text-align: center;
}
.parfums-group__intro {
  text-align: center;
  max-width: 54ch;
  margin: .5rem auto 1.8rem;
  color: var(--ink-soft);
}
.parfums-group__insta {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 1.8rem auto 0;
}

.flavor__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
}
.flavor__type {
  flex: none;
  align-self: center;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--sage-deep);
  background: color-mix(in srgb, var(--sage) 22%, var(--cream-light));
  padding: .24rem .55rem;
  border-radius: 999px;
}
.flavor__char { margin-top: .55rem; color: var(--ink-soft); font-size: .97rem; }

/* Éclats de chocolat (stracciatella) — par boule */
.scoop--stracc {
  background-image:
    radial-gradient(circle at 30% 35%, #3a2a22 0 3px, transparent 4px),
    radial-gradient(circle at 62% 30%, #3a2a22 0 2px, transparent 3px),
    radial-gradient(circle at 45% 55%, #3a2a22 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, #3a2a22 0 2px, transparent 3px),
    radial-gradient(circle at 36% 70%, #3a2a22 0 2px, transparent 3px),
    radial-gradient(circle at 58% 75%, #3a2a22 0 3px, transparent 4px),
    radial-gradient(circle at 36% 30%, var(--hi) 0%, var(--flavor) 52%, var(--lo) 110%);
}

/* Glaces à l'italienne — duos : deux boules qui se rejoignent au centre */
.duo__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.duo__visual .scoop { position: relative; width: 40%; }
.duo__visual .scoop + .scoop { margin-left: -7%; }

/* État de repli si parfums.json ne se charge pas (ex. ouverture en file://) */
.flavors__fallback {
  grid-column: 1 / -1;
  list-style: none;
  text-align: center;
  color: var(--ink-soft);
  padding: 1.2rem 1.3rem;
  border: 1px dashed color-mix(in srgb, var(--sage-deep) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--sage) 10%, var(--cream-light));
}
.vitrine__note code,
.flavors__fallback code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

/* =========================================================
   LA BOUTIQUE — galerie placeholders
   ========================================================= */
.gallery {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(.9rem, 2vw, 1.4rem);
}
.photo { margin: 0; }
.photo--wide { grid-column: 1 / -1; }

.photo__ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .7rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--sage) 20%, var(--cream-light)) 0 14px, color-mix(in srgb, var(--sage) 13%, var(--cream-light)) 14px 28px);
  border: 1px dashed color-mix(in srgb, var(--sage-deep) 55%, transparent);
  color: var(--sage-deep);
}
.photo--wide .photo__ph { aspect-ratio: 3 / 1; }

/* Photo réelle de la boutique — même gabarit que le cadre « photo à venir » */
.photo__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Emplacement large (devanture) : bannière, cadrage biaisé vers le haut pour
   garder l'enseigne visible même sur une photo quasi carrée. */
.photo--wide .photo__img { aspect-ratio: 5 / 2; object-position: center 22%; }

.photo__icon {
  width: 46px; height: 38px;
  border: 2.5px solid currentColor;
  border-radius: 8px;
  position: relative;
  opacity: .9;
}
.photo__icon::before { /* lens */
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 16px; height: 16px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
}
.photo__icon::after { /* shutter top */
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 7px;
  border-radius: 4px 4px 0 0;
  background: currentColor;
}
.photo__label {
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .95rem;
}
.photo__cap {
  margin-top: .65rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* =========================================================
   INFOS PRATIQUES
   ========================================================= */
.infos__grid {
  margin-top: 2.6rem;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.infos__details { display: grid; gap: 1.6rem; align-content: start; }
.info-block { }
.info-block__title {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin-bottom: .4rem;
}
.info-block__text { font-size: 1.18rem; color: var(--espresso); }
.info-link {
  color: var(--espresso);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sage-deep) 60%, transparent);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.info-link:hover { color: var(--sage-deep); text-decoration-color: var(--sage-deep); }

.hours { display: grid; gap: .35rem; }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--espresso) 12%, transparent);
  font-size: 1.1rem;
}
.hours__row dt { color: var(--ink-soft); }
.hours__row dd { font-weight: 600; color: var(--espresso); }

.infos__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid color-mix(in srgb, var(--sage) 28%, transparent);
  min-height: 320px;
}
.infos__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* =========================================================
   NOUS REJOINDRE
   ========================================================= */
.rejoindre__grid {
  margin-top: 2.8rem;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.rejoindre__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.2vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.rejoindre__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 22%, var(--cream-light));
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}
.rejoindre__icon svg { width: 26px; height: 26px; }
.rejoindre__title { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); color: var(--espresso); }
.rejoindre__text { color: var(--ink-soft); margin-top: .75rem; max-width: 64ch; }
.rejoindre__cta { margin-top: auto; align-self: flex-start; }
.rejoindre__text + .rejoindre__cta { margin-top: 1.5rem; }
/* Mention sous le bouton de candidature (rappel du CV) */
.rejoindre__hint {
  margin-top: .75rem;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* Devenez franchisé — bloc développement de réseau */
.rejoindre__strengths {
  list-style: none;
  padding: 0;
  margin: 1.9rem 0 0;
  width: 100%;
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.9rem);
}
.rejoindre__strength {
  padding-top: 1.1rem;
  border-top: 2px solid color-mix(in srgb, var(--sage) 34%, transparent);
}
.rejoindre__strength h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--espresso);
  margin-bottom: .45rem;
}
.rejoindre__strength p {
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.55;
}
.rejoindre__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.9rem;
}
.rejoindre__btn svg { flex: none; }

/* =========================================================
   FORMULAIRE DE CONTACT (FormSubmit — site statique)
   ========================================================= */
.contact-block {
  margin-top: 1.6rem;
  width: 100%;
}
/* Le <summary> se comporte comme un bouton de la charte */
.contact-block__toggle {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.contact-block__toggle::-webkit-details-marker { display: none; }
.contact-block__chev { transition: transform .3s var(--ease); }
.contact-block[open] .contact-block__chev { transform: rotate(180deg); }

.contact-block__panel {
  margin-top: 1.4rem;
  max-width: 640px;
  background: var(--cream-light);
  border: 1px solid color-mix(in srgb, var(--sage) 32%, transparent);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}

.contact-form { display: grid; gap: 1.1rem; }
.contact-form__row { display: grid; gap: 1.1rem; }
.contact-form__field { display: grid; gap: .4rem; }
.contact-form__field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--espresso);
  letter-spacing: .01em;
}
.contact-form__optional { font-weight: 400; color: var(--ink-soft); }

.contact-form input,
.contact-form textarea {
  font: inherit;
  width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid color-mix(in srgb, var(--sage) 40%, var(--cream));
  border-radius: 12px;
  padding: .7rem .9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--sage); }
/* Focus visible à la charte (le textarea n'est pas couvert par la règle globale) */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 2px;
  border-color: var(--sage-deep);
}

/* Honeypot anti-spam : masqué à l'écran, hors du flux, doit rester vide */
.contact-form__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__submit { justify-self: start; margin-top: .3rem; }

.contact-block__fallback {
  margin-top: 1.1rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* Confirmation d'envoi — révélée quand l'URL cible #merci */
.contact-merci {
  display: none;
  scroll-margin-top: 96px;
  margin-top: 1.8rem;
  gap: .7rem;
  align-items: center;
  padding: .95rem 1.2rem;
  background: color-mix(in srgb, var(--sage) 20%, var(--cream-light));
  border: 1px solid color-mix(in srgb, var(--sage) 45%, transparent);
  border-radius: var(--radius);
  color: var(--espresso);
}
.contact-merci:target { display: flex; }
.contact-merci strong { font-weight: 700; }
.contact-merci__icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--cream-light);
}
.contact-merci__icon svg { width: 17px; height: 17px; }

@media (min-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--espresso);
  color: color-mix(in srgb, var(--cream-light) 86%, var(--espresso));
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
}
.footer__brand { }
.footer__mark { width: 56px; height: 56px; margin-bottom: .7rem; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--cream-light);
  line-height: 1;
}
.footer__tag {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  color: color-mix(in srgb, var(--cream-light) 70%, var(--espresso));
  margin-top: .35rem;
}
.footer__slogan {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--sage);
  margin-top: .6rem;
  line-height: 1;
}

.footer__cols { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer__heading {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--cream-light) 72%, var(--espresso));
  margin-bottom: .9rem;
}
.footer__col p { margin-bottom: .6rem; }
.footer__links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer__links a {
  text-decoration: none;
  color: color-mix(in srgb, var(--cream-light) 88%, var(--espresso));
  transition: color .2s var(--ease);
}
.footer__links a:hover { color: var(--sage); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--cream-light) 16%, transparent);
  font-size: .85rem;
  color: color-mix(in srgb, var(--cream-light) 60%, var(--espresso));
}

/* =========================================================
   REVEAL ANIMATION (progressive enhancement)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 720px) {
  .maison__grid { grid-template-columns: 1.15fr .85fr; }
  .infos__grid { grid-template-columns: .85fr 1.15fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .rejoindre__strengths { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}

@media (min-width: 1024px) {
  .section__title { max-width: 20ch; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__scroll-dot { animation: none; }
}
