/* ==========================================================================
   Palette "Soleil du Sud" — Version ANIMÉE + DARK MODE + BACKGROUND HERO
   ========================================================================== */

:root {
  --navy-deep: #FBF8F2;
  --navy-mid: #F4EDE1;
  --navy-card: #FFFFFF;
  --navy-line: rgba(29, 90, 107, 0.12);
  --navy-overlay: rgba(30, 50, 55, 0.55);

  --cream: #2A2822;
  --cream-2: #1D5A6B;
  --cream-soft: rgba(29, 90, 107, 0.06);

  --gold: #C9A65B;
  --gold-dark: #A9862E;
  --gold-light: #E0BC78;
  --gold-glow: rgba(201, 166, 91, 0.32);
  --gold-gradient: linear-gradient(135deg, #E0BC78 0%, #C9A65B 55%, #A9862E 100%);

  --teal: #1D5A6B;
  --teal-dark: #14434F;
  --teal-soft: #2E7A8C;
  --teal-glow: rgba(29, 90, 107, 0.18);

  --terra: #E07856;
  --terra-light: #EE9372;
  --terra-dark: #C25A3A;
  --terra-glow: rgba(224, 120, 86, 0.28);
  --terra-gradient: linear-gradient(135deg, #EE9372 0%, #E07856 50%, #C25A3A 100%);

  --ink: #2A2822;
  --slate: #7A6E60;
  --border-color: rgba(29, 90, 107, 0.16);

  --serif-display: 'Playfair Display', Georgia, serif;
  --serif-body: 'EB Garamond', Georgia, serif;
  --sans-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --arabic-font: 'Amiri', serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 16px rgba(29, 90, 107, 0.06);
  --shadow-md: 0 12px 32px rgba(29, 90, 107, 0.1);
  --shadow-lg: 0 24px 48px rgba(29, 90, 107, 0.14);
  --shadow-glow: 0 0 24px var(--gold-glow);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
  --navy-deep: #0F2429;
  --navy-mid: #16333A;
  --navy-card: #1A3A44;
  --navy-line: rgba(111, 186, 201, 0.16);
  --navy-overlay: rgba(8, 20, 24, 0.75);
  --cream: #F0E9DA;
  --cream-2: #6FBAC9;
  --cream-soft: rgba(111, 186, 201, 0.08);
  --gold: #DDB877;
  --gold-dark: #C9A65B;
  --gold-light: #E8CA92;
  --gold-glow: rgba(221, 184, 119, 0.35);
  --teal: #6FBAC9;
  --teal-dark: #8DCAD6;
  --teal-soft: #4EA8BC;
  --terra: #EE9372;
  --terra-light: #F4AC8E;
  --terra-dark: #D97B58;
  --ink: #F0E9DA;
  --slate: #A8B0A8;
  --border-color: rgba(111, 186, 201, 0.22);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

html[dir="rtl"] { font-family: var(--arabic-font), var(--sans-ui); }

body {
  background-color: var(--navy-deep);
  color: var(--ink);
  font-family: var(--serif-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(224, 120, 86, 0.05), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(29, 90, 107, 0.05), transparent 45%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--terra); color: #FFFFFF; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-mid); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal), var(--terra));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--terra); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--terra), var(--gold));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.gold-text {
  background: var(--terra-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: goldShimmer 8s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--sans-ui);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--teal-dark);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}

.section-head.reveal.active h2::after {
  animation: underlineExpand 0.9s var(--ease-out) 0.4s forwards;
}

@keyframes underlineExpand {
  from { width: 0; opacity: 0; }
  to { width: 60px; opacity: 1; }
}

.section-sub { color: var(--slate); font-size: 1rem; }

/* ---------- ORNAMENT ---------- */
.ornament-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  color: var(--terra);
  max-width: 240px;
}

.ornament-line span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--terra), transparent);
  transform-origin: center;
  animation: ornamentDraw 1.2s var(--ease-out) 0.9s both;
}

