/* =====================================================================
   Famille Amani Universelle — feuille de styles
   Charte : Teal + Or + Crème · Fraunces + Mulish
   ===================================================================== */

:root {
  /* Couleurs de la marque (Charte V.2) */
  --teal-nuit:  #062E2D;
  --teal-amani: #0B5E5C;
  --teal-600:   #0F7E7B;
  --turquoise:  #2FBFBB;
  --or-paix:    #E6B24E;
  --or-soft:    #F6E0AC;
  --or-texte:   #8A5E12;
  --rouge-logo: #C8443C;
  --creme:      #FAF4E8;
  --creme-2:    #F3E9D6;
  --encre:      #12292A;

  /* Glassmorphisme clair */
  --glass-bg:      rgba(255, 255, 255, 0.55);
  --glass-bg-teal: rgba(11, 94, 92, 0.08);
  --glass-border:  rgba(11, 94, 92, 0.18);
  --glass-shadow:  0 8px 32px rgba(6, 46, 45, 0.10);
  --glass-blur:    blur(14px);
  --shadow-lg:     0 30px 60px -20px rgba(6, 46, 45, 0.35);
}

/* ---------- Base ---------- */
body {
  background-color: var(--creme);
  color: var(--encre);
  font-family: 'Mulish', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}
h1, h2, h3, .font-display { font-family: 'Fraunces', serif; }

/* Grain très léger sur toute la page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Halos d'ambiance (animés) ---------- */
.halo-bg {
  position: fixed; filter: blur(120px); opacity: 0.30;
  pointer-events: none; z-index: 0; border-radius: 50%;
  animation: haloDrift 18s ease-in-out infinite alternate;
}
.halo-turquoise { top: -12%; right: -8%;  width: 46vw; height: 46vw; background: var(--turquoise); }
.halo-or        { bottom: -14%; left: -10%; width: 40vw; height: 40vw; background: var(--or-paix); animation-delay: -6s; }
.halo-teal      { top: 40%; left: 30%; width: 34vw; height: 34vw; background: var(--teal-amani); opacity: .18; animation-delay: -11s; }
@keyframes haloDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.12); }
}

/* ---------- Eyebrow / titres ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--or-texte); font-weight: 800; margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 26px; height: 2px; background-color: var(--or-paix); }
.eyebrow.justify-center { justify-content: center; }

.title-gradient {
  background: linear-gradient(120deg, var(--teal-nuit) 0%, var(--teal-600) 55%, var(--turquoise) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Glass cards ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.glass-card-hover { position: relative; }
.glass-card-hover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--turquoise), transparent 40%, transparent 60%, var(--or-paix));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.glass-card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(6,46,45,.18); }
.glass-card-hover:hover::after { opacity: 1; }

/* ---------- Bande signature (teal · or · fin filet rouge · turquoise) ---------- */
.bande-signature {
  height: 6px; border-radius: 999px; width: 100%;
  background: linear-gradient(90deg,
    var(--teal-amani) 0 62%, var(--or-paix) 62% 72%,
    var(--rouge-logo) 72% 73.5%, var(--turquoise) 73.5% 100%);
}
.bande-signature.courte { max-width: 104px; height: 6px; }

/* Double filet propre (teal épais + or fin) */
.double-filet { position: relative; height: 5px; }
.double-filet::before { content:""; position:absolute; top:0; left:0; width:100%; height:3px; background: var(--teal-amani); border-radius: 2px; }
.double-filet::after  { content:""; position:absolute; top:4px; left:0; width:100%; height:1px; background: var(--or-paix); }
.double-filet.inverse::before { background: var(--or-paix); }
.double-filet.inverse::after  { background: var(--teal-amani); }

/* ---------- Boutons ---------- */
.btn-base {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  border-radius: 999px; padding: 0.9rem 1.9rem; font-weight: 700;
  font-family: 'Mulish', sans-serif; transition: all .3s ease; text-align: center; cursor: pointer;
}
.btn-primaire { background: linear-gradient(120deg, var(--teal-amani), var(--teal-600)); color: var(--creme); box-shadow: 0 10px 24px -10px rgba(11,94,92,.7); }
.btn-primaire:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(11,94,92,.8); }
.btn-secondaire { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--teal-amani); color: var(--teal-amani); }
.btn-secondaire:hover { background: var(--glass-bg-teal); transform: translateY(-2px); }
.btn-whatsapp { background-color: var(--teal-nuit); color: var(--creme); }
.btn-whatsapp i[data-lucide] { color: var(--or-paix); }
.btn-whatsapp:hover { transform: translateY(-2px); opacity: .94; }
.btn-inverse, .btn-inversé { background-color: var(--creme); color: var(--teal-nuit); }
.btn-inverse:hover, .btn-inversé:hover { background-color: #fff; transform: translateY(-2px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); font-size: 0.85rem; font-weight: 700; color: var(--teal-amani);
}
.badge i[data-lucide] { width: 14px; height: 14px; }
.badge-or   { color: var(--or-texte); border-color: var(--or-paix); background: rgba(255,255,255,.7); }
.badge-rouge{ color: var(--rouge-logo); border-color: rgba(200,68,60,.3); }

