
.page-legale {
  --accent: #7f0000;
  --beige: #f3ebdd;
  --ivory: #fcf8f1;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --card: #ffffff;
  --ring: rgba(127, 0, 0, 0.25);

  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-sm: 0 8px 24px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 36px rgba(0,0,0,0.06);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  background: var(--ivory);
  color: var(--text);
  font-family: 'Urbanist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* espace sous header fixe (80px) */
.header-spacer { height: 84px; }

body {
  background-color: #fcf8f1;
}

/* Hero élégant */
.legal-hero {
  background: linear-gradient(180deg, #fff 0%, var(--ivory) 100%);
  padding: 76px 6% 42px;
  text-align: center;
}
.legal-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  letter-spacing: .2px;
  color: var(--accent);
  margin: 0 0 10px;
}
.legal-hero .subtitle {
  font-size: clamp(.95rem, 1.1vw, 1rem);
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto;
}

/* Fil d’Ariane */
.breadcrumb {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  font-size: .92rem;
  color: var(--muted);
}
.breadcrumb a {
  color: inherit; text-decoration: none; position: relative; transition: color .2s ease;
}
.breadcrumb a:hover { color: #444; }
.breadcrumb a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; opacity: .6;
}
.breadcrumb .sep { opacity: .5; }

/* Layout principal + Sommaire sticky */
.legal-shell { display: grid; grid-template-columns: 1fr minmax(0, 920px) 1fr; }
.legal-container { grid-column: 2; padding: var(--space-6) 6% 96px; }

.legal-toc {
  grid-column: 1 / span 1;
  justify-self: end;
  align-self: start;
  position: sticky; top: 110px;
  max-width: 260px; margin-right: 24px; padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(127,0,0,.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.legal-toc h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--accent); margin: 2px 0 10px;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li + li { margin-top: 8px; }
.legal-toc a {
  font-size: .96rem; text-decoration: none; color: #444; position: relative;
}
.legal-toc a:hover { color: var(--accent); }

/* Cartes de section */
.legal-section {
  background: var(--card);
  border: 1px solid rgba(127, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.legal-section + .legal-section { margin-top: 18px; }
.legal-section:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.section-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.section-head .rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(127,0,0,.25), rgba(127,0,0,.05));
}
.article-number {
  display: inline-grid; place-items:center; width: 34px; height: 34px; margin-right: 8px;
  border-radius: 50%; background: var(--beige); color: var(--accent);
  font-weight: 700; font-size: .95rem; border: 1px solid rgba(127,0,0,.12);
}

/* Titres & texte */
.legal-section h2, .legal-section h3 {
  font-family: 'Playfair Display', serif; font-weight: 600; color: var(--accent); margin: 4px 0 8px;
}
.legal-section h2 { font-size: clamp(1.28rem, 2.2vw, 1.7rem); }
.legal-section h3 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #7a1f1f; }
.legal-section p, .legal-section li { font-size: clamp(.98rem, 1.15vw, 1.04rem); margin: 0 0 10px; }
.legal-section p + p { margin-top: 6px; }
.small { font-size: .9rem; opacity: .85; }

/* Listes & tableaux */
.legal-list { padding-left: 1.2rem; margin: 8px 0 4px; }
.legal-list li { margin: 6px 0; }

.legal-table {
  width: 100%; border-collapse: collapse; margin: 8px 0 2px; font-size: .98rem; overflow: hidden; border-radius: var(--radius-md);
}
.legal-table thead th {
  background: linear-gradient(180deg, #fff, #fffaf6);
  border-bottom: 1px solid rgba(127,0,0,.12);
}
.legal-table th, .legal-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(127,0,0,.08); }
.legal-table th { font-family: 'Playfair Display', serif; color: var(--accent); font-weight: 600; }

/* Notices */
.notice { border-radius: var(--radius-md); padding: 14px 16px; font-size: .96rem; border: 1px solid rgba(127,0,0,.12); }
.notice--beige { background: var(--beige); }
.notice--soft  { background: linear-gradient(0deg, #fff, #fff) padding-box,
                           linear-gradient(90deg, rgba(127,0,0,.12), rgba(127,0,0,0)) border-box; }

/* Liens élégants */
.legal-section a { color: var(--accent); text-decoration: none; position: relative; outline: none; }
.legal-section a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; opacity: .45; transition: right .25s ease, opacity .2s ease;
}
.legal-section a:hover::after, .legal-section a:focus-visible::after { right: 0; opacity: .85; }

/* Accordéons (details/summary) */
.legal-accordion details {
  border: 1px solid rgba(127,0,0,.1); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); margin: 10px 0;
}
.legal-accordion summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--accent);
}
.legal-accordion summary::-webkit-details-marker { display: none; }
.legal-accordion details[open] summary { border-bottom: 1px solid rgba(127,0,0,.08); }
.legal-accordion .accordion-body { padding: 14px 16px; }

