/* Almabrour – pages intérieures (Nos offres, Hajj, Oumrah, Contact).
   Direction inspirée de Demstra : fond sable, grands panneaux sombres arrondis,
   titres en deux tons, pastilles et flèches. L’accent orange reprend celui de l’accueil. */

@font-face {
    font-family: "DM Sans";
    src: url("../almabrour-home/DM-Sans.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
}

body.am-inner, .ap-page--home, .ap-page--footer {
    --ap-bg: #ecebe4;
    --ap-card: #f7f6f1;
    --ap-white: #fffefb;
    --ap-ink: #1c2623;
    --ap-ink-2: #26322e;
    --ap-ink-3: #2f3d38;
    --ap-muted: #5c625b;
    --ap-soft: #9a9e95;
    --ap-line: #d8d6cc;
    --ap-accent: #f58d45;
    --ap-accent-2: #ffb47e;
    --ap-accent-ink: #9c451d;
    --ap-on-dark: #f4f3ee;
    --ap-on-dark-muted: #f4f3ee80;
    --ap-r-xl: clamp(20px, 2.2vw, 30px);
    --ap-r-lg: clamp(16px, 1.6vw, 22px);
    --ap-r: 12px;
    --ap-gutter: clamp(8px, 1.3vw, 18px);
    --ap-font: "DM Sans", "Segoe UI", Arial, sans-serif;
    background: var(--ap-bg);
    color: var(--ap-ink);
    font-family: var(--ap-font);
}
body.am-inner :is(h1, h2, h3, h4, p, li, a, button, input, select, textarea, label, span, dt, dd) { font-family: var(--ap-font); }
body.am-inner #content > .ast-container { display: block; max-width: none; width: 100%; padding: 0; margin: 0; }
body.am-inner .site-content { background: transparent; }
body.am-inner :focus-visible { outline: 3px solid var(--ap-accent); outline-offset: 3px; }

/* ---------- En-tête (pages intérieures uniquement) ---------- */
body.am-inner .ae-header {
    position: sticky; top: 0; z-index: 60;
    background: transparent; border: 0;
    padding: var(--ap-gutter) var(--ap-gutter) 0;
}
body.admin-bar.am-inner .ae-header { top: 32px; }
body.am-inner .ae-header-inner {
    width: 100%; max-width: 1360px; min-height: 64px;
    padding: 8px 8px 8px 16px;
    background: #fbfaf6e8; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid #ffffffb3; border-radius: 16px;
    box-shadow: 0 6px 24px #1c262312;
}
body.am-inner .ae-brand { font: 700 1.2rem/1 var(--ap-font); letter-spacing: -.02em; color: var(--ap-ink); }
body.am-inner .ae-brand small { font: 600 .62rem/1 var(--ap-font); letter-spacing: .14em; color: var(--ap-muted); }
body.am-inner .ae-brand-sign { background: var(--ap-ink); border: 0; color: var(--ap-accent-2); width: 36px; height: 36px; font-weight: 700; }
body.am-inner .ae-nav { gap: 4px; }
body.am-inner .ae-nav a {
    padding: 8px 14px; border: 0; border-radius: 999px;
    color: #1c2623b8; font-size: .92rem; font-weight: 500;
    transition: background .2s, color .2s;
}
body.am-inner .ae-nav a:hover { background: #1c26230d; color: var(--ap-ink); }
body.am-inner .ae-nav [aria-current="page"] { background: var(--ap-ink); color: var(--ap-on-dark); }
body.am-inner .ae-header .ae-header-action {
    background: var(--ap-ink); color: var(--ap-on-dark); border-radius: 999px;
    padding: 11px 18px; font-weight: 600; font-size: .88rem;
    transition: background .2s, color .2s;
}
body.am-inner .ae-header .ae-header-action:hover { background: var(--ap-accent); color: var(--ap-ink); }

/* ---------- Bases ---------- */
.ap-page { padding: var(--ap-gutter); padding-top: calc(var(--ap-gutter) * 1.4); }
.ap-page img { display: block; max-width: 100%; }
.ap-wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: clamp(12px, 3vw, 32px); }
.ap-section { padding-block: clamp(64px, 9vw, 128px); }
.ap-section--tight { padding-block: clamp(32px, 5vw, 64px); }
.ap-page h1, .ap-page h2, .ap-page h3 { color: inherit; margin: 0; letter-spacing: -.035em; text-transform: none; text-wrap: balance; }
.ap-page p { margin: 0; }
.ap-page a { text-decoration: none; }
.ap-icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ap-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .74rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ap-muted);
}
.ap-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-accent); }

