/* =====================================================================
   Benin TVET Centre — adaptation par appareil (chargé après vitrine.css)
   Chaque format a SA logique, pas une simple réduction du bureau :
     • Bureau  (≥ 1024 px) : riche et immersif — en-tête qui se resserre, parallaxe, apparitions en cascade.
     • Tablette (640–1023) : équilibrée — panneau latéral, carrousels à cartes « qui dépassent », grilles 2 colonnes.
     • Mobile  (≤ 639)     : pensée pour le pouce — barre d'onglets flottante, menu en feuille coulissante,
                             bannière plein écran, carrousels à balayage avec pastilles, listes compactes.
   Les animations sont coupées si l'utilisateur réduit les mouvements.
   ===================================================================== */

/* ---------- Transitions entre pages (navigateurs compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vFadeOut .22s ease both; }
::view-transition-new(root) { animation: vFadeIn .38s ease both; }
@keyframes vFadeOut { to { opacity: 0; } }
@keyframes vFadeIn { from { opacity: 0; } }
@keyframes vUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes vPop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes vFloat { 0%, 100% { transform: translateY(0) rotate(35deg); } 50% { transform: translateY(-14px) rotate(41deg); } }
@keyframes vGrad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes vNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }

/* ---------- Tous formats : finitions ---------- */
.v-reveal { transition-delay: var(--d, 0ms); }
.v-header { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s; }
.v-header.scrolled { box-shadow: 0 6px 24px rgba(10, 42, 94, .14); }
.v-hero h1, .v-hero .v-eyebrow, .v-hero .v-intro, .v-hero .v-btns, .v-hero .v-play, .v-hero .v-crumb { animation: vUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.v-hero .v-eyebrow { animation-delay: .05s; } .v-hero h1 { animation-delay: .15s; } .v-hero .v-intro { animation-delay: .27s; } .v-hero .v-btns { animation-delay: .38s; } .v-hero .v-play { animation-delay: .48s; }
.v-hero-img img { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }
.v-hero-shape { animation: vFloat 9s ease-in-out infinite; }
.v-hero.noimg { background-size: 200% 200%; animation: vGrad 16s ease infinite; }
.v-dots { display: none; }
.v-btn:active, .v-card:active, .v-dom:active, .v-dom2:active { transform: scale(.97); }

/* Menu : caché sur grand écran */
@media (min-width: 1021px) { .v-mobile, .v-tabbar { display: none !important; } }

/* Cadre du menu (commun tablette + mobile) */
@media (max-width: 1020px) {
  .v-mobile { display: block !important; position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; background: none; padding: 0; overflow: visible; transition: visibility 0s .4s; }
  body:not(.v-page) .v-mobile { inset: 0; }
  .v-mobile.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .vm-backdrop { position: absolute; inset: 0; background: rgba(6, 29, 68, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
  .v-mobile.open .vm-backdrop { opacity: 1; }
  .vm-panel { position: absolute; background: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; transition: transform .42s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 50px rgba(6, 29, 68, .3); }
  .vm-grip { width: 44px; height: 5px; border-radius: 9px; background: #cfd9ea; margin: 10px auto 0; flex-shrink: 0; }
  .vm-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 4px; }
  .vm-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
  .vm-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--navy); font-size: 1.05rem; cursor: pointer; }
  .vm-search { position: relative; margin: 8px 20px 6px; }
  .vm-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
  .vm-search input { width: 100%; border: 1.5px solid var(--line); background: var(--soft); border-radius: 999px; padding: 13px 18px 13px 44px; font-family: inherit; font-size: 16px; }
  .vm-list { padding: 6px 12px 8px; display: grid; gap: 2px; }
  .vm-item { display: block; border-radius: 16px; text-decoration: none; color: var(--ink); }
  .vm-item > summary, a.vm-item { display: flex; align-items: center; gap: 14px; padding: 11px 10px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1rem; border-radius: 16px; transition: background .2s; }
  .vm-item > summary::-webkit-details-marker { display: none; }
  .vm-item > summary:active, a.vm-item:active { background: var(--soft); }
  .vm-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #e6efff; color: var(--blue); font-size: 1.05rem; flex-shrink: 0; transition: background .25s, color .25s, transform .25s; }
  .vm-item.cur .vm-ic, .vm-item[open] .vm-ic { background: var(--lime); color: var(--navy); }
  .vm-item[open] .vm-ic { transform: rotate(-8deg) scale(1.05); }
  .vm-lb { flex: 1; }
  .vm-ch { color: #9fb0cc; font-size: .75rem; transition: transform .3s; }
  .vm-item[open] .vm-ch { transform: rotate(180deg); }
  .vm-sub { display: grid; padding: 0 8px 10px 66px; animation: vUp .35s ease both; }
  .vm-sub a { padding: 9px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
  .vm-sub a:active { background: var(--soft); }
  .vm-sub a.all { color: var(--green); font-weight: 800; }
  .vm-foot { display: grid; gap: 12px; padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: auto; justify-items: stretch; }
  .vm-foot .v-lang { justify-self: start; }
  .vm-foot .v-lang .lang-btn { padding: 8px 16px; font-size: .8rem; }
  .vm-foot .v-btn { width: 100%; padding: 14px; }
  .vm-out { text-align: center; padding: 10px; font-weight: 700; color: var(--navy); text-decoration: none; }
  .v-mobile.open .vm-list > * { animation: vUp .45s cubic-bezier(.2, .8, .2, 1) both; }
  .v-mobile.open .vm-list > *:nth-child(1) { animation-delay: .04s; } .v-mobile.open .vm-list > *:nth-child(2) { animation-delay: .08s; }
  .v-mobile.open .vm-list > *:nth-child(3) { animation-delay: .12s; } .v-mobile.open .vm-list > *:nth-child(4) { animation-delay: .16s; }
  .v-mobile.open .vm-list > *:nth-child(5) { animation-delay: .2s; } .v-mobile.open .vm-list > *:nth-child(6) { animation-delay: .24s; }
  .v-mobile.open .vm-list > *:nth-child(7) { animation-delay: .28s; }
}

/* =====================================================================
   BUREAU (≥ 1024 px) — riche et immersif
   ===================================================================== */
@media (min-width: 1024px) {
  .v-header.scrolled .v-logo img { height: 44px; }
  .v-logo img { transition: height .3s; }
  .v-card, .v-dom, .v-dom2 { will-change: transform; }
  .v-hero .v-container { min-height: 520px; }
  .v-hero.short .v-container { min-height: 380px; }
}

/* =====================================================================
   TABLETTE (640–1023 px) — équilibrée
   ===================================================================== */
@media (min-width: 640px) and (max-width: 1023px) {
  .v-container { padding: 0 32px; }
  .v-section { padding: 56px 0; }
  .v-header .v-container { gap: 14px; }
  .v-actions .v-search { display: inline-flex; }
  .vm-panel { top: 0; bottom: 0; right: 0; width: min(430px, 88vw); border-radius: 28px 0 0 28px; transform: translateX(104%); }
  .v-mobile.open .vm-panel { transform: none; }
  .vm-grip { display: none; }
  .vm-head { padding-top: 22px; }
  .v-tabbar { display: none; }
  /* Bannière : texte à gauche, image à droite, plus compacte que le bureau */
  .v-hero .v-container { grid-template-columns: 1.15fr .85fr; min-height: 400px; padding-top: 48px; padding-bottom: 64px; }
  .v-hero-img { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; height: auto; order: 0; }
  .v-hero-img::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(10,42,94,.72) 30%, rgba(10,42,94,0) 75%); }
  .v-hero-shape { display: block; }
  .v-hero h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); }
  .v-hero-shape { width: 220px; height: 220px; right: -50px; bottom: -70px; }
  /* Piliers : 2 × 2 en cartes horizontales (icône à gauche) */
  .v-pillars { margin-top: -48px; }
  .v-pillars .v-card { grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px; }
  .v-pillars .it { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; text-align: left; border: 0; padding: 12px; border-radius: 16px; align-items: center; transition: background .2s; }
  .v-pillars .it:hover { background: var(--soft); }
  .v-pillars .it .v-ico { grid-row: 1 / 3; margin: 0; }
  .v-pillars .it h3 { margin: 0; } .v-pillars .it p { margin: 0; }
  /* Grilles : 4–6 cartes → carrousel qui laisse deviner la suite ; 3 cartes → 2 colonnes */
  .v-grid.g4:not(:has(> :nth-child(9))), .v-grid.g5:not(:has(> :nth-child(9))), .v-grid.g6:not(:has(> :nth-child(9))) {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin: 0 -32px; padding: 6px 32px 16px; scroll-padding-left: 32px; scrollbar-width: none; }
  .v-grid.g4:not(:has(> :nth-child(9)))::-webkit-scrollbar, .v-grid.g5:not(:has(> :nth-child(9)))::-webkit-scrollbar, .v-grid.g6:not(:has(> :nth-child(9)))::-webkit-scrollbar { display: none; }
  .v-grid.g4:not(:has(> :nth-child(9))) > *, .v-grid.g5:not(:has(> :nth-child(9))) > *, .v-grid.g6:not(:has(> :nth-child(9))) > * { flex: 0 0 42%; scroll-snap-align: start; }
  .v-grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .v-dots.show { display: flex; }
  .v-footer .v-container { grid-template-columns: 1.3fr 1fr; gap: 28px 36px; }
  .v-layout { grid-template-columns: 1fr; }
  .v-side { grid-template-columns: 1fr 1fr; }
  .v-stats { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 0; }
}

