/* ============================================================
   Filora — feuille de style
   Palette : crème / beige chaud, accent bleu doux (couleurs produit),
   typographie Fraunces (titres) + Inter (texte).
   ============================================================ */

:root {
  --cream: #faf6f0;
  --cream-2: #f3ece1;
  --beige: #e9ddc9;
  --ink: #2b2620;
  --ink-soft: #5a5248;
  --blue: #3f6f9c;
  --blue-dark: #325b82;
  --blue-tint: #eaf1f7;
  --white: #ffffff;
  --line: #e3d8c6;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(43, 38, 32, 0.08);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }
a { color: var(--blue-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 760px; }

/* ============ BOUTONS ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(63, 111, 156, 0.3);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--blue-tint); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ============ EN-TÊTE ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  margin-right: 1.5rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--blue-dark); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.5rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.hero-lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* ============ MÉDIA / CADRES PHOTO ============ */
/* Le cadre porte un fond neutre proche de celui des photos produit.
   Si une image est manquante, on voit un fond propre plutôt qu'une icône cassée. */
.media-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f2efe9;
}
.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.media-frame-sm { aspect-ratio: 1 / 1; }
.product-media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* ============ SECTIONS ============ */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--cream-2); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.4rem; }
.section-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 2.5rem; }
.narrow h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.narrow p { font-size: 1.1rem; color: var(--ink-soft); }
.narrow strong { color: var(--ink); }
.section-cta { margin-top: 2rem; }

/* ============ PRODUIT ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin: 2rem 0 3rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card-feature { border-color: var(--blue); border-width: 2px; }
.product-media { padding: 1rem 1rem 0; }
.product-body { padding: 1.2rem 1.5rem 1.8rem; }
.product-body h3 { font-size: 1.4rem; }
.tag {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.product-facts { list-style: none; padding: 0; margin: 1rem 0 0; }
.product-facts li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.product-facts li:first-child { border-top: none; }

/* ============ CARACTÉRISTIQUES ============ */
.features { margin-top: 1rem; }
.features-title { font-size: 1.6rem; text-align: center; margin-bottom: 1.8rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature {
  background: var(--blue-tint);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ============ POUR LES BOUTIQUES (sombre) ============ */
.section-dark {
  background: var(--ink);
  color: var(--cream);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .section-lede { color: #c9bfae; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.benefit {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.benefit h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.benefit p { margin: 0; color: #c9bfae; }
.section-dark .section-cta { text-align: center; }

/* ============ COMMENT COMMANDER ============ */
.steps-wrap {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.steps-title { font-size: 1.6rem; text-align: center; }
.steps-lede { text-align: center; color: #c9bfae; margin-bottom: 2.2rem; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
.steps li {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.step-text { display: block; color: #d8cfbe; }
.step-text strong { color: var(--cream); }

/* ============ OÙ ACHETER ============ */
.resellers-note { font-size: 1.2rem; color: var(--ink-soft); }
.resellers { list-style: none; padding: 0; margin: 1rem 0; }
.resellers li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.resellers-ask { font-weight: 600; color: var(--ink); margin-top: 1.2rem; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}
.contact-item h3 { font-size: 1.25rem; }
.contact-item p { color: var(--ink-soft); margin: 0; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: var(--white);
}
.field-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.field-check label { margin: 0; font-weight: 500; }
.field-check input { width: 1.1rem; height: 1.1rem; }
.contact-direct { margin-top: 1.5rem; text-align: center; color: var(--ink-soft); }

/* Champ anti-spam (honeypot) : invisible pour les humains, hors flux et hors tabulation. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messages de confirmation / erreur du formulaire. */
.form-message {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.form-message-success {
  background: #e7f3ec;
  border: 1px solid #b6dcc4;
  color: #245b3a;
}
.form-message-error {
  background: #fbeceb;
  border: 1px solid #f0c4c0;
  color: #8a2c25;
}
.form-message a { color: inherit; }

/* ============ PIED DE PAGE ============ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.3rem; }
.site-footer p { color: #c9bfae; margin: 0.2rem 0; }
.site-footer a { color: var(--cream); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