@keyframes ornamentDraw {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.ornament-line svg {
  width: 16px;
  height: 16px;
  animation: ornamentStar 1.4s var(--ease-spring) 1.3s both;
}

@keyframes ornamentStar {
  0% { transform: rotate(-180deg) scale(0); opacity: 0; }
  70% { transform: rotate(20deg) scale(1.2); opacity: 1; }
  100% { transform: rotate(0) scale(1); opacity: 1; }
}

/* ---------- BUTTONS ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  isolation: isolate;
}

.cta-btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease-spring); }
.cta-btn:hover svg { transform: translateX(4px) scale(1.1); }

.primary-cta {
  background: var(--terra-gradient);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(224, 120, 86, 0.35);
  background-size: 200% auto;
  transition: background-position 0.5s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.primary-cta:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 14px 32px rgba(224, 120, 86, 0.5);
}

.secondary-cta {
  background: #FFFFFF;
  color: var(--teal);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.secondary-cta:hover {
  background: var(--cream-soft);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.shine-effect:hover::after { left: 100%; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: rippleAnim 0.7s linear;
  pointer-events: none;
  z-index: 2;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  animation: navDrop 0.8s var(--ease-out) both;
}

@keyframes navDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

header.nav.scrolled {
  background: rgba(251, 248, 242, 0.95);
  border-bottom-color: var(--border-color);
  box-shadow: 0 4px 24px rgba(29, 90, 107, 0.06);
}

[data-theme="dark"] header.nav { background: rgba(15, 36, 41, 0.75); }
[data-theme="dark"] header.nav.scrolled { background: rgba(15, 36, 41, 0.95); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.monogram { display: flex; flex-direction: column; line-height: 1; }

.monogram-mark {
  font-family: var(--serif-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.monogram-mark::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(224, 120, 86, 0.35), transparent);
  animation: logoShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoShine {
  0%, 70%, 100% { left: -100%; }
  45% { left: 150%; }
}

.monogram-mark span { color: var(--terra); }

.monogram-sub {
  font-family: var(--sans-ui);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-top: 2px;
  font-weight: 600;
}

nav.links {
  display: flex;
  gap: 32px;
  font-family: var(--sans-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

nav.links a {
  color: var(--slate);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

nav.links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terra);
  transition: width 0.35s var(--ease-out);
}

nav.links a:hover { color: var(--teal-dark); }
nav.links a:hover::after { width: 100%; }
nav.links a.nav-link-active { color: var(--terra); }
nav.links a.nav-link-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-select {
  background: #FFFFFF;
  color: var(--teal-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.72rem;
  font-family: var(--sans-ui);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lang-select:hover { border-color: var(--terra); transform: translateY(-1px); }
.lang-select option { background: #FFFFFF; color: var(--ink); }

.theme-btn {
  background: #FFFFFF;
  color: var(--terra);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
}

.theme-btn:hover {
  background: var(--cream-soft);
  transform: rotate(180deg) scale(1.05);
  border-color: var(--terra);
}

.theme-btn svg { width: 17px; height: 17px; transition: opacity 0.3s ease; }

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #FFFFFF;
  font-family: var(--sans-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 14px rgba(29, 90, 107, 0.22);
  position: relative;
  overflow: hidden;
}

.nav-cta-btn svg { width: 14px; height: 14px; }

.nav-cta-btn:hover {
  background: var(--terra);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(224, 120, 86, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--teal-dark);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- HERO ---------- */
.hero {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 120, 86, 0.08), transparent 65%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbFloat 16s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--terra-light), transparent 70%);
  top: -120px; left: -100px;
  opacity: 0.22;
}

.orb-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--teal-soft), transparent 70%);
  bottom: -80px; right: -80px;
  opacity: 0.18;
  animation-delay: -5s;
}

.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--gold-light), transparent 70%);
  top: 40%; right: 22%;
  opacity: 0.16;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -35px) scale(1.1); }
}

.hero-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portrait-container {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.portrait-frame {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-lg);
  padding: 7px;
  background: linear-gradient(135deg, var(--terra), var(--gold), var(--teal));
  background-size: 200% 200%;
  box-shadow: 0 30px 60px -20px rgba(29, 90, 107, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation:
    portraitEnter 1.3s var(--ease-spring) 0.2s both,
    portraitFloat 7s ease-in-out 1.5s infinite,
    frameGradient 10s ease-in-out infinite;
}

@keyframes portraitEnter {
  0% { opacity: 0; transform: scale(0.5) rotate(-15deg) translateY(60px); }
  60% { opacity: 1; transform: scale(1.08) rotate(4deg) translateY(-8px); }
  100% { opacity: 1; transform: scale(1) rotate(0) translateY(0); }
}

@keyframes portraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes frameGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 5px);
  filter: contrast(1.03) saturate(1.03);
  transition: transform 0.9s var(--ease-out), filter 0.4s ease;
}

.portrait-frame:hover .portrait-img {
  transform: scale(1.06);
  filter: contrast(1.05) saturate(1.1);
}

.portrait-ring {
  position: absolute;
  inset: -16px;
  border: 1.5px dashed rgba(224, 120, 86, 0.35);
  border-radius: calc(var(--radius-lg) + 16px);
  animation: ringRotate 32s linear infinite;
  pointer-events: none;
}

@keyframes ringRotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.portrait-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  color: var(--teal-dark);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: var(--sans-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 12px 24px -10px rgba(29, 90, 107, 0.25);
  animation:
    badgeEnter 0.7s var(--ease-spring) 1.2s both,
    badgePulse 3.5s ease-in-out 2s infinite;
}

@keyframes badgeEnter {
  from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.7); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 12px 24px -10px rgba(29, 90, 107, 0.25); }
  50% { box-shadow: 0 16px 32px -8px rgba(224, 120, 86, 0.45); }
}

.portrait-badge svg { width: 14px; height: 14px; color: var(--terra); }

.hero-content { display: flex; flex-direction: column; }