.ap-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; line-height: 1;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.ap-btn span { transition: transform .2s; }
.ap-btn:hover span { transform: translate(2px, -2px); }
.ap-btn--accent { background: var(--ap-accent); color: var(--ap-ink) !important; }
.ap-btn--accent:hover { background: var(--ap-accent-2); }
.ap-btn--ghost { border: 1px solid #f4f3ee40; color: var(--ap-on-dark) !important; }
.ap-btn--ghost:hover { border-color: var(--ap-on-dark); }
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ap-pill {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    background: var(--ap-white); color: var(--ap-ink);
    font-size: .78rem; font-weight: 600; line-height: 1.1;
}
.ap-pill--accent { background: var(--ap-accent); color: var(--ap-ink); }

/* ---------- Hero ---------- */
.ap-hero {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
    gap: clamp(32px, 5vw, 80px);
    min-height: clamp(560px, 78vh, 760px);
    padding: clamp(28px, 5vw, 80px) clamp(22px, 5vw, 80px);
    background: var(--ap-ink); color: var(--ap-on-dark);
    border-radius: var(--ap-r-xl);
    overflow: hidden; position: relative; isolation: isolate;
}
.ap-hero::after {
    content: ""; position: absolute; inset: auto -10% -45% auto; width: 60%; aspect-ratio: 1;
    background: radial-gradient(circle, #f58d4526, transparent 65%); z-index: -1;
}
.ap-crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--ap-on-dark-muted); margin-bottom: clamp(20px, 3vw, 40px); }
.ap-crumbs a { color: var(--ap-on-dark-muted); }
.ap-crumbs a:hover { color: var(--ap-on-dark); }
.ap-crumbs [aria-current] { color: var(--ap-on-dark); }
.ap-invocation { font-size: 1.35rem !important; color: var(--ap-accent-2); margin-bottom: 14px !important; width: fit-content; }
.ap-hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1; font-weight: 600;
    color: var(--ap-on-dark) !important; margin-bottom: clamp(18px, 2vw, 28px) !important; max-width: 15ch;
}
.ap-hero h1 span { color: var(--ap-on-dark-muted); }
.ap-lead { color: #f4f3eebf; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; max-width: 46ch; margin-bottom: clamp(24px, 3vw, 36px) !important; }

.ap-hero-media { position: relative; justify-self: center; width: min(100%, 440px); }
.ap-hero-media::before {
    content: ""; position: absolute; inset: 7% -12px -12px 16%;
    background: var(--ap-accent); border-radius: var(--ap-r-lg); transform: rotate(4deg);
}
.ap-hero-photo { position: relative; border-radius: var(--ap-r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ap-ink-2); transform: rotate(-2deg); }
.ap-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.ap-hero-badge {
    position: absolute; right: -26px; top: 42%; z-index: 2;
    display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
    background: var(--ap-accent); color: var(--ap-ink); border: 6px solid var(--ap-ink);
}
.ap-hero-badge .ap-icon { width: 26px; height: 26px; }
.ap-hero-note {
    position: absolute; left: -30px; bottom: 9%; z-index: 2; max-width: 230px;
    padding: 16px 18px; border-radius: 16px; background: var(--ap-card); color: var(--ap-ink);
    box-shadow: 0 18px 40px #0000004d;
}
.ap-hero-note strong { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.ap-hero-note span { font-size: .88rem; color: var(--ap-muted); line-height: 1.4; display: block; }

/* ---------- Titres de section ---------- */
.ap-heading { width: min(1240px, 100%); margin: 0 auto clamp(32px, 4.5vw, 60px); padding-inline: clamp(12px, 3vw, 32px); }
.ap-heading--center { text-align: center; }
.ap-heading--center .ap-eyebrow { justify-content: center; }
.ap-heading h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; font-weight: 600; margin-top: 14px !important; }
.ap-heading--center h2 { max-width: 20ch; margin-inline: auto; }
.ap-heading h2 span { color: var(--ap-soft); }
.ap-heading-intro { color: var(--ap-muted); max-width: 52ch; margin: 18px auto 0 !important; line-height: 1.6; }
.ap-heading--split { display: grid; grid-template-columns: 1fr; padding: 0; }
.ap-heading--split h2 { max-width: 22ch; }

/* ---------- Grandes cartes image (formules) ---------- */
.ap-formulas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.ap-formula {
    position: relative; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden;
    min-height: clamp(380px, 40vw, 540px); border-radius: var(--ap-r-xl);
    padding: clamp(20px, 2.5vw, 34px); padding-right: 96px;
    color: #fff !important; background: var(--ap-ink-2);
}
.ap-formula img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ap-formula::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0d1714f0 0%, #0d171499 34%, transparent 70%); }
.ap-formula:hover img { transform: scale(1.04); }
.ap-formula .ap-pill { position: absolute; top: clamp(16px, 2vw, 24px); left: clamp(16px, 2vw, 24px); }
.ap-formula-copy strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 10px; }
.ap-formula-copy > span { display: block; color: #ffffffc7; line-height: 1.55; max-width: 44ch; }
.ap-square-arrow {
    position: absolute; right: clamp(16px, 2vw, 26px); bottom: clamp(18px, 2.4vw, 32px);
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px;
    background: var(--ap-accent); color: var(--ap-ink); font-size: 1.25rem; transition: transform .25s, background .25s;
}
.ap-formula:hover .ap-square-arrow { transform: rotate(45deg); background: var(--ap-accent-2); }
.ap-formula--wide { min-height: clamp(260px, 26vw, 360px); }

/* ---------- Panneau sombre ---------- */
.ap-panel {
    background: var(--ap-ink); color: var(--ap-on-dark);
    border-radius: var(--ap-r-xl); padding-block: clamp(56px, 8vw, 112px);
}
.ap-panel .ap-eyebrow { color: var(--ap-on-dark-muted); }
.ap-panel .ap-heading h2 { color: var(--ap-on-dark); }
.ap-panel .ap-heading h2 span { color: var(--ap-on-dark-muted); }

.ap-included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ap-included > li { border-radius: var(--ap-r-lg); padding: clamp(18px, 2vw, 26px); min-height: 250px; display: flex; flex-direction: column; }
.ap-included-lead { background: var(--ap-accent); color: var(--ap-ink); }
.ap-included-lead strong { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 12px; }
.ap-included-lead p { line-height: 1.55; color: #1c2623d9; }
.ap-included-lead a { margin-top: auto; padding-top: 18px; color: var(--ap-ink) !important; font-weight: 600; }
.ap-included-item { position: relative; background: var(--ap-ink-2); border: 1px solid #ffffff0f; transition: background .25s, transform .25s; }
.ap-included-item:hover { background: var(--ap-ink-3); transform: translateY(-3px); }
.ap-included-num { position: absolute; top: 20px; right: 22px; font-size: .8rem; color: var(--ap-on-dark-muted); font-variant-numeric: tabular-nums; }
.ap-included-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ap-accent); color: var(--ap-ink); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.ap-included-badge .ap-icon { width: 25px; height: 25px; }
.ap-included-item:hover .ap-included-badge { transform: rotate(-6deg) scale(1.06); }
.ap-included-item h3 { font-size: 1.2rem; font-weight: 600; margin-top: auto !important; padding-top: 36px; margin-bottom: 8px !important; color: var(--ap-on-dark) !important; }
.ap-included-item p { color: var(--ap-on-dark-muted); font-size: .93rem; line-height: 1.5; }

/* ---------- Processus (étapes) ---------- */
.ap-process { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.ap-process-nav { position: sticky; top: 110px; display: grid; gap: 4px; }
.ap-process-nav a { display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; color: var(--ap-muted); font-size: .95rem; transition: background .2s, color .2s; }
.ap-process-nav a span { font-variant-numeric: tabular-nums; color: var(--ap-soft); }
.ap-process-nav a:hover { color: var(--ap-ink); }
.ap-process-nav a[aria-current] { background: var(--ap-card); color: var(--ap-ink); font-weight: 600; box-shadow: 0 2px 10px #1c26230d; }
.ap-process-nav a[aria-current] span { color: var(--ap-accent-ink); }
.ap-process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 1.4vw, 18px); }
.ap-step {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 40px);
    padding: clamp(22px, 3vw, 40px); background: var(--ap-card); border-radius: var(--ap-r-xl);
    scroll-margin-top: 110px; min-height: 280px;
}
.ap-step-num { font-size: clamp(4.5rem, 9vw, 8.5rem); font-weight: 600; line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px #c9c6ba; }
.ap-step h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; margin: 16px 0 10px !important; color: var(--ap-ink) !important; }
.ap-step p { color: var(--ap-muted); line-height: 1.6; }
.ap-step .ap-step-detail { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--ap-line); color: var(--ap-ink); }
.ap-step-detail span { display: block; font-size: .8rem; color: var(--ap-muted); margin-bottom: 4px; }

