/* ==============================================================================
   LUXODERME - High-End Editorial Design System
   Charte Graphique Officielle, Architecture Épurée & Minimaliste
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ── 1. Charte Graphique Officielle Luxoderme ── */
  --color-beige: #f6f1e9;                         /* Fond principal apaisant issu du logo */
  --color-surface: #fcfaf6;                       /* Fond secondaire légèrement plus clair (alternance de sections et cartes) */
  --color-gold: #caa151;                          /* Doré officiel du logo (filets 1px, icônes, accents) */
  --color-gold-border: rgba(202, 161, 81, 0.32);   /* Filet doré subtil officiel */
  --color-blue: #0a1c3b;                          /* Bleu nuit officiel (titres, boutons principaux, footer) */
  --color-text-muted: #2C3A4F;                    /* Corps de texte ultra-net à fort contraste */

  --ivory: #f6f1e9;
  --font-sans: var(--sans);
  --font-serif: var(--serif);

  /* ── 2. Polices d'Écriture Officielles (Google Fonts) ── */
  --serif: 'Lora', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── 3. Fonds & Surfaces Épurés ── */
  --cream: var(--color-beige);
  --cream-card: var(--color-surface);
  --cream-subtle: #eee7db;
  --cream-border: var(--color-gold-border);
  --surface-alt: #f1eae0;
  --white: #ffffff;

  /* ── 4. Bleu Nuit & Déclinaisons ── */
  --navy: var(--color-blue);
  --navy-deep: #061226;
  --navy-light: #12294e;
  --navy-surface: #17325d;

  /* ── 5. Doré Officiel & Nuances Subtiles ── */
  --gold: var(--color-gold);
  --gold-hover: #b88f40;
  --gold-light: #fbf5ea;
  --gold-soft: rgba(202, 161, 81, 0.12);
  --gold-glow: rgba(202, 161, 81, 0.25);
  --gold-gradient: linear-gradient(135deg, #e4c688 0%, #caa151 50%, #a07a30 100%);

  /* ── 6. Textes & Hiérarchie Typographique ── */
  --text-dark: var(--color-blue);
  --text-muted: var(--color-text-muted);
  --text-light: #737b8b;
  --text-on-dark: #fcfaf6;
  --text-muted-dark: rgba(252, 250, 246, 0.78);

  /* ── 7. Pôle Médical Référent ── */
  --medical-blue: #143e75;
  --medical-light: #ebf3fc;
  --medical-border: rgba(20, 62, 117, 0.22);

  /* ── 8. Typographie (Alias de Rétro-Compatibilité) ── */
  --font-serif: var(--serif);
  --font-sans: var(--sans);

  /* ── 9. Grille, Structure & Espacements ── */
  --max-w: 1240px;
  --max-w-narrow: 860px;
  --header-height: 70px;
  --top-bar-height: 38px;

  /* ── 10. Bordures & Rayons Géométriques Nets (8px / 12px) ── */
  --radius: 8px;
  --radius-lg: 12px;
  --border-gold: 1px solid var(--color-gold-border);

  /* ── 11. Ombres & Profondeur Minimalistes (Sans ombres lourdes) ── */
  --shadow-subtle: 0 2px 12px rgba(10, 28, 59, 0.04);
  --shadow-card: 0 4px 18px rgba(10, 28, 59, 0.05);
  --shadow-hover: 0 8px 24px rgba(10, 28, 59, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 28, 59, 0.08);
  --shadow-gold: 0 4px 16px rgba(202, 161, 81, 0.22);
  --shadow-dark: 0 16px 40px rgba(6, 18, 38, 0.35);

  /* ── 12. Transitions & Courbes d'Animation Premium ── */
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==============================================================================
   Reset & Base Architecturale
   ============================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #0a1c3b;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--sans);
  color: var(--color-blue);
  background-color: var(--color-beige);
  line-height: 1.7;
  overflow-x: clip;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
}

body.has-solid-header {
  padding-top: 136px;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ==============================================================================
   Typographie Éditoriale
   ============================================================================== */
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--color-blue);
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3,
h4,
h5,
h6 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-blue);
}

