/* =============================================================================
   Vitrine partenaire V3 — « Travel Tech Premium » (2026-11-25)
   Gabarit commun : agences, guides, mosquées, associations (espace-agence.php, lib/vitrine_v3.php).
   Plus Jakarta Sans seule (aucune serif), fond blanc, ombres très discrètes, rayons 16–24 px, largeur 1440 px.
   Couleur du partenaire : --v3-primary / --v3-accent / --v3-soft (liste fermée, lisible sur blanc).
   ============================================================================= */

main.v3 {
  --v3-primary: #103F35; --v3-accent: #00875A; --v3-soft: #E6F5ED;
  --v3-bg: #FFFFFF; --v3-surface: #F5F7F6; --v3-text: #101828; --v3-muted: #667085; --v3-line: #E4E7EC;
  --v3-r-lg: 24px; --v3-r: 16px; --v3-r-sm: 12px;
  --v3-shadow-up: 0 12px 32px -12px rgba(16,24,40,.18);
  --v3-gap: clamp(64px, 8vw, 96px);
  --v3-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: block; background: var(--v3-bg); color: var(--v3-text); font-family: var(--v3-font);
  -webkit-font-smoothing: antialiased; padding-bottom: 24px;
}
body.v3-body { background: #fff !important; }
/* L'en-tête et le pied de page du site s'alignent sur la largeur de la vitrine (1440 px). */
body.v3-body { --dh-wrap: min(1440px, calc(100% - 2 * clamp(16px, 4vw, 56px))); }
html[dir="rtl"] main.v3 { --v3-font: "Noto Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }

/* Titres : sans serif, graisse 800, espacement légèrement négatif (remplace la règle Playfair du site). */
main.v3 h1, main.v3 h2, main.v3 h3 { font-family: var(--v3-font); font-weight: 800; letter-spacing: -0.045em; line-height: 1.13; color: var(--v3-text); margin: 0; }
main.v3 h2 { font-size: clamp(27px, 3.3vw, 46px); }
main.v3 a { color: inherit; }
main.v3 img { display: block; max-width: 100%; }
.v3-ic { flex: none; }

.v3-wrap { width: min(1440px, calc(100% - 2 * clamp(16px, 4vw, 56px))); margin-inline: auto; }
.v3-sec { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 140px; }
.v3-eyebrow { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--v3-accent); }
html[dir="rtl"] .v3-eyebrow { letter-spacing: 0; }
.v3-sub { margin: 10px 0 0; color: var(--v3-muted); font-size: 16px; }
.v3-small { margin: 10px 0 0; color: var(--v3-muted); font-size: 13.5px; line-height: 1.5; }

/* ---------- Boutons ---------- */
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px;
  font: 700 15.5px/1 var(--v3-font); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease; }
