/* ============================================================
   MERKEZ AL MOUNASSIB — Feuille de style principale
   Direction artistique : Le Caire historique, nuit sur le Nil,
   arche islamique comme signature structurelle.
   ============================================================ */

/* ---------- Polices (chargées localement via Google Fonts CDN) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Amiri:wght@400;700&display=swap');

/* ---------- Jetons de design ---------- */
:root {
  --encre: #421F2A;          /* bleu du Nil très profond — texte */
  --nil: #7A3A48;            /* bleu du Nil */
  --turquoise: #B4737D;      /* turquoise profond */
  --ciel: #F4DCDE;           /* bleu ciel doux */
  --or: #C9A24B;             /* or du logo */
  --or-clair: #E3C87F;
  --papyrus: #FBF1EE;        /* fond principal */
  --sable: #F7E4DD;          /* sable chaud */
  --terracotta: #C0664B;
  --sauge: #7E9B84;
  --rose: #F3D9D6;           /* rose poudré */
  --creme: #FFFBF9;
  --ombre: 0 10px 40px rgba(66, 31, 42, .10);
  --ombre-forte: 0 18px 60px rgba(66, 31, 42, .16);
  --rayon: 18px;
  --arche: 999px 999px 18px 18px; /* signature : carte en arche */
  --transition: .35s cubic-bezier(.25,.6,.3,1);
  --police-titre: 'Marcellus', 'Georgia', serif;
  --police-texte: 'Karla', 'Segoe UI', sans-serif;
  --police-arabe: 'Amiri', serif;
  --largeur-max: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.7;
  color: var(--encre);
  background: var(--papyrus);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turquoise); text-decoration: none; }
a:hover { color: var(--nil); }
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 400;
  line-height: 1.25;
  color: var(--encre);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
.ar {
  font-family: var(--police-arabe);
  direction: rtl;
}
:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: #fff; padding: .8rem 1.2rem; z-index: 200;
}
.skip-link:focus { left: 0; }