/* ---------- Galerie ---------- */
.ap-gallery { display: grid; grid-template-columns: 1.15fr .85fr 1fr 1.1fr; gap: clamp(10px, 1.2vw, 16px); align-items: end; }
.ap-gallery figure { margin: 0; border-radius: var(--ap-r-lg); overflow: hidden; background: var(--ap-line); }
.ap-gallery img { width: 100%; height: clamp(220px, 24vw, 340px); object-fit: cover; transition: transform .6s; }
.ap-gallery figure:nth-child(2) img { height: clamp(260px, 30vw, 420px); }
.ap-gallery figure:nth-child(3) img { height: clamp(200px, 20vw, 290px); }
.ap-gallery figure:hover img { transform: scale(1.04); }

/* ---------- Réservation ---------- */
.ap-booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.ap-booking-aside { position: sticky; top: 110px; display: grid; gap: clamp(12px, 1.4vw, 16px); }
.ap-card { background: var(--ap-card); border-radius: var(--ap-r-xl); padding: clamp(22px, 2.6vw, 34px); }
.ap-page h2.ap-card-title { font-weight: 600; line-height: 1.1; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 600; margin: 12px 0 18px !important; color: var(--ap-ink) !important; }
.ap-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ap-checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; color: var(--ap-ink); }
.ap-checklist .ap-icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ap-accent); color: var(--ap-ink); stroke-width: 2.6; margin-top: -1px; }
.ap-card--dark { background: var(--ap-ink); color: var(--ap-on-dark); }
.ap-card--dark .ap-eyebrow { color: var(--ap-on-dark-muted); }
.ap-card--dark > p:not(.ap-eyebrow) { color: #f4f3eebf; margin: 12px 0 16px !important; line-height: 1.5; }
.ap-contact-line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #ffffff1a; color: var(--ap-on-dark) !important; font-weight: 500; overflow-wrap: anywhere; }
.ap-contact-line:hover { color: var(--ap-accent-2) !important; }

.ap-form-card {
    background: var(--ap-white); border-radius: var(--ap-r-xl);
    padding: clamp(22px, 3.4vw, 48px); box-shadow: 0 1px 0 #1c26230a, 0 20px 50px #1c26230f;
    scroll-margin-top: 100px;
}
.ap-form-card h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.08; margin: 12px 0 10px !important; color: var(--ap-ink) !important; }
.ap-form-note { color: var(--ap-muted); font-size: .93rem; line-height: 1.55; margin-bottom: clamp(20px, 2.6vw, 32px) !important; }