.eyebrow {
  font-family: var(--sans-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
  font-weight: 700;
  opacity: 0;
  animation: slideInLeft 0.9s var(--ease-out) 0.4s forwards;
}

.eyebrow-alt {
  color: var(--teal);
  font-size: 0.68rem;
  margin-bottom: 22px;
  letter-spacing: 0.18em;
  font-weight: 600;
  animation-delay: 0.55s;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

h1.name {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  color: var(--teal-dark);
  margin-bottom: 6px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: heroTitleIn 1.2s var(--ease-out) 0.6s forwards;
}

@keyframes heroTitleIn {
  0% { opacity: 0; transform: translateY(50px) scale(0.94); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.title-line {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--slate);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.1s forwards;
}

.tagline {
  font-size: 1rem;
  color: var(--ink);
  opacity: 0;
  max-width: 620px;
  margin-bottom: 26px;
  line-height: 1.7;
  animation: fadeUp 0.9s var(--ease-out) 1.25s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero-domains span {
  font-family: var(--sans-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--teal-dark);
  transition: all 0.3s var(--ease-spring);
  cursor: default;
  box-shadow: 0 2px 8px rgba(29, 90, 107, 0.04);
  opacity: 0;
  animation: pillIn 0.6s var(--ease-spring) forwards;
}

.hero-domains span:nth-child(1) { animation-delay: 1.4s; }
.hero-domains span:nth-child(2) { animation-delay: 1.5s; }
.hero-domains span:nth-child(3) { animation-delay: 1.6s; }
.hero-domains span:nth-child(4) { animation-delay: 1.7s; }

@keyframes pillIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.85); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-domains span:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(224, 120, 86, 0.2);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.85s forwards;
}

/* ---------- BACKGROUND IMAGE HERO (Desktop & Tablette uniquement) ---------- */
@media (min-width: 769px) {
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
  }

  [data-theme="dark"] .hero::before {
    opacity: 0.12;
    filter: brightness(1.2) contrast(0.9);
  }
}

/* ---------- LETTERHEAD ---------- */
.letterhead {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  position: relative;
  overflow: hidden;
}

.letterhead::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(224, 120, 86, 0.06), transparent);
  animation: letterheadSweep 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes letterheadSweep {
  0%, 60%, 100% { left: -100%; }
  40% { left: 150%; }
}

.letterhead-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--sans-ui);
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}

.lh-item { display: flex; align-items: center; gap: 8px; }

.lh-label {
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--terra);
  font-weight: 700;
}

.lh-val { color: var(--teal-dark); font-weight: 500; transition: color 0.2s ease; }
a.lh-val:hover { color: var(--terra); }

/* ---------- INTRO ---------- */
.intro-section { padding: 90px 0 40px; }

.intro-section2 {
  background: var(--cream-soft);
  padding: 50px 0 90px;
}

.intro-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  text-align: center;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(224, 120, 86, 0.05) 50%, transparent 70%);
  transition: left 1.2s ease;
  pointer-events: none;
}

.intro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--terra) inset;
}

.intro-card:hover::before { left: 100%; }

.intro-section2 .intro-card {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.quote-mark {
  font-family: var(--serif-display);
  font-size: 5.5rem;
  color: var(--terra);
  opacity: 0.35;
  line-height: 1;
  position: absolute;
  top: 16px; left: 34px;
  pointer-events: none;
  transition: all 0.5s var(--ease-spring);
}

.intro-card:hover .quote-mark {
  transform: scale(1.15) rotate(-8deg);
  opacity: 0.55;
}

.quote-mark.right { left: auto; right: 34px; }
.intro-card:hover .quote-mark.right {
  transform: scale(1.15) rotate(8deg);
}

.intro-text {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.42rem);
  color: var(--teal-dark);
  line-height: 1.65;
  margin-bottom: 22px;
}

.quote-author {
  font-family: var(--sans-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 700;
}

/* ---------- VALUES ---------- */
.values-section { padding: 40px 0 90px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.value-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--teal));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--terra);
  box-shadow: var(--shadow-lg);
}

.value-card:hover::before {
  transform: scaleX(1);
  animation: borderTrace 3s linear infinite;
}

@keyframes borderTrace {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.value-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--terra);
  padding: 12px;
  background: linear-gradient(135deg, rgba(224, 120, 86, 0.12), rgba(201, 166, 91, 0.08));
  border-radius: 50%;
  transition: all 0.5s var(--ease-spring);
}

.value-card:hover .value-icon {
  transform: scale(1.15) rotate(-10deg);
  color: var(--teal);
  background: linear-gradient(135deg, rgba(29, 90, 107, 0.15), rgba(224, 120, 86, 0.1));
}

.value-icon svg { width: 100%; height: 100%; }