.conteneur {
  width: min(var(--largeur-max), 92%);
  margin-inline: auto;
}
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* Sur-titre doré */
.surtitre {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--or);
  margin-bottom: 1rem;
}
.surtitre::before {
  content: ""; width: 34px; height: 2px; background: var(--or); border-radius: 2px;
}
.centre { text-align: center; }
.centre .surtitre::after {
  content: ""; width: 34px; height: 2px; background: var(--or); border-radius: 2px;
}
.intro-section {
  max-width: 680px; margin: 0 auto 3rem; color: #6B4A52;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem; border-radius: 999px;
  font-family: var(--police-texte); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-or {
  background: linear-gradient(135deg, var(--or-clair), var(--or));
  color: #2B2410; box-shadow: 0 8px 24px rgba(201,162,75,.35);
}
.btn-or:hover { box-shadow: 0 12px 30px rgba(201,162,75,.5); color: #2B2410; }
.btn-contour {
  background: transparent; color: var(--creme); border-color: rgba(255,255,255,.55);
}
.btn-contour:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-nil {
  background: var(--nil); color: #fff;
}
.btn-nil:hover { background: var(--encre); color: #fff; box-shadow: var(--ombre); }
.btn-whatsapp {
  background: #1FA855; color: #fff;
}
.btn-whatsapp:hover { background: #17853F; color: #fff; }

/* ---------- Navigation ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1rem 0;
}
.entete.opaque {
  background: rgba(251,241,238,.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(66,31,42,.08);
  padding: .55rem 0;
}
.entete-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marque {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--police-titre); font-size: 1.15rem; color: var(--creme);
  transition: color var(--transition);
}
.entete.opaque .marque, .entete.sombre-off .marque { color: var(--encre); }
.marque img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--or); box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.marque .ar-nom { font-size: .8rem; color: var(--or); display: block; line-height: 1; }
.nav-liens {
  display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
}
.nav-liens a {
  font-weight: 600; font-size: .95rem; color: var(--creme);
  padding: .3rem 0; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.entete.opaque .nav-liens a, .entete.sombre-off .nav-liens a { color: var(--encre); }
.nav-liens a:hover, .nav-liens a[aria-current="page"] { border-color: var(--or); color: var(--or); }
.entete.opaque .nav-liens a:hover, .entete.opaque .nav-liens a[aria-current="page"] { color: var(--nil); border-color: var(--or); }
.nav-cta { margin-left: .4rem; }
.nav-cta .btn { padding: .55rem 1.3rem; font-size: .9rem; }

/* Burger mobile */
.burger {
  display: none; background: none; border: none; cursor: pointer; padding: .5rem;
}
.burger span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--creme); border-radius: 2px; transition: var(--transition);
}
.entete.opaque .burger span, .entete.sombre-off .burger span { background: var(--encre); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav-liens {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center; gap: 1.8rem;
    background: linear-gradient(160deg, var(--encre), var(--nil));
    transform: translateX(100%); transition: transform .4s ease;
    z-index: 90;
  }
  .nav-liens.ouvert { transform: translateX(0); }
  .nav-liens a { color: #fff !important; font-size: 1.25rem; }
  .entete.opaque .burger { position: relative; z-index: 95; }
  .burger { position: relative; z-index: 95; }
}

/* ---------- HÉRO : nuit dorée sur le Nil, portail en arche ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--creme);
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(201,162,75,.28), transparent 60%),
    linear-gradient(180deg, #3A1B24 0%, #5A2B38 45%, #7A3A48 100%);
  overflow: hidden;
  padding: 7rem 0 5rem;
}
/* étoiles */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 45% 22%, rgba(227,200,127,.9), transparent),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 78% 25%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 88% 9%, rgba(227,200,127,.8), transparent),
    radial-gradient(1.5px 1.5px at 8% 40%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 93% 38%, rgba(255,255,255,.55), transparent);
  animation: scintiller 6s ease-in-out infinite alternate;
}
@keyframes scintiller { from { opacity: .55; } to { opacity: 1; } }
/* horizon du Nil */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(201,162,75,.18));
  mask: repeating-linear-gradient(90deg, #000 0 60px, transparent 60px 68px);
  opacity: .5;
}
.hero-arche {
  position: relative; z-index: 2;
  width: min(720px, 92%);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  border: 1.5px solid rgba(227,200,127,.65);
  border-radius: 320px 320px 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  backdrop-filter: blur(2px);
  box-shadow: 0 0 80px rgba(201,162,75,.12), inset 0 0 60px rgba(201,162,75,.05);
  animation: portail 1.6s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes portail {
  from { opacity: 0; transform: scale(.94) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-arche::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(227,200,127,.25);
  border-radius: 310px 310px 18px 18px;
  pointer-events: none;
}
.hero-logo {
  width: clamp(84px, 12vw, 116px); height: auto; margin: 0 auto 1.4rem;
  border-radius: 50%; border: 2px solid var(--or-clair);
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.hero-nom-ar {
  font-family: var(--police-arabe); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--or-clair); margin-bottom: .4rem;
}
.hero h1 {
  color: var(--creme);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal; color: var(--or-clair);
}
.hero-sous {
  max-width: 540px; margin: 0 auto 2rem;
  color: rgba(255,253,247,.85); font-size: clamp(1rem, 2vw, 1.15rem);
}
.hero-boutons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-defile {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; text-align: center;
}
.hero-defile span {
  display: block; width: 1px; height: 42px; margin: .6rem auto 0;
  background: linear-gradient(180deg, var(--or-clair), transparent);
  animation: defiler 2s ease-in-out infinite;
}
@keyframes defiler {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Motif moucharabieh (bande de transition) ---------- */
.moucharabieh {
  height: 46px;
  background-color: var(--sable);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cpath d='M23 4 L28 15 L39 15 L30 22 L34 33 L23 26 L12 33 L16 22 L7 15 L18 15 Z' fill='none' stroke='%23C9A24B' stroke-width='1.1' opacity='.55'/%3E%3C/svg%3E");
  background-size: 46px 46px;
}

/* ---------- Cartes en arche (signature) ---------- */
.grille {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.carte {
  background: var(--creme);
  border-radius: var(--rayon);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--ombre);
  border: 1px solid rgba(201,162,75,.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.carte-arche {
  border-radius: var(--arche);
  text-align: center;
  padding-top: 2.6rem;
}
.carte-icone {
  width: 62px; height: 62px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: linear-gradient(145deg, var(--sable), var(--rose));
  border-radius: 999px 999px 10px 10px;
  border: 1px solid rgba(201,162,75,.35);
}
.carte h3 { margin-bottom: .5rem; }
.carte p { color: #6B4A52; font-size: .97rem; margin: 0; }
.carte .badge-niveau {
  display: inline-block; margin-top: 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--nil); background: var(--ciel);
  padding: .25rem .8rem; border-radius: 999px;
}
.carte .carte-lien {
  display: inline-block; margin-top: 1.1rem; font-weight: 700; color: var(--terracotta);
}
.carte .carte-lien:hover { color: var(--nil); }

/* ---------- Section chiffres (fond nuit) ---------- */
.section-nuit {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(180,115,125,.25), transparent 65%),
    linear-gradient(160deg, var(--encre), var(--nil));
  color: var(--creme);
}
.section-nuit h2, .section-nuit h3 { color: var(--creme); }
.section-nuit .surtitre { color: var(--or-clair); }
.section-nuit .surtitre::before, .section-nuit .surtitre::after { background: var(--or-clair); }
.chiffres-grille {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.chiffre-valeur {
  font-family: var(--police-titre);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--or-clair); line-height: 1;
}
.chiffre-libelle { margin-top: .5rem; color: rgba(255,253,247,.8); font-size: .95rem; }

/* ---------- Méthode : le voyage en 6 portes ---------- */
.voyage {
  position: relative;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: etape;
}
.porte {
  position: relative;
  background: var(--creme);
  border: 1px solid rgba(201,162,75,.25);
  border-radius: 999px 999px 14px 14px;
  padding: 2.4rem 1.4rem 1.6rem;
  text-align: center;
  box-shadow: var(--ombre);
  transition: transform var(--transition);
}
.porte:hover { transform: translateY(-5px); }
.porte::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--or-clair), var(--or));
  color: #2B2410; font-weight: 700; border-radius: 50%;
  box-shadow: 0 4px 14px rgba(201,162,75,.4);
  font-family: var(--police-titre); font-size: 1.1rem;
}
.porte h3 { font-size: 1.1rem; }
.porte p { font-size: .92rem; color: #6B4A52; margin: 0; }

/* ---------- Parcours par profil ---------- */
.profils { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.profil {
  display: flex; align-items: center; gap: .9rem;
  background: var(--creme); border: 1px solid rgba(201,162,75,.22);
  border-radius: 14px; padding: 1.1rem 1.3rem;
  font-weight: 600; color: var(--encre);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.profil:hover { transform: translateX(6px); border-color: var(--or); box-shadow: var(--ombre); color: var(--nil); }
.profil .fleche { margin-left: auto; color: var(--or); font-size: 1.2rem; transition: transform var(--transition); }
.profil:hover .fleche { transform: translateX(4px); }

/* ---------- Enseignantes ---------- */
.ens-grille { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ens-carte {
  background: var(--creme); border-radius: var(--rayon);
  border: 1px solid rgba(201,162,75,.2);
  box-shadow: var(--ombre); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ens-carte:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.ens-entete {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, var(--sable), var(--rose));
  border-bottom: 1px solid rgba(201,162,75,.3);
}
.ens-initiales {
  flex-shrink: 0;
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  background: var(--encre); color: var(--or-clair);
  font-family: var(--police-titre); font-size: 1.3rem;
  border-radius: 999px 999px 8px 8px;
  border: 2px solid var(--or);
}
.ens-entete h3 { margin: 0; font-size: 1.15rem; }
.ens-specialite { font-size: .85rem; color: var(--nil); font-weight: 700; }
.ens-corps { padding: 1.3rem 1.6rem 1.6rem; }
.ens-corps p { font-size: .95rem; color: #6B4A52; }
.ens-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.ens-tags span {
  font-size: .78rem; font-weight: 700; color: var(--nil);
  background: var(--ciel); padding: .22rem .75rem; border-radius: 999px;
}

/* ---------- Témoignages ---------- */
.temoignages-grille { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.temoignage {
  position: relative;
  background: var(--creme); border-radius: var(--rayon);
  padding: 2.2rem 1.8rem 1.6rem;
  border: 1px solid rgba(201,162,75,.22);
  box-shadow: var(--ombre);
}
.temoignage::before {
  content: "\201C";
  position: absolute; top: .4rem; left: 1.2rem;
  font-family: var(--police-titre); font-size: 4rem; line-height: 1;
  color: var(--or); opacity: .5;
}
.temoignage p { font-size: .96rem; color: #5C3E47; }
.temoignage footer {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px dashed rgba(201,162,75,.4);
  font-weight: 700; font-size: .9rem; color: var(--nil);
}
.temoignage footer small { display: block; font-weight: 400; color: #97767E; }

/* ---------- Tarifs ---------- */
.tarifs-grille { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tarif-carte {
  background: var(--creme); text-align: center;
  border-radius: var(--arche);
  border: 1px solid rgba(201,162,75,.25);
  padding: 2.8rem 1.6rem 2rem;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tarif-carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.tarif-carte.mise-en-avant { border: 2px solid var(--or); background: linear-gradient(180deg, #FFFBF9, var(--sable)); }
.tarif-prix {
  font-family: var(--police-titre); font-size: 2.6rem; color: var(--nil); line-height: 1;
  margin: .8rem 0 .2rem;
}
.tarif-prix small { font-size: 1rem; color: #97767E; font-family: var(--police-texte); }
.tarif-detail { list-style: none; padding: 0; margin: 1.2rem 0; text-align: left; }
.tarif-detail li {
  padding: .45rem 0 .45rem 1.7rem; position: relative; font-size: .95rem; color: #6B4A52;
  border-bottom: 1px dashed rgba(201,162,75,.25);
}
.tarif-detail li:last-child { border-bottom: none; }
.tarif-detail li::before {
  content: "✦"; position: absolute; left: .2rem; color: var(--or);
}

/* ---------- FAQ ---------- */
.faq-liste { max-width: 780px; margin-inline: auto; }
.faq-item {
  background: var(--creme); border: 1px solid rgba(201,162,75,.22);
  border-radius: 14px; margin-bottom: 1rem; overflow: hidden;
  box-shadow: 0 4px 16px rgba(66,31,42,.05);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 700; font-size: 1.02rem; position: relative;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--police-titre); font-size: 1.6rem; color: var(--or);
  transition: transform var(--transition);
}
.faq-item[open] summary { color: var(--nil); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-reponse { padding: 0 1.4rem 1.3rem; color: #6B4A52; font-size: .97rem; }

/* ---------- Section Égypte (immersive) ---------- */
.section-egypte {
  position: relative; color: var(--creme);
  background:
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(192,102,75,.3), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(180,115,125,.3), transparent 60%),
    linear-gradient(200deg, #5A2B38, #3A1B24);
  overflow: hidden;
}
.section-egypte h2 { color: var(--creme); }
.section-egypte p { color: rgba(255,253,247,.85); }
.section-egypte .surtitre { color: var(--or-clair); }
.section-egypte .surtitre::before { background: var(--or-clair); }
.silhouette-caire {
  position: absolute; bottom: 0; left: 0; right: 0; height: 130px;
  opacity: .25; pointer-events: none;
}
.egypte-inner { position: relative; z-index: 2; display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 820px) { .egypte-inner { grid-template-columns: 1fr; } }
.egypte-motif {
  aspect-ratio: 1; max-width: 380px; margin-inline: auto;
  border: 1.5px solid rgba(227,200,127,.5);
  border-radius: 999px 999px 20px 20px;
  display: flex; align-items: center; justify-content: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cpath d='M23 4 L28 15 L39 15 L30 22 L34 33 L23 26 L12 33 L16 22 L7 15 L18 15 Z' fill='none' stroke='%23E3C87F' stroke-width='1' opacity='.35'/%3E%3C/svg%3E");
  background-size: 46px;
}
.egypte-motif .ar {
  font-size: clamp(2rem, 5vw, 3rem); color: var(--or-clair); text-align: center;
  text-shadow: 0 4px 30px rgba(201,162,75,.4);
  padding: 1rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 90% at 50% 120%, rgba(201,162,75,.35), transparent 65%),
    linear-gradient(180deg, var(--nil), var(--encre));
  color: var(--creme);
}
.cta-final h2 { color: var(--creme); max-width: 700px; margin-inline: auto; }
.cta-final p { color: rgba(255,253,247,.85); max-width: 560px; margin: 0 auto 2rem; }
.cta-boutons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Pied de page ---------- */
.pied {
  background: #3A1B24; color: rgba(255,253,247,.75);
  padding: 3.5rem 0 1.5rem; font-size: .93rem;
}
.pied-grille {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h4 { color: var(--or-clair); font-size: 1.05rem; margin-bottom: 1rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .55rem; }
.pied a { color: rgba(255,253,247,.75); }
.pied a:hover { color: var(--or-clair); }
.pied-logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.pied-logo img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--or); }
.pied-logo strong { font-family: var(--police-titre); font-weight: 400; font-size: 1.15rem; color: var(--creme); display: block; }
.pied-logo .ar { color: var(--or-clair); font-size: .95rem; }
.pied-bas {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4rem; text-align: center; font-size: .84rem; color: rgba(255,253,247,.5);
}
.pied-bas a { color: rgba(255,253,247,.6); }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-flottant {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1FA855; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(31,168,85,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-flottant:hover { transform: scale(1.08); color: #fff; box-shadow: 0 12px 32px rgba(31,168,85,.6); }
.wa-flottant svg { width: 30px; height: 30px; }

/* ---------- Formulaire de contact ---------- */
.form-grille { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grille { grid-template-columns: 1fr; } }
.champ { display: flex; flex-direction: column; gap: .35rem; }
.champ.pleine-largeur { grid-column: 1 / -1; }
.champ label { font-weight: 700; font-size: .92rem; }
.champ input, .champ select, .champ textarea {
  font-family: var(--police-texte); font-size: 1rem;
  padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid rgba(66,31,42,.2); background: var(--creme);
  color: var(--encre);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(180,115,125,.18);
}
.champ-consent { display: flex; gap: .7rem; align-items: flex-start; grid-column: 1 / -1; font-size: .9rem; color: #6B4A52; }
.champ-consent input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--nil); }
.cache { position: absolute; left: -9999px; }

.contact-cartes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 3rem; }

/* ---------- Fil d'Ariane ---------- */
.ariane {
  font-size: .85rem; color: #97767E; margin-bottom: 1.2rem;
}
.ariane a { color: var(--nil); }
.ariane span[aria-current] { color: #97767E; }

/* ---------- Bannière de page intérieure ---------- */
.banniere-page {
  padding: 9rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(201,162,75,.25), transparent 60%),
    linear-gradient(180deg, #3A1B24, #7A3A48);
  color: var(--creme); text-align: center;
}
.banniere-page h1 { color: var(--creme); }
.banniere-page p { color: rgba(255,253,247,.85); max-width: 640px; margin: 0 auto; }
.banniere-page .surtitre { color: var(--or-clair); justify-content: center; }
.banniere-page .surtitre::before, .banniere-page .surtitre::after { background: var(--or-clair); }

/* ---------- Sections alternées ---------- */
.section-sable { background: linear-gradient(180deg, var(--papyrus), var(--sable) 130%); }
.section-rose { background: linear-gradient(180deg, var(--papyrus), var(--rose) 160%); }

/* ---------- Révélation au défilement ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delai-1 { transition-delay: .12s; }
.reveal-delai-2 { transition-delay: .24s; }
.reveal-delai-3 { transition-delay: .36s; }

/* ---------- Page 404 ---------- */
.page-404 {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--creme);
  background: linear-gradient(180deg, #3A1B24, #7A3A48);
  padding: 2rem;
}
.page-404 h1 { color: var(--or-clair); font-size: clamp(4rem, 12vw, 7rem); margin-bottom: 0; }
.page-404 p { color: rgba(255,253,247,.85); }

/* ---------- Pages légales ---------- */
.page-legale { max-width: 760px; margin-inline: auto; }
.page-legale h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.a-completer {
  background: var(--rose); border: 1px dashed var(--terracotta);
  padding: .1rem .5rem; border-radius: 6px; font-weight: 700; color: var(--terracotta);
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impression ---------- */
@media print {
  .entete, .wa-flottant, .hero-defile { display: none; }
}

/* ============================================================
   V2 — Immersion photographique et cinématographique
   ============================================================ */

/* Transition cinématographique entre les pages */
body { animation: fondu-page .9s ease both; }
@keyframes fondu-page {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Couche photo du héro (femme de dos lisant le Coran) */
.hero-photo {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken-burns 26s ease-in-out infinite alternate;
  filter: saturate(.9);
}
@keyframes ken-burns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.12) translateY(-2.5%); }
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 115%, rgba(201,162,75,.35), transparent 60%),
    linear-gradient(180deg, rgba(58,27,36,.82) 0%, rgba(90,43,56,.68) 50%, rgba(58,27,36,.85) 100%);
}
.hero::before { z-index: 1; }
.hero-arche { background: linear-gradient(180deg, rgba(58,27,36,.32), rgba(58,27,36,.16)); backdrop-filter: blur(3px); }

/* Citations du Coran et de la Sunna */
.citation {
  max-width: 780px; margin: 0 auto; text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.5rem);
  position: relative;
}
.citation::before, .citation::after {
  content: ""; display: block; width: 90px; height: 2px;
  margin: 0 auto; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.citation::before { margin-bottom: 1.6rem; }
.citation::after { margin-top: 1.6rem; }
.citation .citation-ar {
  font-family: var(--police-arabe); direction: rtl;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.9;
  color: var(--encre); margin-bottom: .8rem;
}
.section-nuit .citation .citation-ar,
.section-egypte .citation .citation-ar,
.cta-final .citation .citation-ar { color: var(--or-clair); }
.citation .citation-fr {
  font-family: var(--police-titre); font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--nil); margin-bottom: .6rem;
}
.section-nuit .citation .citation-fr,
.section-egypte .citation .citation-fr,
.cta-final .citation .citation-fr { color: var(--creme); }
.citation .citation-source {
  font-size: .85rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--or);
}

/* Duo texte + photo en arche */
.duo {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.duo.inverse { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 840px) { .duo, .duo.inverse { grid-template-columns: 1fr; } }
.photo-arche {
  position: relative;
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  border: 1.5px solid rgba(201,162,75,.55);
  box-shadow: 0 24px 60px rgba(66,31,42,.22);
  aspect-ratio: 4 / 5;
  max-width: 440px; margin-inline: auto;
}
.photo-arche::before {
  content: ""; position: absolute; inset: 10px; z-index: 2;
  border: 1px solid rgba(255,251,249,.5);
  border-radius: 989px 989px 16px 16px;
  pointer-events: none;
}
.photo-arche img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.photo-arche:hover img { transform: scale(1.06); }

/* Bande photo panoramique (transition cinématographique entre sections) */
.bande-photo {
  position: relative; height: clamp(260px, 44vw, 420px); overflow: hidden;
}
.bande-photo img {
  width: 100%; height: 130%; object-fit: cover; object-position: center 30%;
}
.bande-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,27,36,.45), rgba(58,27,36,.15) 45%, rgba(58,27,36,.5));
}
.bande-photo .bande-legende {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--creme); padding: 1.5rem;
}
.bande-photo .bande-legende .ar {
  display: block; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--or-clair); margin-bottom: .4rem;
}
.bande-photo .bande-legende p {
  font-family: var(--police-titre); font-size: clamp(1rem, 2.4vw, 1.35rem); margin: 0;
  text-shadow: 0 2px 18px rgba(58,27,36,.7);
}

/* Bannières intérieures avec photo */
.banniere-page { position: relative; overflow: hidden; }
.banniere-photo {
  position: absolute; inset: 0; z-index: 0;
}
.banniere-photo img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken-burns 30s ease-in-out infinite alternate;
}
.banniere-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,27,36,.85), rgba(90,43,56,.72));
}
.banniere-page .conteneur { position: relative; z-index: 2; }

/* Section Égypte : photo immersive en fond */
.section-egypte { position: relative; }
.egypte-fond {
  position: absolute; inset: 0; z-index: 0;
}
.egypte-fond img { width: 100%; height: 100%; object-fit: cover; }
.egypte-fond::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(58,27,36,.92) 20%, rgba(90,43,56,.82));
}
.section-egypte .conteneur, .section-egypte .silhouette-caire { position: relative; z-index: 2; }
.egypte-motif { overflow: hidden; padding: 0; }
.egypte-motif img { width: 100%; height: 100%; object-fit: cover; }

/* Mouvement réduit : couper les effets photo */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .hero-photo img, .banniere-photo img { animation: none; }
  .photo-arche:hover img { transform: none; }
}