/* Formulaires Fluent Forms et Contact Form 7 */
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) { padding: 0; border: 0; background: none; border-radius: 0; }
body.am-inner .ap-form-card :is(.ff-el-input--label label, .wpcf7-form label) {
    font-size: .82rem !important; font-weight: 600 !important; letter-spacing: .02em; color: var(--ap-ink) !important; text-transform: none;
}
body.am-inner .ap-form-card .ff-el-group { margin-bottom: 18px; }
body.am-inner .ap-form-card .wpcf7-form p { margin-bottom: 18px !important; }
body.am-inner .ap-form-card .wpcf7-form label { display: block; }
body.am-inner .ap-form-card .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
    width: 100%; min-height: 50px; padding: 13px 16px;
    background: var(--ap-card); color: var(--ap-ink);
    border: 1px solid transparent; border-radius: 12px; box-shadow: none;
    font-size: 1rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) textarea { min-height: 140px; resize: vertical; }
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) :is(input, select, textarea)::placeholder { color: #8b8f86; }
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) :is(input, select, textarea):hover { border-color: var(--ap-line); }
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) :is(input, select, textarea):focus {
    outline: none; background: var(--ap-white); border-color: var(--ap-ink); box-shadow: 0 0 0 4px #f58d4533;
}
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) :is(button[type=submit], input[type=submit]) {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 14px 28px; margin-top: 6px;
    background: var(--ap-ink); color: var(--ap-on-dark); border: 0; border-radius: 999px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
body.am-inner .ap-form-card :is(.frm-fluent-form, .wpcf7-form) :is(button[type=submit], input[type=submit]):hover { background: var(--ap-accent); color: var(--ap-ink); }
body.am-inner .ap-form-card .ff-el-is-required.asterisk-right label::after { color: var(--ap-accent-ink); }
body.am-inner .ap-form-card :is(.error, .text-danger, .wpcf7-not-valid-tip) { color: #b3261e; font-size: .85rem; margin-top: 6px; }

.ap-mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ap-mini-steps li { background: var(--ap-ink-2); border: 1px solid #ffffff0f; border-radius: var(--ap-r-lg); padding: clamp(20px, 2.2vw, 28px); }
.ap-mini-steps li > span { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--ap-accent); color: var(--ap-ink); font-size: .78rem; font-weight: 600; }
.ap-mini-steps h3 { font-size: 1.2rem; font-weight: 600; margin: 40px 0 8px !important; color: var(--ap-on-dark) !important; }
.ap-mini-steps p { color: var(--ap-on-dark-muted); font-size: .93rem; line-height: 1.5; }

/* ---------- Contact ---------- */
.ap-contact-cards { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ap-contact-cards li { background: var(--ap-card); border-radius: var(--ap-r-lg); padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 6px; min-height: 180px; }
.ap-contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ap-ink); color: var(--ap-accent-2); margin-bottom: auto; }
.ap-contact-icon .ap-icon { width: 22px; height: 22px; }
.ap-contact-label { margin-top: 26px; font-size: .8rem; color: var(--ap-muted); }
.ap-contact-cards a, .ap-contact-value { color: var(--ap-ink) !important; font-weight: 600; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.ap-contact-cards a:hover { color: var(--ap-accent-ink) !important; }

.ap-contact-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.ap-office { background: var(--ap-card); border-radius: var(--ap-r-xl); overflow: hidden; position: sticky; top: 110px; }
.ap-office-img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 30%; }
.ap-office-body { padding: clamp(22px, 2.6vw, 34px); }
.ap-office-body .ap-contact-icon { margin-bottom: 20px; }
.ap-office h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; margin-bottom: 8px !important; color: var(--ap-ink) !important; }
.ap-office-body > p { color: var(--ap-muted); line-height: 1.55; }
.ap-office-links { display: grid; gap: 4px; margin-top: 14px !important; }
.ap-office-links a { color: var(--ap-ink) !important; font-weight: 600; overflow-wrap: anywhere; }
.ap-office-links a:hover { color: var(--ap-accent-ink) !important; }
.ap-office-book { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ap-line); }
.ap-office-book > span { flex: 1 0 100%; font-size: .85rem; color: var(--ap-muted); }
.ap-office-book a { padding: 10px 16px; border-radius: 999px; background: var(--ap-ink); color: var(--ap-on-dark) !important; font-weight: 600; font-size: .9rem; }
.ap-office-book a:hover { background: var(--ap-accent); color: var(--ap-ink) !important; }