.value-card h4 {
  font-size: 1.05rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.value-card:hover h4 { color: var(--terra); }

.value-card p {
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.6;
}

.values-grid.reveal.active .value-card {
  animation: valueCardIn 0.8s var(--ease-spring) backwards;
}
.values-grid.reveal.active .value-card:nth-child(1) { animation-delay: 0.05s; }
.values-grid.reveal.active .value-card:nth-child(2) { animation-delay: 0.15s; }
.values-grid.reveal.active .value-card:nth-child(3) { animation-delay: 0.25s; }
.values-grid.reveal.active .value-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes valueCardIn {
  0% { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(0.92); }
  70% { opacity: 1; transform: translateY(-5px) rotate(1deg) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

/* ---------- DOMAINES ---------- */
.domaines-section { padding: 90px 0; background: var(--navy-mid); }

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.domain-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  transform-style: preserve-3d;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--teal), var(--terra));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.domain-card:hover {
  border-color: var(--terra);
  box-shadow: var(--shadow-lg);
}

.domain-card:hover::before {
  transform: scaleX(1);
  animation: borderTrace 3s linear infinite;
}

.domain-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.domain-icon {
  width: 52px;
  height: 52px;
  color: var(--terra);
  padding: 10px;
  background: linear-gradient(135deg, rgba(224, 120, 86, 0.12), rgba(201, 166, 91, 0.06));
  border-radius: var(--radius-md);
  transition: all 0.5s var(--ease-spring);
}

.domain-card:hover .domain-icon {
  transform: rotate(-12deg) scale(1.15);
  color: var(--teal);
  background: linear-gradient(135deg, rgba(29, 90, 107, 0.15), rgba(224, 120, 86, 0.08));
}

.domain-icon svg { width: 100%; height: 100%; }

.domain-num {
  font-family: var(--sans-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
  transition: color 0.3s ease;
}

.domain-card:hover .domain-num { color: var(--terra); }

.domain-card h3 {
  font-size: 1.35rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.domain-card:hover h3 { color: var(--terra-dark); }

.domain-card > p {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 22px;
  flex-grow: 1;
  line-height: 1.65;
}

.domain-list { list-style: none; margin-bottom: 28px; padding: 0; }

.domain-list li {
  font-size: 0.86rem;
  color: var(--ink);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.domain-card:hover .domain-list li {
  color: var(--teal-dark);
}

.domain-card:hover .domain-list li:nth-child(1) { transform: translateX(4px); transition-delay: 0.05s; }
.domain-card:hover .domain-list li:nth-child(2) { transform: translateX(4px); transition-delay: 0.1s; }
.domain-card:hover .domain-list li:nth-child(3) { transform: translateX(4px); transition-delay: 0.15s; }

.domain-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--terra);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.domain-card:hover .domain-list li::before {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(29, 90, 107, 0.5);
}

.domain-cta-btn {
  width: 100%;
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-family: var(--sans-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.domain-cta-btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-spring); }

.domain-cta-btn:hover {
  background: var(--terra);
  color: #FFFFFF;
  border-color: var(--terra);
  box-shadow: 0 8px 20px rgba(224, 120, 86, 0.35);
}

.domain-cta-btn:hover svg { transform: translateX(6px); }

.domains-grid.reveal.active .domain-card {
  animation: domainCardIn 0.8s var(--ease-spring) backwards;
}
.domains-grid.reveal.active .domain-card:nth-child(1) { animation-delay: 0.05s; }
.domains-grid.reveal.active .domain-card:nth-child(2) { animation-delay: 0.18s; }
.domains-grid.reveal.active .domain-card:nth-child(3) { animation-delay: 0.31s; }

@keyframes domainCardIn {
  0% { opacity: 0; transform: translateY(50px) scale(0.94); }
  70% { opacity: 1; transform: translateY(-5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- STATS ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  padding: 62px 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(224, 120, 86, 0.28), transparent 45%),
    radial-gradient(circle at 85% 50%, rgba(201, 166, 91, 0.22), transparent 45%);
  pointer-events: none;
  animation: statsGlow 8s ease-in-out infinite;
}

@keyframes statsGlow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  position: relative;
  padding: 12px;
  transition: transform 0.4s var(--ease-spring);
}

.stat-item:hover { transform: translateY(-6px) scale(1.03); }

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.stat-num, .stat-suffix {
  font-family: var(--serif-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 700;
  color: var(--gold-light);
  display: inline-block;
  line-height: 1;
  text-shadow: 0 0 30px rgba(224, 188, 120, 0.4);
  transition: transform 0.3s var(--ease-spring), color 0.3s ease;
}

.stat-num.completed {
  animation: counterPulse 0.7s var(--ease-spring);
}

@keyframes counterPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); color: var(--terra-light); }
  100% { transform: scale(1); }
}

.stat-label {
  font-family: var(--sans-ui);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 10px;
  font-weight: 500;
}

/* ---------- TIMELINE ---------- */
.parcours-section { padding: 90px 0; }

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 130px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--terra) 10%, var(--gold) 50%, var(--teal) 90%, transparent);
  opacity: 0.4;
  transform-origin: top;
  transform: scaleY(0);
}

.timeline.reveal.active::before {
  animation: timelineGrow 1.8s var(--ease-out) 0.3s forwards;
}

@keyframes timelineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.tl-item { position: relative; margin-bottom: 42px; }
.tl-item:last-child { margin-bottom: 0; }

.timeline.reveal.active .tl-item {
  animation: tlItemIn 0.8s var(--ease-out) backwards;
}

.timeline.reveal.active .tl-item:nth-child(1) { animation-delay: 0.4s; }
.timeline.reveal.active .tl-item:nth-child(2) { animation-delay: 0.65s; }
.timeline.reveal.active .tl-item:nth-child(3) { animation-delay: 0.9s; }
.timeline.reveal.active .tl-item:nth-child(4) { animation-delay: 1.15s; }
.timeline.reveal.active .tl-item:nth-child(5) { animation-delay: 1.4s; }

@keyframes tlItemIn {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

.tl-date {
  position: absolute;
  left: -130px;
  width: 105px;
  text-align: right;
  font-family: var(--sans-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terra);
  top: 4px;
}

.tl-dot {
  position: absolute;
  left: -6px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--teal);
  transition: all 0.3s ease;
  z-index: 1;
}

.timeline.reveal.active .tl-dot {
  animation: dotPop 0.7s var(--ease-spring) backwards;
}

.timeline.reveal.active .tl-item:nth-child(1) .tl-dot { animation-delay: 0.5s; }
.timeline.reveal.active .tl-item:nth-child(2) .tl-dot { animation-delay: 0.75s; }
.timeline.reveal.active .tl-item:nth-child(3) .tl-dot { animation-delay: 1s; }
.timeline.reveal.active .tl-item:nth-child(4) .tl-dot { animation-delay: 1.25s; }
.timeline.reveal.active .tl-item:nth-child(5) .tl-dot { animation-delay: 1.5s; }