/* ============================================================
   V2 — Immersion cinématographique : photos, versets, transitions
   ============================================================ */

/* ---------- Héro avec photo de fond et zoom lent ---------- */
.hero { isolation: isolate; }
.hero-fond {
  position: absolute; inset: -4%;
  background: url('/assets/photos/hero.jpg') center 30%/cover no-repeat;
  z-index: 0;
  animation: zoom-lent 26s ease-in-out infinite alternate;
  filter: saturate(.9);
}
@keyframes zoom-lent { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-voile {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 90% 60% at 50% 115%, rgba(201,162,75,.30), transparent 60%),
    linear-gradient(180deg, rgba(46,26,33,.82) 0%, rgba(69,38,46,.72) 45%, rgba(110,59,70,.62) 100%);
}
.hero::before { z-index: 1; }
.hero-arche { z-index: 2; }

/* ---------- Verset / hadith mis en scène ---------- */
.verset {
  text-align: center; max-width: 760px; margin-inline: auto;
}
.verset .ar {
  display: block;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--or-clair);
  line-height: 1.9;
  text-shadow: 0 4px 30px rgba(201,162,75,.35);
  margin-bottom: .8rem;
}
.verset .traduction {
  font-family: var(--police-titre);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--creme);
  margin-bottom: .4rem;
}
.verset .source {
  font-size: .88rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--or); font-weight: 700;
}
.verset-clair .traduction { color: var(--encre); }
.verset-clair .ar { text-shadow: none; color: var(--or); }
.hero .verset-hero .ar {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: .6rem;
}

