/* ============================================================
   Mr Bagnis et ses filles — Huile d'Olive Vierge Extra
   Feuille de style — cohérente avec la charte hapesanteur.fr
   ============================================================ */

:root {
  /* Palette identique au site Hapesanteur */
  --sand: #F5EFE0;
  --sand-dark: #EAE0CC;
  --terracotta: #C4714A;
  --terracotta-dark: #A35A35;
  --terracotta-light: #DFA07E;
  --olive: #7A8C5E;
  --olive-dark: #5C6B45;
  --olive-light: #A8B68A;
  --dark: #1C1A17;
  --dark-mid: #2E2A24;
  --ivory: #FAF7F2;
  --text: #2E2A24;
  --text-muted: #7A7060;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 6px;
  --t: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Variables propres au produit (huile) */
  --gold: #C9962E;
  --gold-light: #E8C77A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark-mid);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BARRE DE PROGRESSION ─────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--olive), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s;
}

/* ─── HEADER ────────────────────────────────── */
header {
  position: fixed;
  top: 3px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(28, 26, 23, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--t);
}
header.scrolled {
  background: rgba(28, 26, 23, 0.99);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(232, 199, 122, 0.5);
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo em {
  color: var(--gold-light);
  font-style: italic;
}
.logo small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  margin-top: 1px;
}

.mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--t);
  position: relative;
}
nav a:hover {
  color: var(--white);
}
nav li.nav-cta a {
  background: var(--olive);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 600;
}
nav li.nav-cta a:hover {
  background: var(--olive-dark);
}

/* ─── BOUTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--t);
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--olive);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(122, 140, 94, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 30px;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(201, 150, 46, 0.4);
}
.btn-gold:disabled {
  background: #cfc8b8;
  color: #8a8378;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── HERO ──────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-mid) 55%, #3a3326 100%);
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(122, 140, 94, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(201, 150, 46, 0.10) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(122, 140, 94, 0.16);
  border: 1px solid rgba(168, 182, 138, 0.35);
  color: var(--olive-light);
  padding: 7px 18px;
  border-radius: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.12;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}
.hero .subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
}
.hero-image-frame {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.hero-image-frame img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.hero-image-frame .caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 14px 4px 2px;
  font-style: italic;
}
.hero-image-frame .caption i {
  color: var(--gold-light);
}

/* ─── SÉPARATEUR BRANCHE D'OLIVIER ──────────── */
.olive-divider {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}
.olive-divider svg {
  width: 140px;
  height: auto;
  opacity: 0.55;
}

/* ─── SECTIONS GÉNÉRIQUES ───────────────────── */
.section {
  padding: 100px 0;
}
.section-sand {
  background: var(--sand);
}
.section-ivory {
  background: var(--ivory);
}
.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-label i {
  font-size: 0.85em;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  margin-bottom: 16px;
}
.section-title.light {
  color: var(--white);
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 56px;
}
.section-sub.light {
  color: rgba(255, 255, 255, 0.62);
}
.text-center {
  text-align: center;
}
.text-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ─── HISTOIRE ──────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-text p {
  font-size: 1.02rem;
  color: var(--text);
}
.story-text .highlight {
  font-size: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--olive-dark);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.3rem;
  margin: 1.8rem 0;
}
.story-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-image-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(28, 26, 23, 0.78);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-image-tag i {
  color: var(--gold-light);
}

/* ─── TERROIR ───────────────────────────────── */
.terroir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.terroir-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--t);
}
.terroir-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}
.terroir-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(122, 140, 94, 0.12);
  border: 1px solid rgba(122, 140, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--olive-dark);
  margin: 0 auto 20px;
}
.terroir-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.terroir-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── ANALYSE / TABLEAU ─────────────────────── */
.analyse-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 640px;
}
table th, table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--sand-dark);
  font-size: 0.92rem;
}
table thead th {
  background: var(--dark-mid);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
table tbody tr:hover {
  background: var(--sand);
}
.valeur-bonne {
  color: var(--olive-dark);
  font-weight: 700;
}

.bienfaits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.bienfait-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border-top: 3px solid var(--terracotta);
  transition: var(--t);
}
.bienfait-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.bienfait-card .bienfait-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bienfait-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(196, 113, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta-dark);
  font-size: 1rem;
  flex-shrink: 0;
}
.bienfait-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0;
}
.bienfait-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── PRODUITS ──────────────────────────────── */
.produits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.produit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--t);
  border: 2px solid transparent;
  position: relative;
}
.produit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.produit-card.selected {
  border-color: var(--gold);
  background: #fffaf0;
  box-shadow: 0 16px 40px rgba(201, 150, 46, 0.18);
}
.produit-card .format-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--terracotta-dark);
  margin: 0 auto 18px;
  transition: var(--t);
}
.produit-card.selected .format-icon {
  background: var(--gold-light);
  color: var(--dark);
}
.produit-card h3 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}
.produit-card .format-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.produit-card .prix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-mid);
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 4px;
}
.produit-card .prix-unitaire {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.badge-populaire {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--terracotta);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 15px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── COMMANDE ──────────────────────────────── */
.commande-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin: 0 auto;
}
/* Le formulaire (quantité, mode de livraison, total) reste resserré
   et centré pour rester lisible — seul le bloc Mondial Relay (plus bas)
   profite de la largeur complète du conteneur. */
.commande-form {
  max-width: 680px;
  margin: 0 auto;
}
.commande-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand-dark);
  flex-wrap: wrap;
  gap: 10px;
}
.commande-row:last-of-type {
  border-bottom: none;
}
.commande-row.total-row {
  border-top: 2px solid var(--gold-light);
  margin-top: 6px;
  padding-top: 18px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-mid);
}
.commande-row label {
  font-weight: 500;
  font-size: 0.95rem;
}
.quantite-input {
  width: 72px;
  padding: 10px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--t);
}
.quantite-input:focus {
  border-color: var(--olive);
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 140, 94, 0.15);
}
select {
  padding: 11px 16px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  transition: var(--t);
  min-width: 220px;
}
select:focus {
  border-color: var(--olive);
  outline: none;
}

.paiement-actions {
  margin-top: 24px;
}
.stripe-info {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stripe-info strong {
  color: var(--text);
}

/* ─── RETRAIT LOCAL ─────────────────────────── */
.retrait-info {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
  border-left: 4px solid var(--olive);
}
.retrait-info h3 {
  color: var(--olive-dark);
  margin-bottom: 14px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.retrait-lieu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.retrait-lieu .lieu {
  background: var(--white);
  padding: 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}
.retrait-lieu .lieu strong {
  display: block;
  color: var(--olive-dark);
  margin-bottom: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}
.retrait-note {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.retrait-note i {
  margin-top: 2px;
  color: var(--terracotta);
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 50px 24px 36px;
  font-size: 0.88rem;
}
footer .footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
footer .footer-contact {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}
footer .footer-contact a,
footer .footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.7);
}
footer .footer-contact a:hover {
  color: var(--gold-light);
}
footer .footer-legal {
  margin-top: 22px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero .subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-image-wrap {
    order: -1;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(28, 26, 23, 0.99);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height 0.35s ease;
  }
  nav ul.open {
    max-height: 400px;
    padding: 10px 0 20px;
  }
  nav ul li {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  .mobile-btn {
    display: block;
  }
  .hero {
    padding: 130px 0 70px;
  }
  .section {
    padding: 70px 0;
  }
  .terroir-grid,
  .produits-grid,
  .bienfaits,
  .retrait-lieu {
    grid-template-columns: 1fr;
  }
  .commande-inner {
    padding: 26px;
  }
  footer .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
}