h3 {
  font-size: clamp(1.18rem, 1.5vw, 1.38rem);
  line-height: 1.35;
}

h4 {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.4;
}

h5,
h6 {
  font-size: 1rem;
  line-height: 1.45;
}

blockquote,
q,
cite {
  font-family: var(--serif);
  font-weight: 400;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

p {
  color: #2C3A4F;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 64ch;
  margin-bottom: 1rem;
}

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-header p,
.hero-content p {
  margin-left: 0;
  margin-right: auto;
}

p strong,
li strong {
  color: var(--color-blue);
  font-weight: 600;
}

/* Rétablissement du blanc éclatant pour les emphases sur fonds sombres (Navy, Hero, Beautykare, Footer, Cartes sombres) */
.hero strong,
.hero p strong,
.hero li strong,
.hero-desc strong,
.hero-tagline strong,
.hero-editorial strong,
.hero-editorial p strong,
.hero-editorial li strong,
.section-navy strong,
.section-navy p strong,
.section-navy li strong,
.beautykare-card strong,
.beautykare-card p strong,
.beautykare-card li strong,
.site-footer strong,
.site-footer p strong,
.site-footer li strong,
.calculator-summary-bar strong,
.calculator-summary-bar p strong,
.toast-notice strong,
.toast-notice p strong,
[style*="#0A1C3B"] strong,
[style*="#0a1c3b"] strong,
[style*="#11264B"] strong,
[style*="#17325D"] strong {
  color: var(--white);
  font-weight: 600;
}

p.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 300;
  line-height: 1.75;
}

.text-gold {
  color: var(--color-gold);
}

.text-serif {
  font-family: var(--serif);
}

.text-sans {
  font-family: var(--sans);
}

.text-center {
  text-align: center;
}

.text-italic {
  font-style: italic;
}

/* ==============================================================================
   Conteneurs & Alternance des Sections (Structure Aplat Pur)
   ============================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: clamp(65px, 8vw, 115px);
  padding-bottom: clamp(65px, 8vw, 115px);
  position: relative;
  scroll-margin-top: 80px;
}

.section-sm {
  padding-top: clamp(40px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 70px);
}

/* Fond Principal Beige issu du logo */
.section-cream,
.section-beige {
  background-color: var(--color-beige);
}

/* Fond Secondaire Surface Légèrement plus clair */
.section-white,
.section-surface {
  background-color: var(--color-surface);
}

/* Section Bleu Nuit Officiel */
.section-navy {
  background-color: var(--color-blue);
  color: var(--text-on-dark);
}

.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy p {
  color: var(--text-muted-dark);
}

/* ==============================================================================
   En-tête de section centré
   ============================================================================== */
.section-header {
  text-align: left;
  max-width: 48rem;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header .pill-tag {
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 12px;
}

.section-header .gold-separator {
  margin-left: 0;
  margin-right: auto;
  margin-top: 14px;
  margin-bottom: 20px;
  transform-origin: left center;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  margin-left: 0;
  margin-right: auto;
  max-width: 660px;
}

/* ==============================================================================
   Badges, Pills & Séparateur Or
   ============================================================================== */
.pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  text-transform: uppercase;
  color: #8A6623;
  background: rgba(202, 161, 81, 0.16);
  border: 1px solid rgba(202, 161, 81, 0.45);
  padding: 6px 14px;
  border-radius: 999px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}

.pill-tag.pill-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(202, 161, 81, 0.35);
  color: var(--color-gold);
}

.pill-tag.pill-medical {
  color: var(--medical-blue);
  background: var(--medical-light);
  border-color: var(--medical-border);
}

/* Séparateur Or Éditorial */
.gold-separator {
  width: 48px;
  height: 2px;
  background: var(--gold-gradient);
  border: none;
  margin: 18px 0 24px;
  transform-origin: left center;
}

.gold-separator.center {
  margin-left: 0;
  margin-right: auto;
  transform-origin: left center;
}

.text-center .section-header,
.section-header.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.text-center .section-header .pill-tag,
.section-header.text-center .pill-tag {
  margin-left: auto;
  margin-right: auto;
}

