@font-face {
    font-family: "DM Sans";
    src: url("DM-Sans.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
}
body.home:has(.pilgrim-home) {--alma-font:"DM Sans",Arial,sans-serif;background:#fff;}
body.home:has(.pilgrim-home) .ae-header {background:#fff;font-family:var(--alma-font);}
body.home:has(.pilgrim-home) .ae-brand {font:800 1.55rem/.98 var(--alma-font);}
body.home:has(.pilgrim-home) .ae-nav a {font-weight:700;}
body.home:has(.pilgrim-home) #masthead,body.home:has(.pilgrim-home) .elementor-114>.elementor-element-28b7cd31 {display:none;}
body.home #content>.ast-container:has(.pilgrim-home) {display:block;width:100%;max-width:none;padding:0;}
.pilgrim-home {display:grid;grid-template-columns:minmax(280px,39fr) minmax(0,61fr);max-width:1900px;margin:auto;background:white;color:#202a27;font-family:var(--alma-font);}
.pilgrim-film {position:relative;min-height:clamp(590px,78vh,815px);isolation:isolate;overflow:hidden;background:#27352d url(kaaba.jpg) center/cover;border-end-end-radius:clamp(32px,5vw,94px);}
.pilgrim-film video,.pilgrim-film:after {width:100%;height:100%;position:absolute;inset:0;}
.pilgrim-film video {object-fit:cover;}
.pilgrim-film:after {content:"";background:linear-gradient(0deg,#102d26df,transparent 46%);pointer-events:none;}
.pilgrim-caption {position:absolute;bottom:7%;left:8%;z-index:1;color:white;}
.pilgrim-caption p {font:800 clamp(2rem,3vw,3.8rem)/1 var(--alma-font);margin:0 0 15px;color:inherit;}
.pilgrim-caption button {background:#15372abb;border:1px solid #ffffffaa;border-radius:30px;color:white;font:700 .9rem/1.2 var(--alma-font);padding:.7em 1.1em;text-transform:none;}
.pilgrim-guide {min-width:0;padding:clamp(26px,4.3vw,82px) clamp(20px,3.6vw,68px);align-self:center;}
.pilgrim-guide #pilgrim-title {font:800 clamp(2.55rem,4.7vw,5.8rem)/.99 var(--alma-font);letter-spacing:-.048em;color:#202a27;margin:0 0 clamp(22px,2.7vw,43px);}
#pilgrim-title span {color:#ba6636;}
.pilgrim-search {max-width:650px;}
.pilgrim-search label {display:block;font-size:.9rem;font-weight:700;margin:0 0 6px;}
.pilgrim-search input[type=search] {width:100%;background:#fafaf7;color:#202a27;border:1px solid #ccd3ca;border-radius:5px;padding:12px 15px;font:400 1rem var(--alma-font);height:46px;}
.pilgrim-section {display:flex;align-items:center;gap:18px;margin:clamp(25px,3vw,50px) 0 16px;}
.pilgrim-section h2 {font:800 clamp(1.25rem,1.8vw,2rem)/1.15 var(--alma-font);color:#202a27;margin:0;}
.pilgrim-section>span {flex:1;border-top:1px solid #d9dcd4;}
.pilgrim-cards {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:4px 3px 13px;scrollbar-color:#7e8f82 #eff1eb;}
.pilgrim-card {position:relative;display:flex;align-items:end;isolation:isolate;min-height:clamp(175px,15vw,274px);border-radius:8px;overflow:hidden;color:#fff!important;background:#244035;text-decoration:none!important;scroll-snap-align:start;}
.pilgrim-card img,.pilgrim-card:before {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}
.pilgrim-card:before {content:"";z-index:-1;background:linear-gradient(0deg,#0b201cf5 0%,transparent 80%);}
.pilgrim-category {position:absolute;top:12px;left:12px;padding:4px 9px;border-radius:20px;background:#fff8e9;color:#33382d;font:700 .75rem/1.2 var(--alma-font);}
.pilgrim-card :is(strong, .pilgrim-card-title) {padding:15px;font:800 clamp(1.15rem,1.5vw,1.6rem)/1.08 var(--alma-font);}
.pilgrim-card i {font:normal 1rem var(--alma-font);}
.pilgrim-home [hidden] {display:none!important;}
.pilgrim-home :focus-visible {outline:3px solid #b56730;outline-offset:2px;}
.pilgrim-feedback {margin:6px 0 0;font-size:.9rem;}

body.home #content .pilgrim-about {
    background: #f2f1ee;
    color: #202a27;
    font-family: var(--alma-font);
    scroll-margin-top: 80px;
}
.pilgrim-about-inner {
    max-width: 1900px;
    margin-inline: auto;
    padding: clamp(38px, 5vw, 90px) 4.3%;
}
.pilgrim-about-heading {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 36px);
    padding-bottom: clamp(24px, 2.6vw, 48px);
    border-bottom: 1px solid #d8d6d0;
}
body.home #content .pilgrim-about-heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(2.1rem, 4.4vw, 5.4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.055em;
}
body.home #content .pilgrim-about-heading p {
    margin: 0;
    padding-inline-start: clamp(16px, 2vw, 36px);
    border-inline-start: 1px solid #d8d6d0;
    color: #545a54;
    line-height: 1.35;
}
.pilgrim-about a.pilgrim-about-contact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-inline-start: auto;
    padding: 10px 12px 10px 17px;
    border-radius: 12px;
    background: linear-gradient(110deg, #f48236, #ffad73);
    box-shadow: 0 8px 22px #a94e252c;
    color: #302117;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.pilgrim-about-contact span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 6px;
    background: #fff;
    color: #9c451d;
}
.pilgrim-about-contact:hover span { background: #fff4eb; }
.pilgrim-about-contact:focus-visible { outline: 3px solid #713816; outline-offset: 4px; }
.pilgrim-about-body {
    display: grid;
    grid-template-columns: minmax(235px, 1fr) minmax(0, 1.6fr);
    align-items: start;
    gap: clamp(30px, 9vw, 170px);
    padding-top: clamp(26px, 4vw, 74px);
}
.pilgrim-about .pilgrim-about-benefits {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pilgrim-about-benefits li {
    padding-inline-start: 15px;
    border-inline-start: 2px solid #ba6636;
}
body.home #content .pilgrim-about-benefits h3 {
    margin: 0 0 3px;
    color: inherit;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}
body.home #content .pilgrim-about-benefits p { margin: 0; color: #545a54; line-height: 1.45; }
body.home #content .pilgrim-about-statement {
    margin: 0;
    color: inherit;
    font-size: clamp(1.85rem, 3.2vw, 3.8rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.04em;
    text-align: right;
    text-wrap: balance;
}
.pilgrim-about-statement span { color: #626861; }

@media (max-width: 760px) {
    .pilgrim-about-heading { flex-wrap: wrap; }
    body.home #content .pilgrim-about-heading h2 { flex-basis: 100%; }
    body.home #content .pilgrim-about-heading p { padding: 0; border: 0; }
    .pilgrim-about-body { grid-template-columns: minmax(0, 1fr); }
    body.home #content .pilgrim-about-statement { text-align: left; }
}
@media(max-width:760px){
 .pilgrim-home {display:flex;flex-direction:column;}
 .pilgrim-film {min-height:clamp(235px,48vw,365px);border-end-end-radius:45px;}
 .pilgrim-guide {width:100%;padding:26px 5%;}
 .pilgrim-caption {bottom:17px;left:5%;display:flex;align-items:center;gap:16px;}
 .pilgrim-caption p {margin:0;}
 .pilgrim-cards {grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Elementor widgets and the editorial footer set their own type families. */
body.home:has(.pilgrim-home) :is(.ae-header, #content, #colophon) :is(h1,h2,h3,h4,h5,h6,p,li,label,input,select,textarea,button,.elementor-button,.elementor-button-text,.elementor-heading-title,.elementor-icon-list-text,.ae-brand small) {
    font-family: var(--alma-font);
}

/* The navigation shares the first row of the film and guide. */
body.home:has(.pilgrim-home) .ae-header {
    position: relative;
    z-index: 5;
    height: 0;
    border: 0;
    background: transparent;
}
body.home:has(.pilgrim-home) .ae-header-inner {
    width: min(100%, 1900px);
    margin: 0 auto;
    min-height: 72px;
    display: grid;
    grid-template-columns: 39% minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    padding: 0;
    pointer-events: none;
}
body.home:has(.pilgrim-home) .ae-header-inner a { pointer-events: auto; }
body.home:has(.pilgrim-home) .ae-brand {
    justify-self: start;
    margin-left: 8%;
    color: white;
    text-shadow: 0 1px 5px #12221c;
}
body.home:has(.pilgrim-home) .ae-brand small,
body.home:has(.pilgrim-home) .ae-brand-sign { color: white; }
body.home:has(.pilgrim-home) .ae-brand-sign { border-color: #ffffffad; }
body.home:has(.pilgrim-home) .ae-nav {
    order: initial;
    width: auto;
    margin-left: clamp(20px, 3.6vw, 68px);
    gap: clamp(10px, 1.4vw, 24px);
}
body.home:has(.pilgrim-home) .ae-header-action {
    margin: 0 clamp(15px, 2.5vw, 42px) 0 12px;
    background: #222923;
}
.pilgrim-film { border-radius: 0 clamp(30px, 4.2vw, 80px) 0 0; }
.pilgrim-film:after { background: linear-gradient(180deg,#12221cac,transparent 23%), linear-gradient(0deg,#102d26df,transparent 46%); }
.pilgrim-guide { align-self: start; padding-top: clamp(94px, 6.4vw, 125px); }
@media(max-width:820px) {
    body.home:has(.pilgrim-home) .ae-header-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 0;
        padding: 13px 5% 0;
    }
    body.home:has(.pilgrim-home) .ae-brand,
    body.home:has(.pilgrim-home) .ae-header-action { margin: 0; }
    body.home:has(.pilgrim-home) .ae-header-action { grid-area: 1 / 2; }
    body.home:has(.pilgrim-home) .ae-nav {
        grid-area: 2 / 1 / 3 / 3;
        justify-self: start;
        margin: 0;
        color: white;
        gap: 3px clamp(8px, 2.4vw, 18px);
    }
    body.home:has(.pilgrim-home) .ae-nav a { text-shadow: 0 1px 4px #12221c; }
    .pilgrim-home { display: flex; flex-direction: column; }
    .pilgrim-film { min-height: clamp(265px, 48vw, 385px); border-radius: 0 0 30px 0; }
    .pilgrim-film:after { background: linear-gradient(180deg,#12221ce8,transparent 65%), linear-gradient(0deg,#102d26df,transparent 42%); }
    .pilgrim-guide { width: 100%; padding: 28px 5%; }
}

.pilgrim-home { min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)); }
.pilgrim-film { min-height: 0; }
.pilgrim-guide {
    align-self: center;
    padding-block: clamp(80px, 12svh, 112px) clamp(14px, 3svh, 40px);
}
.pilgrim-guide #pilgrim-title { font-size: clamp(2.15rem, min(4.7vw, 8svh), 5.8rem); margin-bottom: clamp(14px, 3svh, 30px); }
.pilgrim-section { margin: clamp(14px, 3svh, 30px) 0 10px; }
.pilgrim-cards { gap: clamp(6px, .8vw, 12px); padding: 3px; }
.pilgrim-card { min-height: clamp(100px, 23svh, 240px); }
.pilgrim-card :is(strong, .pilgrim-card-title) { padding: clamp(8px, .85vw, 15px); font-size: clamp(.95rem, 1.15vw, 1.4rem); overflow-wrap: anywhere; }
.pilgrim-category { top: 8px; left: 8px; }
.pilgrim-feedback:empty { margin: 0; }
@media (max-width: 820px) {
    .pilgrim-home { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(160px,1fr) auto; }
    .pilgrim-guide { padding: clamp(10px, 2svh, 22px) 5%; }
    .pilgrim-guide #pilgrim-title { font-size: clamp(1.85rem, 5.5vw, 2.8rem); margin: 0 0 10px; }
    .pilgrim-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pilgrim-card { min-height: clamp(72px, 10.5svh, 105px); }
    .pilgrim-card :is(strong, .pilgrim-card-title) { padding: 7px 9px; }
    .pilgrim-category { font-size: .65rem; top: 5px; left: 7px; padding: 2px 6px; }
    .pilgrim-search label { margin-bottom: 2px; }
    .pilgrim-search input[type=search] { height: 37px; padding: 5px 12px; }
    .pilgrim-section { margin: 10px 0 5px; }
    .pilgrim-caption { display: flex; align-items: center; gap: 12px; bottom: 12px; left: 5%; }
    .pilgrim-caption p { margin: 0; font-size: 1.5rem; }
}
@media (max-height: 500px) and (min-width: 620px) {
    .pilgrim-home { display: grid; grid-template-columns: 36% minmax(0,1fr); grid-template-rows: 1fr; }
    .pilgrim-guide { padding: 75px 14px 8px; }
    .pilgrim-guide #pilgrim-title { font-size: 1.7rem; margin-bottom: 6px; }
    .pilgrim-guide #pilgrim-title br { display: contents; }
    .pilgrim-search label { line-height: 1.2; }
    .pilgrim-search input[type=search] { height: 32px; padding: 3px 8px; }
    .pilgrim-section { margin: 8px 0 4px; }
    .pilgrim-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .pilgrim-card { min-height: 90px; }
    .pilgrim-card :is(strong, .pilgrim-card-title) { font-size: .85rem; }
    body.home:has(.pilgrim-home) .ae-header-inner { background: #fff; min-height: 56px; padding: 5px 2%; grid-template-columns: auto 1fr auto; column-gap: 12px; }
    body.home:has(.pilgrim-home) .ae-brand,body.home:has(.pilgrim-home) .ae-brand small,body.home:has(.pilgrim-home) .ae-brand-sign,body.home:has(.pilgrim-home) .ae-nav a { color:#243c31; text-shadow:none; }
    body.home:has(.pilgrim-home) .ae-nav { grid-area: 1 / 2; margin:0; justify-self:center; }
    body.home:has(.pilgrim-home) .ae-header-action { grid-area: 1 / 3; margin:0; }
}

.pilgrim-search-field { position: relative; }
.pilgrim-search-field input[type=search] { padding-inline-start: 42px; }
.pilgrim-loupe {
    position: absolute; left: 14px; top: 50%; transform: translateY(-62%);
    width: 14px; height: 14px; box-sizing: border-box; border: 2px solid currentColor;
    border-radius: 50%; color: #47594f; pointer-events: none;
}
.pilgrim-loupe::after {
    content: ""; position: absolute; width: 7px; height: 2px; background: currentColor;
    bottom: -3px; right: -5px; transform: rotate(45deg); border-radius: 2px;
}
.pilgrim-caption .pilgrim-play {
    width: 44px; height: 44px; padding: 0; display: inline-grid;
    place-items: center; border-radius: 50%; line-height: 1; cursor: pointer;
}
.pilgrim-video-icon {
    width: 0; height: 0; margin-left: 3px; border-block: 8px solid transparent;
    border-left: 13px solid currentColor;
}
.pilgrim-play.is-playing .pilgrim-video-icon {
    box-sizing: border-box; width: 13px; height: 16px; margin: 0;
    border: 0; border-inline: 4px solid currentColor;
}
@media (max-width: 380px) and (max-height: 610px) {
    .pilgrim-home { grid-template-rows: minmax(146px,1fr) auto; }
    .pilgrim-card { min-height: 66px; }
    .pilgrim-guide { padding-block: 8px; }
    .pilgrim-search-field input[type=search] { margin-bottom: 0; }
}

body.home .ae-header .pilgrim-logo {
    display: block; width: auto; height: 66px; max-width: 160px;
    background: transparent; object-fit: contain;
}
body.home #content .pilgrim-guide .pilgrim-invocation {
    width: fit-content; margin: 0 0 9px; color: #6e5020;
    font: 500 clamp(1.35rem, 2vw, 2rem)/1.45 Tahoma, Arial, sans-serif;
}
@media (max-width: 820px), (max-height: 500px) {
    body.home .ae-header .pilgrim-logo { height: 46px; }
    body.home #content .pilgrim-guide .pilgrim-invocation { font-size: 1.2rem; margin-bottom: 4px; }
}
@media (max-width: 380px) and (max-height: 610px) {
    .pilgrim-home { grid-template-rows: minmax(138px,1fr) auto; }
    .pilgrim-guide { padding-block: 5px; }
    .pilgrim-guide #pilgrim-title { font-size: 1.65rem; margin-bottom: 5px; }
    .pilgrim-section { margin-top: 6px; }
    .pilgrim-card { min-height: 60px; }
    .pilgrim-search label { line-height: 1.25; }
}

body.home:has(.pilgrim-home) .ae-brand {
    grid-area: 1 / 1;
    justify-self: start;
}
@media (min-width: 821px) {
    body.home:has(.pilgrim-home) .ae-nav { grid-area: 1 / 2; }
}
@media (max-height: 500px) and (min-width: 620px) {
    body.home:has(.pilgrim-home) .ae-header-inner {
        background: transparent;
        grid-template-columns: 36% minmax(0,1fr);
        gap: 0;
        padding-inline: 0;
    }
    body.home:has(.pilgrim-home) .ae-brand { margin-left: 8%; }
}

@media (max-width: 820px), (max-height: 500px) {
    body.home #content .pilgrim-section h2 {
        flex: 0 1 auto;
        margin: 0;
        font: 800 1.2rem/1.2 var(--alma-font);
    }
    body.home #content .pilgrim-section { min-height: 0; padding: 0; }
}

/* Light brand panel anchored to the film's upper-left corner. */
body.home:has(.pilgrim-home) .ae-brand {
    margin: 0;
    align-self: start;
    padding: 4px 7px 4px 0;
    background: #fff;
    --logo-curve: clamp(13px, 1.8vw, 32px);
    position: relative;
    border-radius: 0 0 var(--logo-curve) 0;
}
body.home:has(.pilgrim-home) .ae-brand::before {
    content: "";
    position: absolute;
    width: var(--logo-curve);
    height: var(--logo-curve);
    pointer-events: none;
    background: radial-gradient(circle var(--logo-curve) at 100% 100%, transparent calc(100% - .75px), #fff 100%);
}
body.home:has(.pilgrim-home) .ae-brand::before {
    left: 100%;
    top: 0;
}
@media (max-width: 820px) {
    body.home:has(.pilgrim-home) .ae-header-inner { padding-top: 0; padding-left: 0; }
    body.home:has(.pilgrim-home) .ae-nav { margin-left: 5vw; }
}
@media (max-height: 500px) and (min-width: 620px) {
    body.home:has(.pilgrim-home) .ae-header-inner { padding-block: 0; }
    body.home:has(.pilgrim-home) .ae-nav { margin-left: 0; }
}


/* Compensate for the transparent left gutter in the original logo artwork. */
body.home .ae-header .pilgrim-logo[src*="Logo-5-1"] {
    margin-inline: -28px -25px;
    clip-path: inset(0 0 0 20%);
}
@media (max-height: 500px) and (min-width: 620px) {
    body.home:has(.pilgrim-home) .ae-header-inner { grid-template-columns: 36% minmax(0,1fr) auto; }
    body.home:has(.pilgrim-home) .ae-nav { gap: 8px; }
}
@media (max-width: 820px), (max-height: 500px) {
    body.home .ae-header .pilgrim-logo[src*="Logo-5-1"] { margin-inline: -19.5px -17px; }
}

.pilgrim-menu { display: none; }
@media (max-width: 760px) {
    body.home:has(.pilgrim-home) .ae-header {
        position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20;
        height: auto; background: white; border-bottom: 1px solid #e6e6dd;
    }
    body.home:has(.pilgrim-home) .ae-header-inner {
        grid-template: auto / minmax(0,1fr) auto auto; gap: 8px;
        min-height: 58px; padding: 4px 4%; background: white;
    }
    body.home:has(.pilgrim-home) .ae-brand { margin: 0; padding: 0; align-self: center; }
    body.home:has(.pilgrim-home) .ae-brand::before { display: none; }
    body.home:has(.pilgrim-home) .ae-header-action { grid-area: 1 / 2; margin: 0; }
    .ae-header .pilgrim-menu {
        grid-area: 1 / 3; display: grid; place-content: center; pointer-events: auto;
        width: 44px; height: 44px; padding: 0; border: 0; background: white; color: #243c31;
    }
    .pilgrim-menu span, .pilgrim-menu::before, .pilgrim-menu::after {
        content: ""; display: block; width: 22px; height: 2px; margin: 2px 0; background: currentColor;
    }
    .menu-expanded .pilgrim-menu span { visibility: hidden; }
    .menu-expanded .pilgrim-menu::before { transform: translateY(6px) rotate(45deg); }
    .menu-expanded .pilgrim-menu::after { transform: translateY(-6px) rotate(-45deg); }
    body.home:has(.pilgrim-home) .ae-nav {
        grid-area: 2 / 1 / 3 / -1; justify-self: stretch; margin: 0;
        padding: 6px 0; gap: 0; color: #243c31; background: white;
    }
    body.home:has(.pilgrim-home) .ae-header:has(.pilgrim-menu):not(.menu-expanded) .ae-nav { display: none; }
    body.home:has(.pilgrim-home) .ae-header.menu-expanded .ae-nav { display: grid; }
    body.home:has(.pilgrim-home) .ae-nav a { padding: 9px 4px; text-shadow: none; }
    body.home .pilgrim-home {
        display: grid; grid-template: "guide" auto "film" auto / minmax(0,1fr); min-height: 0;
    }
    body.home .pilgrim-guide { grid-area: guide; width: 100%; padding: 20px 5% 12px; }
    body.home #content .pilgrim-guide .pilgrim-invocation { margin-bottom: 8px; }
    body.home .pilgrim-guide #pilgrim-title { font-size: clamp(2rem,8.5vw,3rem); margin-bottom: 18px; }
    body.home .pilgrim-section { margin: 19px 0 9px; scroll-margin-top: 80px; }
    body.home .pilgrim-cards {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(135px,40vw,215px);
        gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
        padding: 3px 2px 9px; scrollbar-width: thin;
    }
    body.home .pilgrim-card { min-height: clamp(145px,42vw,205px); scroll-snap-align: start; }
    body.home .pilgrim-film { grid-area: film; min-height: clamp(290px,95vw,480px); border-radius: 0; }
    body.home .pilgrim-caption { flex-direction: column-reverse; align-items: flex-start; bottom: 8%; }
}

/* ---------------------------------------------------------------------------
 * Typographie alignée sur les pages intérieures (Nos offres, Hajj, Oumrah, Contact) :
 * DM Sans partout, titres en 600 avec un interlettrage serré, étiquettes en capitales espacées.
 * Seules les polices changent ; la mise en page de l'accueil reste identique.
 * ------------------------------------------------------------------------- */
body.home:has(.pilgrim-home) { font-family: var(--alma-font); }
body.home:has(.pilgrim-home) #content :is(h1, h2, h3, h4) {
    font-family: var(--alma-font);
    font-weight: 600;
    letter-spacing: -.035em;
    text-wrap: balance;
}
body.home:has(.pilgrim-home) #content .pilgrim-about-benefits h3 { letter-spacing: -.015em; }
body.home:has(.pilgrim-home) #content .pilgrim-about-statement { font-weight: 500; letter-spacing: -.035em; }
body.home:has(.pilgrim-home) .pilgrim-caption p { font-weight: 600; letter-spacing: -.035em; }
body.home:has(.pilgrim-home) .pilgrim-card :is(strong, .pilgrim-card-title) { font-weight: 600; letter-spacing: -.02em; }
body.home:has(.pilgrim-home) .pilgrim-category { font-weight: 600; }
body.home:has(.pilgrim-home) .ae-nav a { font-weight: 500; }
body.home:has(.pilgrim-home) .ae-header-action { font-weight: 600; }
body.home:has(.pilgrim-home) #content .pilgrim-search label {
    font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6b7069;
}

/* ---------------------------------------------------------------------------
 * Hero : même traitement typographique que les pages intérieures
 * (titres en deux tons, interlignage serré, invocation discrète). Mise en page inchangée.
 * ------------------------------------------------------------------------- */
body.home:has(.pilgrim-home) #content .pilgrim-guide #pilgrim-title { line-height: 1; letter-spacing: -.035em; font-weight: 600; }
body.home:has(.pilgrim-home) #pilgrim-title .pilgrim-title-muted { color: #9a9e95; }
body.home:has(.pilgrim-home) #content .pilgrim-guide .pilgrim-invocation { font-size: 1.35rem; line-height: 1.5; color: #9c451d; margin-bottom: 14px; }
body.home:has(.pilgrim-home) #content .pilgrim-section h2 { font-size: clamp(1.6rem, 3.6vw, 3.6rem); line-height: 1.04; }
body.home:has(.pilgrim-home) .pilgrim-card :is(strong, .pilgrim-card-title) { letter-spacing: -.03em; line-height: 1.05; }
body.home:has(.pilgrim-home) .pilgrim-category { font-size: .78rem; padding: 6px 12px; border-radius: 999px; background: #fffefb; color: #1c2623; }
body.home:has(.pilgrim-home) .ae-nav a { font-size: .92rem; }
body.home:has(.pilgrim-home) .ae-header-action { font-size: .88rem; }
@media (max-width: 820px), (max-height: 500px) {
    body.home:has(.pilgrim-home) #content .pilgrim-section h2 { font-size: 1.35rem; }
    body.home:has(.pilgrim-home) #content .pilgrim-guide .pilgrim-invocation { font-size: 1.15rem; margin-bottom: 6px; }
    body.home:has(.pilgrim-home) .pilgrim-category { font-size: .65rem; padding: 3px 8px; }
}

/* ---------------------------------------------------------------------------
 * Couleurs du hero alignées sur le reste du site (sable, encre, orange).
 * Seules les couleurs (et quelques arrondis) changent : la mise en page reste identique.
 * ------------------------------------------------------------------------- */
body.home:has(.pilgrim-home) {
    --hp-bg: #ecebe4; --hp-card: #f7f6f1; --hp-ink: #1c2623; --hp-muted: #5c625b; --hp-soft: #9a9e95;
    --hp-line: #d8d6cc; --hp-accent: #f58d45; --hp-accent-2: #ffb47e; --hp-accent-ink: #9c451d;
    /* Variables de l'en-tête commun (almabrour-editorial) */
    --ae-ink: #1c2623; --ae-muted: #5c625b; --ae-paper: #ecebe4; --ae-white: #ecebe4;
    --ae-border: #d8d6cc; --ae-accent: #f58d45; --ae-forest: #1c2623;
    background: var(--hp-bg);
}
body.home:has(.pilgrim-home) .pilgrim-home { background: var(--hp-bg); color: var(--hp-ink); }
body.home:has(.pilgrim-home) .ae-header { color: var(--hp-ink); }
@media (min-width: 821px) { body.home:has(.pilgrim-home) .ae-nav a { color: var(--hp-ink); } }
body.home:has(.pilgrim-home) .ae-nav a:hover, body.home:has(.pilgrim-home) .ae-nav [aria-current="page"] { border-color: var(--hp-accent); }
body.home:has(.pilgrim-home) .ae-header .ae-header-action { background: var(--hp-ink); color: #f4f3ee; border-radius: 999px; padding: 11px 18px; transition: background .2s, color .2s; }
body.home:has(.pilgrim-home) .ae-header .ae-header-action:hover { background: var(--hp-accent); color: var(--hp-ink); }

/* Coin du logo : même sable que le fond. */
body.home:has(.pilgrim-home) .ae-brand { background: var(--hp-bg); }
body.home:has(.pilgrim-home) .ae-brand::before { background: radial-gradient(circle var(--logo-curve) at 100% 100%, transparent calc(100% - .75px), var(--hp-bg) 100%); }

/* Titre, invocation, recherche */
body.home:has(.pilgrim-home) #content .pilgrim-guide #pilgrim-title { color: var(--hp-ink); }
body.home:has(.pilgrim-home) #pilgrim-title .pilgrim-title-muted { color: var(--hp-soft); }
body.home:has(.pilgrim-home) #pilgrim-title > span:not(.pilgrim-title-muted) { color: var(--hp-accent); }
body.home:has(.pilgrim-home) #content .pilgrim-guide .pilgrim-invocation { color: var(--hp-accent-ink); }
body.home:has(.pilgrim-home) #content .pilgrim-search label { color: var(--hp-muted); }
body.home:has(.pilgrim-home) .pilgrim-search input[type=search] { background: var(--hp-card); border-color: var(--hp-line); color: var(--hp-ink); border-radius: 12px; }
body.home:has(.pilgrim-home) .pilgrim-search input[type=search]:focus { border-color: var(--hp-accent); outline: none; box-shadow: 0 0 0 3px #f58d4533; }
body.home:has(.pilgrim-home) .pilgrim-loupe { color: var(--hp-muted); }
body.home:has(.pilgrim-home) #content .pilgrim-section h2 { color: var(--hp-ink); }
body.home:has(.pilgrim-home) .pilgrim-section > span { border-color: var(--hp-line); }
body.home:has(.pilgrim-home) .pilgrim-feedback { color: var(--hp-muted); }

/* Cartes : même dégradé encre que les cartes photo des autres pages. */
body.home:has(.pilgrim-home) .pilgrim-card { background: var(--hp-ink); border-radius: 16px; }
body.home:has(.pilgrim-home) .pilgrim-card:before { background: linear-gradient(0deg, #0d1714e6 0%, #0d171459 45%, transparent 82%); }
body.home:has(.pilgrim-home) .pilgrim-card i { color: var(--hp-accent-2); font-style: normal; }
body.home:has(.pilgrim-home) .pilgrim-category { background: #fffefb; color: var(--hp-ink); }

/* Vidéo : voile encre et bouton lecture orange, comme les pastilles du site. */
body.home:has(.pilgrim-home) .pilgrim-film { background-color: var(--hp-ink); }
body.home:has(.pilgrim-home) .pilgrim-film:after { background: linear-gradient(180deg, #0d1714ad, transparent 23%), linear-gradient(0deg, #0d1714e0, transparent 46%); }
body.home:has(.pilgrim-home) .pilgrim-caption .pilgrim-play { background: var(--hp-accent); border: 0; color: var(--hp-ink); }
body.home:has(.pilgrim-home) .pilgrim-caption .pilgrim-play:hover { background: var(--hp-accent-2); }
body.home:has(.pilgrim-home) .pilgrim-home :focus-visible { outline-color: var(--hp-accent); }

/* Menu mobile de l'accueil : même bouton et même liste que sur les autres pages. */
@media (max-width: 760px) {
    body.home:has(.pilgrim-home) .ae-header { background: var(--hp-bg); border-color: var(--hp-line); }
    body.home:has(.pilgrim-home) .ae-header-inner { background: var(--hp-bg); }
    .ae-header .pilgrim-menu {
        width: 46px; height: 46px; border-radius: 50%; background: var(--hp-ink); color: #f4f3ee;
        gap: 5px; cursor: pointer; transition: background .2s;
    }
    .ae-header .pilgrim-menu:hover { background: var(--hp-accent); color: var(--hp-ink); }
    .pilgrim-menu span, .pilgrim-menu::before, .pilgrim-menu::after { width: 18px; margin: 0; border-radius: 2px; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .2s; }
    .menu-expanded .pilgrim-menu span { visibility: visible; opacity: 0; }
    .menu-expanded .pilgrim-menu::before { transform: translateY(7px) rotate(45deg); }
    .menu-expanded .pilgrim-menu::after { transform: translateY(-7px) rotate(-45deg); }
    body.home:has(.pilgrim-home) .ae-header.menu-expanded .ae-nav { background: var(--hp-bg); gap: 4px; padding: 12px 0 8px; border-top: 1px solid var(--hp-line); }
    body.home:has(.pilgrim-home) .ae-nav a {
        display: flex; justify-content: space-between; align-items: center;
        padding: 14px 16px; border: 0; border-radius: 14px; font-size: 1.15rem; font-weight: 500; color: var(--hp-ink);
    }
    body.home:has(.pilgrim-home) .ae-nav a::after { content: "↗"; font-size: .95rem; opacity: .45; }
    body.home:has(.pilgrim-home) .ae-nav [aria-current="page"] { background: var(--hp-ink); color: #f4f3ee; }
    body.home:has(.pilgrim-home) .ae-nav [aria-current="page"]::after { opacity: 1; color: var(--hp-accent); }
}

/* Menu de l'accueil : intitulés sur une ligne, plus serrés sur les écrans moyens. */
body.home:has(.pilgrim-home) .ae-nav a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1280px) {
    body.home:has(.pilgrim-home) .ae-nav { gap: clamp(8px, 1.1vw, 16px); margin-left: clamp(14px, 2.2vw, 40px); }
    body.home:has(.pilgrim-home) .ae-nav a { font-size: .84rem; }
    body.home:has(.pilgrim-home) .ae-header .ae-header-action { padding: 10px 14px; font-size: .8rem; }
}

/* ---------------------------------------------------------------------------
 * Intro mobile : la vidéo de La Mecque occupe tout l'écran, puis se range à sa place
 * pendant que le menu et les contenus arrivent (hero.js). Classe posée dans <head>.
 * ------------------------------------------------------------------------- */
@media (max-width: 760px) {
    /* La place de la vidéo est toujours réservée : rien ne bouge quand elle sort du plein écran. */
    body.home .pilgrim-home { grid-template: "guide" auto "film" clamp(290px, 95vw, 480px) / minmax(0, 1fr); }
    .pilgrim-intro, .pilgrim-intro body, .pilgrim-lock, .pilgrim-lock body { overflow: hidden; }
    .pilgrim-intro body.home .pilgrim-film {
        position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; height: 100svh; min-height: 0; border-radius: 0;
    }
    .pilgrim-intro body.home .ae-header,
    .pilgrim-intro body.home .pilgrim-guide > * { opacity: 0; }
    body.home .pilgrim-caption p { transition: font-size .9s cubic-bezier(.7, 0, .2, 1); }
    .pilgrim-intro body.home .pilgrim-caption { bottom: 9%; }
    .pilgrim-intro body.home .pilgrim-caption p { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}

/* Bouton de menu : réaction immédiate au toucher. */
.ae-header .pilgrim-menu { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