/* ---------- Pied de page ---------- */
.ap-footer {
    background: var(--ap-ink); color: var(--ap-on-dark); border-radius: var(--ap-r-xl);
    padding: clamp(40px, 7vw, 96px) clamp(22px, 5vw, 80px) 28px; margin-top: clamp(24px, 4vw, 56px);
}
.ap-footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid #ffffff1a; }
.ap-footer-cta h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.02; font-weight: 600; max-width: 17ch; color: var(--ap-on-dark) !important; }
.ap-footer-cta h2 span { color: var(--ap-on-dark-muted); }
.ap-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr; gap: clamp(24px, 3vw, 48px); padding-block: clamp(32px, 4vw, 56px); }
.ap-footer h3 { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-on-dark-muted) !important; margin-bottom: 16px !important; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-footer li { color: #f4f3eebf; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.ap-footer li a { color: var(--ap-on-dark) !important; }
.ap-footer li a:hover { color: var(--ap-accent-2) !important; }
.ap-footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem !important; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px !important; }
.ap-footer-logo span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ap-accent); color: var(--ap-ink); font-size: 1rem; }
.ap-footer-brand > p:not(.ap-footer-logo) { color: var(--ap-on-dark-muted); line-height: 1.55; max-width: 32ch; }
.ap-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; border-top: 1px solid #ffffff1a; font-size: .85rem; color: var(--ap-on-dark-muted); }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
    .ap-js .ap-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
    .ap-js .ap-reveal.is-in { opacity: 1; transform: none; }
    /* Titres qui se « remplissent » mot à mot au défilement, comme sur Demstra. */
    .ap-page .ap-w { color: inherit !important; opacity: .16; transition: opacity .35s ease; }
    .ap-page .ap-w.is-on { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .ap-included, .ap-mini-steps, .ap-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-gallery img, .ap-gallery figure:nth-child(n) img { height: clamp(200px, 34vw, 320px); }
}
@media (max-width: 900px) {
    .ap-hero { grid-template-columns: 1fr; min-height: 0; }
    .ap-hero h1 { max-width: 16ch; }
    .ap-hero-media { width: min(100%, 420px); margin: 16px auto 18px; }
    .ap-process { grid-template-columns: 1fr; }
    .ap-process-nav { display: none; }
    .ap-booking, .ap-contact-main { grid-template-columns: 1fr; }
    .ap-booking-aside, .ap-office { position: static; }
    .ap-booking-aside { order: 2; }
}
@media (max-width: 820px) {
    body.am-inner .ae-header { position: static; }
    body.am-inner .ae-header-inner { padding: 10px 10px 8px 14px; gap: 10px; }
    body.am-inner .ae-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; margin-inline: -4px; padding-bottom: 2px; }
    body.am-inner .ae-nav::-webkit-scrollbar { display: none; }
    body.am-inner .ae-nav a { white-space: nowrap; padding: 8px 12px; font-size: .88rem; }
    body.am-inner .ae-header .ae-header-action { padding: 10px 14px; font-size: .82rem; }
}
@media (max-width: 640px) {
    .ap-formulas, .ap-included, .ap-mini-steps, .ap-contact-cards, .ap-footer-grid { grid-template-columns: 1fr; }
    .ap-included > li { min-height: 0; }
    .ap-included-item h3 { margin-top: 0 !important; padding-top: 20px; }
    .ap-mini-steps h3 { margin-top: 22px !important; }
    .ap-contact-cards li { min-height: 0; }
    .ap-contact-label { margin-top: 14px; }
    .ap-step { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
    .ap-step-num { font-size: 4rem; }
    .ap-formula { padding-right: 84px; }
    .ap-hero-note { left: 10px; bottom: 10px; max-width: 200px; padding: 12px 14px; }
    .ap-hero-badge { right: -8px; width: 56px; height: 56px; border-width: 5px; }
    .ap-hero-media::before { inset: 7% -8px -8px 16%; }
    .ap-btn { width: 100%; justify-content: center; }
    .ap-footer-cta .ap-actions { width: 100%; }
}

/* ---------- Animations GSAP (motion.js) ---------- */
.ap-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.ap-mask > span { display: inline-block; }
.ap-gsap .ap-page .ap-w { display: inline-block; transition: none; }
.ap-gsap .ap-hero-media, .ap-gsap .ap-formula, .ap-gsap .ap-gallery figure { will-change: transform; }
/* Les mots découpés héritent de la couleur de leur parent (blanc, ou gris pour la partie atténuée). */
.ap-page .ap-mask, .ap-page .ap-mask > span { color: inherit !important; }
/* Pendant les animations (rotations, glissements), rien ne doit créer de défilement horizontal. */
.ap-page { overflow-x: clip; }
/* Logo Mouslim Hajj dans l'en-tête des pages intérieures (comme sur almabrour.com). */
body.am-inner .ae-header .pilgrim-logo { display: block; width: auto; height: 48px; max-width: 150px; object-fit: contain; }
body.am-inner .ae-header .pilgrim-logo[src*="Logo-5-1"] { margin-inline: -20px -18px; clip-path: inset(0 0 0 20%); }
body.am-inner .ae-nav a { white-space: nowrap; }

/* ---------- Menu hamburger (pages intérieures, ≤ 960 px) ---------- */
.ae-menu-toggle { display: none; }
@media (max-width: 960px) {
    body.am-inner .ae-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; row-gap: 0; }
    body.am-inner .ae-brand { grid-column: 1; grid-row: 1; }
    body.am-inner .ae-header .ae-header-action { grid-column: 2; grid-row: 1; }
    body.am-inner .ae-menu-toggle {
        grid-column: 3; grid-row: 1; display: grid; place-content: center; gap: 5px;
        width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
        background: var(--ap-ink); color: var(--ap-on-dark); cursor: pointer;
        transition: background .2s, transform .2s;
    }
    body.am-inner .ae-menu-toggle:hover { background: var(--ap-accent); color: var(--ap-ink); }
    body.am-inner .ae-menu-toggle span,
    body.am-inner .ae-menu-toggle::before,
    body.am-inner .ae-menu-toggle::after {
        content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
        transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .2s;
    }
    body.am-inner .ae-header.is-open .ae-menu-toggle span { opacity: 0; }
    body.am-inner .ae-header.is-open .ae-menu-toggle::before { transform: translateY(7px) rotate(45deg); }
    body.am-inner .ae-header.is-open .ae-menu-toggle::after { transform: translateY(-7px) rotate(-45deg); }

    /* Le menu se replie ; il s'ouvre en liste verticale sous le logo. */
    body.am-inner .ae-nav {
        grid-column: 1 / -1; grid-row: 2; order: initial; width: auto; margin: 0;
        flex-direction: column; align-items: stretch; flex-wrap: nowrap; overflow: visible; gap: 4px; padding: 0;
    }
    .ap-menu-js body.am-inner .ae-header:not(.is-open) .ae-nav { display: none; }
    body.am-inner .ae-header.is-open .ae-nav { display: flex; padding: 14px 0 6px; margin-top: 10px; border-top: 1px solid var(--ap-line); }
    body.am-inner .ae-nav a {
        display: flex; justify-content: space-between; align-items: center;
        padding: 14px 16px; border-radius: 14px; font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em;
    }
    body.am-inner .ae-nav a::after { content: "↗"; font-size: .95rem; opacity: .45; }
    body.am-inner .ae-nav [aria-current="page"]::after { opacity: 1; color: var(--ap-accent); }
}
@media (max-width: 380px) {
    body.am-inner .ae-header .ae-header-action { padding: 10px 12px; font-size: .78rem; }
}

