/* Almabrour – accueil, sections sous le hero.
   Le hero (.pilgrim-home) n’est pas touché : tout est limité à .ap-page--home. */

body.am-home .ap-page--home { font-family: var(--ap-font); padding-top: var(--ap-gutter); }
body.am-home .ap-page--home :is(h1, h2, h3, h4, p, li, a, span, dt, dd, blockquote, figcaption) { font-family: var(--ap-font); }

/* Les règles de typographie de l’accueil (#content h2…) ne doivent pas écraser les tailles. */
body.am-home #content .ap-page--home .ap-heading h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; }
body.am-home #content .ap-page--home h3 { letter-spacing: -.02em; }

.ap-btn--dark { background: var(--ap-ink); color: var(--ap-on-dark) !important; }
.ap-btn--dark:hover { background: var(--ap-accent); color: var(--ap-ink) !important; }
.ap-btn--line { border: 1px solid var(--ap-line); color: var(--ap-ink) !important; }
.ap-btn--line:hover { border-color: var(--ap-ink); }
.ah-center { text-align: center; margin-top: clamp(28px, 3.5vw, 44px) !important; }

/* ---------- À propos : trois cartes claires avec pastille ---------- */
.ah-benefits { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.ah-benefit {
    display: flex; flex-direction: column; min-height: 260px;
    padding: clamp(22px, 2.2vw, 30px); border-radius: var(--ap-r-lg);
    background: var(--ap-card); border: 1px solid #ffffff; box-shadow: 0 1px 0 #1c26230a;
    transition: transform .25s, box-shadow .25s;
}
.ah-benefit:hover { transform: translateY(-3px); box-shadow: 0 16px 40px #1c262314; }
.ah-benefit:hover .ap-included-badge { transform: rotate(-6deg) scale(1.06); }
body.am-home #content .ah-benefit h3 { margin: auto 0 8px !important; padding-top: 40px; font-size: 1.3rem; font-weight: 600; color: var(--ap-ink); }
.ah-benefit p { color: var(--ap-muted); line-height: 1.55; }

/* ---------- Nos deux Oumrah : panneau sombre, cartes empilées ---------- */
.ah-season { margin-block: 0; }
.ah-season .umrah-season { --umrah-surface: transparent; background: transparent; color: var(--ap-on-dark); padding: 0 clamp(12px, 3vw, 32px); }
.ah-season .umrah-season > * { width: min(1240px, 100%); }
.ah-season .ap-heading { padding-inline: 0; }
body.am-home #content .ah-season #umrah-season-title { margin: 14px 0 0 !important; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; color: var(--ap-on-dark); max-width: 22ch; }
body.am-home #content .ah-season #umrah-season-title span { color: var(--ap-on-dark-muted); }
.ah-season .umrah-season-stack { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.ah-season .umrah-trip {
    padding: clamp(14px, 1.6vw, 22px); border: 1px solid #ffffff12 !important;
    border-radius: var(--ap-r-xl); background: var(--ap-ink-2);
    box-shadow: 0 -20px 40px #0000002e;
}
.ah-season .umrah-photo { border-radius: var(--ap-r-lg); overflow: hidden; position: relative; }
.ah-season .umrah-photo img { max-height: min(46vh, 520px); border-radius: 0; }
.ah-season .umrah-photo-caption {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    border-radius: 999px; padding: 10px 16px; background: #fbfaf6ee; color: var(--ap-ink);
    font-size: .9rem; backdrop-filter: blur(8px);
}
.ah-season .umrah-photo-caption span:first-child { color: var(--ap-accent-ink); letter-spacing: .12em; font-weight: 600; font-size: .78rem; align-self: center; }
.ah-season .umrah-details { padding: clamp(8px, 1.4vw, 22px) clamp(4px, 1vw, 12px); }
body.am-home #content .ah-season .umrah-details h3 { color: var(--ap-on-dark); font-size: clamp(1.9rem, 3.2vw, 3.2rem); letter-spacing: -.035em; }
.ah-season .umrah-facts > div { border-block-start: 1px solid #ffffff1c; padding-block: 14px; }
.ah-season .umrah-facts dt { color: var(--ap-on-dark-muted); font-weight: 600; font-size: .74rem; letter-spacing: .14em; }
.ah-season .umrah-facts dd { color: var(--ap-on-dark); }
.ah-season .umrah-book {
    display: inline-flex !important; align-items: center; gap: 10px;
    padding: 14px 22px !important; border: 0 !important; border-radius: 999px;
    background: var(--ap-accent); color: var(--ap-ink) !important; font-weight: 600 !important;
    transition: background .2s;
}
.ah-season .umrah-book:hover { background: var(--ap-accent-2); }

/* ---------- Nos voyages : trois grandes cartes image ---------- */
.ah-trips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ah-trips .ap-formula { min-height: clamp(380px, 36vw, 520px); }

/* ---------- Rites : cartes sombres avec photo ---------- */
.ah-rites { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ah-rite {
    position: relative; display: flex; flex-direction: column;
    padding: 10px 10px clamp(18px, 2vw, 24px); border-radius: var(--ap-r-lg);
    background: var(--ap-ink-2); border: 1px solid #ffffff0f; transition: background .25s, transform .25s;
}
.ah-rite:hover { background: var(--ap-ink-3); transform: translateY(-3px); }
.ah-rite-img { border-radius: calc(var(--ap-r-lg) - 6px); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ap-ink-3); }
.ah-rite-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ah-rite:hover .ah-rite-img img { transform: scale(1.04); }
.ah-rite .ap-included-num { top: auto; bottom: auto; position: static; margin: 18px 12px 0; }
body.am-home #content .ah-rite h3 { margin: 6px 12px 6px !important; font-size: 1.3rem; font-weight: 600; color: var(--ap-on-dark); }
.ah-rite p { margin: 0 12px !important; color: var(--ap-on-dark-muted); line-height: 1.5; font-size: .95rem; }

/* ---------- Procédures : photo + étapes ---------- */
.ah-steps { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ah-steps-media { position: relative; }
.ah-steps-media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ap-r-xl); }
.ah-steps-media .ap-hero-badge { border-color: var(--ap-bg); right: -22px; top: 12%; }
.ah-steps-copy .ap-heading { margin-bottom: clamp(22px, 3vw, 36px); }
.ah-steps-list { list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; }
.ah-steps-list li { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 2vw, 28px); align-items: center; padding-block: clamp(16px, 2vw, 22px); border-top: 1px solid var(--ap-line); }
.ah-steps-list li:last-child { border-bottom: 1px solid var(--ap-line); }
.ah-step-num { font-size: clamp(2.6rem, 4.4vw, 3.8rem); font-weight: 600; line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.3px #b9b6aa; min-width: 2ch; }
.ah-steps-list li:hover .ah-step-num { -webkit-text-stroke-color: var(--ap-accent); }
body.am-home #content .ah-steps-list h3 { margin: 0 0 4px !important; font-size: 1.3rem; font-weight: 600; color: var(--ap-ink); }
.ah-steps-list p { color: var(--ap-muted); line-height: 1.5; }

/* ---------- Visite du lieu sacré : carte « témoignage » ---------- */
.ah-visit {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px);
    margin: 0 auto; padding: 10px !important; border-radius: var(--ap-r-xl); background: var(--ap-card); border: 1px solid #fff;
}
.ah-visit-img { border-radius: var(--ap-r-lg); overflow: hidden; min-height: 340px; }
.ah-visit-img img { width: 100%; height: 100%; object-fit: cover; }
.ah-visit-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3.5vw, 56px); }
.ah-visit blockquote { margin: clamp(18px, 2.4vw, 28px) 0 18px; padding: 0; border: 0; quotes: none; }
.ah-visit blockquote p { font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; color: var(--ap-ink); font-style: normal; text-wrap: balance; }
.ah-visit figcaption { font-weight: 600; margin-bottom: clamp(22px, 3vw, 34px); color: var(--ap-ink); }
.ah-visit figcaption span { font-weight: 400; color: var(--ap-muted); }
.ah-visit .ap-btn { margin-top: auto; }

