﻿/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — Génération Marocaine Bordeaux
   Palette : Midnight Noir + Bordeaux Wine + Or Champagne
═══════════════════════════════════════════════════════════ */
:root {
  /* ── Couleurs principales ── */
  --wine:        #7C1A35;   /* Bordeaux wine — couleur signature */
  --wine-dark:   #3D0B19;   /* Deep wine — fonds sombres */
  --wine-deep:   #1A0409;   /* Midnight — fond le plus sombre */
  --gold:        #C9A84C;   /* Or champagne */
  --gold-light:  #E2C070;   /* Or clair — hover */
  --gold-dark:   #9A7A35;   /* Or profond — détails */

  /* ── Rétrocompat (anciens composants) ── */
  --blue:        #7C1A35;
  --blue-dark:   #3D0B19;

  /* ── Neutres ── */
  --white:       #FFFFFF;
  --light:       #FBF7F5;   /* Ivoire chaud */
  --text:        #1C0A0E;   /* Noir chaud */
  --muted:       #8A7075;   /* Gris chaud */

  /* ── Effets ── */
  --shadow:      0 24px 70px rgba(61,11,25,.16);
  --shadow-sm:   0 8px 30px rgba(61,11,25,.12);
  --radius:      28px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ── Layout ── */
.container { width: min(1120px, 92%); margin: auto; }

/* ═══════════════════════════════════════════════════════════
   HEADER — Glassmorphism premium
═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 76px;
  color: #fff;
  transition: background .4s ease, box-shadow .4s ease, height .3s ease;
  background: transparent;
}

/* Ligne d'accent dorée en bas du header — visible au scroll */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 5% 0 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5), transparent);
  opacity: 0;
  transition: opacity .4s;
}