/* ---------- Header / Nav ---------- */
#main-header { transition: all .4s ease; }
#main-header.scrolled { background: rgba(255,255,255,.85); box-shadow: 0 4px 20px rgba(6,46,45,.08); }
.nav-link { position: relative; color: var(--encre); font-weight: 600; transition: color .3s; }
.nav-link:hover, .nav-link.active { color: var(--teal-amani); font-weight: 800; }
.nav-link.active::after, .nav-link:hover::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px;
  background: var(--or-paix); border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero { position: relative; }
.hero-headline { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.05; }

/* Entrée du hero en CSS pur (contenu critique toujours visible) */
.gs-reveal-hero > * { opacity: 0; animation: heroUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.gs-reveal-hero > *:nth-child(1) { animation-delay: .10s; }
.gs-reveal-hero > *:nth-child(2) { animation-delay: .20s; }
.gs-reveal-hero > *:nth-child(3) { animation-delay: .30s; }
.gs-reveal-hero > *:nth-child(4) { animation-delay: .40s; }
.gs-reveal-hero > *:nth-child(5) { animation-delay: .50s; }
.gs-reveal-visual { opacity: 0; animation: heroPop 1s cubic-bezier(.2,.7,.2,1) .35s forwards; }
@keyframes heroUp  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroPop { from { opacity: 0; transform: scale(.96); }        to { opacity: 1; transform: none; } }

/* Tracé du soulignement en CSS */
.underline-svg path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawLine 1.4s ease .5s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Visuel hero : cadre image + calque */
.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: 2rem; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  aspect-ratio: 4 / 5;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transform: scale(1.04); transition: transform .8s ease; }
.hero-visual:hover .hero-frame img { transform: scale(1.10); }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,46,45,0) 40%, rgba(6,46,45,.55) 100%);
}
.hero-ring {
  position: absolute; inset: -8% -8% -8% -8%; z-index: -1; border-radius: 2.5rem;
  background: conic-gradient(from 120deg, var(--turquoise), var(--or-paix), var(--teal-amani), var(--turquoise));
  filter: blur(38px); opacity: .5; animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Carte flottante chiffres */
.floating-stats {
  position: absolute; left: -6%; bottom: 8%; z-index: 3; width: 60%; min-width: 230px;
  padding: 1.25rem 1.4rem; border-radius: 1.25rem;
  animation: floatY 6s ease-in-out infinite;
}
.floating-pill {
  position: absolute; right: -4%; top: 7%; z-index: 3;
  animation: floatY 5s ease-in-out infinite; animation-delay: -2s;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stat-num { font-family: 'Fraunces', serif; font-weight: 900; color: var(--teal-amani); line-height: 1; }

/* ---------- Marquee devise ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { display: inline-flex; align-items: center; gap: 1.5rem; font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.9rem); }
.marquee__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); display: inline-block; }

/* ---------- Fonds de section alternés ---------- */
.sec-surface  { background: linear-gradient(180deg, #FFFFFF 0%, #FBF5EA 100%); }
.sec-tealsoft { background: color-mix(in srgb, var(--turquoise) 9%, var(--creme)); position: relative; }
.sec-cream    { background: var(--creme); }

/* ---------- Cartes activités : icône ---------- */
.activity-ico { width: 64px; height: 64px; border-radius: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(6,46,45,.5); }

/* ---------- Realisations (swiper) ---------- */
.realisations-swiper { padding-bottom: 3.5rem; }
.real-card img { transition: transform .6s ease; }
.real-card:hover img { transform: scale(1.06); }
.swiper-pagination-bullet-active { background-color: var(--teal-amani) !important; }

/* ---------- Reveal (scroll) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Accessibilité ---------- */
*:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .halo-bg, .hero-ring, .floating-stats, .floating-pill, .marquee__track { animation: none !important; }
  .gs-reveal-hero > *, .gs-reveal-visual { opacity: 1 !important; animation: none !important; transform: none !important; }
  .underline-svg path { stroke-dashoffset: 0; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .floating-stats { position: static; width: 100%; margin-top: 1.25rem; animation: none; }
  .floating-pill { display: none; }
  .hero-frame { aspect-ratio: 16 / 10; }
}