/* ---------- Scènes photo plein écran (voyage entre les pages) ---------- */
.scene {
  position: relative;
  min-height: 68svh;
  display: flex; align-items: center; justify-content: center;
  color: var(--creme);
  background-size: cover; background-position: center;
  overflow: hidden; isolation: isolate;
  padding: clamp(4rem, 10vw, 7rem) 0;
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .scene { background-attachment: fixed; } /* parallax simple */
}
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 110%, rgba(201,162,75,.28), transparent 60%),
    linear-gradient(180deg, rgba(46,26,33,.72), rgba(69,38,46,.66));
}
.scene > .conteneur { position: relative; z-index: 1; }
.scene-classe { background-image: url('/assets/photos/classe.jpg'); }
.scene-egypte { background-image: url('/assets/photos/egypte.jpg'); }
.scene-bibliotheque { background-image: url('/assets/photos/bibliotheque.jpg'); }
.scene-bas { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Bordure dorée fine en haut/bas des scènes */
.scene::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  border-top: 1px solid rgba(227,200,127,.45);
  border-bottom: 1px solid rgba(227,200,127,.45);
  pointer-events: none; z-index: 1;
}

/* ---------- Section Égypte : photo en fond ---------- */
.section-egypte {
  background:
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(192,102,75,.35), transparent 60%),
    linear-gradient(200deg, rgba(69,38,46,.88), rgba(46,26,33,.92)),
    url('/assets/photos/egypte.jpg') center/cover no-repeat;
}

