/* ============================================================
   style.css — Ducat Patrimoine
   Charte validée — Avril 2026
   ============================================================ */

/* ── FONTS ──────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-Italic-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-VariableFont_opsz_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans-Italic-VariableFont_opsz_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── VARIABLES ──────────────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --bleu:       #001F3D;   /* Primary — bleu nuit */
  --bleu-h:     #003366;   /* Primary hover */
  --or:         #D9AE43;   /* Featured — or */
  --or-h:       #c09a2e;   /* Featured hover — or doux */
  --blanc:      #FFFFFF;   /* Base */

  /* Famille chaude — fonds et surfaces */
  --gris:       #f4efe6;   /* Fond de page — crème chaud */
  --or-pale:    #ede0c4;   /* Surface secondaire — sable or */
  --input:      #FAFAF8;   /* Fond de champ formulaire */

  /* Famille froide — textes et bordures */
  --texte:      #2c2c2c;   /* Corps de texte */
  --muted:      #3C5B74;   /* Mono3 — bleu ardoise, textes secondaires */
  --clair:      #B5C3CC;   /* Mono4 — bleu-gris ciel, labels discrets */
  --bordure:    #d4c9b5;   /* Bordure sable — famille chaude */

  /* Couleurs éditoriales — blog / catégories */
  --azur:       #00C4CC;   /* Accent éditorial froid */
  --terracotta: #bd9479;   /* Accent éditorial chaud — cards blog */

  /* Règle d'usage eyebrow :
     fond sombre → --clair
     fond clair  → --muted  */
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--blanc);
  color: var(--texte);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAVIGATION ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bleu);
  background-image: url('images/BleuDamas.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--or);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
}
.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--or);
  letter-spacing: 0.4px;
  line-height: 1;
}
.nav-brand-tag {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-top: 5px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: var(--or); }
.nav-links a.active {
  color: var(--or);
  border-bottom: 1px solid var(--or);
  padding-bottom: 1px;
}
.nav-cta {
  background: var(--or);
  color: var(--bleu);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--or-h); }

/* ── HAMBURGER ──────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--or);
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── MENU MOBILE ────────────────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bleu);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 80%;
  text-align: center;
  transition: color .2s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--or); }
.nav-mobile-cta {
  margin-top: 32px;
  background: var(--or);
  color: var(--bleu);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* ── BOUTONS ────────────────────────────────────────────────────── */
.btn-gold {
  background: var(--or);
  color: var(--bleu);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 13px 28px;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s;
}
.btn-gold:hover { background: var(--or-h); }

.btn-ghost-w {
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 13px 0;
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.btn-ghost-w:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.6);
}

/* ── TARTEAUCITRON ──────────────────────────────────────────────── */
#tarteaucitronRoot #tarteaucitron { background: var(--bleu) !important; }
#tarteaucitronRoot .tarteaucitronH2 { color: var(--or) !important; }
#tarteaucitronRoot #tarteaucitronPersonalize2,
#tarteaucitronRoot #tarteaucitronAllowed {
  background: var(--or) !important;
  color: var(--bleu) !important;
}
#tarteaucitronRoot #tarteaucitronClosePanel { background: var(--bleu) !important; }
#tarteaucitronAlertBig {
  background: var(--bleu) !important;
  border-top: 2px solid var(--or) !important;
}
#tarteaucitronAlertBig #tarteaucitronPrivacyUrl { color: var(--or) !important; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer { background: var(--bleu); padding: 56px; display: grid; grid-template-columns: 1.5fr 1fr 0.5fr; gap: 48px; align-items: start; border-top: 1px solid var(--or); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-top { display: flex; flex-direction: row; align-items: center; gap: 18px; }
.footer-logo { width: 108px; height: 108px; object-fit: contain; flex-shrink: 0; }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 300; font-style: italic; color: rgba(255,255,255,0.50); line-height: 1.5; max-width: 280px; }
.footer-tagline em { font-style: normal; color: var(--or); opacity: 0.85; }
.footer-nav { display: flex; flex-direction: column; gap: 0; }
.footer-nav-bar { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0; }
.footer-nav-bar .sep { font-size: 11px; color: rgba(255,255,255,0.15); padding: 0 10px; user-select: none; }
.footer-dropdown { position: relative; }
.footer-dropdown-btn { background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.55); padding: 0; display: flex; align-items: center; gap: 5px; transition: color .2s; }
.footer-dropdown-btn:hover { color: var(--or); }
.footer-dropdown-arrow { font-size: 9px; transition: transform .2s; display: inline-block; }
.footer-dropdown.open .footer-dropdown-arrow { transform: rotate(180deg); }
.footer-dropdown-menu { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; background: #0a2d50; border: 1px solid rgba(255,255,255,0.10); border-bottom: 2px solid var(--or); min-width: 160px; z-index: 200; flex-direction: column; }
.footer-dropdown.open .footer-dropdown-menu { display: flex; }
.footer-dropdown-menu a { font-size: 12px; color: rgba(255,255,255,0.60); padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color .2s, background .2s; }
.footer-dropdown-menu a:last-child { border-bottom: none; }
.footer-dropdown-menu a:hover { color: var(--or); background: rgba(255,255,255,0.04); }
.footer-legal-links { display: flex; flex-direction: row; align-items: center; gap: 0; }
.footer-legal-links a { font-size: 11px; letter-spacing: 0.5px; color: rgba(255,255,255,0.35); transition: color .2s; white-space: nowrap; }
.footer-legal-links a:hover { color: var(--or); }
.footer-social { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.footer-bottom { background: var(--bleu); border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 56px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.footer-bottom-reg { font-size: 10px; color: rgba(255,255,255,0.25); line-height: 1.8; letter-spacing: 0.3px; }
.footer-bottom-copy { font-size: 10px; color: rgba(255,255,255,0.18); margin-top: 4px; }

/* ── FORMULAIRES ────────────────────────────────────────────────── */
.form-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--bordure);
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--texte);
  border-radius: 0;
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--muted);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-group { margin-bottom: 20px; }

/* ── UTILITAIRES TYPOGRAPHIQUES ─────────────────────────────────── */
.eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}
/* Usage : fond sombre → color: var(--clair) / fond clair → color: var(--muted) */

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  color: var(--bleu);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--or);
}
.divider-or {
  width: 40px;
  height: 1px;
  background: var(--or);
  margin: 16px 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .footer { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .footer-nav-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-nav-bar .sep { display: none; }
  .footer-legal-links { flex-direction: column; gap: 8px; }
  .footer-dropdown-menu { bottom: auto; top: calc(100% + 8px); }
  .footer-social { align-items: flex-start; }
  .footer-bottom { padding: 20px 24px; }
}
