/* Khidma Multi Services — site vitrine. Mobile d'abord. */
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/Inter-VF.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --vert: #1B6B2A; --profond: #124A1D; --pale: #BFE0C4; --brume: #E8F2E9; --nuit: #262A36; --or: #C9982F; --or-clair: #E6C067;
  --ivoire: #F7F5EF; --blanc: #FFFFFF; --texte: #1E222C; --doux: #5A6070; --trait: #E5E2D8;
  --titres: 'Poppins', system-ui, sans-serif; --corps: 'Inter', system-ui, -apple-system, sans-serif;
  --ombre: 0 1px 2px rgba(30, 34, 44, 0.06), 0 18px 40px -22px rgba(30, 34, 44, 0.35);
  --motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='%23ffffff' fill-opacity='0.05'><polygon points='30,0 60,0 30,30 60,60 30,60 0,30'/><polygon points='60,60 90,90 120,60 120,90 90,120 60,90'/></g></svg>");
  --motif-vert: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='%231B6B2A' fill-opacity='0.05'><polygon points='30,0 60,0 30,30 60,60 30,60 0,30'/><polygon points='60,60 90,90 120,60 120,90 90,120 60,90'/></g></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivoire); color: var(--texte); font-family: var(--corps); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; color: var(--nuit); text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