/* ---------- Transitions cinématographiques entre les pages ---------- */
body { animation: page-entree .7s ease both; }
@keyframes page-entree {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.page-sortie {
  opacity: 0; transition: opacity .32s ease;
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.page-sortie { opacity: 1; transition: none; }
  .hero-fond { animation: none; }
}

/* ============================================================
   V3 — Photo en fond d'écran de chaque page
   ============================================================ */
/* Toile de fond fixe (compatible iOS/Safari, contrairement à background-attachment) */
.fond-page {
  position: fixed; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  pointer-events: none;
}
.fond-page::after {
  /* voile rosé pour préserver la lisibilité, dégradé plus dense vers le bas */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(46,26,33,.30) 0%,
    rgba(253,246,241,.72) 22%,
    rgba(253,246,241,.86) 55%,
    rgba(253,246,241,.80) 100%);
}
/* Le corps devient translucide pour laisser voir la toile de fond */
body { background: transparent; }
/* Sections de contenu : voiles translucides au lieu d'aplats opaques */
main > section:not(.scene):not(.section-nuit):not(.section-egypte):not(.cta-final):not(.banniere-page):not(.hero) {
  background: rgba(253,246,241,.55);
  backdrop-filter: blur(2px);
}
main > section.section-sable {
  background: linear-gradient(180deg, rgba(253,246,241,.55), rgba(245,228,214,.72)) !important;
}
main > section.section-rose {
  background: linear-gradient(180deg, rgba(253,246,241,.55), rgba(239,217,210,.72)) !important;
}
/* Les cartes restent pleines pour la lisibilité */
.carte, .ens-carte, .tarif-carte, .temoignage, .faq-item, .porte, .profil {
  background: rgba(255,253,247,.96);
}
/* Sections sombres : légère transparence pour laisser respirer la photo */
.section-nuit, .cta-final {
  background:
    radial-gradient(ellipse 80% 90% at 50% 120%, rgba(201,162,75,.30), transparent 65%),
    linear-gradient(180deg, rgba(69,38,46,.90), rgba(46,26,33,.93));
}
@media (prefers-reduced-motion: reduce) {
  main > section { backdrop-filter: none; }
}