/* ---------- Pied de page ---------- */
body.am-home .ap-page--home .ap-footer { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .ah-rites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ah-trips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ah-trips .ap-formula:last-child { grid-column: 1 / -1; min-height: clamp(260px, 30vw, 360px); }
}
@media (max-width: 900px) {
    .ah-steps, .ah-visit { grid-template-columns: 1fr; }
    .ah-steps-media { max-width: 520px; }
    .ah-steps-media .ap-hero-badge { right: 12px; }
    .ah-visit-img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
    .ah-benefits, .ah-rites, .ah-trips { grid-template-columns: 1fr; }
    .ah-benefit { min-height: 0; }
    body.am-home #content .ah-benefit h3 { padding-top: 24px; }
    .ah-trips .ap-formula, .ah-trips .ap-formula:last-child { min-height: 360px; }
    .ah-season .umrah-photo-caption { position: static; border-radius: 0; background: var(--ap-card); }
}

/* Textes d'almabrour.com ajoutés aux programmes : « PROGRAMMES : » et la phrase d'appel. */
.ah-season .umrah-label { margin: 0 0 -8px !important; color: var(--ap-on-dark-muted); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ah-season .umrah-note { margin: 0 !important; color: var(--ap-on-dark); font-size: 1.05rem; line-height: 1.5; }
.umrah-label { font-weight: 700; letter-spacing: .08em; }
.ah-center.ap-actions { justify-content: center; }