/* Badge & chips */
.legal-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
  background: rgba(127,0,0,.06); border: 1px solid rgba(127,0,0,.12); color: #7a1f1f; font-size: .88rem;
}

/* Divider */
.legal-divider { height: 1px; margin: 36px 0 6px; background: linear-gradient(90deg, rgba(127,0,0,.12), rgba(127,0,0,.02)); }

/* Bouton retour haut */
.legal-back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(127,0,0,.35); border: none; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease; z-index: 50;
}
.legal-back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.legal-back-to-top:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

/* Focus visible */
.legal-section :where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px;
}

/* Apparition douce */
.section-appear { opacity: 0; transform: translateY(14px); animation: appear .6s ease forwards; }
@keyframes appear { to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1200px) {
  .legal-shell { grid-template-columns: 1fr minmax(0, 920px); }
  .legal-toc { display: none; }
}
@media (max-width: 720px) {
  .legal-hero { padding: 60px 6% 32px; }
  .legal-container { padding: 32px 6% 80px; }
  .legal-section { border-radius: var(--radius-md); }
}

/* Impression */
@media print {
  .legal-back-to-top, .breadcrumb, .legal-toc { display: none !important; }
  .page-legale { background: #fff !important; color: #000; }
  .legal-section { box-shadow: none !important; border-color: #ddd; break-inside: avoid; page-break-inside: avoid; }
  .legal-hero { padding: 0 0 12px; }
}


/* === Champ SELECT "Pays" — même style que les inputs === */
.checkout-page select[name="country"] {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid #e5e2db;
  border-radius: 12px;
  background: #fff;
  color: #2f2a26;
  font-family: 'Urbanist', sans-serif;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
  cursor: pointer;

  /* flèche bordeaux identique au style Céracotta */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%237f0000' height='22' viewBox='0 0 24 24' width='22' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

/* Focus et survol : même effet que les inputs */
.checkout-page select[name="country"]:focus {
  outline: none;
  border-color: #7f0000;
  box-shadow: 0 0 0 3px rgba(127, 0, 0, 0.12);
  background: #f6f9ff; /* même effet bleu clair que tes champs actifs */
}

.checkout-page select[name="country"]:hover {
  border-color: rgba(127, 0, 0, 0.3);
}

/* Texte placeholder (option désactivée) */
.checkout-page select[name="country"]:invalid {
  color: #9a9086;
}

/* Uniformise les labels */
.checkout-page label span[data-i18n="field.country"] {
  display: block;
  margin-bottom: 6px;
  color: #7b6c60;
  font-weight: 600;
  font-size: 0.96rem;
  font-family: 'Playfair Display', serif;
}

/* Compatibilité Chrome autofill (même couleur que les autres champs) */
.checkout-page select[name="country"]:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #f6f9ff inset !important;
  -webkit-box-shadow: 0 0 0px 1000px #f6f9ff inset !important;
  border-color: #7f0000 !important;
}