@keyframes dotPop {
  0% { transform: scale(0); box-shadow: 0 0 0 0 var(--teal-glow); }
  60% { transform: scale(1.5); box-shadow: 0 0 0 12px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

.tl-item:hover .tl-dot {
  transform: scale(1.3);
  background: var(--teal);
  box-shadow: 0 0 16px rgba(29, 90, 107, 0.35);
}

.gold-dot {
  background: var(--terra);
  border-color: var(--terra);
  box-shadow: 0 0 14px rgba(224, 120, 86, 0.5);
}

.tl-content {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.tl-item:hover .tl-content {
  transform: translateX(10px);
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
}

.tl-content h3 {
  font-size: 1.12rem;
  color: var(--teal-dark);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.tl-item:hover .tl-content h3 { color: var(--terra); }

.tl-org {
  font-family: var(--sans-ui);
  font-size: 0.76rem;
  color: var(--terra);
  margin-bottom: 10px;
  font-weight: 600;
}

.tl-content p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.65;
}

.highlight-item .tl-content {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201, 166, 91, 0.08), #FFFFFF);
}

/* ---------- TEACHING ---------- */
.teaching-section { padding: 90px 0; background: var(--navy-mid); }

.teach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.teach-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  will-change: transform;
}

.teach-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  transition: width 0.5s var(--ease-out);
}

.teach-card:hover {
  transform: translateY(-8px);
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
}

.teach-card:hover::after { width: 100%; }

.teach-grid.reveal.active .teach-card {
  animation: teachCardIn 0.7s var(--ease-spring) backwards;
}

.teach-grid.reveal.active .teach-card:nth-child(1) { animation-delay: 0.05s; }
.teach-grid.reveal.active .teach-card:nth-child(2) { animation-delay: 0.18s; }
.teach-grid.reveal.active .teach-card:nth-child(3) { animation-delay: 0.31s; }
.teach-grid.reveal.active .teach-card:nth-child(4) { animation-delay: 0.44s; }

@keyframes teachCardIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.94); }
  70% { opacity: 1; transform: translateY(-5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.teach-header { margin-bottom: 14px; }

.teach-card h4 {
  font-size: 1.08rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.teach-card:hover h4 { color: var(--terra); }

.teach-badge {
  display: inline-block;
  font-family: var(--sans-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  background: rgba(224, 120, 86, 0.1);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(224, 120, 86, 0.22);
  transition: all 0.3s ease;
}

.teach-card:hover .teach-badge {
  background: var(--terra);
  color: #FFFFFF;
  transform: scale(1.05);
}

.teach-card p {
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ---------- PUBLICATIONS ---------- */
.pub-section { padding: 90px 0; }

.pub-block {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 52px 46px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pub-block::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224, 120, 86, 0.1), transparent 70%);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite;
}

.pub-block::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(29, 90, 107, 0.08), transparent 70%);
  pointer-events: none;
  animation: blobFloat 14s ease-in-out -6s infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.15); }
}

.pub-header { margin-bottom: 38px; position: relative; z-index: 1; }

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  z-index: 1;
}

.pub-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.35s var(--ease-out);
}

.pub-item:hover {
  transform: translateX(8px);
  padding-left: 10px;
}

.pub-item:last-child { border-bottom: none; padding-bottom: 0; }

.pub-list.reveal.active .pub-item {
  animation: pubItemIn 0.7s var(--ease-out) backwards;
}

.pub-list.reveal.active .pub-item:nth-child(1) { animation-delay: 0.1s; }
.pub-list.reveal.active .pub-item:nth-child(2) { animation-delay: 0.28s; }
.pub-list.reveal.active .pub-item:nth-child(3) { animation-delay: 0.46s; }

@keyframes pubItemIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.pub-tag {
  font-family: var(--sans-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  display: inline-block;
  padding: 3px 10px;
  background: rgba(29, 90, 107, 0.08);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.pub-item:hover .pub-tag {
  background: rgba(29, 90, 107, 0.15);
  color: var(--teal);
}

.gold-tag {
  color: var(--terra);
  background: rgba(224, 120, 86, 0.12);
}

.pub-item:hover .gold-tag {
  background: var(--terra);
  color: #FFFFFF;
}

.pub-main h4 {
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.pub-item:hover .pub-main h4 { color: var(--terra); }

.pub-main p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
}

.pub-date {
  font-family: var(--sans-ui);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--terra);
  white-space: nowrap;
  padding: 4px 12px;
  border: 1px solid rgba(224, 120, 86, 0.3);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.pub-item:hover .pub-date {
  background: var(--terra);
  color: #FFFFFF;
  transform: rotate(-3deg) scale(1.05);
}

/* ---------- FOOTER / CONTACT ---------- */
.footer-contact {
  padding: 100px 0 40px;
  background: var(--navy-mid);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer-contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(224, 120, 86, 0.08), transparent 70%);
  pointer-events: none;
  animation: blobFloat 16s ease-in-out infinite;
}

.footer-cta-banner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
  position: relative;
  z-index: 1;
}

.seal {
  width: 70px; height: 70px;
  margin: 0 auto 26px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #FFFFFF;
  box-shadow: 0 0 0 6px rgba(224, 120, 86, 0.06), inset 0 0 20px rgba(201, 166, 91, 0.1);
  animation: sealEnter 1s var(--ease-spring) 0.2s both;
}