.enveloppe { width: min(100% - 40px, 1180px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- briques ---------- */
.sur { display: inline-flex; align-items: center; gap: 14px; font: 500 0.74rem var(--titres); letter-spacing: 0.3em; text-transform: uppercase; color: var(--vert); }
.sur::before { content: ''; width: 40px; height: 2px; background: var(--or); }
.sur--clair { color: var(--or-clair); } .sur--clair::before { background: var(--or-clair); }
.titre { font-size: clamp(1.9rem, 6vw, 3.1rem); margin-top: 16px; }
.titre em { font-style: normal; color: var(--vert); }
.chapo { margin-top: 18px; font-size: 1.06rem; color: var(--doux); max-width: 60ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 0.95rem var(--corps); cursor: pointer; transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn--or { background: var(--or-clair); color: var(--nuit); } .btn--or:hover { background: #F0CF80; }
.btn--vert { background: var(--vert); color: #fff; } .btn--vert:hover { background: var(--profond); }
.btn--ligne { border-color: rgba(255, 255, 255, 0.55); color: #fff; } .btn--ligne:hover { background: #fff; color: var(--nuit); }
.btn--nuit { border-color: var(--nuit); color: var(--nuit); } .btn--nuit:hover { background: var(--nuit); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.picto { width: 44px; height: 44px; color: var(--vert); --pa: var(--or); flex: none; }

/* Cadre photo : la signature Khidma, un triangle nuit et un triangle vert */
.cadre { position: relative; overflow: hidden; border-radius: 6px; background: var(--trait); box-shadow: var(--ombre); }
.cadre img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cadre:hover img { transform: scale(1.04); }
.cadre::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; border-top: 54px solid var(--ivoire); border-right: 54px solid transparent; }
.cadre::after { content: ''; position: absolute; z-index: 1; right: 0; bottom: 0; border-bottom: 74px solid var(--vert); border-left: 74px solid transparent; }
.cadre--or::after { border-bottom-color: var(--or); }
.cadre--nu::before, .cadre--nu::after { display: none; }

/* apparition au défilement */
.apparait { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.apparait.vu { opacity: 1; transform: none; }

/* ---------- chargement ---------- */
.chargement { position: fixed; inset: 0; z-index: 100; background: var(--profond) var(--motif); display: grid; place-items: center; transition: opacity 0.6s ease, visibility 0.6s; }
.chargement.fini { opacity: 0; visibility: hidden; }
.chargement svg { width: min(46vw, 220px); }
.chargement .k { animation: glisse-k 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.chargement .m { animation: glisse-m 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.chargement .t { animation: fondu 0.6s 0.7s both; }
@keyframes glisse-k { from { opacity: 0; transform: translateX(60px); } }
@keyframes glisse-m { from { opacity: 0; transform: translateY(-60px); } }
@keyframes fondu { from { opacity: 0; } }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.35s, box-shadow 0.35s; }
.nav__barre { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.nav__logo img { height: 34px; width: auto; }
.nav__logo .sombre { display: none; }
.nav.pleine { background: rgba(247, 245, 239, 0.86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--trait); }
.nav.pleine .nav__logo .clair { display: none; } .nav.pleine .nav__logo .sombre { display: block; }
.nav__liens { position: fixed; inset: 72px 0 0 0; background: var(--profond) var(--motif); display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 40px; transform: translateX(100%); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); overflow-y: auto; }
.nav.ouverte .nav__liens { transform: none; }
.nav__liens a { color: #fff; font: 500 1.35rem var(--titres); padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.nav__liens .btn { margin-top: 22px; border-bottom: 0; font: 600 0.95rem var(--corps); color: var(--nuit); }
.burger { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); background: none; display: grid; place-items: center; cursor: pointer; color: #fff; }
.nav.pleine .burger { border-color: var(--trait); color: var(--nuit); }
.burger i { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }
.nav.ouverte { background: var(--profond); } .nav.ouverte .nav__logo .clair { display: block; } .nav.ouverte .nav__logo .sombre { display: none; } .nav.ouverte .burger { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* ---------- accueil ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--profond); }
.hero__vues, .hero__vue { position: absolute; inset: 0; }
.hero__vue { background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s linear; }
.hero__vue.active { opacity: 1; transform: none; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(13, 46, 20, 0.66); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--motif); }
.hero .enveloppe { position: relative; z-index: 2; padding: 130px 0 46px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 10.5vw, 5.6rem); line-height: 1.02; margin-top: 20px; }
.hero h1 span { color: var(--or-clair); display: block; }
.hero p { margin-top: 22px; max-width: 52ch; color: #DCEBDD; font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__poles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 44px; }
.hero__pole { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.3s, transform 0.3s; cursor: pointer; text-align: left; color: #fff; }
.hero__pole:hover, .hero__pole.active { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.hero__pole.active { border-color: var(--or-clair); }
.hero__pole .picto { width: 30px; height: 30px; color: #fff; --pa: var(--or-clair); }
.hero__pole small { display: block; font: 500 0.56rem var(--titres); letter-spacing: 0.3em; color: var(--or-clair); }
.hero__pole b { font: 600 1rem var(--titres); }

/* ---------- bandeau ---------- */
.bandeau { background: var(--nuit) var(--motif); color: #fff; }
.bandeau ul { display: grid; gap: 0; }
.bandeau li { padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: baseline; gap: 18px; }
.bandeau li:last-child { border-bottom: 0; }
.bandeau b { font: 600 2.4rem/1 var(--titres); color: var(--or-clair); min-width: 96px; }
.bandeau span { color: #C5CAD6; font-size: 0.96rem; }

/* ---------- sections ---------- */
.section { padding: 84px 0; position: relative; }
.section--blanc { background: #fff; }
.section--motif { background: var(--ivoire) var(--motif-vert); }
.deux { display: grid; gap: 40px; align-items: center; }

/* à propos */
.apropos__images { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: end; }
.apropos__images .cadre:first-child { aspect-ratio: 4 / 5; } .apropos__images .cadre:last-child { aspect-ratio: 1; margin-bottom: 34px; }
.valeurs { display: grid; gap: 14px; margin-top: 30px; }
.valeur { display: flex; gap: 16px; align-items: flex-start; }
.valeur i { flex: none; width: 12px; height: 12px; margin-top: 8px; border-right: 3px solid var(--vert); border-top: 3px solid var(--vert); transform: rotate(45deg); }
.valeur h3 { font-size: 1.05rem; } .valeur p { color: var(--doux); font-size: 0.95rem; margin-top: 2px; }

/* vue d'ensemble des pôles */
.poles { display: grid; gap: 16px; margin-top: 44px; }
.carte-pole { position: relative; display: block; border-radius: 16px; overflow: hidden; min-height: 330px; color: #fff; isolation: isolate; }
.carte-pole img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.carte-pole::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(18, 30, 22, 0.58); transition: background 0.4s; }
.carte-pole:hover img { transform: scale(1.07); } .carte-pole:hover::before { background: rgba(18, 74, 29, 0.78); }
.carte-pole::after { content: ''; position: absolute; right: 0; top: 0; border-top: 58px solid var(--or-clair); border-left: 58px solid transparent; }
.carte-pole__in { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; }
.carte-pole .picto { color: #fff; --pa: var(--or-clair); }
.carte-pole h3 { margin-top: auto; color: #fff; font-size: 1.9rem; }
.carte-pole h3 small { display: block; font: 500 0.66rem var(--titres); letter-spacing: 0.32em; color: var(--or-clair); margin-bottom: 6px; }
.carte-pole p { margin-top: 8px; font-size: 0.94rem; color: #E3ECE4; }
.carte-pole span { margin-top: 16px; font: 600 0.84rem var(--corps); display: inline-flex; align-items: center; gap: 10px; }
.carte-pole span::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--or-clair); border-top: 2px solid var(--or-clair); transform: rotate(45deg); transition: transform 0.3s; }
.carte-pole:hover span::after { transform: translateX(6px) rotate(45deg); }

/* rubrique d'un pôle */
.rubrique__tete { display: flex; align-items: center; gap: 16px; }
.rubrique__tete .picto { width: 56px; height: 56px; }
.rubrique__num { font: 600 0.8rem var(--titres); letter-spacing: 0.3em; color: var(--or); }
.rubrique__images { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.rubrique__images .cadre:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.rubrique__images .cadre:nth-child(2) { grid-column: 1 / 4; aspect-ratio: 1; }
.rubrique__images .cadre:nth-child(3) { grid-column: 4 / -1; aspect-ratio: 1; }
.offres { display: grid; gap: 12px; margin-top: 30px; }
.offre { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 20px 22px; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.section--blanc .offre { background: var(--ivoire); }
.offre:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: var(--pale); }
.offre::after { content: ''; position: absolute; right: 0; bottom: 0; border-bottom: 22px solid var(--or); border-left: 22px solid transparent; opacity: 0; transition: opacity 0.3s; }
.offre:hover::after { opacity: 1; }
.offre h4 { font-size: 1.04rem; } .offre p { margin-top: 4px; font-size: 0.93rem; color: var(--doux); }
.rubrique__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Oumrah — scène reprise du site Oumra 2.0 : nuit émeraude, or patiné, Kaaba en volume */
.oumrah { --o-nuit: #0A1712; --o-or: #C9A24A; --o-or-clair: #E7C87A; position: relative; color: #F8F4EB; background: var(--o-nuit); padding: 0; }
.oumrah__scene { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 96px 0 64px; }
.oumrah__photo { position: absolute; inset: -3%; transform: translate(var(--photo-x, 0px), var(--photo-y, 0px)); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.oumrah__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; animation: respirer-photo 30s ease-in-out infinite alternate; }
@keyframes respirer-photo { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.oumrah__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 12, 10, 0.55), rgba(6, 12, 10, 0.88) 48%, rgba(6, 12, 10, 0.97)); }
.oumrah__lueur { position: absolute; top: 4%; left: 50%; width: min(620px, 110vw); aspect-ratio: 1; margin-left: calc(min(620px, 110vw) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 74, 0.24), rgba(201, 162, 74, 0.05) 42%, transparent 68%); filter: blur(14px); animation: respirer 9s ease-in-out infinite; pointer-events: none; }
@keyframes respirer { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.oumrah__contenu { position: relative; display: grid; gap: 20px; align-items: center; }
.oumrah__texte { text-align: center; }
.oumrah__arabe { font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Geeza Pro', serif; font-size: clamp(1.5rem, 5vw, 2.1rem); color: var(--o-or-clair); margin-bottom: 18px; line-height: 1.6; }
.oumrah .sur { color: var(--o-or-clair); } .oumrah .sur::before { background: var(--o-or); }
.oumrah__scene .titre { color: #F8F4EB; text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5); } .oumrah__scene .titre em { color: var(--o-or-clair); }
.oumrah .chapo { color: rgba(248, 244, 235, 0.78); margin-inline: auto; }
.oumrah .rubrique__actions { justify-content: center; }
.oumrah .btn--or { background: var(--o-or-clair); }
.oumrah__kaaba { position: relative; height: clamp(270px, 66vw, 380px); order: -1; }
.oumrah__socle { position: absolute; left: 50%; bottom: 8%; width: min(340px, 70%); aspect-ratio: 3.2; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(240, 217, 140, 0.3), transparent 70%); filter: blur(6px); }
.oumrah__kaaba canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.2s ease; }
.oumrah__kaaba canvas:active { cursor: grabbing; }
.oumrah__repli { position: absolute; left: 50%; top: 50%; width: min(300px, 70%); aspect-ratio: 1; object-fit: cover; transform: translate(-50%, -50%); border-radius: 12px; border: 1px solid rgba(201, 162, 74, 0.4); transition: opacity 0.8s ease; }
.oumrah__kaaba.prete canvas { opacity: 1; } .oumrah__kaaba.prete .oumrah__repli { opacity: 0; }
.oumrah__astuce { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; color: rgba(248, 244, 235, 0.78); background: rgba(10, 23, 18, 0.5); border: 1px solid rgba(201, 162, 74, 0.3); opacity: 0; transition: opacity 0.6s ease; pointer-events: none; white-space: nowrap; }
.oumrah__kaaba.prete .oumrah__astuce { opacity: 1; animation: inviter 3.2s ease-in-out 0.4s 2; }
@keyframes inviter { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 6px)); } 75% { transform: translateX(calc(-50% + 6px)); } }

/* Les portes de la Kaaba : deux volets qui s'écartent quand on entre dans la scène */
.volet { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; pointer-events: none; background: #0b0b09 url('../assets/textures/porte.jpg') no-repeat; background-size: 200% 100%; transition: transform 1.25s cubic-bezier(0.7, 0, 0.2, 1); }
.volet::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 6, 0.5), rgba(8, 8, 6, 0.7)); }
.volet::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, #8a6a14, #f6e6ab 30%, #f6e6ab 70%, #8a6a14); box-shadow: 0 0 22px rgba(240, 217, 140, 0.5); }
.volet--gauche { left: 0; background-position: left top; } .volet--gauche::after { right: 0; }
.volet--droite { right: 0; background-position: right top; } .volet--droite::after { left: 0; }
.volet--gauche.ouvert { transform: translateX(-101%); } .volet--droite.ouvert { transform: translateX(101%); }
.anneau { position: absolute; left: 50%; top: 50%; z-index: 6; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 3px solid var(--o-or); box-shadow: 0 0 30px rgba(240, 217, 140, 0.6), inset 0 0 16px rgba(240, 217, 140, 0.4); pointer-events: none; transition: opacity 0.4s ease, transform 0.5s ease; }
.anneau.ouvert { opacity: 0; transform: scale(0.5); }

.oumrah__suite { position: relative; padding: 20px 0 84px; background: var(--o-nuit) var(--motif); }
.etapes { display: grid; gap: 12px; margin-top: 40px; counter-reset: etape; }
.etape { counter-increment: etape; padding: 22px; border-radius: 14px; background: rgba(248, 244, 235, 0.07); border: 1px solid rgba(201, 162, 74, 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.etape::before { content: '0' counter(etape); font: 600 0.8rem var(--titres); letter-spacing: 0.3em; color: var(--o-or-clair); }
.etape h3 { color: #F8F4EB; font-size: 1.12rem; margin-top: 8px; } .etape p { color: rgba(248, 244, 235, 0.72); font-size: 0.93rem; margin-top: 4px; }
.tontine { margin-top: 44px; display: grid; gap: 26px; align-items: center; background: #fff; color: var(--texte); border-radius: 18px; padding: 26px; box-shadow: var(--ombre); }
.tontine .cadre { aspect-ratio: 4 / 3; }
.tontine h3 { font-size: 1.55rem; } .tontine p { color: var(--doux); margin-top: 10px; }
.tontine ul { margin-top: 16px; display: grid; gap: 8px; font-size: 0.95rem; }
.tontine li { display: flex; gap: 12px; align-items: baseline; }
.tontine li::before { content: ''; flex: none; width: 8px; height: 8px; border-right: 2.5px solid var(--vert); border-top: 2.5px solid var(--vert); transform: rotate(45deg) translateY(-1px); }

/* bientôt */
.bientot { position: relative; border-radius: 20px; overflow: hidden; color: #fff; padding: 44px 26px; isolation: isolate; }
.bientot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bientot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(38, 42, 54, 0.76); }
.bientot h2 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.4rem); margin-top: 12px; } .bientot p { margin-top: 12px; color: #D0D4DD; max-width: 52ch; }
.etiquette { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--or-clair); color: var(--nuit); font: 600 0.72rem var(--titres); letter-spacing: 0.18em; text-transform: uppercase; }

/* méthode */
.methode { display: grid; gap: 16px; margin-top: 44px; counter-reset: m; }
.pas { counter-increment: m; background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 28px 24px; position: relative; overflow: hidden; }
.pas::before { content: counter(m); font: 600 4.4rem/1 var(--titres); color: var(--brume); position: absolute; right: 16px; top: 8px; }
.pas h3 { font-size: 1.2rem; position: relative; } .pas p { margin-top: 8px; color: var(--doux); font-size: 0.95rem; position: relative; }
.pas i { display: block; width: 34px; height: 3px; background: var(--or); margin-bottom: 18px; }

/* questions */
.faq { margin-top: 36px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font: 600 1.04rem var(--titres); position: relative; color: var(--nuit); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--vert); border-bottom: 2.5px solid var(--vert); transform: rotate(45deg); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 0 22px; color: var(--doux); max-width: 70ch; }

/* contact */
.contact { background: var(--profond) var(--motif); color: #fff; }
.contact h2 { color: #fff; } .contact h2 em { color: var(--or-clair); } .contact .chapo { color: #DCEBDD; }
.coordonnees { display: grid; gap: 16px; margin-top: 34px; }
.coord { display: flex; gap: 16px; align-items: flex-start; }
.coord svg { flex: none; width: 22px; height: 22px; color: var(--or-clair); margin-top: 3px; }
.coord small { display: block; font: 500 0.64rem var(--titres); letter-spacing: 0.28em; text-transform: uppercase; color: var(--or-clair); }
.coord a, .coord span { font-size: 1.04rem; color: #fff; } .coord a:hover { color: var(--or-clair); }
.formulaire { background: #fff; color: var(--texte); border-radius: 20px; padding: 26px; box-shadow: var(--ombre); display: grid; gap: 14px; }
.formulaire h3 { font-size: 1.35rem; }
.champ { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--nuit); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--trait); background: var(--ivoire); font-weight: 400; font-size: 1rem; transition: border-color 0.2s, background 0.2s; }
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--vert); background: #fff; }
.formulaire__actions { display: grid; gap: 10px; }
.formulaire small { color: var(--doux); font-size: 0.8rem; }

/* pied */
.pied { background: var(--nuit); color: #B9BFCC; padding: 56px 0 28px; font-size: 0.92rem; }
.pied__haut { display: grid; gap: 34px; }
.pied img { width: 210px; }
.pied h4 { color: #fff; font: 500 0.7rem var(--titres); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 14px; }
.pied li { margin-bottom: 8px; } .pied a:hover { color: var(--or-clair); }
.pied__bas { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; font-size: 0.8rem; }

.whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1FAF54; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45); transition: transform 0.3s; }
.whatsapp:hover { transform: scale(1.08); } .whatsapp svg { width: 30px; height: 30px; }

/* ---------- ≥ 760 px ---------- */
@media (min-width: 760px) {
  .enveloppe { width: min(100% - 72px, 1180px); }
  .section { padding: 120px 0; }
  .hero .enveloppe { padding-bottom: 64px; }
  .hero__poles { grid-template-columns: repeat(3, 1fr); }
  .bandeau ul { grid-template-columns: repeat(3, 1fr); } .bandeau li { border-bottom: 0; flex-direction: column; gap: 8px; padding: 40px 30px 40px 0; } .bandeau li + li { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .deux { grid-template-columns: 1fr 1fr; gap: 70px; } .deux--inverse > :first-child { order: 2; }
  .poles { grid-template-columns: 1fr 1fr; } .carte-pole { min-height: 400px; }
  .offres { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: repeat(4, 1fr); }
  .oumrah__suite { padding-bottom: 120px; }
  .tontine { grid-template-columns: 1fr 1.2fr; padding: 34px; gap: 40px; }
  .bientot { padding: 70px 60px; }
  .methode { grid-template-columns: repeat(3, 1fr); }
  .formulaire { padding: 36px; } .formulaire__actions { grid-template-columns: 1fr 1fr; }
  .pied__haut { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
/* ---------- ≥ 1040 px : menu en ligne ---------- */
@media (min-width: 1040px) {
  .burger { display: none; }
  .nav__barre { height: 84px; } .nav__logo img { height: 40px; }
  .nav__liens { position: static; transform: none; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: none; overflow: visible; }
  .nav__liens a { font: 500 0.92rem var(--corps); border: 0; padding: 6px 0; position: relative; }
  .nav__liens a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--or-clair); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
  .nav__liens a:not(.btn):hover::after { transform: none; }
  .nav.pleine .nav__liens a:not(.btn) { color: var(--nuit); } .nav.pleine .nav__liens a:not(.btn)::after { background: var(--or); }
  .nav__liens .btn { margin: 0; min-height: 44px; padding: 0 22px; }
  .poles { grid-template-columns: repeat(3, 1fr); } .carte-pole { min-height: 400px; }
  .hero__poles { grid-template-columns: repeat(6, 1fr); }
  .oumrah__contenu { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .oumrah__texte { text-align: left; } .oumrah .chapo { margin-inline: 0; } .oumrah .rubrique__actions { justify-content: flex-start; }
  .oumrah__kaaba { order: 0; height: clamp(360px, 42vw, 500px); }
  .oumrah__photo img { object-position: 62% 46%; }
  .oumrah__voile { background: linear-gradient(100deg, rgba(6, 12, 10, 0.93) 0%, rgba(6, 14, 11, 0.76) 34%, rgba(6, 14, 11, 0.4) 58%, rgba(6, 14, 11, 0.16) 80%), linear-gradient(0deg, rgba(10, 23, 18, 1), transparent 30%, transparent 72%, rgba(4, 9, 7, 0.55)); }
  .oumrah__lueur { top: 20%; left: auto; right: 8%; margin: 0; }
  .cadre::before { border-top-width: 70px; border-right-width: 70px; } .cadre::after { border-bottom-width: 96px; border-left-width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .apparait { opacity: 1; transform: none; }
}

/* retouches */
.section--blanc .cadre::before { border-top-color: #fff; }
.tontine .cadre::before { border-top-color: #fff; }
.formulaire__actions .btn { padding: 0 16px; font-size: 0.9rem; white-space: nowrap; }

/* ================= pages dédiées ================= */
.nav__liens a[aria-current='page'] { color: var(--or-clair); }
.hero__pole { text-decoration: none; }

/* en-tête d'une page de service */
.entete { position: relative; color: #fff; background: var(--profond); overflow: hidden; padding: 128px 0 56px; min-height: 76svh; display: flex; align-items: flex-end; }
.entete__image { position: absolute; inset: 0; }
.entete__image img { width: 100%; height: 100%; object-fit: cover; animation: respirer-photo 30s ease-in-out infinite alternate; }
.entete::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(13, 40, 19, 0.74); }
.entete::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--motif); }
.entete .enveloppe { position: relative; z-index: 2; }
.entete h1 { color: #fff; font-size: clamp(2.2rem, 9vw, 4.4rem); line-height: 1.04; margin-top: 18px; }
.entete h1 em { color: var(--or-clair); }
.entete .chapo { color: #DCEBDD; }
.entete .picto { color: #fff; --pa: var(--or-clair); }
.fil { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: #BFD3C2; margin-bottom: 26px; }
.fil a:hover { color: #fff; } .fil a::after { content: '›'; margin-left: 10px; color: var(--or-clair); }

/* annonces de l'accueil */
.annonces { display: grid; gap: 16px; margin-top: 40px; }
.annonce { position: relative; border-radius: 18px; overflow: hidden; color: #fff; isolation: isolate; min-height: 380px; display: flex; }
.annonce > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.annonce:hover > img { transform: scale(1.05); }
.annonce::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(15, 34, 20, 0.72); }
.annonce::after { content: ''; position: absolute; right: 0; top: 0; border-top: 64px solid var(--or-clair); border-left: 64px solid transparent; }
.annonce__in { padding: 28px 24px; margin-top: auto; }
.annonce h3 { color: #fff; font-size: clamp(1.4rem, 4.6vw, 1.9rem); margin-top: 14px; }
.annonce p { margin-top: 10px; color: #E3ECE4; max-width: 46ch; }
.annonce .rubrique__actions { margin-top: 20px; }

/* bandeau promotionnel d'une page */
.promo { position: relative; overflow: hidden; border-radius: 20px; padding: 34px 24px; background: var(--profond) var(--motif); color: #fff; }
.promo::after { content: ''; position: absolute; right: 0; top: 0; border-top: 72px solid var(--or-clair); border-left: 72px solid transparent; }
.promo h2 { color: #fff; font-size: clamp(1.5rem, 5.2vw, 2.3rem); margin-top: 14px; max-width: 22ch; }
.promo p { margin-top: 12px; color: #DCEBDD; max-width: 60ch; }

/* prestations détaillées */
.prestation { display: grid; gap: 22px; align-items: center; margin-top: 44px; scroll-margin-top: 100px; }
.prestation .cadre { aspect-ratio: 4 / 3; }
.prestation__num { font: 600 0.8rem var(--titres); letter-spacing: 0.3em; color: var(--or); }
.prestation h3 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-top: 8px; }
.prestation p { margin-top: 10px; color: var(--doux); max-width: 56ch; }
.points { margin-top: 16px; display: grid; gap: 9px; font-size: 0.97rem; }
.points li { display: flex; gap: 12px; align-items: baseline; }
.points li::before { content: ''; flex: none; width: 8px; height: 8px; border-right: 2.5px solid var(--vert); border-top: 2.5px solid var(--vert); transform: rotate(45deg) translateY(-1px); }

/* prochain départ */
.depart { display: inline-grid; grid-template-columns: auto auto; gap: 0 12px; align-items: baseline; margin-top: 22px; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(201, 162, 74, 0.5); background: rgba(10, 23, 18, 0.5); text-align: left; }
.depart small { grid-column: 1 / -1; font: 500 0.62rem var(--titres); letter-spacing: 0.3em; text-transform: uppercase; color: var(--o-or-clair); }
.depart b { font: 600 1.35rem var(--titres); color: #F8F4EB; } .depart i { font-style: italic; color: rgba(248, 244, 235, 0.78); }

/* crédits */
.tableau { overflow-x: auto; margin-top: 30px; background: #fff; border: 1px solid var(--trait); border-radius: 16px; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
.tableau th { text-align: left; font: 500 0.68rem var(--titres); letter-spacing: 0.2em; text-transform: uppercase; color: var(--vert); padding: 16px; }
.tableau td { padding: 12px 16px; border-top: 1px solid var(--trait); vertical-align: top; } .tableau a { color: var(--vert); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 760px) {
  .entete { padding: 170px 0 80px; }
  .annonces { grid-template-columns: 1fr 1fr; } .annonce__in { padding: 36px; }
  .promo { padding: 56px; }
  .prestation { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 76px; }
  .prestation--inverse > :first-child { order: 2; }
  .methode--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .methode--4 { grid-template-columns: repeat(4, 1fr); }
}

.lieu { display: flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 0.78rem var(--titres); letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-clair); }
.lieu svg { width: 18px; height: 18px; flex: none; }

/* Menu mobile. Un élément flouté (backdrop-filter) devient le cadre de ses enfants en position fixe :
   une fois la page défilée, le menu se retrouvait enfermé dans la hauteur de la barre. On retire donc
   le flou tant que le menu est ouvert, et on le cale sur toute la hauteur de l'écran. */
.nav.ouverte, .nav.ouverte.pleine { background: var(--profond); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.nav.ouverte .nav__liens { height: calc(100dvh - 72px); padding-bottom: 110px; }
.nav.ouverte .nav__liens a:not(.btn) { color: #fff; }
.nav.ouverte .nav__liens a[aria-current='page'] { color: var(--or-clair); }
.nav.ouverte ~ .whatsapp, body:has(.nav.ouverte) .whatsapp { display: none; }
.burger i { transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.burger i::after { content: ''; position: absolute; inset: 0; background: currentColor; transition: transform 0.3s; }
.nav.ouverte .burger i { box-shadow: none; transform: rotate(45deg); }
.nav.ouverte .burger i::after { transform: rotate(90deg); }
@media (min-width: 1040px) {
  .nav.ouverte .nav__liens { height: auto; padding-bottom: 0; }
}

/* Kaaba en volume : plus grande sur téléphone */
.oumrah__kaaba { height: clamp(300px, 80vw, 430px); }
@media (min-width: 1040px) { .oumrah__kaaba { height: clamp(360px, 42vw, 500px); } }
.oumrah--accueil .oumrah__scene { min-height: 0; padding: 84px 0 72px; }
