/* ============================================================
   Boucle-d-Oreille.fr — styles de marque
   Palette : noir profond / or champagne / ivoire chaud
   ============================================================ */

:root {
  --noir: #191919;
  --noir-doux: #2b2b2b;
  --or: #b08d57;
  --or-clair: #d9bc8a;
  --ivoire: #faf6ef;
  --sable: #f0e8dc;
  --taupe: #6b655c;
  --blanc: #ffffff;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --ombre: 0 18px 40px rgba(25, 25, 25, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--noir);
  background: var(--ivoire);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--or-clair);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--or);
  margin: 0 0 0.8rem;
}

.lead { font-size: 1.08rem; color: var(--taupe); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--or); color: var(--blanc); }
.btn-primary:hover { background: var(--or-clair); }

.btn-outline { border-color: var(--noir); color: var(--noir); }
.btn-outline:hover { background: var(--noir); color: var(--ivoire); }

.btn-light { border-color: var(--blanc); color: var(--blanc); }
.btn-light:hover { background: var(--blanc); color: var(--noir); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(25, 25, 25, 0.08);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(25, 25, 25, 0.08); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand img { width: 38px; height: 38px; }
.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand-dot { color: var(--or); }

.primary-nav { display: flex; align-items: center; gap: 1.8rem; }
.primary-nav > ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }

.primary-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--noir);
  padding: 0.4rem 0;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--or); }

.has-dropdown { position: relative; }
.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  position: absolute;
  top: 100%;
  left: -0.8rem;
  min-width: 250px;
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 0.55rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.6rem;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--noir);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(720px, 88vh);
  display: flex;
  align-items: center;
  color: var(--blanc);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(25, 25, 25, 0.82) 0%, rgba(25, 25, 25, 0.45) 45%, rgba(25, 25, 25, 0.08) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding-block: 4.5rem; }
.hero h1 { color: var(--blanc); }
.hero .lead { color: rgba(255, 255, 255, 0.85); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-compact { min-height: 320px; }
.hero-compact .hero-content { padding-block: 3rem; }

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; }
.section-sable { background: var(--sable); }
.section-noir { background: var(--noir); color: var(--ivoire); }
.section-noir .lead { color: rgba(250, 246, 239, 0.8); }
.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.chiffre-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--or);
  display: block;
  line-height: 1.1;
}
.chiffre-label { color: var(--taupe); font-size: 0.95rem; }

/* ---------- Grilles / cartes ---------- */
.grid-collections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.grid-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-produits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }

.card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(25, 25, 25, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--ombre); transform: translateY(-4px); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--taupe); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--or);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-link::after { content: "→"; transition: transform 0.25s; }
.card:hover .card-link::after { transform: translateX(4px); }

.card-produit .card-media { aspect-ratio: 1 / 1; }
.prix { font-weight: 700; font-size: 1.05rem; margin-top: 0.4rem; }
.prix small { color: var(--taupe); font-weight: 500; font-size: 0.82rem; }

/* ---------- Article éditorial ---------- */
.article { max-width: 780px; margin-inline: auto; }
.article img { border-radius: var(--radius); margin-block: 1.6rem; }
.article p, .article ul, .article ol { color: var(--noir-doux); }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.8rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: 0.5rem; }

.meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--taupe); font-size: 0.85rem; margin-bottom: 1rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or);
  background: var(--sable);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(25, 25, 25, 0.05);
  margin-bottom: 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.2rem 1.5rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--or);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.5rem 1.3rem; color: var(--taupe); }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--noir);
  background: var(--blanc);
  border: 1px solid rgba(25, 25, 25, 0.18);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
  outline: none;
}

.form-note { font-size: 0.85rem; color: var(--taupe); }

/* ---------- Contacts / coordonnées ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.coord-list { list-style: none; padding: 0; margin: 0; }
.coord-list li { padding: 0.55rem 0; border-bottom: 1px solid rgba(25, 25, 25, 0.08); display: flex; gap: 0.8rem; }
.coord-list strong { min-width: 110px; display: inline-block; color: var(--or); font-weight: 600; font-size: 0.9rem; }
.map-embed { border: 0; width: 100%; min-height: 340px; border-radius: var(--radius); }

/* ---------- CTA / bandeau final ---------- */
.cta-band {
  text-align: center;
  background: var(--noir);
  color: var(--ivoire);
  border-radius: 18px;
  padding: 3.5rem 2rem;
}
.cta-band h2 { color: var(--blanc); }
.cta-band .lead { color: rgba(250, 246, 239, 0.8); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ---------- Témoignage ---------- */
.temoignage { max-width: 680px; margin-inline: auto; text-align: center; }
.temoignage blockquote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 1.2rem;
}
.temoignage .avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.6rem; object-fit: cover; }
.temoignage cite { font-style: normal; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--noir); color: rgba(250, 246, 239, 0.78); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: var(--or-clair); font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.55rem; }
.footer-nav a { font-size: 0.94rem; }
.footer-nav a:hover { color: var(--or-clair); }
.footer-brand .brand-text { color: var(--blanc); }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.footer-contact li { margin-bottom: 0.55rem; }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  padding-block: 1.4rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}
.footer-bottom a:hover { color: var(--or-clair); }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-produits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--ivoire);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.2rem 1.5rem 1.6rem;
    box-shadow: var(--ombre);
    border-bottom: 1px solid rgba(25, 25, 25, 0.08);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .primary-nav > ul > li { border-bottom: 1px solid rgba(25, 25, 25, 0.06); }
  .primary-nav a { display: block; padding: 0.85rem 0; }
  .primary-nav a::after { display: none; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent;
    box-shadow: none;
    display: none;
    padding: 0 0 0.6rem 1rem;
  }
  .has-dropdown.open .dropdown { display: block; }
  .btn-nav { margin-top: 1rem; justify-content: center; }
  .grid-collections, .grid-articles, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 620px; }
}

@media (max-width: 600px) {
  .grid-produits { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding-block: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