@keyframes sealEnter {
  0% { opacity: 0; transform: scale(0) rotate(-180deg); }
  70% { opacity: 1; transform: scale(1.15) rotate(10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.seal::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(224, 120, 86, 0.35);
  border-radius: 50%;
  animation: ringRotate 22s linear infinite;
}

.seal-mark {
  font-family: var(--serif-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.05em;
}

.footer-cta-banner h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.footer-cta-banner p.lead {
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.whatsapp-cta {
  background: linear-gradient(135deg, #25D366, #1DA851);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
}

.whatsapp-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-cta:hover svg { animation: waWiggle 0.6s ease-in-out; }

@keyframes waWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}

.contact-details-grid.reveal.active .cd-item {
  animation: cdItemIn 0.7s var(--ease-spring) backwards;
}

.contact-details-grid.reveal.active .cd-item:nth-child(1) { animation-delay: 0.05s; }
.contact-details-grid.reveal.active .cd-item:nth-child(2) { animation-delay: 0.15s; }
.contact-details-grid.reveal.active .cd-item:nth-child(3) { animation-delay: 0.25s; }
.contact-details-grid.reveal.active .cd-item:nth-child(4) { animation-delay: 0.35s; }

@keyframes cdItemIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.92); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cd-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.cd-item:hover {
  transform: translateY(-6px);
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
}

.cd-icon {
  width: 26px; height: 26px;
  color: var(--terra);
  flex-shrink: 0;
  padding: 3px;
  transition: transform 0.4s var(--ease-spring);
}

.cd-item:hover .cd-icon {
  transform: rotate(-12deg) scale(1.15);
  color: var(--teal);
}

.cd-icon svg { width: 100%; height: 100%; }

.cd-text b {
  display: block;
  font-family: var(--sans-ui);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 6px;
  font-weight: 700;
}

.cd-text span {
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- FORM ---------- */
.form-wrapper {
  max-width: 700px;
  margin: 0 auto 70px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.form-title {
  font-size: 1.35rem;
  color: var(--teal-dark);
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  padding-bottom: 18px;
}

.form-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  border-radius: 3px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.form-group label {
  font-family: var(--sans-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  transition: color 0.3s ease, transform 0.3s ease;
  transform-origin: left;
}

.form-group:focus-within label {
  color: var(--terra);
  transform: translateX(4px);
}

.form-input, .form-select, textarea {
  background: var(--navy-deep);
  color: var(--ink);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: var(--sans-ui);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input::placeholder, textarea::placeholder { color: var(--slate); opacity: 0.7; }

.form-input:focus, .form-select:focus, textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(224, 120, 86, 0.15);
  background: #FFFFFF;
  transform: translateY(-2px);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E07856' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-submit-btn { margin-top: 8px; width: 100%; }

/* ---------- MAP ---------- */
.map-wrapper {
  max-width: 880px;
  margin: 0 auto 70px;
  position: relative;
  z-index: 1;
}

.map-frame {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  filter: contrast(1.02) saturate(0.95);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.map-frame:hover {
  filter: contrast(1.05) saturate(1.05);
  transform: scale(1.01);
}

.map-note {
  font-family: var(--sans-ui);
  font-size: 0.78rem;
  color: var(--slate);
  text-align: center;
  margin-top: 12px;
}

/* ---------- FOOTER LEGAL ---------- */
.footer-legal {
  border-top: 1px solid var(--border-color);
  padding-top: 34px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-family: var(--sans-ui);
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-legal-links a { transition: color 0.2s ease; position: relative; }
.footer-legal-links a:hover { color: var(--terra); }

.footer-legal-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--terra);
  transition: width 0.3s ease;
}

.footer-legal-links a:hover::after { width: 100%; }

.fine-print {
  font-family: var(--sans-ui);
  font-size: 0.7rem;
  color: var(--slate);
  opacity: 0.8;
  line-height: 1.6;
}

/* ---------- FLOATING ---------- */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -8px rgba(29, 90, 107, 0.28);
  transition: all 0.4s var(--ease-spring);
  position: relative;
  animation: floatBob 4s ease-in-out infinite;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-btn svg {
  width: 26px; height: 26px;
  transition: transform 0.3s var(--ease-spring);
}

.float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.35;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.booking-float-btn {
  background: var(--terra-gradient);
  color: #FFFFFF;
  animation-delay: 0s;
}

.booking-float-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 16px 32px rgba(224, 120, 86, 0.45);
}

.booking-float-btn:hover svg {
  animation: bookBounce 0.6s ease-in-out;
}

@keyframes bookBounce {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(-8deg); }
}

.wa-float-btn {
  background: linear-gradient(135deg, #25D366, #1DA851);
  color: #FFFFFF;
  animation-delay: 1s;
}

.wa-float-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
}

.wa-float-btn:hover svg {
  animation: waWiggle 0.6s ease-in-out;
}

/* ---------- DIALOGS ---------- */
dialog.custom-dialog {
  margin: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  color: var(--ink);
  padding: 0;
  max-width: 600px;
  width: 92%;
  box-shadow: 0 40px 80px -20px rgba(29, 90, 107, 0.35);
  outline: none;
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out),
    display 0.4s allow-discrete,
    overlay 0.4s allow-discrete;
}

dialog.custom-dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);

  @starting-style {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
}

dialog.custom-dialog::backdrop {
  background-color: rgba(30, 50, 55, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease, display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}

dialog.custom-dialog[open]::backdrop {
  opacity: 1;
  @starting-style { opacity: 0; }
}

.dialog-content {
  padding: 40px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}

.dialog-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--cream-soft);
  color: var(--slate);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.4s var(--ease-spring);
  z-index: 2;
}

.dialog-close-btn:hover {
  color: #FFFFFF;
  background: var(--terra);
  transform: rotate(180deg) scale(1.1);
}

.dialog-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.dialog-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(224, 120, 86, 0.15), rgba(29, 90, 107, 0.1));
  color: var(--terra);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(224, 120, 86, 0.2);
  animation: iconPop 0.7s var(--ease-spring) 0.15s both;
}

