/* ============================================================
   EMILIE — CSS pages légales (Suisse · Boudry)
   Palette : terre sacrée + forêt profonde + lumière dorée
   ============================================================ */

:root {
  --terre-sacree:      #C17A5A;
  --terre-sacree-dark: #A05E40;
  --foret-profonde:    #7A9E87;
  --foret-profonde-dark: #5C7E69;
  --lumiere-doree:     #D4AF6A;
  --lumiere-doree-soft: #EFD9A8;
  --ame-violette:      #8B7BA0;
  --souffle-ivoire:    #F5F0E8;
  --souffle-ivoire-deep: #EBE3D3;
  --texte-principal:   #3A2E26;
  --texte-doux:        #6B5848;
  --gris-discret:      #8B7E72;
  --bordure:           rgba(193, 122, 90, 0.18);
  --bordure-gold:      rgba(212, 175, 106, 0.30);
}

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

html, body {
  background: var(--souffle-ivoire);
  color: var(--texte-principal);
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  padding: 60px 20px 80px;
  background-image:
    radial-gradient(ellipse at 18% 8%, rgba(212, 175, 106, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 92%, rgba(122, 158, 135, 0.06) 0%, transparent 50%);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  background: #FDFBF6;
  padding: 60px clamp(24px, 5vw, 76px) 56px;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(58, 46, 38, 0.04),
    0 6px 18px -2px rgba(58, 46, 38, 0.08),
    0 18px 48px -10px rgba(58, 46, 38, 0.10);
  border: 1px solid var(--bordure);
  position: relative;
}

/* Liseré doré supérieur */
.container::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lumiere-doree), transparent);
}

/* Breadcrumb */
.breadcrumb {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-discret);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--foret-profonde); text-decoration: none; transition: color 300ms; }
.breadcrumb a:hover { color: var(--terre-sacree); }
.breadcrumb .sep { color: var(--lumiere-doree); opacity: 0.65; }
.breadcrumb .current { color: var(--texte-doux); }

/* Brand mark */
.brand {
  font-family: 'Manrope', sans-serif;
  color: var(--foret-profonde-dark);
  letter-spacing: 0.32em;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand::before { content: "❋"; color: var(--lumiere-doree); font-size: 14px; }

/* Titre principal */
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--texte-principal);
  margin-bottom: 8px;
  letter-spacing: 0.005em;
  line-height: 1.15;
}
h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--terre-sacree) 0%, var(--lumiere-doree) 50%, var(--terre-sacree-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--texte-doux);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  margin-bottom: 36px;
  font-size: 1.15rem;
  line-height: 1.45;
}

/* H2 sections numérotées */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.005em;
  color: var(--terre-sacree-dark);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bordure-gold);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
h2 .num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7em;
  color: var(--lumiere-doree);
  letter-spacing: 0.1em;
  font-weight: 600;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--foret-profonde-dark);
  margin: 28px 0 10px;
}

p { margin-bottom: 14px; color: var(--texte-doux); }
p strong { color: var(--texte-principal); font-weight: 600; }

ul, ol { margin: 14px 0 18px 26px; }
li { margin-bottom: 8px; color: var(--texte-doux); }
li::marker { color: var(--lumiere-doree); }

a { color: var(--terre-sacree-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--bordure-gold); transition: color 300ms; }
a:hover { color: var(--terre-sacree); text-decoration-color: var(--terre-sacree); }

/* Encadrés */
.notice {
  background: linear-gradient(135deg, rgba(212, 175, 106, 0.10), rgba(245, 240, 232, 0.50));
  border-left: 3px solid var(--lumiere-doree);
  padding: 20px 26px;
  border-radius: 8px;
  margin: 26px 0;
}
.notice p { color: var(--texte-doux); margin-bottom: 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--terre-sacree-dark); }

.warn {
  background: linear-gradient(135deg, rgba(193, 122, 90, 0.07), rgba(245, 240, 232, 0.40));
  border-left: 3px solid var(--terre-sacree);
  padding: 20px 26px;
  border-radius: 8px;
  margin: 26px 0;
  color: var(--texte-doux);
}
.warn strong { color: var(--terre-sacree-dark); font-weight: 600; }

.info {
  background: linear-gradient(135deg, rgba(122, 158, 135, 0.08), rgba(245, 240, 232, 0.40));
  border-left: 3px solid var(--foret-profonde);
  padding: 20px 26px;
  border-radius: 8px;
  margin: 26px 0;
}
.info strong { color: var(--foret-profonde-dark); }

/* Tableau données */
table.legal {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.95rem;
}
table.legal td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bordure-gold);
  vertical-align: top;
  color: var(--texte-doux);
}
table.legal td:first-child {
  color: var(--gris-discret);
  width: 38%;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
table.legal td strong { color: var(--texte-principal); }

/* Placeholders — données en cours d'établissement (Emilie · 2026) */
.placeholder {
  display: inline-block;
  padding: 1px 0;
  color: #8b7d6b;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.94em;
  font-style: italic;
  letter-spacing: 0.01em;
  border-bottom: 1px dotted rgba(212, 175, 106, 0.55);
}
.placeholder::before { content: "· "; color: var(--lumiere-doree, #D4AF6A); font-style: normal; opacity: 0.85; }

/* Méta version */
.meta {
  font-size: 0.86rem;
  color: var(--gris-discret);
  font-style: italic;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--bordure-gold);
}

/* Bouton retour */
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--foret-profonde), var(--foret-profonde-dark));
  color: var(--souffle-ivoire);
  text-decoration: none;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px -4px rgba(122, 158, 135, 0.42);
  transition: all 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.back:hover {
  background: linear-gradient(135deg, var(--terre-sacree), var(--terre-sacree-dark));
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 14px 36px -6px rgba(193, 122, 90, 0.50),
    0 0 0 1px rgba(212, 175, 106, 0.45);
}
.back::before { content: "←"; font-size: 16px; }

/* Lien retour secondaire entre pages légales */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--bordure-gold);
  font-size: 13px;
}
.legal-nav a {
  color: var(--foret-profonde-dark);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.04em;
}
.legal-nav a:hover { color: var(--terre-sacree); text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  body { padding: 30px 12px 60px; font-size: 15px; }
  .container { padding: 36px 22px 36px; border-radius: 10px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; flex-wrap: wrap; }
  table.legal td { display: block; width: 100% !important; padding: 6px 0; border-bottom: none; }
  table.legal td:first-child { padding-top: 12px; border-top: 1px solid var(--bordure-gold); }
}