/* =====================================================================
   MOBILE (≤ 639 px) — pensé pour le pouce
   ===================================================================== */
@media (max-width: 639px) {
  :root { --hdr: 60px; }
  body.v-page, body { padding-top: calc(var(--top) + var(--hdr)); padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 70px; }
  .v-container { padding: 0 18px; }
  .v-section { padding: 38px 0; }
  .v-h2 { font-size: 1.45rem; }
  .v-lead { font-size: .95rem; line-height: 1.6; }

  /* En-tête compact : logo · langue · menu. Se range quand on descend, revient quand on remonte. */
  .v-header.hide { transform: translateY(-100%); }
  .v-logo img { height: 38px; }
  .v-actions .v-search, .v-actions .v-login { display: none; }
  .v-lang .lang-btn { padding: 6px 11px; font-size: .74rem; }
  .v-burger { display: none; }
  .v-searchbar { display: none !important; }

  /* Barre d'onglets flottante */
  .v-tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 64px; z-index: 110; display: flex; align-items: stretch; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 34px rgba(10, 42, 94, .24); padding: 0 4px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .v-tabbar a, .v-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-family: inherit; font-size: .64rem; font-weight: 700; text-decoration: none; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
  .v-tabbar i { width: 38px; height: 30px; border-radius: 15px; display: grid; place-items: center; font-size: 1.02rem; transition: background .3s, color .3s, transform .3s cubic-bezier(.2, .9, .3, 1.4), width .3s; }
  .v-tabbar .on { color: var(--navy); }
  .v-tabbar .on i { background: var(--lime); color: var(--navy); width: 50px; transform: translateY(-3px); animation: vPop .45s ease; }
  .v-tabbar a:active i, .v-tabbar button:active i { transform: scale(.88); }
  body.menu-open .v-tabbar { transform: translateY(140%); }
  .vm-panel { left: 0; right: 0; bottom: 0; max-height: 90svh; border-radius: 28px 28px 0 0; transform: translateY(104%); }
  .v-mobile.open .vm-panel { transform: none; }
  #back-to-top { bottom: calc(86px + env(safe-area-inset-bottom)) !important; right: 14px !important; }

  /* Bannière : image plein cadre, texte ancré en bas, boutons pleine largeur */
  .v-hero { min-height: calc(100svh - var(--hdr) - 96px); display: flex; }
  .v-hero.short { min-height: 52svh; }
  .v-hero .v-container { grid-template-columns: 1fr; align-content: end; min-height: inherit; width: 100%; padding: 70px 18px 34px; gap: 0; }
  .v-hero .v-container > div:empty { display: none; }
  .v-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; order: 0; z-index: 1; }
  .v-hero-img::after { background: linear-gradient(0deg, var(--navy-d) 6%, rgba(6, 29, 68, .82) 38%, rgba(6, 29, 68, .3) 100%); }
  .v-hero-shape { display: block; width: 170px; height: 170px; right: -64px; top: 24px; bottom: auto; border-radius: 34px; opacity: .9; }
  .v-hero.noimg .v-hero-shape { opacity: .22; width: 230px; height: 230px; }
  .v-hero h1 { font-size: 2.3rem; line-height: 1.04; margin-bottom: 14px; }
  .v-hero .v-eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .v-hero p.v-intro { font-size: .98rem; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .v-hero .v-btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .v-hero .v-btns .v-btn { width: 100%; padding: 15px 18px; font-size: .98rem; }
  .v-hero .v-btns .v-btn-lime::after { content: ""; }
  .v-hero .v-sticker { display: none; }
  .v-hero .v-crumb { font-size: .74rem; }

  /* Piliers : bande de cartes à balayer, qui chevauche la bannière */
  .v-pillars { margin-top: -26px; }
  .v-pillars > .v-card { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 18px 14px; margin: 0 -18px; background: transparent; border: 0; box-shadow: none; scrollbar-width: none; scroll-padding-left: 18px; }
  .v-pillars > .v-card::-webkit-scrollbar { display: none; }
  .v-pillars > .v-card:hover { transform: none; box-shadow: none; }
  .v-pillars .it { flex: 0 0 66%; scroll-snap-align: start; background: #fff; border: 1px solid var(--line) !important; border-radius: 20px; padding: 18px 16px; text-align: left; box-shadow: var(--shadow-h); display: grid; gap: 4px; }
  .v-pillars .it:nth-child(odd) { border-right: 1px solid var(--line); }
  .v-pillars .it .v-ico { margin: 0 0 6px; width: 46px; height: 46px; }
  .v-pillars .it h3 { margin: 0; font-size: 1.05rem; } .v-pillars .it p { font-size: .86rem; }

  /* Grilles de 3+ cartes : carrousel à balayage (la carte suivante dépasse) ; listes longues : pile verticale */
  .v-grid.g3:not(:has(> :nth-child(7))), .v-grid.g4:not(:has(> :nth-child(7))), .v-grid.g5:not(:has(> :nth-child(7))), .v-grid.g6:not(:has(> :nth-child(7))), .v-grid.v-m-car {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -18px; padding: 6px 18px 16px; scroll-padding-left: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v-grid.g3:not(:has(> :nth-child(7)))::-webkit-scrollbar, .v-grid.g4:not(:has(> :nth-child(7)))::-webkit-scrollbar, .v-grid.g5:not(:has(> :nth-child(7)))::-webkit-scrollbar, .v-grid.g6:not(:has(> :nth-child(7)))::-webkit-scrollbar, .v-grid.v-m-car::-webkit-scrollbar { display: none; }
  .v-grid.g3:not(:has(> :nth-child(7))) > *, .v-grid.g4:not(:has(> :nth-child(7))) > *, .v-grid.g5:not(:has(> :nth-child(7))) > *, .v-grid.g6:not(:has(> :nth-child(7))) > *, .v-grid.v-m-car > * { flex: 0 0 80%; scroll-snap-align: start; min-width: 0; }
  .v-grid.g2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .v-grid[style*="grid-template-columns:1fr 1.5fr"], .v-grid[style*="grid-template-columns: 1fr 1.5fr"] { grid-template-columns: 1fr !important; }
  .v-grid.g2 .v-card { padding: 16px; } .v-grid.g2 .v-card h3 { font-size: .95rem; } .v-grid.g2 .v-card p { font-size: .82rem; }
  .v-dom { min-height: 128px; padding: 16px; border-radius: 20px; } .v-dom b { font-size: .95rem; } .v-dom i.big { font-size: 1.4rem; }
  .v-dom2 { min-height: 150px; }
  .v-dots.show { display: flex; }

  /* Entêtes de section : titre, puis lien « pilule » */
  .v-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .v-head > .v-link { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .82rem; background: #fff; }

  /* Bandeaux : image en tête, chiffres en tuiles */
  .v-soft-band, .v-band { grid-template-columns: 1fr !important; }
  .v-soft-band .ph, .v-band .ph { min-height: 170px; }
  .v-soft-band .tx, .v-band .tx { padding: 20px 18px 24px; }
  .v-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .v-stat { border: 0; background: #fff; border-radius: 16px; padding: 14px 12px; box-shadow: 0 4px 14px rgba(10, 42, 94, .07); text-align: left; }
  .on-dark .v-stat { background: rgba(255, 255, 255, .08); box-shadow: none; }
  .v-stat b { font-size: 1.75rem; } .v-stat span { font-size: .78rem; }
  .v-cta, .v-cta.img { text-align: left; padding: 24px 20px; border-radius: 22px; }
  .v-cta .v-btns .v-btn, .v-cta .v-btn { width: 100%; }
  .v-hand { display: none; }
  .v-card { padding: 18px; border-radius: 20px; }

  /* Actualités : carte à la une + cartes à balayage ; légèreté des ombres */
  .v-news .im { height: 168px; } .v-news h3 { font-size: 1rem; }
  .v-course .im { height: 150px; }
  .v-job { grid-template-columns: 44px 1fr; padding: 14px; gap: 12px; }

  /* Filtres : pastilles défilantes */
  .v-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px; margin-top: -22px; gap: 4px; }
  .v-tabs::-webkit-scrollbar { display: none; }
  .v-tabs button { flex: 0 0 auto; min-width: 0; padding: 11px 16px; white-space: nowrap; }
  .v-search-bar { grid-template-columns: 1fr; padding: 12px; margin-top: -22px; }
  .v-logos { gap: 26px; } .v-logos img { height: 44px; }
  .v-faq summary { padding: 14px; }
  .v-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .v-gallery a:nth-child(5n+1) { grid-column: span 2; aspect-ratio: 16/10; }
  .v-lb .p, .v-lb .n { display: none; }

  /* Pied de page : compact, centré, sans colonnes */
  .v-footer .v-container { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; padding-bottom: 24px; text-align: center; justify-items: center; }
  .v-footer .v-container > div:first-child p { margin-left: auto; margin-right: auto; }
  .v-footer .v-ql { grid-template-columns: 1fr 1fr; justify-items: center; gap: 10px 22px; }
  .v-footer .ct { justify-items: center; }
  .v-soc { justify-content: center; }
  .v-soc a { width: 42px; height: 42px; }
  .v-legal .v-container { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .v-legal nav { flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
}

/* Petits téléphones */
@media (max-width: 380px) {
  .v-hero h1 { font-size: 2rem; }
  .v-tabbar span { font-size: .58rem; }
  .v-grid.g3:not(:has(> :nth-child(7))) > *, .v-grid.g4:not(:has(> :nth-child(7))) > * { flex-basis: 86%; }
}

/* Pastilles de carrousel (créées par vitrine-responsive.js) */
.v-dots { justify-content: center; gap: 7px; margin: -2px 0 6px; }
.v-dots i { width: 7px; height: 7px; border-radius: 99px; background: #c9d6ea; transition: width .3s, background .3s; cursor: pointer; }
.v-dots i.on { width: 22px; background: var(--navy); }
.on-dark .v-dots i.on, .v-hero .v-dots i.on { background: var(--lime); }

/* Indice de balayage (flèche animée) sur la bannière mobile */
.v-swipe-hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  .v-hero h1, .v-hero .v-eyebrow, .v-hero .v-intro, .v-hero .v-btns, .v-hero .v-play, .v-hero .v-crumb, .v-hero-shape, .v-hero.noimg { animation: none !important; }
  .v-hero-img img { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Dans un carrousel, les cartes hors champ ne doivent pas rester invisibles : on les montre, avec un simple fondu à l'entrée du bloc */
@media (max-width: 639px) {
  .v-grid.g3:not(:has(> :nth-child(7))) > .v-reveal, .v-grid.g4:not(:has(> :nth-child(7))) > .v-reveal, .v-grid.g5:not(:has(> :nth-child(7))) > .v-reveal, .v-grid.g6:not(:has(> :nth-child(7))) > .v-reveal, .v-grid.v-m-car > .v-reveal { opacity: 1; transform: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .v-grid.g4:not(:has(> :nth-child(9))) > .v-reveal, .v-grid.g5:not(:has(> :nth-child(9))) > .v-reveal, .v-grid.g6:not(:has(> :nth-child(9))) > .v-reveal { opacity: 1; transform: none; }
}

/* Mobile : grilles à 2 colonnes imbriquées / cartes à icône → listes lisibles */
@media (max-width: 639px) {
  .v-grid.g2:not(:has(> .v-dom)):not(:has(> .v-dom2)) { grid-template-columns: 1fr; gap: 12px; }
  .v-grid.g2 > .v-card:has(> .v-ico) { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; padding: 16px; }
  .v-grid.g2 > .v-card:has(> .v-ico) > .v-ico { grid-row: 1 / span 3; width: 46px; height: 46px; }
  .v-grid.g2 > .v-card:has(> .v-ico) > h3 { margin: 0 0 4px; }
  .v-grid.g2 > .v-card:has(> .v-ico) > p, .v-grid.g2 > .v-card:has(> .v-ico) > ul { grid-column: 2; }
  .v-grid[style*="gap:36px"] { gap: 22px !important; }
  /* Liste d'actualités : cartes horizontales compactes (image à gauche) au lieu de deux colonnes étroites */
  .v-layout .v-grid.g2 { grid-template-columns: 1fr; gap: 12px; }
  .v-layout .v-grid.g2 .v-news { flex-direction: row; min-height: 120px; }
  .v-layout .v-grid.g2 .v-news .im { width: 108px; height: auto; flex: 0 0 108px; }
  .v-layout .v-grid.g2 .v-news .im .v-pill { display: none; }
  .v-layout .v-grid.g2 .v-news .bd { padding: 12px 14px; gap: 5px; justify-content: center; }
  .v-layout .v-grid.g2 .v-news h3 { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .v-layout .v-grid.g2 .v-news .v-link { font-size: .78rem; }
}


/* Section "Le fondateur" : la colonne fixe 300px débordait de l'écran sur mobile -> une seule colonne */
@media (max-width: 760px) {
  .v-grid.v-founder { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  .v-grid.v-founder > .v-card { max-width: 420px; width: 100%; margin: 0 auto; }
  .v-grid.v-founder > .v-grid.g2 { grid-template-columns: minmax(0, 1fr); }
  .v-grid.v-founder > .v-grid.g2 > .v-card { grid-column: auto !important; }
}