.v3-btn.is-primary { background: var(--v3-primary); color: #fff; }
.v3-btn.is-primary:hover { background: color-mix(in srgb, var(--v3-primary) 86%, #000); }
.v3-btn.is-ghost { background: #fff; color: var(--v3-text); box-shadow: inset 0 0 0 1px var(--v3-line); }
.v3-btn.is-ghost:hover { box-shadow: inset 0 0 0 1px var(--v3-text); }
.v3-btn:focus-visible, .v3-icon-btn:focus-visible, .v3-tabs a:focus-visible, .v3-pills button:focus-visible { outline: 3px solid var(--v3-accent); outline-offset: 2px; }
.v3-icon-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: #fff; color: var(--v3-text);
  box-shadow: inset 0 0 0 1px var(--v3-line); cursor: pointer; transition: box-shadow .18s ease; }
.v3-icon-btn:hover { box-shadow: inset 0 0 0 1px var(--v3-text); }
.v3-icon-btn[data-done] { color: var(--v3-accent); box-shadow: inset 0 0 0 2px var(--v3-accent); }

/* ---------- Notes (démo, espace masqué) ---------- */
.v3-note { width: min(1440px, calc(100% - 2 * clamp(16px, 4vw, 56px))); margin: 16px auto 0; padding: 12px 16px; border-radius: var(--v3-r-sm);
  background: var(--v3-surface); color: var(--v3-text); font-size: 14px; font-weight: 600; box-sizing: border-box; }
.v3-note.is-demo { background: #FFF4DB; color: #5C4210; }

/* ---------- 1. Hero partenaire ---------- */
.v3-hero { margin-top: 20px; }
.v3-cover { height: clamp(240px, 30vw, 420px); border-radius: 26px; overflow: hidden; background: var(--v3-surface); display: grid; grid-template-columns: 1fr; gap: 8px; }
.v3-cover-1, .v3-cover-2 { grid-template-columns: 1.65fr 1fr; }
.v3-cover-main, .v3-cover-side > div { position: relative; overflow: hidden; background: #d6e1db; min-height: 0; }
.v3-cover-side { display: grid; gap: 8px; grid-auto-rows: minmax(0, 1fr); min-height: 0; }
.v3-cover img { width: 100%; height: 100%; object-fit: cover; }
.v3-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 22px; align-items: center; padding: 30px 0 0; }
.v3-logo { width: 84px; aspect-ratio: 1; border-radius: 22px; background: var(--v3-primary); color: #fff; display: grid; place-items: center;
  overflow: hidden; font-weight: 800; font-size: 52px; letter-spacing: -0.1em; }
.v3-logo.has-img { background: #fff; box-shadow: inset 0 0 0 1px var(--v3-line); }
.v3-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.v3-id-txt { min-width: 0; padding-bottom: 2px; }
.v3-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--v3-muted); margin-bottom: 6px; padding-top: 56px; min-width: 0; }
.v3-crumbs a { text-decoration: none; } .v3-crumbs a:hover { text-decoration: underline; }
.v3-crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-id h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1.05; overflow-wrap: anywhere; }
.v3-id .v3-eyebrow { margin-bottom: 8px; }
.v3-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; color: var(--v3-muted); font-size: 15.5px; font-weight: 500; }
.v3-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.v3-verified { color: var(--v3-accent); font-weight: 700; }
.v3-slogan { margin: 14px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--v3-text); max-width: 60ch; }
.v3-id-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }

/* ---------- 2. Navigation locale ---------- */
.v3-tabs { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 30; margin-top: 30px; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--v3-line); }
.v3-tabs-in { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.v3-tabs-in::-webkit-scrollbar { display: none; }
.v3-tabs a { flex: none; padding: 17px 0 14px; font-size: 15px; font-weight: 700; color: var(--v3-muted); text-decoration: none; border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease; }
.v3-tabs a:hover { color: var(--v3-text); }
.v3-tabs a.is-on { color: var(--v3-primary); border-color: var(--v3-primary); }

/* ---------- 3. Voyage à la une ---------- */
.v3-feat { display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 24px; overflow: hidden; background: var(--v3-surface); min-height: 365px; margin-bottom: clamp(48px, 5vw, 64px); }
.v3-feat-media { min-height: 365px; background: #d6e1db; }
.v3-feat-media img { width: 100%; height: 100%; object-fit: cover; }
.v3-feat-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.v3-pill { display: inline-flex; width: max-content; max-width: 100%; border-radius: 99px; background: var(--v3-soft); color: var(--v3-primary); padding: 6px 12px; font-size: 12px; font-weight: 700; }
.v3-feat-sub { margin: -6px 0 0; color: var(--v3-muted); font-size: 16px; }
.v3-feat-body .v3-eyebrow { margin: 0; }
.v3-feat h2 { font-size: clamp(28px, 2.8vw, 40px); }
.v3-feat-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.v3-feat-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.4; min-width: 0; }
.v3-feat-facts .v3-ic { color: var(--v3-accent); margin-top: 2px; }
.v3-feat-facts small { display: block; font-size: 12.5px; font-weight: 500; color: var(--v3-muted); margin-bottom: 2px; }
.v3-feat-buy { padding-top: 8px; display: grid; gap: 16px; }
.v3-feat-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Prix ---------- */
.v3-price { font-size: 14px; color: var(--v3-muted); }
.v3-price b { font-size: 24px; font-weight: 800; color: var(--v3-text); letter-spacing: -0.02em; }
.v3-price.is-big b { font-size: 32px; letter-spacing: -0.05em; }
.v3-price.is-ask { font-weight: 700; color: var(--v3-text); }

/* ---------- 4. Catalogue ---------- */
.v3-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.v3-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.v3-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-pills button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--v3-line);
  font: 600 14.5px var(--v3-font); color: var(--v3-text); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.v3-pills button:hover { box-shadow: inset 0 0 0 1px var(--v3-text); }
