/* ==========================================================================
   Le Sel — le-sel.fr
   Styles de la page d'accueil (one-page)
   Les couleurs et la typographie viennent de css/tokens.css
   Charte : Olive #42533C · Ivoire #F6F3EC · Blanc #FFFFFF ·
            Bleu pétrole #112D3B (fonds clairs uniquement) · Gris #6E6C64
   Typo   : Plus Jakarta Sans (400/500/600/800) — secours Inter, puis système
   Mobile-first. Zéro JavaScript.
   ========================================================================== */

:root {
  --olive-soft:   #5A6B53;
  --petrole-hi:   #1B4257;
  --gris-line:    rgba(66, 83, 60, .16);
  --gris-line-lt: rgba(246, 243, 236, .22);

  --font: var(--font-main);

  /* échelle typographique fluide (mobile → desktop) */
  --t-display: clamp(2.05rem, 1.35rem + 3.5vw, 4.25rem);
  --t-h2:      clamp(1.55rem, 1.15rem + 1.9vw, 2.6rem);
  --t-h3:      clamp(1.12rem, 1rem + .55vw, 1.4rem);
  --t-lead:    clamp(1.05rem, .98rem + .5vw, 1.3rem);
  --t-body:    clamp(1rem, .96rem + .18vw, 1.075rem);
  --t-small:   .9rem;
  --t-label:   .715rem;

  --gut: clamp(1.25rem, .75rem + 2.4vw, 3rem);
  --band: clamp(3.75rem, 2.2rem + 6.5vw, 7.5rem);
  --max: 1180px;
  --nav-h: 58px;

  color-scheme: light;
}

@media (min-width: 900px) { :root { --nav-h: 72px; } }

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--olive);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 800; letter-spacing: -.022em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--petrole);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--petrole); color: var(--ivoire);
  padding: .75rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ structure -- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 760px; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.band { padding-block: var(--band); }
.band--ivoire { background: var(--ivoire); }
.band--warm   { background: var(--ivoire-warm); }
.band--blanc  { background: var(--blanc); }
.band--olive  { background: var(--olive); color: var(--ivoire); }
.band--olive h1, .band--olive h2, .band--olive h3 { color: var(--ivoire); }

/* bandes avec photo en arrière-plan ------------------------------------- */
.band--photo { position: relative; overflow: hidden; isolation: isolate; }
.band--photo > .wrap { position: relative; z-index: 1; }

.band__media { position: absolute; inset: 0; z-index: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after { content: ""; position: absolute; inset: 0; }

/* sur fond olive : voile sombre, texte ivoire */
.band--olive .band__media img { opacity: .5; }
.band--olive .band__media::after {
  background: linear-gradient(175deg, rgba(51,65,47,.9) 0%, rgba(51,65,47,.74) 45%, rgba(51,65,47,.93) 100%);
}
/* sur fond clair : voile ivoire, la photo ne reste qu'une texture */
.band--ivoire .band__media img,
.band--warm   .band__media img,
.band--blanc  .band__media img { opacity: .62; }
.band--ivoire .band__media::after { background: linear-gradient(180deg, rgba(246,243,236,.93) 0%, rgba(246,243,236,.84) 50%, rgba(246,243,236,.93) 100%); }
.band--warm   .band__media::after { background: linear-gradient(180deg, rgba(239,235,225,.93) 0%, rgba(239,235,225,.84) 50%, rgba(239,235,225,.93) 100%); }
.band--blanc  .band__media::after { background: linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.84) 50%, rgba(255,255,255,.93) 100%); }

/* les blocs posés sur une bande photo restent opaques pour garder la lisibilité */
.band--photo .card,
.band--photo .note { backdrop-filter: blur(2px); }

/* ------------------------------------------------------------- wordmark -- */

.wordmark {
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mir { display: inline-block; transform: scaleX(-1); }

/* --------------------------------------------------------------- header -- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .93);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--gris-line);
}
.header__bar {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.header .wordmark { font-size: 1.42rem; color: var(--olive); }

.nav { display: none; }
.nav a {
  text-decoration: none;
  font-size: .875rem; font-weight: 500;
  color: var(--olive);
  padding: .4rem .1rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav a:hover { color: var(--petrole); border-bottom-color: var(--petrole); }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.9rem); }
  .menu { display: none; }
}

/* menu mobile — sans JS, via <details> */
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--olive);
  padding: .55rem .2rem .55rem .6rem;
  min-height: 44px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: ""; width: 15px; height: 11px;
  background:
    linear-gradient(var(--olive), var(--olive)) top    left / 100% 1.6px no-repeat,
    linear-gradient(var(--olive), var(--olive)) center left / 100% 1.6px no-repeat,
    linear-gradient(var(--olive), var(--olive)) bottom left / 100% 1.6px no-repeat;
  transition: transform .2s ease;
}
.menu[open] > summary::after { transform: rotate(90deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + .55rem);
  min-width: min(78vw, 300px);
  background: var(--blanc);
  border: 1px solid var(--gris-line);
  box-shadow: 0 18px 44px rgba(17, 45, 59, .13);
  padding: .4rem;
  display: flex; flex-direction: column;
}
.menu__panel a {
  text-decoration: none; color: var(--olive);
  font-size: 1rem; font-weight: 500;
  padding: .78rem .85rem;
  border-radius: 2px;
}
.menu__panel a:hover, .menu__panel a:focus-visible { background: var(--ivoire); }
.menu__panel .btn { margin: .5rem .35rem .35rem; justify-content: center; }

