/* Almabrour – compatibilité « éléments Elementor natifs ».
   Les pages sont faites de conteneurs, Titres, Textes, Images, Boutons et HTML natifs,
   avec les mêmes classes qu'avant. Ce fichier ne corrige que ce qui diffère dans le HTML
   d'Elementor (bloc autour de chaque élément, bouton dans un lien, etc.) : le rendu reste identique. */

/* ---------- Bases ---------- */
/* Conteneurs qui étaient de simples blocs : pas de flex. */
.elementor .e-con.ap-blk { display: block; }
/* Les conteneurs flex d'Elementor sont en colonne par défaut : ceux qui étaient en ligne le redeviennent. */
.elementor .e-con:is(.ap-crumbs, .ap-actions, .ap-footer-cta, .ap-footer-bottom, .ap-office-book, .umrah-photo-caption, .pilgrim-section, .pilgrim-card) { flex-direction: row; }
/* Largeurs et centrages qui viennent des classes (prioritaires sur la largeur 100 % d'Elementor). */
.elementor .e-con.ap-wrap { width: min(1240px, 100%); max-width: none; margin-inline: auto; padding-inline: clamp(12px, 3vw, 32px); }
.elementor .e-con.ap-heading { width: min(1240px, 100%); max-width: none; margin: 0 auto clamp(32px, 4.5vw, 60px); padding-inline: clamp(12px, 3vw, 32px); }
.elementor .e-con.ap-heading--split { padding: 0; }
.elementor .ap-wrap > .e-con.ap-heading { width: 100%; }
.elementor .e-con.ap-hero-media { width: min(100%, 440px); }
@media (max-width: 900px) { .elementor .e-con.ap-hero-media { width: min(100%, 420px); margin: 16px auto 18px; } }
:where(.ap-page, .pilgrim-home, .ap-page--footer) .e-con { --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
:where(.ap-page, .pilgrim-home, .ap-page--footer) .e-con > .elementor-widget { margin: 0; }
/* Les titres Elementor reprennent l'interlignage de leur bloc (comme les <p> et <span> d'avant). */
:where(.ap-page, .pilgrim-home, .ap-page--footer) :where(p, span, div).elementor-heading-title { line-height: inherit; }
:where(.ap-page, .pilgrim-home, .ap-page--footer) .elementor-heading-title a { color: inherit; text-decoration: none; }
:where(.ap-page, .pilgrim-home, .ap-page--footer) .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
:where(.ap-page, .pilgrim-home, .ap-page--footer) .elementor-widget-image img { display: block; }
:where(.ap-page, .pilgrim-home, .ap-page--footer) .elementor-widget-html .elementor-widget-container { display: contents; }

/* Images qui remplissent leur cadre */
.ap-fill-img, .ap-fill-img .elementor-widget-container { height: 100%; }
.ap-fill-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Boutons ---------- */
.elementor-widget-button.ap-btn { display: inline-flex; padding: 0; border: 0 !important; background: none !important; border-radius: 0; }
.elementor-widget-button.ap-btn .elementor-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
    font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1; letter-spacing: inherit; text-transform: none;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.elementor-widget-button.ap-btn .elementor-button-text::after { content: "↗"; display: inline-block; margin-left: 10px; transition: transform .2s; }
.elementor-widget-button.ap-btn .elementor-button:hover .elementor-button-text::after { transform: translate(2px, -2px); }
.elementor-widget-button.ap-btn--accent .elementor-button { background: var(--ap-accent); color: var(--ap-ink) !important; }
.elementor-widget-button.ap-btn--accent .elementor-button:hover { background: var(--ap-accent-2); }
.elementor-widget-button.ap-btn--ghost .elementor-button { background: transparent; border-color: #f4f3ee40; color: var(--ap-on-dark) !important; }
.elementor-widget-button.ap-btn--ghost .elementor-button:hover { border-color: var(--ap-on-dark); }
.elementor-widget-button.ap-btn--dark .elementor-button { background: var(--ap-ink); color: var(--ap-on-dark) !important; }
.elementor-widget-button.ap-btn--dark .elementor-button:hover { background: var(--ap-accent); color: var(--ap-ink) !important; }
.elementor-widget-button.ap-btn--line .elementor-button { background: transparent; border-color: var(--ap-line); color: var(--ap-ink) !important; }
.elementor-widget-button.ap-btn--line .elementor-button:hover { border-color: var(--ap-ink); }
.elementor-widget-button.ap-btn .elementor-button-content-wrapper { display: inline-flex; align-items: center; }

/* ---------- Bandeau des pages ---------- */
.ap-crumbs .ap-crumb-current { color: var(--ap-on-dark); }
.ap-crumbs .ap-crumb-home a:hover { color: var(--ap-on-dark); }
.ap-hero-photo .elementor-widget-image { position: absolute; inset: 0; }
.ap-hero-photo .elementor-widget-image img { transform: none; }
.ap-hero-note-title { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.ap-hero-note-text { font-size: .88rem; color: var(--ap-muted); line-height: 1.4; display: block; }

/* ---------- Cartes photo ---------- */
.ap-formula > .elementor-widget-image { position: absolute; inset: 0; z-index: -2; }
.ap-formula > .elementor-widget-image .elementor-widget-container { height: 100%; }
.ap-formula-title { 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-text { display: block; color: #ffffffc7; line-height: 1.55; max-width: 44ch; }
.ap-formula .ap-square-arrow .elementor-heading-title { line-height: 1; }

/* ---------- Prestations ---------- */
.ap-included > .e-con { border-radius: var(--ap-r-lg); padding: clamp(18px, 2vw, 26px); min-height: 250px; display: flex; flex-direction: column; }
.ap-included-lead-title { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 12px; }
.ap-included-lead-text { line-height: 1.55; color: #1c2623d9; }
.ap-included-lead-link { margin-top: auto; padding-top: 18px; color: var(--ap-ink); font-weight: 600; }

/* ---------- Parcours ---------- */
.elementor.elementor .ap-process-nav .ap-process-link .elementor-heading-title a { color: var(--ap-muted); }
.elementor.elementor .ap-process-nav .ap-process-link .elementor-heading-title a:hover { color: var(--ap-ink); }
.elementor.elementor .ap-process-nav .ap-process-link .elementor-heading-title a[aria-current] { color: var(--ap-ink); }
.ap-step .ap-step-detail p { color: inherit; }
.ap-step-body .ap-pill { width: fit-content; }

/* ---------- Galerie ---------- */
.ap-gallery-item { margin: 0; border-radius: var(--ap-r-lg); overflow: hidden; background: var(--ap-line); }
.ap-gallery-item:nth-child(2) img { height: clamp(260px, 30vw, 420px); }
.ap-gallery-item:nth-child(3) img { height: clamp(200px, 20vw, 290px); }
.ap-gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 1080px) { .ap-gallery-item:nth-child(n) img { height: clamp(200px, 34vw, 320px); } }

/* ---------- Réservation ---------- */
.ap-page .ap-card-title h2 { font-weight: 600; line-height: 1.1; font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 12px 0 18px !important; color: var(--ap-ink) !important; }
.ap-checklist { display: grid; gap: 12px; }
.ap-check { position: relative; padding-left: 34px; line-height: 1.45; color: var(--ap-ink); }
.ap-check::before {
    content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ap-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2623' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ap-card--dark .ap-card-text { color: #f4f3eebf; margin: 12px 0 16px; line-height: 1.5; }
.ap-contact-line { position: relative; padding-left: 28px !important; }
.ap-contact-line::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: currentColor; -webkit-mask: var(--ap-ico) center / contain no-repeat; mask: var(--ap-ico) center / contain no-repeat; }
.ap-line--clock { --ap-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.ap-line--phone { --ap-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4-2 1.3a11 11 0 0 0 6.2 6.2l1.3-2 4 1.5v3a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 4.5 5.7a2 2 0 0 1 2-2.2Z'/%3E%3C/svg%3E"); }
.ap-line--mail { --ap-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.elementor.elementor .ap-contact-line .elementor-heading-title a:hover { color: var(--ap-accent-2); }

/* ---------- Étapes (panneau sombre) ---------- */
.ap-mini-step { background: var(--ap-ink-2); border: 1px solid #ffffff0f; border-radius: var(--ap-r-lg); padding: clamp(20px, 2.2vw, 28px); }
.ap-mini-num { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--ap-accent); color: var(--ap-ink); font-size: .78rem; font-weight: 600; }

/* ---------- Contact ---------- */
.ap-contact-card { 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-card .ap-contact-icon { margin-bottom: auto; }
.ap-contact-value .elementor-heading-title, .ap-contact-value .elementor-heading-title a { color: var(--ap-ink) !important; font-weight: 600; }
.ap-contact-value .elementor-heading-title a:hover { color: var(--ap-accent-ink) !important; }
.ap-office-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 30%; }
.ap-office-address { color: var(--ap-muted); line-height: 1.55; }
.elementor.elementor .ap-office-link .elementor-heading-title a { color: var(--ap-ink); font-weight: 600; overflow-wrap: anywhere; }
.elementor.elementor .ap-office-link .elementor-heading-title a:hover { color: var(--ap-accent-ink); }
.ap-office-book-label { flex: 1 0 100%; font-size: .85rem; color: var(--ap-muted); }
.elementor.elementor .ap-office-book-link .elementor-heading-title a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--ap-ink); color: var(--ap-on-dark); font-weight: 600; font-size: .9rem; }
.elementor.elementor .ap-office-book-link .elementor-heading-title a:hover { background: var(--ap-accent); color: var(--ap-ink); }

/* ---------- Pied de page ---------- */
.ap-footer-logo .elementor-heading-title { display: flex; align-items: center; gap: 10px; }
.ap-footer-text { color: var(--ap-on-dark-muted); line-height: 1.55; max-width: 32ch; }
.ap-footer-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* ---------- Accueil : hero ---------- */
.pilgrim-film > .pilgrim-video { position: absolute; inset: 0; }
.pilgrim-film > .pilgrim-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#pilgrim-title .elementor-heading-title { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; text-wrap: inherit; }
.pilgrim-section > .pilgrim-section-line { flex: 1; border-top: 1px solid var(--hp-line, #d9dcd4); }
.pilgrim-card > .elementor-widget-image { position: absolute; inset: 0; z-index: -2; }
.pilgrim-card > .elementor-widget-image .elementor-widget-container { height: 100%; }
.pilgrim-card > .elementor-widget-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pilgrim-card-title { padding: 15px; font: 600 clamp(1.15rem, 1.5vw, 1.6rem)/1.08 var(--alma-font); letter-spacing: -.02em; }
.pilgrim-card-title i { font-style: normal; }
.pilgrim-search-w, .pilgrim-feedback-w { width: 100%; }

/* ---------- Accueil : sections ---------- */
.ah-benefits { list-style: none; }
.ah-season .umrah-photo > .elementor-widget-image img { display: block; width: 100%; aspect-ratio: 1.5; max-height: min(46vh, 520px); object-fit: cover; }
.umrah-caption-label { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.ah-season .umrah-caption-label { color: var(--ap-accent-ink); letter-spacing: .12em; font-weight: 600; font-size: .78rem; align-self: center; }
.umrah-fact { padding-block: 10px; border-block-start: 1px dashed #c4c3b8; }
.ah-season .umrah-fact { border-block-start: 1px solid #ffffff1c; padding-block: 14px; }
.umrah-fact-label { color: #555a50; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ah-season .umrah-fact-label { color: var(--ap-on-dark-muted); font-weight: 600; font-size: .74rem; letter-spacing: .14em; }
.umrah-fact-value { margin: 3px 0 0; font-size: clamp(.95rem, 1.2vw, 1.25rem); line-height: 1.35; overflow-wrap: anywhere; }
.ah-season .umrah-fact-value { color: var(--ap-on-dark); }
#umrah-season-title .elementor-heading-title { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.ah-season .umrah-book { width: fit-content; }
.elementor.elementor .ah-season .umrah-book .elementor-heading-title a { color: inherit; }
.ah-steps-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ap-r-xl); }
.ah-step-row { 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-step-row:last-child { border-bottom: 1px solid var(--ap-line); }
.ah-step-row:hover .ah-step-num { -webkit-text-stroke-color: var(--ap-accent); }
.ah-visit-quote { margin: clamp(18px, 2.4vw, 28px) 0 18px; font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; color: var(--ap-ink); text-wrap: balance; }
.ah-visit-caption { font-weight: 600; margin-bottom: clamp(22px, 3vw, 34px); color: var(--ap-ink); }
.ah-visit-caption span { font-weight: 400; color: var(--ap-muted); }
.ah-visit-copy .ap-btn { margin-top: auto; }
.ah-visit-img .elementor-widget-image { height: 100%; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .ah-season .umrah-photo-caption { position: static; border-radius: 0; background: var(--ap-card); }
}

/* Interlignes des titres : le thème impose 1.4em aux titres Elementor ; on rétablit ceux du design. */
.ap-hero .elementor-widget-heading h1.elementor-heading-title { line-height: 1; }
.ap-heading .elementor-widget-heading h2.elementor-heading-title { line-height: 1.04; }
.ap-footer-cta .elementor-widget-heading h2.elementor-heading-title { line-height: 1.02; }
.ap-form-card .elementor-widget-heading h2.elementor-heading-title { line-height: 1.08; }
.ap-card-title.elementor-widget-heading h2.elementor-heading-title { line-height: 1.1; }
.ah-season .elementor-widget-heading h3.elementor-heading-title { line-height: 1.05; }
#pilgrim-title.elementor-widget-heading h1.elementor-heading-title { line-height: inherit; }

/* Largeurs maximales des textes : Elementor impose max-width: 100 % avec une règle très précise. */
.elementor.elementor .e-con > .elementor-widget.ap-lead { max-width: 46ch; }
.elementor.elementor .e-con > .elementor-widget.ap-heading-intro { max-width: 52ch; margin: 18px auto 0; }
.elementor.elementor .ap-heading--split > .elementor-widget.ap-heading-intro { margin-left: 0; }
.elementor.elementor .e-con > .elementor-widget.ap-formula-text { max-width: 44ch; }
.elementor.elementor .e-con > .elementor-widget.ap-footer-text { max-width: 32ch; }
.elementor.elementor .e-con > .elementor-widget.ap-invocation { width: fit-content; }
/* Cartes photo : le texte reste en bas de la carte. */
.elementor .e-con.ap-formula { flex-direction: row; align-items: flex-end; }
/* Pied de page : le titre et les boutons sur une même ligne. */
.elementor.elementor .ap-footer-cta > .elementor-widget, .elementor .ap-footer-cta > .e-con { width: auto; flex: 0 1 auto; }
/* Sommaire des étapes : liens sans hauteur de ligne en plus. */
.ap-process-link .elementor-heading-title { display: block; line-height: normal; }

/* Marges propres à certains éléments (la remise à zéro générique des widgets ci-dessus les écrasait). */
.elementor.elementor .e-con > .elementor-widget.ap-hero-note-title { margin-bottom: 4px; }
.elementor.elementor .e-con > .elementor-widget.ap-formula-title { margin-bottom: 10px; }
.elementor.elementor .e-con > .elementor-widget.ap-included-lead-title { margin-bottom: 12px; }
.elementor.elementor .e-con > .elementor-widget.ap-included-lead-link { margin-top: auto; }
.elementor.elementor .e-con > .elementor-widget.ap-included-item-title { margin-top: auto; margin-bottom: 8px; }
.ap-included-item-title h3.elementor-heading-title { line-height: 1.2; }
.elementor.elementor .e-con > .elementor-widget.ap-contact-icon { margin-bottom: auto; }
.elementor.elementor .e-con > .elementor-widget.ah-visit-quote { margin: clamp(18px, 2.4vw, 28px) 0 18px; }
.elementor.elementor .e-con > .elementor-widget.ah-visit-caption { margin-bottom: clamp(22px, 3vw, 34px); }
.elementor.elementor .e-con > .elementor-widget.ap-btn.ah-visit-btn, .elementor.elementor .ah-visit-copy > .elementor-widget.ap-btn { margin-top: auto; }
@media (max-width: 640px) { .elementor.elementor .e-con > .elementor-widget.ap-included-item-title { margin-top: 0; } }
.ap-step-num .elementor-heading-title { display: block; }
.ap-step-body h3.elementor-heading-title { line-height: 1.2; }
.elementor.elementor .ap-card--dark > .elementor-widget.ap-card-text { margin-bottom: 16px; }
.elementor .e-con.ap-formula-copy { --width: auto; width: auto; }
/* Légende « La Mecque » : bloc au-dessus de 820px, rangée (ou colonne inversée sur mobile, voir hero.css) en dessous. */
.e-con.pilgrim-caption { width: auto; flex-direction: row; }
@media (min-width: 821px) { .e-con.pilgrim-caption { display: block; } }
.elementor.elementor .ah-rite > .elementor-widget.ap-included-num { margin: 18px 12px 0; }
.ah-season .e-con.umrah-photo-caption { width: auto; }
.elementor.elementor .e-con > .elementor-widget.umrah-fact-value { margin-top: 3px; }
.umrah-season-title .elementor-heading-title { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.elementor .ah-steps-copy > .e-con.ap-heading { margin-bottom: clamp(22px, 3vw, 36px); }
.elementor.elementor .e-con > .elementor-widget.ah-step-num { min-width: 2ch; }
.elementor.elementor .pilgrim-caption > .elementor-widget.pilgrim-caption-text { margin-bottom: 18px; }
#umrah-season-title h2.elementor-heading-title { margin-top: 0 !important; }
@media (max-width: 640px) {
    .elementor .ap-included > .e-con, .elementor .e-con.ap-contact-card { min-height: 0; }
    .elementor.elementor .e-con > .elementor-widget.ap-contact-label { margin-top: 14px; }
}
/* Dates de la légende photo : texte courant (seule l'étiquette « Oumrah » est en capitales colorées). */
.ah-season .umrah-photo-caption .umrah-caption-dates span.elementor-heading-title, .umrah-photo-caption .umrah-caption-dates .elementor-heading-title { color: inherit; font-size: inherit; font-weight: 400; letter-spacing: inherit; text-transform: none; }
/* Titres h3 : interlignage 1.2 comme les titres d'origine (Astra impose 1.3em aux titres Elementor). */
:where(.ap-page, .pilgrim-home, .ap-page--footer) .elementor-widget-heading h3.elementor-heading-title { line-height: 1.2; }
/* Encadré du bureau (Contact). */
.ap-office .elementor-widget-heading h2.elementor-heading-title { line-height: 1.1; }
.elementor.elementor .ap-office-body > .elementor-widget.ap-contact-icon { margin-bottom: 20px; }
.ap-office-links .elementor-heading-title, .ap-office-book-label .elementor-heading-title { display: block; }
.elementor.elementor .ap-office-link .elementor-heading-title a { display: block; line-height: 1.55; }
.elementor.elementor .e-con > .elementor-widget.ap-included-item-title { margin-bottom: 0; }
@media (max-width: 640px) { .elementor .e-con.ap-hero-note { width: auto; } }
/* Titres centrés : Elementor remet la marge des titres à 0, ce qui annulait le centrage (margin-inline: auto). */
.ap-heading--center .elementor-widget-heading h2.elementor-heading-title { margin-inline: auto; }
/* Liens du sommaire « Comment ça se passe » : Elementor force font-size: inherit sur les liens des titres. */
.elementor.elementor .ap-process-nav .ap-process-link .elementor-heading-title a { font-size: .95rem; }
/* Accueil : tous les h3 en interlettrage serré, comme en ligne. */
body.am-home #content .ap-page--home h3.elementor-heading-title { letter-spacing: -.035em; }