@keyframes iconPop {
  0% { opacity: 0; transform: scale(0) rotate(-90deg); }
  70% { opacity: 1; transform: scale(1.15) rotate(10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.dialog-icon svg { width: 24px; height: 24px; }

.dialog-header h3 {
  font-size: 1.3rem;
  color: var(--teal-dark);
  margin-bottom: 2px;
}

.dialog-sub {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.5;
}

.modal-form { display: flex; flex-direction: column; gap: 18px; }

.modal-form .form-group {
  opacity: 0;
  animation: formFieldIn 0.5s var(--ease-out) forwards;
}

.modal-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.modal-form .form-group:nth-child(2) { animation-delay: 0.18s; }
.modal-form .form-group:nth-child(3) { animation-delay: 0.26s; }
.modal-form .form-group:nth-child(4) { animation-delay: 0.34s; }
.modal-form .form-group:nth-child(5) { animation-delay: 0.42s; }

@keyframes formFieldIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: var(--sans-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
  background: var(--cream-soft);
  transform: translateY(-2px);
}

#detail-modal-body h3 {
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin-bottom: 16px;
}

#detail-modal-body p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 12px;
}

#detail-modal-body b { color: var(--terra); }

/* ---------- TOAST ---------- */
.toast-container {
  position: fixed;
  top: 92px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
}

.toast {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  font-family: var(--sans-ui);
  font-size: 0.85rem;
  line-height: 1.55;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideInRight 0.5s var(--ease-spring) forwards;
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(60px) scale(0.9); }
  70% { opacity: 1; transform: translateX(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   🌙 DARK MODE FIXES
   ========================================================================== */

[data-theme="dark"] .intro-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .domain-card,
[data-theme="dark"] .tl-content,
[data-theme="dark"] .teach-card,
[data-theme="dark"] .cd-item,
[data-theme="dark"] .form-wrapper,
[data-theme="dark"] dialog.custom-dialog,
[data-theme="dark"] .toast,
[data-theme="dark"] .secondary-cta,
[data-theme="dark"] .hero-domains span,
[data-theme="dark"] .seal,
[data-theme="dark"] .lang-select,
[data-theme="dark"] .theme-btn {
  background: var(--navy-card);
  color: var(--ink);
}

[data-theme="dark"] .pub-block {
  background: linear-gradient(135deg, var(--navy-card) 0%, var(--navy-mid) 100%);
}

[data-theme="dark"] .highlight-item .tl-content {
  background: linear-gradient(135deg, rgba(221, 184, 119, 0.1), var(--navy-card));
}

[data-theme="dark"] .portrait-badge {
  background: var(--navy-deep);
  color: var(--gold);
  border-color: var(--gold);
}

[data-theme="dark"] .seal { background: var(--navy-deep); }
[data-theme="dark"] .seal-mark { color: var(--gold); }

[data-theme="dark"] h1.name,
[data-theme="dark"] .section-head h2,
[data-theme="dark"] .value-card h4,
[data-theme="dark"] .domain-card h3,
[data-theme="dark"] .tl-content h3,
[data-theme="dark"] .teach-card h4,
[data-theme="dark"] .pub-main h4,
[data-theme="dark"] .footer-cta-banner h2,
[data-theme="dark"] .dialog-header h3,
[data-theme="dark"] .form-title,
[data-theme="dark"] #detail-modal-body h3 {
  color: var(--ink);
}

[data-theme="dark"] .intro-text { color: var(--gold-light); }
[data-theme="dark"] .quote-mark { color: var(--terra); opacity: 0.55; }

[data-theme="dark"] .section-sub,
[data-theme="dark"] .tagline,
[data-theme="dark"] .title-line,
[data-theme="dark"] .footer-cta-banner p.lead,
[data-theme="dark"] .cd-text span,
[data-theme="dark"] .domain-card > p,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .teach-card p,
[data-theme="dark"] .pub-main p,
[data-theme="dark"] .tl-content p,
[data-theme="dark"] #detail-modal-body p,
[data-theme="dark"] .dialog-sub {
  color: rgba(240, 233, 218, 0.86);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea {
  background: var(--navy-deep);
  color: var(--ink);
  border-color: rgba(111, 186, 201, 0.25);
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(240, 233, 218, 0.4);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] textarea:focus {
  background: var(--navy-mid);
  color: var(--ink);
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(238, 147, 114, 0.2);
}

[data-theme="dark"] .form-select option,
[data-theme="dark"] .lang-select option {
  background: var(--navy-mid);
  color: var(--ink);
}

[data-theme="dark"] .form-group label,
[data-theme="dark"] .cd-text b {
  color: var(--terra);
}

[data-theme="dark"] .nav-cta-btn {
  background: var(--teal);
  color: #0F2429;
}

[data-theme="dark"] .nav-cta-btn:hover {
  background: var(--terra);
  color: #FFFFFF;
}

[data-theme="dark"] .monogram-mark { color: var(--gold-light); }

[data-theme="dark"] nav.links a { color: rgba(240, 233, 218, 0.7); }

[data-theme="dark"] nav.links a:hover,
[data-theme="dark"] nav.links a.nav-link-active {
  color: var(--terra);
}

[data-theme="dark"] .secondary-cta {
  background: var(--navy-card);
  color: var(--teal);
  border-color: rgba(111, 186, 201, 0.35);
}

[data-theme="dark"] .secondary-cta:hover {
  background: var(--cream-soft);
  border-color: var(--terra);
  color: var(--terra);
}

[data-theme="dark"] .primary-cta,
[data-theme="dark"] .form-submit-btn,
[data-theme="dark"] .booking-float-btn {
  color: #FFFFFF;
}

[data-theme="dark"] .dialog-close-btn {
  background: var(--navy-mid);
  color: var(--slate);
}

[data-theme="dark"] .dialog-close-btn:hover {
  background: var(--terra);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-secondary {
  color: rgba(240, 233, 218, 0.75);
  border-color: rgba(111, 186, 201, 0.25);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--cream-soft);
  color: var(--terra);
  border-color: var(--terra);
}

[data-theme="dark"] .tl-dot {
  background: var(--navy-mid);
  border-color: var(--teal);
}

[data-theme="dark"] .tl-item:hover .tl-dot { background: var(--teal); }

[data-theme="dark"] .gold-dot {
  background: var(--terra);
  border-color: var(--terra);
}

[data-theme="dark"] .pub-tag {
  background: rgba(111, 186, 201, 0.12);
  color: rgba(240, 233, 218, 0.75);
}

[data-theme="dark"] .pub-tag.gold-tag {
  background: rgba(238, 147, 114, 0.18);
  color: var(--terra-light);
}

[data-theme="dark"] .teach-badge {
  background: rgba(238, 147, 114, 0.15);
  color: var(--terra);
  border-color: rgba(238, 147, 114, 0.3);
}

[data-theme="dark"] .domain-num,
[data-theme="dark"] .tl-org,
[data-theme="dark"] .lh-label,
[data-theme="dark"] .section-eyebrow {
  color: var(--terra);
}

[data-theme="dark"] .map-frame {
  filter: grayscale(0.3) brightness(0.75) contrast(1.1);
  border-color: rgba(111, 186, 201, 0.2);
}

[data-theme="dark"] .map-frame:hover {
  filter: grayscale(0.1) brightness(0.9) contrast(1.05);
}

[data-theme="dark"] .letterhead {
  background: var(--navy-card);
  border-color: rgba(111, 186, 201, 0.15);
}

[data-theme="dark"] .lh-val { color: var(--ink); }
[data-theme="dark"] a.lh-val:hover { color: var(--terra); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-wrap { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .portrait-frame { width: 260px; height: 260px; }
  .portrait-ring { inset: -12px; }
  .hero-domains, .hero-actions, .ornament-line { justify-content: center; }
  .ornament-line { margin-left: auto; margin-right: auto; }
  .timeline { padding-left: 40px; }
  .timeline::before { left: 15px; }
  .tl-date { position: relative; left: 0; top: 0; text-align: left; width: auto; margin-bottom: 6px; display: inline-block; }
  .tl-dot { left: -30px; top: 12px; }
  .stat-item:not(:last-child)::after { display: none; }
  .intro-section2 .intro-card { margin-top: -40px; }
}

@media (max-width: 768px) {
  html { font-size: 17px; }

  /* Pas de background image sur mobile */
  .hero::before { display: none; }

  nav.links {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 26px 28px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }
  nav.links.open { display: flex; }
  nav.links a { font-size: 0.85rem; padding: 8px 0; }
  .nav-toggle { display: block; }
  .nav-cta-btn span { display: none; }
  .nav-cta-btn { padding: 11px 14px; }
  .form-two-col { grid-template-columns: 1fr; }
  .dialog-content { padding: 32px 24px; }
  .dialog-close-btn { top: 14px; right: 14px; }
  .toast-container { right: 16px; left: 16px; max-width: none; top: 84px; }
  .floating-actions { bottom: 20px; right: 20px; }
  .float-btn { width: 50px; height: 50px; }
  .float-btn svg { width: 22px; height: 22px; }
  .intro-card { padding: 40px 26px; }
  .quote-mark { font-size: 4rem; top: 8px; left: 20px; }
  .quote-mark.right { right: 20px; left: auto; }
  .pub-block { padding: 36px 26px; }
  .pub-item { flex-direction: column; gap: 10px; }
  .footer-legal-links { gap: 18px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 60px 0 50px; }
  .section-head { margin-bottom: 40px; }
  .form-wrapper { padding: 30px 22px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
  .contact-cta-buttons { flex-direction: column; width: 100%; }
  .contact-cta-buttons .cta-btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .cta-btn { width: 100%; }
}

/* ==========================================================================
   🕳️ HONEYPOT ANTI-SPAM (champ invisible pour les robots)
   ========================================================================== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}