/* --------------------------------------------------------------- boutons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.5rem;
  font-family: var(--font);
  font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--petrole); color: var(--ivoire); border-color: var(--petrole); }
.btn--primary:hover { background: var(--petrole-hi); border-color: var(--petrole-hi); }

.btn--ghost { background: transparent; color: var(--olive); border-color: var(--gris-line); }
.btn--ghost:hover { border-color: var(--olive); }

/* sur fond olive : bouton ivoire, libellé bleu pétrole (fond clair, donc conforme) */
.btn--light { background: var(--ivoire); color: var(--petrole); border-color: var(--ivoire); }
.btn--light:hover { background: var(--blanc); border-color: var(--blanc); }

.btn--sm { min-height: 40px; padding: .55rem 1.05rem; font-size: .875rem; }

.header .btn { display: none; }
@media (min-width: 900px) { .header .btn { display: inline-flex; } }

/* --------------------------------------------------------------- labels -- */

.label {
  display: block;
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--petrole);
  margin-bottom: 1.15rem;
}
/* le bleu pétrole ne passe pas sur l'olive (charte) : vert clair à la place */
.band--olive .label { color: var(--vert-clair); }

.lead { font-size: var(--t-lead); line-height: 1.55; }
.muted { color: var(--gris); }
.band--olive .muted { color: rgba(246, 243, 236, .74); }

h2.section-title { font-size: var(--t-h2); }
h2.section-title em { font-style: normal; color: var(--petrole); }
.band--olive h2.section-title em { color: var(--vert-clair); }
h3 { font-size: var(--t-h3); letter-spacing: -.015em; }

.stack   { display: flex; flex-direction: column; gap: 1.15rem; }
.stack-s { display: flex; flex-direction: column; gap: .6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .actions .btn { flex: 0 0 auto; } }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background: var(--olive);
  color: var(--ivoire);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51, 65, 47, .84) 6%, rgba(51, 65, 47, .6) 52%, rgba(51, 65, 47, .88) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 9vw, 7rem);
}
.hero__content { max-width: 21ch; }
.hero h1 { font-size: var(--t-display); color: var(--ivoire); }
.hero h1 em { font-style: normal; color: var(--vert-clair); }
.hero__sub { max-width: 46ch; margin-top: 1.5rem; font-size: var(--t-lead); color: rgba(246, 243, 236, .86); }
.hero .label { color: var(--vert-clair); }
.hero__baseline {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--gris-line-lt);
  font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  color: rgba(246, 243, 236, .72);
}
@media (min-width: 780px) { .hero__content { max-width: 17ch; } }

/* ------------------------------------------------------------- constat -- */

.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; }
  .split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
}

.rows { display: flex; flex-direction: column; }
.rows > li {
  padding-block: 1.6rem;
  border-top: 1px solid var(--gris-line);
  display: grid; gap: .45rem;
}
.rows > li:last-child { border-bottom: 1px solid var(--gris-line); }
.rows > li h3 { color: var(--olive); }
.rows h3 { font-size: var(--t-h3); }
.rows p { color: var(--gris); }

/* ------------------------------------------------------------ bénéfices -- */

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.benefit { display: grid; gap: .7rem; align-content: start; }
.benefit__num {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  color: rgba(246, 243, 236, .55);
}
.benefit h3 { font-size: var(--t-h3); }
.benefit p  { color: rgba(246, 243, 236, .78); }

/* --------------------------------------------------------------- cartes -- */

.card {
  background: var(--blanc);
  border: 1px solid var(--gris-line);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  display: grid; gap: .75rem; align-content: start;
}
.card__tag {
  justify-self: start;
  font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--petrole);
  border: 1px solid rgba(17, 45, 59, .28);
  padding: .28rem .55rem;
}
.card p { color: var(--gris); }
.card--soon {
  background: transparent;
  border-style: dashed;
  border-color: rgba(66, 83, 60, .3);
}
.card--soon .card__tag { color: var(--gris); border-color: var(--gris-line); }

/* --------------------------------------------------------------- rounds -- */