.text-center .section-header .gold-separator,
.section-header.text-center .gold-separator,
.text-center .gold-separator,
.text-center .gold-separator.center {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center center;
}

.text-center .section-header p,
.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.reveal .gold-separator {
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.reveal.visible .gold-separator,
.reveal.is-revealed .gold-separator {
  transform: scaleX(1);
  opacity: 1;
}

/* ==============================================================================
   Boutons Haut de Gamme (Pilules V0)
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 999px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid transparent;
}

/* Suppression stricte de tout pseudo-élément de reflet sur les boutons du header */
.site-header .btn-gold::after,
.site-header .btn-nav-gold::after,
.btn-nav-gold::after,
.btn-nav-action::after {
  content: none !important;
  display: none !important;
}

/* Bouton Bleu Nuit Officiel (Principal) */
.btn-navy {
  background: var(--color-blue);
  color: #ffffff;
  border: 1px solid var(--color-blue);
  border-radius: 999px;
  box-shadow: var(--shadow-subtle);
}

.btn-navy:hover {
  background: var(--color-gold);
  color: var(--color-blue);
  border-color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-navy:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100% !important;
}

/* Bouton Doré Dégradé Or Brossé V0 */
.btn-gold {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #e3c783 0%, #caa151 38%, #b78a3a 62%, #d9b66a 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 10px 30px -12px rgb(202 161 81 / 0.6);
  color: #0a1c3b !important;
  font-weight: 600;
  border: 1px solid rgba(202, 161, 81, 0.45);
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 14px 34px -10px rgb(202 161 81 / 0.7);
  color: #0a1c3b !important;
}

.btn-gold:active {
  transform: scale(0.98);
}

.btn-nav-gold {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #e3c783 0%, #caa151 38%, #b78a3a 62%, #d9b66a 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 10px 30px -12px rgb(202 161 81 / 0.6);
  color: #0a1c3b !important;
  font-weight: 600;
  border: 1px solid rgba(202, 161, 81, 0.45);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.btn-nav-gold:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(202, 161, 81, 0.65);
  color: #0a1c3b !important;
}

.btn-nav-gold:active {
  transform: scale(0.98);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 999px;
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-blue);
  transform: translateY(-1px);
}

.btn-outline-gold:active {
  transform: scale(0.98);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--color-blue);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white:active {
  transform: scale(0.98);
}

.btn-outline-navy {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
  border-radius: 999px;
}

.btn-outline-navy:hover {
  background: var(--color-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-navy:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ==============================================================================
   Cadres Photographiques Éditoriaux (Lucie, Salon Privé, Hero)
   ============================================================================== */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gold-border);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-editorial);
}

.photo-frame:hover img {
  transform: scale(1.03);
}

/* ==============================================================================
   Système d'Animation de Scroll Reveal (Fluide & Organique)
   ============================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible,
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.07s;
}

.delay-2 {
  transition-delay: 0.14s;
}

.delay-3 {
  transition-delay: 0.21s;
}

.delay-4 {
  transition-delay: 0.28s;
}

.delay-5 {
  transition-delay: 0.35s;
}

@media (max-width: 767px) {
  .delay-1,
  .delay-2,
  .delay-3,
  .delay-4,
  .delay-5 {
    transition-delay: 0s !important;
  }
}

/* ==============================================================================
   Grilles & Utilitaires Flex
   ============================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Classes d'utilitaires pour sauts de ligne conditionnels dans les badges */
.pill-br-mobile {
  display: none;
}
.pill-sep {
  display: inline;
}

@media (max-width: 768px) {
  .pill-br-mobile {
    display: block;
  }
  .pill-sep {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Protection anti-débordement des badges & pill-tags sur mobile */
  .pill-tag {
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    min-width: 0;
    line-height: 1.4;
    letter-spacing: 0.6px;
    text-indent: 0;
    padding: 6px 14px;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: center;
  }
}

.site-footer {
  margin-bottom: 0 !important;
}

/* ==============================================================================
   Accessibilité & Préférence Mouvement Réduit
   ============================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reveal .gold-separator {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

}