.v3-pills button[aria-pressed="true"] { background: var(--v3-text); color: #fff; box-shadow: none; }
.v3-sort select { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--v3-line); background-color: #fff;
  font: 600 14.5px var(--v3-font); color: var(--v3-text); cursor: pointer; }
.v3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v3-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.v3-card[hidden] { display: none; }
.v3-card-media { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--v3-surface); }
.v3-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.v3-card:hover .v3-card-media img { transform: scale(1.035); }
.v3-card-pill { position: absolute; top: 12px; inset-inline-start: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 12.5px; font-weight: 700; color: var(--v3-text); }
.v3-card-pill.is-full { background: var(--v3-text); color: #fff; }
.v3-fav { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; cursor: pointer; color: var(--v3-text); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.v3-fav svg { fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s ease; }
.v3-fav:hover svg { transform: scale(1.08); }
.v3-fav[aria-pressed="true"] { color: #B42318; } .v3-fav[aria-pressed="true"] svg { fill: currentColor; }
.v3-card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.v3-card-cat { margin: 0; font-size: 12px; font-weight: 600; color: var(--v3-muted); text-transform: uppercase; letter-spacing: .04em; }
.v3-card-dates { margin: 0; color: var(--v3-muted); font-size: 14.5px; }
.v3-card-dates .is-hot { color: #B42318; font-weight: 600; }
.v3-card h3 { font-size: 23px; line-height: 1.15; }
.v3-card h3 a { text-decoration: none; }
.v3-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* toute la carte est cliquable */
.v3-card-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--v3-muted); }
.v3-card-facts li { display: inline-flex; align-items: center; gap: 6px; }
.v3-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.v3-card-go { display: inline-flex; align-items: center; gap: 6px; color: var(--v3-primary); font-weight: 700; font-size: 14.5px; }
html[dir="rtl"] .v3-card-go .v3-ic, html[dir="rtl"] .v3-btn .v3-ic { transform: scaleX(-1); }
.v3-cmp { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--v3-muted); cursor: pointer; }
.v3-cmp input { width: 18px; height: 18px; accent-color: var(--v3-primary); }
.v3-empty { padding: 40px; border-radius: var(--v3-r-lg); background: var(--v3-surface); display: grid; gap: 16px; justify-items: start; }
.v3-empty p { margin: 0; font-size: 17px; }

/* ---------- 5. À propos (asymétrique) ---------- */
.v3-about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.v3-about-head { position: sticky; top: 150px; }
.v3-about-img { margin: 28px 0 0; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--v3-surface); }
.v3-about-img img { width: 100%; height: 100%; object-fit: cover; }
.v3-prose p { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: #344054; }
.v3-facts { margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--v3-line); }
.v3-facts div { padding: 18px 0; border-bottom: 1px solid var(--v3-line); padding-inline-end: 16px; }
.v3-facts dt { font-size: 13px; color: var(--v3-muted); font-weight: 500; }
.v3-facts dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 700; }

/* ---------- 6. Équipe ---------- */
.v3-team { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 24px; }
.v3-team li { display: grid; gap: 4px; }
.v3-portrait { aspect-ratio: 1; border-radius: var(--v3-r-lg); overflow: hidden; background: var(--v3-soft); display: grid; place-items: center; margin-bottom: 10px;
  font-size: 48px; font-weight: 800; color: var(--v3-primary); }
