/*
Theme Name: Al Moussafir
Theme URI: https://www.almoussafir.net
Author: Agence Al Moussafir
Description: Thème bilingue (français / arabe) pour l’agence d’assurances Al Moussafir, Oujda. Pages, rubriques de solutions, formulaire de contact et personnalisation inclus.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: almoussafir
*/

:root {
  --blue: #0f2d52;
  --blue-2: #1c4373;
  --gold: #d4954f;
  --gold-dk: #b57a37;
  --sand: #f5e1ce;
  --sand-lt: #fbf3ea;
  --mist: #d9e1ea;
  --ink: #16263d;
  --muted: #566579;
  --white: #fff;
  --r: 26px;
  --r-big: 90px;
  --wrap: 1140px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Noto Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --hdr-h: 88px; --nav-fs: 15px; --nav-py: 10px; --nav-px: 12px; --nav-fw: 500; --hdr-bg: #fff; --nav-c: #16263d; --nav-hc: #b57a37; --logo-h: 52px; --brand-fs: 23px; --sub-w: 290px;
  --fs: 17px; --btn-r: 999px; --pad: 104px; --hero-ov: .55; --blue-rgb: 15,45,82;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110' fill='none' stroke='%23d4954f' stroke-width='1.2'%3E%3Cpath d='M55 8C57 36 74 53 102 55 74 57 57 74 55 102 53 74 36 57 8 55 36 53 53 36 55 8Z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font-family: var(--font); font-size: var(--fs); font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="ar"] body { font-family: var(--font-ar); line-height: 1.9; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { color: var(--blue); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3 { letter-spacing: 0; line-height: 1.5; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--gold); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.star { color: var(--gold); flex: none; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 10px; top: 10px; background: #fff; padding: 8px 14px; z-index: 99; }

/* bascule de langue */
html[data-lang="fr"] .ar { display: none !important; }
html[data-lang="ar"] .fr { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: .8em 1.5em; border-radius: var(--btn-r); border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dk); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mist); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.45rem; font-weight: 600; color: var(--blue); margin-inline-end: auto; }
.brand span span, .brand em { color: var(--gold); }
.brand .custom-logo { max-height: 52px; width: auto; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-nav a { display: block; padding: 10px 13px; text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 10px; color: var(--ink); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--gold-dk); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
  list-style: none; margin: 0; padding: 10px; position: absolute; inset-inline-start: 0; top: 100%; min-width: 290px;
  background: #fff; border: 1px solid var(--mist); border-radius: 18px 18px 18px 6px; box-shadow: 0 14px 40px rgba(15,45,82,.12);
  display: none;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.lang-toggle { background: none; border: 1.5px solid var(--mist); border-radius: 999px; padding: .45em 1em; font-weight: 600; font-size: .9rem; font-family: inherit; color: var(--blue); cursor: pointer; }
.lang-toggle:hover { border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blue); }
.nav-toggle svg { display: block; }

/* ---------- Bandeau d'accueil ---------- */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 10vw, 130px); border-end-start-radius: var(--r-big); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--blue) 25%, rgba(var(--blue-rgb),var(--hero-ov))), var(--hero-img, none) center/cover; }
.hero::after { content: ""; position: absolute; inset-inline-end: -80px; top: 0; bottom: 0; width: 55%; background: var(--pattern) 0 0/110px; opacity: .22; mask-image: linear-gradient(to left, #000, transparent); -webkit-mask-image: linear-gradient(to left, #000, transparent); }
html[dir="rtl"] .hero::after { mask-image: linear-gradient(to right, #000, transparent); -webkit-mask-image: linear-gradient(to right, #000, transparent); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; font-weight: 500; }
.hero .lead { max-width: 46ch; font-size: 1.15rem; color: #dbe5f1; margin-bottom: 1.6em; }
.hero .kicker { color: var(--gold); font-weight: 600; margin-bottom: 1.2em; }
.badge { width: 210px; height: 210px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-content: center; text-align: center; background: rgba(15,45,82,.55); }
.badge .star { margin: 0 auto 4px; }
.badge strong { font-size: 4rem; font-weight: 300; line-height: 1; }
.badge small { display: block; font-size: .95rem; padding: 0 22px; margin-top: 6px; color: #dbe5f1; }

.page-hero { background: var(--blue); color: #fff; padding: clamp(46px, 7vw, 84px) 0; position: relative; overflow: hidden; border-end-start-radius: var(--r-big); }
.page-hero::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 40%; background: var(--pattern) 0 0/110px; opacity: .16; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0; font-weight: 500; }
.page-hero .lead { color: #dbe5f1; max-width: 56ch; margin: 1em 0 0; font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 8vw, var(--pad)) 0; }
.section.sand { background: var(--sand-lt); }
.sec-title { display: flex; align-items: center; gap: 14px; margin-bottom: .8em; }
.sec-intro { max-width: 62ch; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.narrow { max-width: 760px; }

/* Engagements : bande à filets, pas de cartes */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--mist); margin-top: -1px; }
.values > div { padding: 30px 26px; border-inline-start: 1px solid var(--mist); }
.values > div:first-child { border-inline-start: 0; }
.values h3 { font-size: 1.05rem; margin-bottom: .4em; }
.values p { font-size: .94rem; color: var(--muted); margin: 0; }
.values .star { margin-bottom: 12px; }

/* Solutions : tuiles alternées sable / brume, un grand coin arrondi */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol { display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: var(--r); background: var(--sand); text-decoration: none; color: var(--ink); transition: transform .2s; }
.sol:nth-child(even) { background: var(--mist); }
.sol:hover { transform: translateY(-3px); }
.sol .icon, .sol .star { color: var(--blue); margin-bottom: 18px; }
.sol:nth-child(odd) .icon { color: var(--blue); }
.sol h3 { margin-bottom: .45em; }
.sol p { color: #3b4b61; font-size: .96rem; flex: 1; }
.sol .more { font-weight: 600; color: var(--blue); font-size: .92rem; border-bottom: 2px solid var(--gold); align-self: flex-start; padding-bottom: 2px; }

/* Approche : trois blocs numérotés (séquence réelle I-II-III) */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tri { border-radius: var(--r); padding: 30px 28px; background: var(--mist); }
.tri:nth-child(2) { background: var(--sand); }
.tri .num { display: block; font-size: .9rem; font-weight: 600; color: var(--gold-dk); border-bottom: 2px solid var(--blue); width: 54px; padding-bottom: 10px; margin-bottom: 18px; }
.tri p { margin: 0; }

/* Profils */
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.profiles > div { padding: 8px 26px 8px 0; }
html[dir="rtl"] .profiles > div { padding: 8px 0 8px 26px; }
.profiles h3 { padding-top: 16px; border-top: 2px solid var(--gold); font-size: 1.05rem; }
.profiles p { color: var(--muted); font-size: .95rem; }

/* Frise 1992 -> aujourd'hui */
.timeline { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.dot { width: 200px; height: 200px; border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 18px; background: var(--mist); font-size: .9rem; line-height: 1.4; }
.dot strong { display: block; font-size: 2.2rem; font-weight: 300; color: var(--blue); line-height: 1.1; }
.dot.dark { background: var(--blue); color: #fff; }
.dot.dark strong { color: #fff; }
.timeline .line { width: 56px; height: 2px; background: var(--blue); }

/* Panneau couleurs / boussole */
.compass { aspect-ratio: 1; max-width: 420px; border-radius: var(--r-big) var(--r) var(--r) var(--r); background: radial-gradient(circle at 50% 50%, var(--sand) 0 38%, var(--blue) 39% 100%); display: grid; place-content: center; color: var(--gold); }
html[dir="rtl"] .compass { border-radius: var(--r) var(--r-big) var(--r) var(--r); }
.swatches { display: flex; gap: 10px; margin: 20px 0 0; }
.swatches i { width: 54px; height: 54px; border-radius: 50%; display: block; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.channels span { border: 1.5px solid var(--blue); border-radius: 999px; padding: .4em 1.1em; font-weight: 600; font-size: .92rem; color: var(--blue); }

/* Appel à l'action */
.cta { background: var(--blue); color: #fff; padding: 58px 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: var(--pattern) 0 0/110px; opacity: .1; }
.cta-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #dbe5f1; }

/* ---------- Contenu éditorial / blog ---------- */
.entry { max-width: 760px; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border-radius: var(--r); background: var(--sand-lt); border: 1px solid var(--sand); padding: 26px; text-decoration: none; color: var(--ink); display: block; }
.post-card time { font-size: .85rem; color: var(--muted); }
.post-card h3 { margin: .4em 0; }
.post-card img { border-radius: 14px; margin-bottom: 14px; display: block; }
.pagination { margin-top: 36px; display: flex; gap: 8px; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--mist); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.info { background: var(--sand); border-radius: var(--r-big) var(--r) var(--r) var(--r); padding: 44px 34px 34px; }
html[dir="rtl"] .info { border-radius: var(--r) var(--r-big) var(--r) var(--r); }
.info h2 { font-size: 1.4rem; }
.info dl { margin: 0; }
.info dt { font-weight: 600; color: var(--blue); margin-top: 1.1em; }
.info dd { margin: .15em 0 0; }
.info a { color: var(--ink); }
.map { margin-top: 24px; border: 0; width: 100%; height: 240px; border-radius: 18px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; color: var(--blue); }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--mist); border-radius: 14px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hp { position: absolute; inset-inline-start: -9999px; }
.notice { padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-weight: 500; }
.notice.ok { background: #e4f2e6; color: #1f5a2b; }
.notice.ko { background: #fbe6e1; color: #8a2d1a; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue); color: #c9d6e6; padding: 64px 0 0; border-start-start-radius: var(--r-big); margin-top: 0; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #c9d6e6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5em; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .slogan { color: #fff; font-size: 1.1rem; }
.social { display: flex; gap: 14px; margin-top: 14px; }
.legal { margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Adaptatif ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; order: 3; }
  .primary-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--mist); padding: 10px 20px 20px; max-height: 80vh; overflow: auto; }
  .primary-nav.open { display: block; }
  .primary-nav .menu { flex-direction: column; }
  .primary-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  html[dir="rtl"] .primary-nav .sub-menu { padding: 0 14px 0 0; }
  .bar > .btn { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .badge { width: 160px; height: 160px; } .badge strong { font-size: 3rem; } .badge small { font-size: .8rem; padding: 0 14px; }
  .values { grid-template-columns: 1fr 1fr; }
  .values > div:nth-child(3) { border-inline-start: 0; }
  .values > div:nth-child(n+3) { border-top: 1px solid var(--mist); }
  .sol-grid, .triptych, .posts { grid-template-columns: 1fr 1fr; }
  .profiles { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .two, .contact-grid, .foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sol-grid, .triptych, .posts, .values, .profiles, .form .row { grid-template-columns: 1fr; }
  .values > div { border-inline-start: 0; border-top: 1px solid var(--mist); }
  .values > div:first-child { border-top: 0; }
  .timeline { flex-direction: column; }
  .timeline .line { width: 2px; height: 30px; }
  .hero { border-end-start-radius: 48px; } .page-hero { border-end-start-radius: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Contenu modifiable (éditeur WordPress / Elementor) ---------- */
.am-el { width: 100%; }
.entry img, .entry video { max-width: 100%; height: auto; border-radius: 18px; }
.entry iframe, .entry video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 18px; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .88rem; color: var(--muted); margin-top: .5em; }
.entry.wide, .entry .alignwide { max-width: none; }
.has-bleu-background-color { background: var(--blue); } .has-or-background-color { background: var(--gold); }
.has-sable-background-color { background: var(--sand); } .has-brume-background-color { background: var(--mist); }
.has-bleu-color { color: var(--blue); } .has-or-color { color: var(--gold); }
/* classes à mettre dans « CSS Classes » d'une section Elementor */
.am-blue { background: var(--blue); color: #fff; } .am-blue h1, .am-blue h2, .am-blue h3 { color: #fff; }
.am-sand { background: var(--sand-lt); } .am-mist { background: var(--mist); }
.am-corner { border-end-start-radius: var(--r-big); overflow: hidden; }
.am-corner-img img { border-radius: var(--r-big) var(--r) var(--r) var(--r); }
.am-pattern { background-image: var(--pattern); background-size: 110px; }

/* ---------- Correctif menu (bureau) ---------- */
.bar { gap: 14px; flex-wrap: nowrap; }
.brand { white-space: nowrap; flex: none; }
.primary-nav { flex: 0 1 auto; min-width: 0; }
.primary-nav .menu { gap: 2px; align-items: center; flex-wrap: nowrap; }
.primary-nav .menu > li { flex: none; }
.primary-nav a { white-space: nowrap; padding: 10px 11px; font-size: .92rem; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.primary-nav .sub-menu { z-index: 60; margin: 0; }
.primary-nav .sub-menu a { white-space: normal; border-radius: 10px; padding: 10px 14px; }
.primary-nav .sub-menu a:hover { background: var(--sand-lt); }
.primary-nav .current-menu-item > a { color: var(--gold-dk); font-weight: 600; }
.lang-toggle { flex: none; white-space: nowrap; }
.bar > .btn { flex: none; white-space: nowrap; }
@media (max-width: 1240px) { .bar > .btn { display: none; } }
@media (max-width: 1100px) {
  .nav-toggle { display: block; order: 3; }
  .primary-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--mist); padding: 10px 20px 20px; max-height: 80vh; overflow: auto; }
  .primary-nav.open { display: block; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; }
  .primary-nav a { white-space: normal; }
  .primary-nav .menu-item-has-children > a::after { display: none; }
  .primary-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  html[dir="rtl"] .primary-nav .sub-menu { padding: 0 14px 0 0; }
}

/* ---------- Pages Elementor natives (widgets modifiables) ---------- */
.am-el .elementor-widget-heading .elementor-heading-title { font-family: inherit; font-weight: 600; color: var(--blue); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
html[data-lang="ar"] .am-el .elementor-widget-heading .elementor-heading-title { line-height: 1.5; letter-spacing: 0; }
.am-el h1.elementor-heading-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.am-el h2.elementor-heading-title { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.am-el h3.elementor-heading-title { font-size: 1.2rem; }
.am-el .elementor-widget-text-editor { font-family: inherit; color: var(--ink); font-size: inherit; line-height: inherit; }
.am-el .elementor-widget-text-editor p { margin: 0 0 1em; }
.am-el .elementor-widget-text-editor a { color: var(--blue); }
.am-el section.am-sec { padding: clamp(40px, 6vw, 84px) 0; }
.am-el section.am-sec-head { padding-bottom: 8px; }
.am-el section.am-sec-body { padding-top: 16px; }
.am-el section.am-sand { background: var(--sand-lt); }
.am-el .am-title .elementor-heading-title::before { content: "✦"; color: var(--gold); margin-inline-end: .5em; font-size: .8em; }
.am-el .elementor-element .elementor-widget-container { max-width: 100%; }

/* bandeaux sombres */
.am-el .hero .elementor-container, .am-el .page-hero .elementor-container { position: relative; z-index: 1; }
.am-el section.hero { padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 10vw, 130px); }
.am-el .hero .elementor-heading-title, .am-el .page-hero .elementor-heading-title, .am-el .am-blue .elementor-heading-title { color: #fff; }
.am-el .hero h1.elementor-heading-title { max-width: 15ch; font-weight: 500; }
.am-el .hero .kicker p { color: var(--gold); font-weight: 600; }
.am-el .hero .elementor-widget-text-editor, .am-el .page-hero .elementor-widget-text-editor, .am-el .am-blue .elementor-widget-text-editor { color: #dbe5f1; }
.am-el .hero .lead p, .am-el .page-hero .lead p { font-size: 1.12rem; max-width: 50ch; }
.am-el .page-hero h1.elementor-heading-title { font-weight: 500; margin: 0; }
.am-el .am-blue { background: var(--blue); }
.am-el .am-bignum .elementor-heading-title { font-size: 3rem; font-weight: 300; line-height: 1; margin-bottom: .2em; }
.am-el .hero .am-bignum .elementor-heading-title { font-size: 4rem; }
.am-el .am-badge > .elementor-element-populated { border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(15,45,82,.55); text-align: center; max-width: 220px; aspect-ratio: 1; margin: auto; align-content: center; justify-content: center; }

/* boutons */
.am-el .am-btn { margin-inline-end: 12px; margin-bottom: 10px; }
.am-el .am-btn .elementor-button { font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent; transition: background .2s; }
.am-el .am-btn-gold .elementor-button { background: var(--gold); color: #fff; }
.am-el .am-btn-gold .elementor-button:hover { background: var(--gold-dk); color: #fff; }
.am-el .am-btn-blue .elementor-button { background: var(--blue); color: #fff; }
.am-el .am-btn-blue .elementor-button:hover { background: var(--blue-2); color: #fff; }
.am-el .am-btn-line .elementor-button { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.am-el .am-btn-line .elementor-button:hover { background: rgba(255,255,255,.12); color: #fff; }
.am-el .am-cta-btns > .elementor-element-populated { justify-content: flex-end; align-content: center; }

/* engagements, piliers, profils, étapes */
.am-el .am-values > .elementor-container { border-block: 1px solid var(--mist); }
.am-el .am-val > .elementor-element-populated { padding: 30px 26px; border-inline-start: 1px solid var(--mist); }
.am-el .am-val:first-child > .elementor-element-populated { border-inline-start: 0; }
.am-el .am-val .elementor-heading-title::before { content: "✦"; display: block; color: var(--gold); font-size: 1.1rem; margin-bottom: 10px; }
.am-el .am-val h3.elementor-heading-title { font-size: 1.05rem; }
.am-el .am-val .elementor-widget-text-editor { font-size: .94rem; color: var(--muted); }
.am-el .am-tri > .elementor-element-populated { margin: 10px; padding: 30px 28px; border-radius: var(--r); background: var(--mist); }
.am-el .am-tri:nth-child(2) > .elementor-element-populated { background: var(--sand); }
.am-el .am-num p { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--gold-dk); border-bottom: 2px solid var(--blue); padding: 0 40px 10px 0; margin-bottom: 16px; }
.am-el .am-prof .elementor-heading-title { padding-top: 16px; border-top: 2px solid var(--gold); font-size: 1.05rem; }
.am-el .am-prof .elementor-widget-text-editor { color: var(--muted); font-size: .95rem; }
.am-el .am-step .am-bignum .elementor-heading-title { color: var(--blue); }
.am-el .am-step > .elementor-element-populated { border-top: 2px solid var(--blue); margin-top: 8px; padding-top: 18px; }

/* contact et boussole */
.am-el .am-info > .elementor-element-populated { margin: 10px; padding: 44px 34px 34px; background: var(--sand); border-radius: var(--r-big) var(--r) var(--r) var(--r); }
html[dir="rtl"] .am-el .am-info > .elementor-element-populated { border-radius: var(--r) var(--r-big) var(--r) var(--r); }
.am-el .am-compass > .elementor-element-populated { aspect-ratio: 1; max-width: 420px; margin: auto; align-content: center; justify-content: center; color: var(--gold); border-radius: var(--r-big) var(--r) var(--r) var(--r); background: radial-gradient(circle at 50% 50%, var(--sand) 0 38%, var(--blue) 39% 100%); }
@media (max-width: 767px) { .am-el .am-val > .elementor-element-populated { border-inline-start: 0; border-top: 1px solid var(--mist); } .am-el .am-badge { display: none; } }

/* ---------- Blocs du thème dans Elementor : aucun espacement ajouté par Elementor ---------- */
.am-el .am-blk, .am-el .am-blk > .elementor-container { max-width: none; padding: 0; }
.am-el .am-blk .elementor-column, .am-el .am-blk .elementor-element-populated, .am-el .am-blk .elementor-widget-wrap { padding: 0 !important; margin: 0; }
.am-el .am-blk .elementor-widget { margin: 0 !important; }
.am-el .am-blk .elementor-shortcode { display: block; }

/* ---------- Options par bloc : [am_b_xxx bg="sand" pad="small" class="..."] ---------- */
.am-bgw-sand > .section { background: var(--sand-lt); }
.am-bgw-mist > .section { background: var(--mist); }
.am-bgw-white > .section { background: #fff; }
.am-padw-none > .section { padding-block: 0; }
.am-padw-small > .section { padding-block: 32px; }
.am-padw-large > .section { padding-block: calc(var(--pad) * 1.3); }

/* ---------- En-tête / pied de page modifiés avec Elementor ---------- */
.am-part-entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); }
.am-part-entete .site-header { position: static; }
.am-hdr-sec { background: #fff; border-bottom: 1px solid var(--mist); position: relative; }
.am-hdr-sec .elementor-container { align-items: center; min-height: var(--hdr-h); flex-wrap: nowrap; }
.am-hdr-sec .elementor-widget-shortcode, .am-hdr-sec .elementor-widget { margin: 0 !important; }
.am-hdr-sec .am-hc-menu > .elementor-element-populated, .am-hdr-sec .am-hc-btn > .elementor-element-populated, .am-hdr-sec .am-hc-lang > .elementor-element-populated { justify-content: flex-end; }
.am-hdr-sec .am-hc-lang > .elementor-element-populated { padding: 0 12px; }
.am-hdr-sec .am-btn { margin: 0; }
@media (max-width: 1100px) { .am-hdr-sec .elementor-container { flex-wrap: wrap; } .am-hdr-sec .am-hc-menu { width: auto; margin-inline-start: auto; } .am-hdr-sec .am-hc-btn { display: none; } }
.am-ftr-sec { background: var(--blue); }
.am-ftr-sec:first-of-type { border-start-start-radius: var(--r-big); }
.am-el section.am-ftr-sec { padding: 56px 0 0; }
.am-el section.am-ftr-legal { padding: 0 0 8px; }
.am-ftp { color: #c9d6e6; }
.am-ftp h3 { color: #fff; font-size: 1rem; }
.am-ftp a { color: #c9d6e6; text-decoration: none; }
.am-ftp a:hover { color: var(--gold); }
.am-ftp ul { list-style: none; margin: 0; padding: 0; } .am-ftp li { margin-bottom: .5em; }
.am-ftp .brand { color: #fff; margin-bottom: 14px; } .am-ftp .slogan { color: #fff; font-size: 1.1rem; }
.am-ftp .legal { margin-top: 24px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Icônes ---------- */
svg.icon { flex: none; display: inline-block; vertical-align: middle; }
.am-ico-inline { display: inline-block; vertical-align: -.2em; margin-inline-end: .4em; color: var(--gold); line-height: 1; }
.am-ico-inline .icon { width: 1.1em; height: 1.1em; }
.am-ico-sc { margin: 0; }
.am-slot { display: block; color: var(--gold); margin-bottom: 12px; }
.am-slot .icon { display: block; }
.profiles .am-slot { margin-bottom: 10px; }
.sol-ico { color: var(--gold); margin-bottom: 18px; }
.sol-ico .icon { display: block; }
.am-mi { display: inline-block; margin-inline-end: 9px; color: var(--gold); vertical-align: middle; line-height: 1; }
.site-footer .am-mi { margin-inline-end: 8px; }
.primary-nav .sub-menu .am-mi { color: var(--blue); }

/* ---------- En-tête et menu réglables (Personnaliser > En-tête et menu) ---------- */
.site-header { background: var(--hdr-bg); backdrop-filter: none; }
.am-hdr-sec { background: var(--hdr-bg); }
.bar { min-height: var(--hdr-h); }
.brand { font-size: var(--brand-fs); }
.brand .custom-logo { max-height: var(--logo-h); width: auto; }
.primary-nav a { font-size: var(--nav-fs); font-weight: var(--nav-fw); padding: var(--nav-py) var(--nav-px); color: var(--nav-c); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--nav-hc); }
.primary-nav .sub-menu { min-width: var(--sub-w); }
.primary-nav .sub-menu a { font-size: calc(var(--nav-fs) - 1px); }
@media (max-width: 1100px) { .primary-nav a { padding: 12px 6px; } }


/* =========================================================
   Options du thème (Options du thème > …)
   ========================================================= */
.am-site { position: relative; }
.admin-bar .site-header, .admin-bar .am-part-entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .am-part-entete { top: 46px; } }

/* mise en page encadrée */
body.am-boxed { background: var(--boxed-bg, #eef1f5); }
.am-boxed .am-site { max-width: calc(var(--wrap) + 120px); margin: 0 auto; background: var(--white); box-shadow: 0 0 50px rgba(15,45,82,.14); overflow-x: clip; }

/* barre supérieure */
.am-topbar { background: var(--tb-bg, var(--blue)); color: var(--tb-c, #fff); font-size: .85rem; position: relative; z-index: 51; }
.am-topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 38px; flex-wrap: wrap; padding-block: 4px; }
.am-topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.am-topbar a:hover { opacity: .8; }
.am-topbar svg { flex: none; opacity: .85; }
.am-tb-addr { display: inline-flex; align-items: center; gap: 7px; }
.am-tb-r { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.am-tb-social { display: flex; gap: 12px; }
@media (max-width: 760px) { .am-tb-mail, .am-tb-addr, .am-tb-text { display: none; } .am-tb-r { margin-inline-start: auto; } }

/* styles d'en-tête */
@media (min-width: 1101px) {
  .am-hdr-centered .bar { flex-wrap: wrap; justify-content: center; row-gap: 0; padding-top: 14px; }
  .am-hdr-centered .bar .brand { width: 100%; justify-content: center; margin: 0; }
  .am-hdr-centered .bar .primary-nav { margin-inline: 0; }
  .am-hdr-centered .bar { min-height: 0; padding-bottom: 6px; }
}
.am-hdr-minimal .bar { min-height: 64px; }
.am-hdr-minimal .brand { font-size: calc(var(--brand-fs) - 3px); }
.am-hdr-transparent .site-header, .am-hdr-transparent .am-part-entete { position: absolute; inset-inline: 0; top: 0; background: transparent; border-bottom-color: rgba(255,255,255,.2); }
.am-hdr-transparent.admin-bar .site-header, .am-hdr-transparent.admin-bar .am-part-entete { top: 32px; }
.am-hdr-transparent.am-has-topbar .site-header, .am-hdr-transparent.am-has-topbar .am-part-entete { top: 38px; }
.am-hdr-transparent .am-hdr-sec { background: transparent; border-bottom-color: rgba(255,255,255,.2); }
.am-hdr-transparent:not(.am-scrolled) .site-header .brand,
.am-hdr-transparent:not(.am-scrolled) .site-header .primary-nav > .menu > li > a,
.am-hdr-transparent:not(.am-scrolled) .site-header .lang-toggle,
.am-hdr-transparent:not(.am-scrolled) .site-header .nav-toggle { color: #fff; }
.am-hdr-transparent:not(.am-scrolled) .site-header .lang-toggle { border-color: rgba(255,255,255,.55); }
.am-hdr-transparent .hero { padding-top: calc(var(--hdr-h) + clamp(50px, 7vw, 100px)); }
.am-hdr-transparent .page-hero { padding-top: calc(var(--hdr-h) + clamp(30px, 5vw, 60px)); }
.am-hdr-transparent.am-scrolled .site-header { position: fixed; top: 0; background: var(--hdr-bg); }
.am-hdr-transparent.am-scrolled.admin-bar .site-header { top: 32px; }
.site-header .bar, .site-header { transition: min-height .25s, background .25s, box-shadow .25s; }
.am-shrink.am-scrolled .site-header .bar { min-height: calc(var(--hdr-h) * .72); }
.am-shrink.am-scrolled .site-header { box-shadow: 0 6px 24px rgba(15,45,82,.12); }
.am-no-header .site-header { display: none; }

/* réseaux sociaux (pied de page) */
.site-footer .social, .am-ftp .social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-footer .social a, .am-ftp .social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s; }
.site-footer .social a:hover, .am-ftp .social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.foot.cols-1 { grid-template-columns: 1fr; }
.foot.cols-2 { grid-template-columns: 1.4fr 1fr; }
.foot.cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
.foot .foot-menu { list-style: none; margin: 0; padding: 0; }
.foot .foot-menu li { margin-bottom: .5em; }
@media (max-width: 960px) { .foot[class] { grid-template-columns: 1fr; } }

/* éléments flottants */
.am-wa, .am-top { position: fixed; bottom: 22px; z-index: 70; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: transform .2s, opacity .25s; }
.am-wa { background: #25d366; color: #fff; }
.am-wa:hover { transform: scale(1.08); color: #fff; }
.am-wa-right, .am-top-right { inset-inline-end: 22px; }
.am-wa-left, .am-top-left { inset-inline-start: 22px; }
.am-top { background: var(--blue); color: #fff; opacity: 0; pointer-events: none; }
.am-top.show { opacity: 1; pointer-events: auto; }
.am-top:hover { background: var(--gold); }
.am-top[hidden] { display: grid; }

/* écran de chargement */
.am-pre { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: var(--white); color: var(--gold); transition: opacity .4s, visibility .4s; animation: am-pre-out 0s 5s forwards; }
.am-pre svg { animation: am-spin 1.6s linear infinite; }
.am-pre.done { opacity: 0; visibility: hidden; }
@keyframes am-spin { to { transform: rotate(360deg); } }
@keyframes am-pre-out { to { opacity: 0; visibility: hidden; } }

/* apparition au défilement */
@media (prefers-reduced-motion: reduce) { .am-pre svg { animation: none; } }

/* =========================================================
   Images, animations et blocs dynamiques (v1.2)
   ========================================================= */
:root { --img-ratio: auto; --sol-ratio: 16/9; --rv: 700ms; }

/* apparition au défilement */
.js .am-reveal .rv { opacity: 0; transition: opacity var(--rv) ease, transform var(--rv) ease; transition-delay: var(--d, 0ms); }
.js .am-reveal.am-fx-up .rv { transform: translateY(28px); }
.js .am-reveal.am-fx-zoom .rv { transform: scale(.93); }
.js .am-reveal.am-fx-left .rv { transform: translateX(-34px); }
html[dir="rtl"] .js .am-reveal.am-fx-left .rv, .js html[dir="rtl"] .am-reveal.am-fx-left .rv { transform: translateX(34px); }
.js .am-reveal .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .am-reveal .rv { opacity: 1; transform: none; transition: none; } }

/* images */
.am-fig { margin: 0; overflow: hidden; border-radius: var(--r); position: relative; }
.am-fig img, .am-fig .am-img { display: block; width: 100%; height: auto; aspect-ratio: var(--img-ratio); object-fit: cover; }
.am-fig-side { margin: 26px 0 0; }
.two > .am-fig-side { margin: 0; }
.am-imgs-big .am-fig-side { border-radius: var(--r-big) var(--r) var(--r) var(--r); }
html[dir="rtl"] .am-imgs-big .am-fig-side { border-radius: var(--r) var(--r-big) var(--r) var(--r); }
.am-imgs-square .am-fig-side, .am-imgs-square .hero-side .am-fig { border-radius: 0; }
.am-imgs-circle .am-fig-side { border-radius: 50%; aspect-ratio: 1; max-width: 420px; }
.am-imgs-circle .am-fig-side img { aspect-ratio: 1; height: 100%; }
.am-img-zoom .am-fig img { transition: transform .7s ease; }
.am-img-zoom .am-fig:hover img { transform: scale(1.06); }
.am-img-shadow .am-fig-side, .am-img-shadow .hero-side .am-fig { box-shadow: 0 24px 50px rgba(15,45,82,.22); }
.sol .am-fig-card, .tri .am-fig-card { margin: -30px -28px 20px; border-radius: var(--r) var(--r) 0 0; }
.sol .am-fig-card img { aspect-ratio: var(--sol-ratio); }
.tri .am-fig-card img { aspect-ratio: 16/9; }
.profiles .am-fig-card { margin: 0 0 16px; }
.profiles .am-fig-card img { aspect-ratio: 4/3; }

/* bandeau d'accueil : diaporama, image latérale */
.hero::before, .hero::after { z-index: 1; }
.hero-in { z-index: 2; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides .hs { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .hs.on { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-kb .hero-slides .hs.on img { animation: am-kb 14s ease-out both; }
@keyframes am-kb { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-in.has-side { grid-template-columns: 1fr minmax(260px, 400px); }
.hero-side { position: relative; }
.hero-side .am-fig img { aspect-ratio: 4/5; }
.hero-side .badge { position: absolute; inset-inline-start: -34px; bottom: -34px; width: 150px; height: 150px; }
.hero-side .badge strong { font-size: 2.6rem; }
.hero-side .badge small { font-size: .72rem; padding: 0 10px; }
@media (max-width: 960px) { .hero-in.has-side { grid-template-columns: 1fr; } .hero-side { max-width: 380px; } .hero-side .badge { inset-inline-start: 12px; bottom: -24px; } }

/* images de fond : bandeaux de titre et appel à l'action */
.page-hero[style*="--ph-img"]::before, .cta[style*="--cta-img"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--blue) 18%, rgba(var(--blue-rgb), var(--hero-ov))), var(--ph-img, var(--cta-img)) center/cover; }
.cta { position: relative; }
.cta .wrap { position: relative; z-index: 1; }

/* statistiques */
.am-stats { background: var(--blue); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.am-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px; text-align: center; }
.am-stat-grid strong { display: block; font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 300; line-height: 1.1; color: #fff; }
.am-stat-grid span { display: block; margin-top: 6px; color: #dbe5f1; }

/* galerie */
.am-gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.am-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); } .am-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); } .am-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.am-gal-item { display: block; overflow: hidden; border-radius: var(--r); background: var(--mist); }
.am-gal-item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s ease; }
a.am-gal-item { cursor: zoom-in; }
.am-gal-item:hover img { transform: scale(1.07); }
@media (max-width: 960px) { .am-gallery.cols-4, .am-gallery.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .am-gallery, .am-gallery.cols-3, .am-gallery.cols-4, .am-gallery.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.am-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8,20,38,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.am-lb.open { display: flex; }
.am-lb img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.am-lb button { position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.am-lb button:hover { background: rgba(255,255,255,.28); }
.am-lb-x { top: 18px; inset-inline-end: 18px; } .am-lb-p { inset-inline-start: 18px; top: 50%; } .am-lb-n { inset-inline-end: 18px; top: 50%; }

/* partenaires */
.am-partners.is-grid { display: flex; flex-wrap: wrap; gap: 26px 44px; align-items: center; justify-content: center; }
.am-pt img { display: block; max-height: 64px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.am-pt:hover img { filter: none; opacity: 1; }
.am-partners.is-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.am-pt-track { display: flex; width: max-content; gap: 56px; align-items: center; animation: am-marq 32s linear infinite; }
.am-pt-dup { display: contents; }
.am-partners.is-marquee .am-pt { flex: none; }
.am-partners.is-marquee:hover .am-pt-track { animation-play-state: paused; }
@keyframes am-marq { to { transform: translateX(-50%); } }
html[dir="rtl"] .am-pt-track { animation-name: am-marq-r; }
@keyframes am-marq-r { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .am-pt-track { animation: none; } .am-partners.is-marquee { overflow-x: auto; } }

/* témoignages */
.am-t-wrap { position: relative; }
.am-t-track { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.am-t-track.is-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.am-t-track.is-slider::-webkit-scrollbar { display: none; }
.am-t-card { background: #fff; border-radius: var(--r); padding: 28px 26px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(15,45,82,.07); }
.am-t-track.is-slider .am-t-card { flex: 0 0 min(380px, 86%); scroll-snap-align: start; }
.am-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 12px; }
.am-stars i { font-style: normal; color: var(--mist); }
.am-t-card blockquote { margin: 0 0 20px; flex: 1; font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.am-t-who { display: flex; align-items: center; gap: 14px; }
.am-t-ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.am-t-who strong { display: block; color: var(--blue); }
.am-t-who small { color: var(--muted); }
.am-t-nav { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.am-t-nav.prev { inset-inline-start: -14px; } .am-t-nav.next { inset-inline-end: -14px; }
.am-t-nav:hover { background: var(--gold); }
html[dir="rtl"] .am-t-nav { transform: scaleX(-1); }
@media (max-width: 960px) { .am-t-track:not(.is-slider) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .am-t-track:not(.is-slider) { grid-template-columns: 1fr; } .am-t-nav { display: none; } }

/* FAQ */
.am-faq-item { border-bottom: 1px solid var(--mist); }
.am-faq-item summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; color: var(--blue); font-size: 1.08rem; position: relative; }
html[dir="rtl"] .am-faq-item summary { padding: 20px 0 20px 44px; }
.am-faq-item summary::-webkit-details-marker { display: none; }
.am-faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--gold); transition: transform .25s; }
.am-faq-item[open] summary::after { content: "–"; }
.am-faq-a { padding: 0 0 20px; color: var(--muted); }
.am-faq-a p { margin: 0 0 .8em; }

/* =========================================================
   Conversion, équipe, documents, horaires, cookies (v1.3)
   ========================================================= */
.hp { position: absolute; inset-inline-start: -9999px; }
.am-notice { padding: 16px 20px; border-radius: 14px; margin: 0 0 22px; font-weight: 500; }
.am-notice.ok { background: #e4f2e6; color: #1f5a2b; } .am-notice.ko { background: #fbe6e1; color: #8a2d1a; }
.am-notice .btn { margin-inline-start: 12px; }
.btn-line-dark { background: transparent; border-color: var(--mist); color: var(--blue); }
.btn-line-dark:hover { border-color: var(--blue); }
.am-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--muted) !important; margin: 4px 0 18px !important; }
.am-check input { width: auto !important; margin: 4px 0 0 !important; flex: none; }

/* devis */
.am-quote { background: #fff; border: 1px solid var(--mist); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); box-shadow: 0 14px 40px rgba(15,45,82,.06); }
.am-q-prog { display: none; list-style: none; margin: 0 0 26px; padding: 0; gap: 8px; }
.am-quote.js-wiz .am-q-prog { display: flex; }
.am-q-prog li { flex: 1; font-size: .82rem; font-weight: 600; color: var(--muted); border-top: 4px solid var(--mist); padding-top: 8px; }
.am-q-prog li.on { color: var(--blue); border-top-color: var(--gold); }
.am-q-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.am-q-step legend { font-size: 1.15rem; font-weight: 600; color: var(--blue); margin-bottom: 18px; padding: 0; }
.am-q-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.am-q-type { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.am-q-type input { position: absolute; opacity: 0; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; cursor: pointer; }
.am-q-type span { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--mist); border-radius: 16px; color: var(--blue); transition: border-color .2s, background .2s, box-shadow .2s; }
.am-q-type .icon, .am-q-type svg { color: var(--gold); flex: none; }
.am-q-type b { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.am-q-type:hover span { border-color: var(--gold); }
.am-q-type input:checked + span { border-color: var(--blue); background: var(--sand-lt); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .12); }
.am-q-type input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.am-q-group[hidden] { display: none; }
.am-q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.am-news-row { display: flex; gap: 12px; flex-wrap: wrap; } .am-news-row input { flex: 1; min-width: 220px; margin: 0; }

/* rappel, barre mobile, message flash */
.am-cb-fab { position: fixed; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--gold); color: #fff; font: 600 .92rem/1 var(--font); cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s; }
html[data-lang="ar"] .am-cb-fab { font-family: var(--font-ar); }
.am-cb-fab:hover { transform: translateY(-2px); background: var(--gold-dk); }
.cb-left .am-cb-fab { left: 22px; } .cb-right .am-cb-fab { right: 22px; }
.am-cb-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(8,20,38,.6); display: flex; align-items: center; justify-content: center; padding: 18px; }
.am-cb-modal[hidden] { display: none; }
.am-cb-box { position: relative; background: #fff; border-radius: var(--r); padding: 32px 28px 26px; width: min(440px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.am-cb-x { position: absolute; top: 12px; inset-inline-end: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.am-cb-box h3 { margin-bottom: .3em; } .am-cb-box p { color: var(--muted); margin-bottom: 18px; }
.am-toast { position: fixed; top: 18px; inset-inline: 18px; z-index: 9500; max-width: 560px; margin-inline: auto; cursor: pointer; animation: am-in .4s ease both; }
.am-toast .am-notice { margin: 0; box-shadow: 0 14px 40px rgba(0,0,0,.2); } .am-toast.out { opacity: 0; transform: translateY(-10px); transition: .5s; pointer-events: none; }
@keyframes am-in { from { opacity: 0; transform: translateY(-14px); } }
.am-mbar { display: none; }
@media (max-width: 768px) {
  .am-mbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 70; background: #fff; border-top: 1px solid var(--mist); box-shadow: 0 -8px 24px rgba(15,45,82,.12); padding-bottom: env(safe-area-inset-bottom); }
  .am-mbar a, .am-mbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border: 0; background: none; color: var(--blue); font: 600 .72rem/1.1 var(--font); text-decoration: none; cursor: pointer; }
  html[data-lang="ar"] .am-mbar a, html[data-lang="ar"] .am-mbar button { font-family: var(--font-ar); }
  .am-mbar .icon { color: var(--gold); } .am-mbar .am-mbar-main { background: var(--blue); color: #fff; } .am-mbar .am-mbar-main .icon { color: #fff; }
  .has-mbar { padding-bottom: 64px; } .has-mbar .am-cb-fab { display: none; }
  .has-mbar .am-wa, .has-mbar .am-top { bottom: 78px; }
}

/* bandeau d'annonce */
.am-ann { background: var(--gold); color: #fff; font-size: .92rem; position: relative; z-index: 55; }
.am-ann-blue { background: var(--blue); } .am-ann-sand { background: var(--sand); color: var(--blue); }
.am-ann[hidden] { display: none; }
.am-ann .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 0; }
.am-ann p { margin: 0; text-align: center; } .am-ann a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.am-ann-x { border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }

/* équipe */
.am-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.am-agent { text-align: center; }
.am-agent-ph { aspect-ratio: 4/5; border-radius: var(--r-big) var(--r) var(--r) var(--r); overflow: hidden; background: var(--sand); display: grid; place-items: center; margin-bottom: 16px; }
html[dir="rtl"] .am-agent-ph { border-radius: var(--r) var(--r-big) var(--r) var(--r); }
.am-agent-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.am-agent:hover .am-agent-ph img { transform: scale(1.05); }
.am-agent h3 { margin: 0 0 .2em; } .am-agent-role { color: var(--gold-dk); font-weight: 600; margin: 0 0 .6em; font-size: .93rem; }
.am-agent-bio { color: var(--muted); font-size: .92rem; margin: 0 0 .8em; }
.am-agent-act { display: flex; gap: 8px; justify-content: center; }
.am-agent-act a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--blue); text-decoration: none; font-size: .72rem; transition: background .2s, color .2s; }
.am-agent-act a:hover { background: var(--blue); color: #fff; }

/* documents */
.am-doc-list { display: grid; gap: 12px; }
.am-doc { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border-radius: 16px; text-decoration: none; color: var(--ink); border: 1px solid var(--mist); transition: transform .2s, box-shadow .2s; }
.am-doc:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,45,82,.1); }
.am-doc-ico { display: flex; flex-direction: column; align-items: center; color: var(--gold); min-width: 46px; } .am-doc-ico small { font-size: .65rem; font-weight: 700; color: var(--muted); }
.am-doc-t { flex: 1; } .am-doc-t b { display: block; color: var(--blue); } .am-doc-t em { font-style: normal; color: var(--muted); font-size: .9rem; }
.am-doc-s { text-align: end; font-size: .82rem; color: var(--muted); } .am-doc-s i { display: block; font-style: normal; font-weight: 600; color: var(--blue); }

/* horaires */
.am-open { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; background: #fdecea; color: #8a2d1a; }
.am-open i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.am-open.is-open { background: #e4f2e6; color: #1f5a2b; } .am-open.is-open i { animation: am-pulse 1.8s infinite; }
.am-open .o { display: none; } .am-open .c { display: inline; } .am-open.is-open .o { display: inline; } .am-open.is-open .c { display: none; }
@keyframes am-pulse { 50% { opacity: .35; } }
.am-hrs { width: 100%; border-collapse: collapse; margin: 6px 0; } .am-hrs th, .am-hrs td { padding: 11px 6px; border-bottom: 1px solid var(--mist); text-align: start; }
.am-hrs th { color: var(--blue); font-weight: 600; width: 40%; } .am-hrs tr.today th, .am-hrs tr.today td { color: var(--gold-dk); font-weight: 700; }
.am-hrs-note { color: var(--muted); font-size: .92rem; }

/* cookies */
.am-cookie { position: fixed; z-index: 9400; inset-inline: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; background: var(--blue); color: #fff; border-radius: 18px; padding: 18px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.am-cookie[hidden] { display: none; }
.am-cookie p { margin: 0; flex: 1; min-width: 240px; font-size: .92rem; } .am-cookie a { color: var(--gold); }
.am-cookie-b { display: flex; gap: 10px; } .am-cookie .btn { padding: .6em 1.2em; }
.has-mbar .am-cookie { bottom: 78px; }

/* blog */
.am-rt { color: var(--muted); }
.am-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 34px 0 10px; padding-top: 20px; border-top: 1px solid var(--mist); }
.am-share a, .am-share button { border: 1.5px solid var(--mist); border-radius: 999px; padding: .4em 1em; color: var(--blue); text-decoration: none; background: #fff; font: 600 .85rem/1.2 var(--font); cursor: pointer; }
.am-share a:hover, .am-share button:hover { border-color: var(--gold); } .am-share button.done { background: var(--gold); color: #fff; border-color: var(--gold); }
.am-related { margin-top: 40px; } .am-related .posts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* =========================================================
   Guide PDF : fenêtre contextuelle et bloc (v1.4)
   ========================================================= */
.am-guide-wrap { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 900px; margin-inline: auto; }
.am-guide-wrap.has-cover { grid-template-columns: minmax(180px, 300px) 1fr; max-width: none; }
.am-guide-fig { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 50px rgba(15,45,82,.22); transform: rotate(-2deg); }
html[dir="rtl"] .am-guide-fig { transform: rotate(2deg); }
.am-guide-fig img { display: block; width: 100%; height: auto; }
.am-guide-body h2, .am-guide-body h3 { margin-bottom: .3em; }
.am-guide-dsc { color: var(--muted); margin-bottom: 14px; }
.am-guide-steps { list-style: none; counter-reset: gs; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; padding: 0; font-size: .9rem; font-weight: 600; color: var(--blue); }
.am-guide-steps li { counter-increment: gs; display: flex; align-items: center; gap: 8px; }
.am-guide-steps li::before { content: counter(gs); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .8rem; }
.am-guide-form .btn.is-busy { opacity: .6; pointer-events: none; }
.am-guide-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fbe6e1; color: #8a2d1a; font-size: .9rem; }
.am-guide-msg[hidden], .am-guide-ok[hidden] { display: none; }
.am-guide-ok { text-align: center; padding: 10px 0; }
.am-guide-ok-i { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e4f2e6; color: #1f5a2b; font-size: 2rem; animation: am-pop .5s ease both; }
@keyframes am-pop { from { transform: scale(.4); opacity: 0; } }
.am-guide-ok-b { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.am-guide-ok-n { color: var(--muted); font-size: .88rem; }

.am-gp { position: fixed; inset: 0; z-index: 9100; background: rgba(8,20,38,.62); display: flex; align-items: center; justify-content: center; padding: 18px; animation: am-fade .35s ease both; }
.am-gp[hidden] { display: none; }
@keyframes am-fade { from { opacity: 0; } }
.am-gp-box { position: relative; background: #fff; border-radius: var(--r); width: min(560px, 100%); max-height: 94vh; overflow: auto; padding: 34px 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: am-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.am-gp-box.has-cover { width: min(820px, 100%); display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 28px; align-items: center; }
@keyframes am-rise { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.am-gp-x { position: absolute; top: 10px; inset-inline-end: 14px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; z-index: 2; }
.am-gp-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--gold-dk); }
.am-gp .form label { margin-bottom: 12px; }
.am-gp .form .row { gap: 12px; }
.am-gp-corner { inset: auto 18px 18px auto; background: none; padding: 0; display: block; animation: none; pointer-events: none; }
html[dir="rtl"] .am-gp-corner { inset: auto auto 18px 18px; }
.am-gp-corner .am-gp-box { pointer-events: auto; width: min(400px, calc(100vw - 36px)); padding: 26px 22px 20px; grid-template-columns: 1fr; display: block; }
.am-gp-corner .am-guide-fig { display: none; }
.am-gp-corner .am-guide-steps { display: none; }
.am-gp-tab { position: fixed; z-index: 65; inset-inline-end: 0; top: 46%; transform-origin: 100% 100%; writing-mode: vertical-rl; padding: 14px 9px; border: 0; background: var(--gold); color: #fff; font: 700 .85rem/1 var(--font); border-radius: 12px 0 0 12px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
html[dir="rtl"] .am-gp-tab { border-radius: 0 12px 12px 0; }
.am-gp-tab:hover { background: var(--gold-dk); }
@media (max-width: 720px) {
  .am-guide-wrap.has-cover, .am-gp-box.has-cover { grid-template-columns: 1fr; }
  .am-guide-fig { max-width: 190px; margin-inline: auto; }
  .am-gp { align-items: flex-end; padding: 0; }
  .am-gp-box { border-radius: var(--r) var(--r) 0 0; width: 100%; max-height: 92vh; }
  .am-gp-corner { inset: auto 0 0 0; } .am-gp-corner .am-gp-box { width: 100%; }
  .has-mbar .am-gp-corner { inset-block-end: 62px; }
  .am-gp-tab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .am-gp, .am-gp-box, .am-guide-ok-i { animation: none; } }

.am-guide-body [hidden], .am-gp-main [hidden] { display: none !important; }