/* ---------- Montage Elementor (conteneur « ap-page » + widgets Almabrour) ---------- */
.elementor .e-con.ap-page:not(.ap-page--footer) {
    --gap: 0px; --row-gap: 0px; --column-gap: 0px; --content-width: 100%; --width: 100%;
    padding: var(--ap-gutter) !important; padding-top: calc(var(--ap-gutter) * 1.4) !important;
    display: block !important; max-width: none !important;
}
.elementor .e-con.ap-page.ap-page--home { padding-top: var(--ap-gutter) !important; }
.elementor .e-con.ap-page > .e-con-inner { display: block; max-width: none; padding: 0; }
.elementor .e-con.ap-page > .elementor-widget,
.elementor .e-con.ap-page > .e-con-inner > .elementor-widget { width: 100%; max-width: 100%; margin: 0; }
/* Conteneur du hero de l'accueil : pleine largeur, sans marge. */
.elementor .e-con.alma-hero-wrap { --gap: 0px; padding: 0 !important; display: block !important; max-width: none !important; --content-width: 100%; }
.elementor .e-con.alma-hero-wrap > .e-con-inner { display: block; max-width: none; padding: 0; }
.elementor .e-con.alma-hero-wrap .elementor-widget { width: 100%; max-width: 100%; margin: 0; }

/* Pied de page global (modèle Elementor « Pied De Page ») */
.ap-page--footer { padding: 0 var(--ap-gutter) var(--ap-gutter); }
#colophon:has(.ap-page--footer) { background: var(--ap-bg, #ecebe4); padding: 0; margin: 0; border-top: 0 !important; }
#colophon .elementor-575 > .e-con:not(.ap-page--footer) { padding: 0 !important; --gap: 0px; }

/* Cartes photo sur 3 colonnes (widget « Cartes photo ») */
.ap-formulas--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-formulas--3 .ap-formula { min-height: clamp(380px, 36vw, 520px); }
@media (max-width: 1080px) {
    .ap-formulas--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-formulas--3 .ap-formula:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: clamp(260px, 30vw, 360px); }
}
@media (max-width: 760px) {
    .ap-formulas--3 { grid-template-columns: 1fr; }
    .ap-formulas--3 .ap-formula, .ap-formulas--3 .ap-formula:last-child:nth-child(odd) { min-height: 360px; }
}

/* Boutons de menu : réaction immédiate au toucher (pas de délai de double-tap). */
.ae-menu-toggle, .ae-nav a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