.rounds { display: grid; gap: 0; counter-reset: r; }
.round {
  display: grid; gap: .5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--gris-line-lt);
  grid-template-columns: 2.6rem 1fr;
  align-items: start;
}
.round:last-child { border-bottom: 1px solid var(--gris-line-lt); }
.round__n {
  grid-row: span 2;
  font-size: 1.15rem; font-weight: 800;
  color: var(--vert-clair);
  font-variant-numeric: tabular-nums;
  padding-top: .05rem;
}
.round h3 { color: var(--ivoire); }
.round p  { color: rgba(246, 243, 236, .78); }

/* ---------------------------------------------------------------- kiffe -- */

.kiffe { display: grid; gap: .9rem; }
.kiffe li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: .35rem;
  align-items: start;
  font-size: var(--t-body);
}
.kiffe li::before {
  content: "";
  width: 9px; height: 9px; margin-top: .52rem;
  background: var(--petrole);
  border-radius: 50%;
}
.band--olive .kiffe li::before { background: var(--vert-clair); }

.note {
  margin-top: 1.6rem; padding: 1.1rem 1.25rem;
  background: var(--ivoire); border-left: 3px solid var(--petrole);
  font-size: var(--t-small); color: var(--gris);
}

/* ---------------------------------------------------------------- cibles -- */

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem; }
.chips li {
  font-size: .875rem; font-weight: 500;
  border: 1px solid var(--gris-line);
  background: var(--blanc);
  padding: .5rem .85rem;
}

/* -------------------------------------------------------------- galerie -- */

.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; overflow: hidden; background: var(--olive-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.gallery figure:first-child { grid-column: span 2; }
.gallery figure:first-child img { aspect-ratio: 16 / 10; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery figure:first-child img { aspect-ratio: auto; height: 100%; min-height: 100%; }
}

/* --------------------------------------------------------------- auteur -- */

.author { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 760px) { .author { grid-template-columns: 220px 1fr; align-items: start; } }
.author__photo { width: 100%; max-width: 220px; filter: grayscale(1); }
.author blockquote {
  margin: 0; font-size: var(--t-lead); line-height: 1.5; font-weight: 500;
}
.author .role { font-size: var(--t-small); letter-spacing: .04em; color: var(--gris); }
.link-li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 600; color: var(--petrole);
  text-decoration: none; border-bottom: 1.5px solid rgba(17, 45, 59, .3);
  padding-bottom: .12rem; align-self: start;
}
.link-li:hover { border-bottom-color: var(--petrole); }

/* ------------------------------------------------------------------ faq -- */

.faq { border-top: 1px solid var(--gris-line); }
.faq details { border-bottom: 1px solid var(--gris-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 0;
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto;
  width: 14px; height: 14px; margin-top: .42rem;
  background:
    linear-gradient(var(--olive), var(--olive)) center / 14px 1.6px no-repeat,
    linear-gradient(var(--olive), var(--olive)) center / 1.6px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 1.4rem; color: var(--gris); max-width: 62ch; }

/* -------------------------------------------------------------- contact -- */

.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; gap: 1.05rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .84rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--olive);
  background: var(--blanc);
  border: 1px solid var(--gris-line);
  border-radius: 2px;
  padding: .8rem .9rem;
  min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--petrole); outline: none; box-shadow: 0 0 0 3px rgba(17, 45, 59, .1); }
.form .btn { width: 100%; }
@media (min-width: 560px) { .form .btn { width: auto; justify-self: start; } }

.rgpd { font-size: .8rem; line-height: 1.55; color: var(--gris); max-width: 62ch; }
.rgpd a { color: var(--petrole); }

.contact-alt { margin-top: 1.75rem; font-size: var(--t-small); color: var(--gris); }
.contact-alt a { color: var(--petrole); font-weight: 600; }

/* --------------------------------------------------------------- footer -- */

.footer { background: var(--olive-deep); color: rgba(246, 243, 236, .8); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer .wordmark { font-size: 1.6rem; color: var(--ivoire); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; }
.footer a { color: rgba(246, 243, 236, .8); text-decoration: none; border-bottom: 1px solid rgba(246, 243, 236, .28); padding-bottom: .1rem; }
.footer a:hover { color: var(--ivoire); border-bottom-color: var(--ivoire); }
.footer__base { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--gris-line-lt); font-size: .8rem; color: rgba(246, 243, 236, .55); display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }

/* -------------------------------------------------- formulaire intégré -- */

.embed {
  background: var(--ivoire);
  border: 1px solid rgba(246, 243, 236, .28);
  border-radius: 2px;
  overflow: hidden;
}
.embed iframe { display: block; width: 100%; border: 0; background: var(--ivoire); }
@media (max-width: 559px) { .embed iframe { height: 780px; } }

.band--olive .rgpd { color: rgba(246, 243, 236, .68); }
.band--olive .rgpd a { color: var(--vert-clair); }
.band--olive .contact-alt { color: rgba(246, 243, 236, .68); }
.band--olive .contact-alt a { color: var(--vert-clair); }