.v3-portrait img { width: 100%; height: 100%; object-fit: cover; }
.v3-team b { font-size: 17px; }
.v3-team small { font-size: 14px; color: var(--v3-muted); }

/* ---------- 7. Galerie bento ---------- */
.v3-bento { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 14vw, 220px); gap: 12px; }
.v3-bento figure { margin: 0; border-radius: var(--v3-r); overflow: hidden; background: var(--v3-surface); }
.v3-bento img { width: 100%; height: 100%; object-fit: cover; }
.v3-bento figure:first-child { grid-column: span 2; grid-row: span 2; }
.v3-bento-1 { grid-template-columns: 1fr; } .v3-bento-1 figure:first-child { grid-column: auto; }
.v3-bento-2 { grid-template-columns: 1fr 1fr; } .v3-bento-2 figure:first-child { grid-column: auto; }
.v3-bento-3 figure:nth-child(2), .v3-bento-3 figure:nth-child(3) { grid-column: span 2; }
.v3-bento-4 figure:nth-child(4) { grid-column: span 2; }
.v3-bento-1 figure:first-child, .v3-bento-2 figure:first-child { grid-row: auto; }
.v3-bento-1, .v3-bento-2 { grid-auto-rows: clamp(220px, 26vw, 420px); }
.v3-bento-more { margin-top: 12px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 12px; }
.v3-bento-more figure { margin: 0; height: clamp(140px, 14vw, 220px); border-radius: var(--v3-r); overflow: hidden; background: var(--v3-surface); }
.v3-bento-more img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Avis ---------- */
.v3-reviews { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.v3-review { padding: 24px; border-radius: var(--v3-r); background: var(--v3-surface); }
.v3-review p { margin: 0 0 8px; line-height: 1.6; }
.v3-stars { color: #B54708; letter-spacing: 2px; } .v3-stars small { color: var(--v3-muted); letter-spacing: 0; margin-inline-start: 6px; }
.v3-reply { font-size: 14px; color: var(--v3-muted); }

/* ---------- 9. Contact ---------- */
.v3-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(24px, 3.4vw, 44px); border-radius: 26px; background: var(--v3-primary); color: #fff; }
.v3-contact.is-solo { grid-template-columns: 1fr; }
main.v3 .v3-contact h2 { color: #fff; }
.v3-contact-l { min-width: 0; }
.v3-contact-l > p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: #d7e6df; max-width: 46ch; }
.v3-eyebrow.is-light { color: #a7d7bc; }
.v3-direct { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.v3-direct a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--v3-r-sm); background: rgba(255,255,255,.08); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15.5px; transition: background-color .15s ease; overflow-wrap: anywhere; min-width: 0; }
.v3-direct a:hover { background: rgba(255,255,255,.16); }
.v3-direct small { display: block; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.72); }
.v3-form { background: #fff; color: var(--v3-text); border-radius: 20px; padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 14px; align-content: start; position: relative; min-width: 0; }
.v3-form h3 { font-size: 20px; }
.v3-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: #344054; min-width: 0; }
.v3-form input:not([type=checkbox]), .v3-form select { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #D0D5DD;
  font: 500 15px var(--v3-font); color: var(--v3-text); background: #fff; min-width: 0; }
.v3-form input:focus, .v3-form select:focus { outline: none; border-color: var(--v3-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v3-accent) 18%, transparent); }
.v3-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v3-form .v3-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; }
.v3-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--v3-primary); }
.v3-check a { color: var(--v3-primary); font-weight: 700; }
.v3-form .v3-btn { width: 100%; }
.v3-form-msg { margin: 0; font-size: 14px; font-weight: 600; }
.v3-form-msg:empty { display: none; }
.v3-form-msg.is-err { color: #B42318; } .v3-form-msg.is-ok { color: #067647; }
.v3-form .v3-small { margin: 0; }
.v3-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page du partenaire ---------- */
.v3-foot { margin-top: var(--v3-gap); padding: 28px 0 8px; border-top: 1px solid var(--v3-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 14px; color: var(--v3-muted); }
.v3-foot > div { max-width: 820px; }
.v3-foot b { color: var(--v3-text); font-size: 15px; }
.v3-foot p { margin: 6px 0 0; line-height: 1.55; }
.v3-powered { margin: 0; align-self: flex-end; }
.v3-powered a { text-decoration: none; } .v3-powered a:hover { text-decoration: underline; }
.v3-powered b { color: var(--v3-text); }

/* ---------- Barre de contact fixe (mobile) ---------- */
.v3-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .v3-id { grid-template-columns: auto minmax(0, 1fr); }
  .v3-id-act { grid-column: 1 / -1; justify-content: flex-start; }
  .v3-cover { height: 320px; }
  .v3-feat { grid-template-columns: 1fr; }
  .v3-feat-media { min-height: 0; aspect-ratio: 16 / 9; }
  .v3-about { grid-template-columns: 1fr; }
  .v3-about-head { position: static; }
  .v3-about-img { aspect-ratio: 16 / 9; }
  .v3-contact { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .v3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .v3-id { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-top: 22px; }
  .v3-logo { width: 58px; border-radius: 16px; font-size: 36px; }
  .v3-id h1 { font-size: 32px; }
  .v3-cover { height: 240px; grid-template-columns: 1fr; }
  .v3-cover-side { display: none; }
  .v3-tabs-in { gap: 24px; }
  .v3-id-act { flex-wrap: nowrap; }
  .v3-has-bar .v3-wa-hero { display: none; }   /* WhatsApp reste dans la barre basse */
  .v3-id-act .v3-btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 12px; font-size: 15px; }
  .v3-id-act .v3-icon-btn { width: 48px; height: 48px; flex: none; }
  .v3-tabs { top: calc(64px + env(safe-area-inset-top, 0px)); margin-top: 28px; }
  .v3-tabs a { padding: 14px 12px 12px; font-size: 14.5px; }
  .v3-feat-facts { grid-template-columns: 1fr; gap: 12px; }
  .v3-facts { grid-template-columns: 1fr; }
  .v3-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .v3-bento figure:first-child { grid-column: span 2; grid-row: span 1; }
  .v3-bento-3 figure:nth-child(2), .v3-bento-3 figure:nth-child(3), .v3-bento-4 figure:nth-child(4) { grid-column: auto; }
  .v3-bento-4 figure:nth-child(4) { grid-column: span 2; }
  .v3-bento-2 figure:first-child { grid-column: auto; }
  .v3-bento-more { grid-template-columns: 1fr 1fr; } .v3-bento-more figure { height: 150px; }
  .v3-form-row { grid-template-columns: 1fr; }
  .v3-sec-head { align-items: flex-start; }
  .v3-tools { width: 100%; }
  /* Barre basse : contact toujours à portée du pouce. */
  .v3-has-bar main.v3 { padding-bottom: 96px; }
  .v3-bar { display: flex; gap: 8px; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 8px; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px -8px rgba(16,24,40,.28), inset 0 0 0 1px var(--v3-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .v3-bar .v3-btn { flex: 1; min-height: 48px; padding: 0 12px; }
  .v3-has-bar .dhc-tray { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  /* Le bouton WhatsApp flottant de la plateforme laisse la place à la barre de contact du partenaire. */
  .v3-has-bar .dh-float { display: none !important; }
}
@media (max-width: 480px) {
  .v3-grid { grid-template-columns: 1fr; }
  .v3-cover { height: 220px; border-radius: 20px; }
  .v3-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .v3-pills button { flex: none; }
  .v3-sort, .v3-sort select { width: 100%; }
  .v3-id-act { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-card-media img, .v3-btn, .v3-fav svg { transition: none; }
  .v3-card:hover .v3-card-media img { transform: none; }
}