/* ============================================================
   V4 — Vraies photos (Pexels, licence libre) + écran d'entrée logo
   ============================================================ */

.hero-fond { background-image: var(--photo-hero); }
.scene-classe { background-image: var(--photo-classe); }
.scene-egypte { background-image: var(--photo-egypte); }
.scene-bibliotheque { background-image: var(--photo-bibliotheque); }
.section-egypte {
  background-image:
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(192,102,75,.35), transparent 60%),
    linear-gradient(200deg, rgba(69,38,46,.88), rgba(46,26,33,.92)),
    var(--photo-egypte);
  background-size: auto, auto, cover, cover;
  background-position: center;
}

/* ---------- Écran d'entrée : le logo, puis les portes s'ouvrent ---------- */
#intro {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.intro-porte {
  position: absolute; top: 0; bottom: 0; width: 51%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cpath d='M23 4 L28 15 L39 15 L30 22 L34 33 L23 26 L12 33 L16 22 L7 15 L18 15 Z' fill='none' stroke='%23E3C87F' stroke-width='1' opacity='.14'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #2E1A21, #45262E 55%, #6E3B46);
  background-size: 46px, cover;
  transition: transform 1s cubic-bezier(.7,0,.2,1);
}
.intro-porte.gauche { left: 0; border-right: 1px solid rgba(227,200,127,.5); }
.intro-porte.droite { right: 0; border-left: 1px solid rgba(227,200,127,.5); }
.intro-contenu {
  position: relative; z-index: 2; text-align: center; color: var(--creme);
  transition: opacity .5s ease, transform .5s ease;
}
.intro-contenu img {
  width: clamp(130px, 22vw, 190px); height: auto;
  border-radius: 50%; border: 3px solid var(--or-clair);
  box-shadow: 0 0 0 0 rgba(201,162,75,.5), 0 10px 50px rgba(0,0,0,.5);
  margin: 0 auto 1.2rem;
  animation: intro-logo 1.3s cubic-bezier(.2,.8,.3,1.2) both,
             intro-halo 2.2s ease-out .3s both;
}
@keyframes intro-logo {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes intro-halo {
  from { box-shadow: 0 0 0 0 rgba(201,162,75,.55), 0 10px 50px rgba(0,0,0,.5); }
  to   { box-shadow: 0 0 0 60px rgba(201,162,75,0), 0 10px 50px rgba(0,0,0,.5); }
}
.intro-contenu .intro-ar {
  font-family: var(--police-arabe); font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--or-clair);
  animation: intro-texte .9s ease .5s both;
}
.intro-contenu .intro-nom {
  font-family: var(--police-titre); font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: .18em; text-transform: uppercase; margin-top: .4rem;
  animation: intro-texte .9s ease .75s both;
}
@keyframes intro-texte {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Ouverture des portes */
#intro.intro-ouvre .intro-porte.gauche { transform: translateX(-101%); }
#intro.intro-ouvre .intro-porte.droite { transform: translateX(101%); }
#intro.intro-ouvre .intro-contenu { opacity: 0; transform: scale(1.06); }
#intro.intro-fini { display: none; }
@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
}

/* ============================================================
   V5 — Photos personnelles du Merkez en fond, cadrage soigné
   ============================================================ */
:root {
  --photo-hero: url('/assets/photos/hero.jpg');
  --photo-classe: url('/assets/photos/classe.jpg');
  --photo-egypte: url('/assets/photos/egypte.jpg');
  --photo-bibliotheque: url('/assets/photos/bibliotheque.jpg');
}
/* Cadrages : montrer la partie forte de chaque image */
.hero-fond { background-position: center 32%; }
.fond-page { background-position: center 28%; }
.scene-classe { background-position: center 45%; }
.scene-egypte { background-position: center 18%; }      /* sommets des minarets */
.scene-bibliotheque { background-position: center 55%; }
.section-egypte { background-position: center, center, center 20%; }
/* Netteté du rendu sur grands écrans */
.hero-fond, .fond-page, .scene { image-rendering: auto; }