.site-header.scrolled {
  background: rgba(15, 3, 7, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 8px 48px rgba(0,0,0,.28);
  height: 66px;
}
.site-header.scrolled::after { opacity: 1; }

.site-header.solid {
  background: rgba(15, 3, 7, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 8px 48px rgba(0,0,0,.28);
  height: 66px;
}
.site-header.solid::after { opacity: 1; }

/* ── Logo / Brand ── */
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: .01em;
  flex-shrink: 0;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,.45);
  box-shadow: 0 0 0 4px rgba(201,168,76,.1), 0 6px 20px rgba(0,0,0,.35);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.brand:hover img {
  transform: scale(1.06) rotate(-2deg);
  border-color: rgba(201,168,76,.85);
  box-shadow: 0 0 0 6px rgba(201,168,76,.18), 0 8px 28px rgba(0,0,0,.4);
}
.brand span {
  font-size: .97rem;
  background: linear-gradient(135deg, #fff 20%, var(--gold-light) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ── Navigation desktop ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
}
.main-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .03em;
  opacity: .85;
  transition: color .2s, opacity .2s, background .2s;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.main-nav a:hover {
  color: var(--gold-light);
  opacity: 1;
  background: rgba(201,168,76,.07);
}
.main-nav a:hover::after { transform: scaleX(1); }

/* Lien actif */
.main-nav a[aria-current="page"],
.main-nav a.active {
  color: var(--gold);
  opacity: 1;
}
.main-nav a[aria-current="page"]::after,
.main-nav a.active::after { transform: scaleX(1); }

/* ── Bouton hamburger ── */
.nav-toggle { display: none; }

/* ── Sections ── */
.hero { min-height: 78vh; background-size: cover; background-position: center; display: grid; place-items: center; text-align: center; color: #fff; padding: 140px 20px 90px; position: relative; overflow: hidden; }
.full-screen { min-height: 100vh; }
.hero:after, .page-hero:after { content: ""; position: absolute; inset: auto -10% -20% auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(201,168,76,.28), transparent 62%); pointer-events: none; }
.hero-content { max-width: 860px; position: relative; z-index: 1; }
.hero-logo { width: 108px; margin: 0 auto 24px; border-radius: 30px; box-shadow: var(--shadow); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; color: var(--gold); font-weight: 800; font-size: .78rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.45rem); opacity: .94; }

/* ── Typographie ── */
h1 { font-size: clamp(2.8rem, 7vw, 6.7rem); line-height: .94; margin: 12px 0; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; margin: 0 0 18px; }
h3 { margin-bottom: 8px; }

/* ── Sections ── */
.section { padding: 96px 0; }
.alt { background: var(--light); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.center { text-align: center; }
.cards { display: grid; gap: 26px; }
.three { grid-template-columns: repeat(3, 1fr); }

/* ── Cards ── */
.card, .feature-card, .event-card, .contact-card, .ticket-box {
  background: #fff;
  border: 1px solid rgba(124,26,53,.09);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: .3s;
}
.card:hover, .event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card span { color: var(--gold); font-size: 2rem; }

/* ── Zellige pattern ── */
.zellige {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, rgba(124,26,53,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(201,168,76,.06) 25%, transparent 25%);
  background-size: 34px 34px;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  margin: 8px;
  transition: transform .25s, box-shadow .25s, background .25s;
  cursor: pointer;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: #8F2040; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(12px); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(61,11,25,.22); }

/* ── Countdown ── */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.countdown div { background: var(--wine-dark); color: #fff; border-radius: 20px; padding: 18px; border: 1px solid rgba(201,168,76,.15); }
.countdown strong { font-size: 2rem; display: block; }
.countdown span { text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; color: var(--gold); }

/* ── Galerie ── */
.poster { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gallery-strip, .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-strip img, .gallery-grid img { height: 280px; width: 100%; object-fit: cover; border-radius: 24px; cursor: pointer; }
.map-section iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ── Footer ── */
.footer { background: var(--wine-deep); color: #fff; padding: 54px 0; border-top: 1px solid rgba(201,168,76,.12); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer img { width: 70px; }
.footer a { display: block; color: rgba(255,255,255,.65); margin: 8px 0; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer h4 { color: var(--gold-light); font-size: .82rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 12px; }

/* ── Pages internes ── */
.page { padding-top: 82px; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 5%;
  background: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine-dark) 50%, #5C1228 100%);
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22' fill='none' stroke='rgba(201,168,76,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}
.page-hero h1 { max-width: 980px; font-size: clamp(2.4rem, 5vw, 5rem); position: relative; z-index: 1; }
.page-hero .eyebrow { position: relative; z-index: 1; }

/* ── Éléments divers ── */
.timeline { display: grid; gap: 26px; }
.timeline article { border-left: 3px solid var(--gold); padding-left: 28px; }
.team img { height: 260px; width: 100%; object-fit: cover; border-radius: 22px; }
.role, .date { color: var(--gold); font-weight: 800; }
.socials { display: flex; gap: 12px; color: var(--wine); font-weight: 700; }
.event-card { padding: 0; overflow: hidden; }
.event-card img { height: 330px; width: 100%; object-fit: cover; }
.event-card div { padding: 24px; }
.filters { text-align: center; margin-bottom: 28px; }
.filters button { border: 0; border-radius: 999px; padding: 12px 20px; margin: 6px; background: #F5EDEC; color: var(--wine); font-weight: 800; cursor: pointer; transition: .2s; }
.filters .active, .filters button:hover { background: var(--wine); color: #fff; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 20px; }
.lightbox button { position: absolute; top: 24px; right: 30px; font-size: 2rem; background: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; }
.contact-form label { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(124,26,53,.2); border-radius: 18px; padding: 15px; font: inherit; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.program { padding-left: 18px; }
.ticket-box { min-height: 180px; display: grid; place-items: center; color: var(--muted); border-style: dashed; }

/* ═══════════════════════════════════════════
   HERO SPLIT-SCREEN
═══════════════════════════════════════════ */
.hero-split{
  min-height:100vh;
  display:grid;
  grid-template-columns:60fr 40fr;
  position:relative;
  overflow:hidden;
  background: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine-dark) 45%, #5A1025 100%);
  color: #fff;
}

/* motif SVG en fond */
.hero-pattern{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.7;
}

/* lueur décorative coin droit */
.hero-split::before{
  content:"";
  position:absolute;
  bottom:-10%;
  right:35%;
  width:520px;
  height:520px;
  background:radial-gradient(circle,rgba(200,160,77,.22) 0%,transparent 65%);
  pointer-events:none;
  z-index:0;
}

/* ── Colonne gauche ── */
.hero-left{
  display:flex;
  align-items:center;
  padding:120px 5% 80px 6%;
  position:relative;
  z-index:1;
}

.hero-left-inner{
  max-width:600px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:rgba(200,160,77,.15);
  border:1px solid rgba(200,160,77,.35);
  border-radius:999px;
  padding:8px 18px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:28px;
}

.badge-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 8px var(--gold);
  animation:pulse-dot 2s ease-in-out infinite;
}

.hero-title{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(3rem,5.5vw,5.8rem);
  font-weight:900;
  line-height:.95;
  margin:0 0 24px;
  letter-spacing:-.02em;
}

.hero-title-accent{
  color:var(--gold);
  display:inline-block;
  position:relative;
}

.hero-title-accent::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,var(--gold),transparent);
  border-radius:2px;
}

.hero-desc{
  font-size:clamp(1rem,1.6vw,1.25rem);
  opacity:.85;
  max-width:480px;
  line-height:1.65;
  margin-bottom:36px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-bottom:44px;
}

.btn-glass-dark{
  background:rgba(255,255,255,.1);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(12px);
}

.btn-glass-dark:hover{
  background:rgba(255,255,255,.18);
}

.hero-stats{
  display:flex;
  align-items:center;
  gap:24px;
}

.hero-stat strong{
  display:block;
  font-size:1.45rem;
  font-weight:900;
  color:#fff;
  line-height:1;
}

.hero-stat span{
  font-size:.72rem;
  color:rgba(255,255,255,.55);
  text-transform:uppercase;
  letter-spacing:.1em;
}

.hero-stat-sep{
  width:1px;
  height:36px;
  background:rgba(255,255,255,.2);
}

/* ── Colonne droite ── */
.hero-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:100px 5% 80px 4%;
  position:relative;
  z-index:1;
}

.hero-photo-wrap{
  position:relative;
  width:100%;
  max-width:420px;
}

.photo-ornament{
  text-align:center;
  padding:6px 0;
}

.photo-ornament svg{
  width:100%;
  max-width:260px;
}

/* Cadre photo */
.hero-photo-frame{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  border:2px solid rgba(200,160,77,.5);
  box-shadow:0 0 0 6px rgba(200,160,77,.08), 0 32px 80px rgba(0,0,0,.45);
  animation:glow-border 3s ease-in-out infinite alternate;
  aspect-ratio:3/4;
  min-height:340px;
  background: rgba(61,11,25,.3);
}

.hero-photo-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Placeholder si pas de photo */
.photo-placeholder{
  display:none;
  position:absolute;
  inset:0;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(61,11,25,.7), rgba(124,26,53,.3));
}

.placeholder-inner{
  text-align:center;
  padding:24px;
}

.placeholder-label{
  margin:14px 0 4px;
  font-weight:700;
  font-size:1.05rem;
  color:var(--gold);
}

.placeholder-hint{
  font-size:.78rem;
  color:rgba(255,255,255,.5);
  margin:0;
}

.placeholder-hint code{
  background:rgba(200,160,77,.15);
  padding:2px 6px;
  border-radius:4px;
  color:var(--gold);
}

/* Overlay bas photo */
.photo-overlay-bottom{
  position:absolute;
  inset:auto 0 0 0;
  height:120px;
  background: linear-gradient(to top, rgba(26,4,9,.75), transparent);
  pointer-events:none;
}

/* Badge drapeau sur la photo */
.photo-badge{
  position:absolute;
  bottom:18px;
  left:18px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(10px);
  border:1px solid rgba(200,160,77,.3);
  border-radius:999px;
  padding:8px 16px;
  font-size:.82rem;
  font-weight:700;
  color:#fff;
}

/* Carte flottante */
.floating-card{
  position:absolute;
  background:rgba(255,255,255,.97);
  border-radius:16px;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow: 0 16px 40px rgba(61,11,25,.22);
  color:var(--text);
  font-size:.82rem;
  animation:float 4s ease-in-out infinite;
  white-space:nowrap;
}

.floating-card strong{
  display:block;
  font-weight:800;
  font-size:.85rem;
}

.floating-card span:last-child{
  color:var(--muted);
}

.fc-icon{
  color:var(--gold);
  font-size:1.3rem;
  flex-shrink:0;
}

.float-card-1{
  bottom:-18px;
  right:-14px;
}

/* Scroll indicator */
.scroll-indicator{
  position:absolute;
  bottom:32px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  z-index:2;
}

.scroll-indicator span{
  display:block;
  width:2px;
  height:8px;
  background:rgba(255,255,255,.4);
  border-radius:2px;
  animation:scroll-bounce 1.4s ease-in-out infinite;
}

.scroll-indicator span:nth-child(2){animation-delay:.15s}
.scroll-indicator span:nth-child(3){animation-delay:.3s}

/* ── Logo footer ── */
.footer-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,.35);
  transition: transform .25s, opacity .25s, border-color .25s;
}
.footer-logo-img:hover {
  transform: scale(1.07);
  border-color: var(--gold);
}

