/* UX t767 : pages ville avec centre (https://minutedrone.com/formation/telepilote-drone-<ville>) à la charte Minutedrone.
   Rendu Agen validé par Aymen le 05/11/2026, intégré dans les classes du site. Tout est préfixé md-vf-* et placé sous le conteneur .md-ville :
   aucune règle globale, aucun reset sur body / a / img / h1-h3 en dehors de .md-ville, pas de Google Fonts
   (Paytone One, Roboto et Gochi Hand sont déjà servies par css/md-polices.css). Compatible Bootstrap 3.
   Même méthode que md-formation.css et md-fc.css : fichier autonome, mêmes valeurs de charte.
   Piège du site : custom.css impose Roboto en !important sur tout sauf H1/H2 (règle :where, spécificité 0) ;
   toute autre police (Paytone One sur H3 et gros chiffres, Gochi Hand) est donc déclarée ici avec !important.
   Chargé depuis formationVilleV2.tag : <link href="/css/md-ville.css?v=20261105-t767" rel="stylesheet">. */

.md-ville {
  --md-vf-blanc: #ffffff;
  --md-vf-gris-clair: #f8f8f8;
  --md-vf-gris-trait: #e6e6e6;
  --md-vf-gris-texte: #5c5c5c;
  --md-vf-noir: #000000;
  --md-vf-violet: #6a67ce;
  --md-vf-lime: #e7fdba;
  --md-vf-jaune: #ffb901;
  --md-vf-bleu: #1aafd0;
  --md-vf-ombre: 0 2px 12px rgba(0,0,0,.08);
  --md-vf-ombre-forte: 0 10px 28px rgba(0,0,0,.12);
  --md-vf-gouttiere: 16px;
  --md-vf-police-titre: "Paytone One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --md-vf-police-main: "Gochi Hand", "Comic Sans MS", cursive;
  background: var(--md-vf-blanc);
  color: var(--md-vf-noir);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}
.md-ville img { max-width: 100%; }
.md-ville :focus-visible { outline: 3px solid var(--md-vf-noir); outline-offset: 3px; }
.md-ville a { color: inherit; }
.md-ville h1, .md-ville h2, .md-ville h3 { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; text-wrap: balance; color: var(--md-vf-noir); }
.md-ville h3 { font-family: var(--md-vf-police-titre) !important; font-weight: 400 !important; }
:where(.md-ville) :is(p, ul, ol, figure, blockquote) { margin: 0; }
:where(.md-ville) :is(ul, ol) { padding: 0; list-style: none; }
.md-vf-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--md-vf-gouttiere); padding-right: var(--md-vf-gouttiere); position: relative; }
.md-vf-topo { position: relative; background: var(--md-vf-gris-clair); overflow: hidden; }
/* Même texture que /formation (fichier déjà en ligne) */
.md-vf-topo::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: url("/images/formation/complete/fond-topo.svg") center top / 1400px auto repeat; opacity: .07; pointer-events: none; }
.md-vf-sec { padding-top: 88px; padding-bottom: 88px; }
.md-vf-tete { text-align: center; margin-bottom: 40px; }
.md-ville .md-vf-tete h2 { font-size: 38px; line-height: 1.1; }
.md-vf-tete p { margin: 10px auto 0; max-width: 54ch; }
.md-vf-sur-titre { display: inline-block; font-family: var(--md-vf-police-main) !important; font-size: 24px; line-height: 1; margin-bottom: 8px; }
.md-ville .md-vf-emo, .md-vf-club-emo { font-style: normal; }

/* Boutons et liens */
.md-ville a.md-vf-btn, .md-ville button.md-vf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--md-vf-noir); background: var(--md-vf-blanc); color: var(--md-vf-noir); font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer; transition: transform .15s; }
.md-ville a.md-vf-btn:hover, .md-ville button.md-vf-btn:hover { transform: translateY(-2px); text-decoration: none; color: var(--md-vf-noir); }
.md-ville a.md-vf-btn-violet, .md-ville a.md-vf-btn-violet:hover, .md-ville a.md-vf-btn-violet:focus { background: var(--md-vf-violet); color: var(--md-vf-blanc); }
.md-ville button.md-vf-btn-noir, .md-ville button.md-vf-btn-noir:hover, .md-ville button.md-vf-btn-noir:focus { background: var(--md-vf-noir); color: var(--md-vf-blanc); }
.md-ville a.md-vf-lien { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--md-vf-noir); }
.md-vf-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Haut de page ---------- */
.md-vf-hero-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.md-vf-fil { font-size: 14px; margin: 0 0 16px; color: var(--md-vf-gris-texte); }
.md-vf-fil ol { display: flex; flex-wrap: wrap; gap: 6px; }
.md-vf-fil li + li::before { content: "\203A"; margin-right: 6px; color: var(--md-vf-gris-texte); }
.md-ville .md-vf-fil a { font-weight: 700; color: var(--md-vf-noir); text-decoration: underline; text-underline-offset: 3px; }
.md-ville .md-vf-hero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 18px; text-align: left; }
.md-vf-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--md-vf-lime) 62%); }
.md-ville .md-vf-chapo { font-size: 19px; max-width: 40ch; margin: 0 0 28px; color: var(--md-vf-noir); }
.md-vf-photo { position: relative; max-width: 440px; width: 100%; justify-self: end; }
.md-vf-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 12px; box-shadow: var(--md-vf-ombre); }
.md-vf-credit { margin: 8px 0 0; font-size: 13px; color: var(--md-vf-gris-texte); text-align: right; }
/* bottom : 28 px de la maquette + hauteur de la ligne « Notes relevées le… » (24 px), absente de la maquette */
.md-vf-pastilles { position: absolute; left: -44px; bottom: 52px; display: grid; gap: 10px; justify-items: start; }
.md-ville a.md-vf-pastille { display: grid; background: var(--md-vf-blanc); border: 2px solid var(--md-vf-noir); border-radius: 12px; padding: 8px 14px; text-decoration: none; color: var(--md-vf-noir); box-shadow: var(--md-vf-ombre); transition: transform .15s; }
.md-ville a.md-vf-pastille:hover { transform: translateY(-2px); text-decoration: none; }
.md-vf-etoiles { color: var(--md-vf-jaune); font-size: 15px; letter-spacing: 1px; line-height: 1.2; }
.md-vf-pastille-note { font-size: 15px; line-height: 1.25; }
.md-vf-pastille-nb { font-size: 13px; color: var(--md-vf-gris-texte); }
.md-vf-releve { margin-top: 4px; font-size: 13px; color: var(--md-vf-gris-texte); text-align: right; }

/* ---------- Formations : deux cartes ---------- */
.md-vf-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; max-width: 820px; margin: 0 auto; }
.md-vf-carte { position: relative; display: flex; flex-direction: column; background: var(--md-vf-blanc); border-radius: 12px; box-shadow: var(--md-vf-ombre); padding: 28px 24px 24px; border: 2px solid transparent; transition: transform .25s, border-color .25s; min-width: 0; }
.md-vf-carte:hover { transform: translateY(-4px); border-color: var(--md-vf-noir); }
.md-vf-carte .md-vf-illu, .md-vf-carte video.md-vf-illu { display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 1; object-fit: contain; margin: -8px auto 6px; mix-blend-mode: multiply; pointer-events: none; }
.md-vf-etiquettes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.md-vf-etiquette { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; line-height: 1.55; background: var(--md-vf-lime); color: var(--md-vf-noir); }
.md-vf-etiquette-bleu { background: var(--md-vf-bleu); }
.md-vf-etiquette-violet { background: var(--md-vf-violet); color: var(--md-vf-blanc); }
.md-ville .md-vf-carte h3 { font-size: 26px; line-height: 1.15; text-align: center; margin-bottom: 10px; }
.md-vf-pour { margin: 0 0 18px; text-align: center; flex: 1; }
.md-vf-tarif { text-align: center; margin: 0 0 16px; font-size: 14px; color: var(--md-vf-gris-texte); }
.md-vf-tarif strong { display: block; font-family: var(--md-vf-police-titre) !important; font-weight: 400; font-size: 28px; color: var(--md-vf-noir); line-height: 1.1; }
.md-ville .md-vf-carte a.md-vf-btn { width: 100%; }
.md-vf-carte.md-vf-debutant { border-color: var(--md-vf-noir); }
.md-vf-ruban { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: var(--md-vf-lime); font-family: var(--md-vf-police-main) !important; font-size: 22px; line-height: 1; padding: 6px 14px; border-radius: 6px; box-shadow: var(--md-vf-ombre); white-space: nowrap; z-index: 1; }
.md-vf-aide-choix { text-align: center; margin: 28px 0 0; }
.md-ville .md-vf-aide-choix a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Spécialisations */
.md-vf-spes { margin-top: 56px; text-align: center; }
.md-vf-spes .md-vf-sur-titre { margin-bottom: 4px; }
.md-ville .md-vf-spes > h3 { font-size: 26px; line-height: 1.55; text-align: center; margin-bottom: 104px; }
.md-vf-spes ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 104px 24px; }
.md-ville a.md-vf-spe { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; text-align: center; background: var(--md-vf-blanc); border-radius: 12px; box-shadow: var(--md-vf-ombre); padding: 20px 20px 24px; text-decoration: none; color: var(--md-vf-noir); border: 2px solid transparent; transition: transform .2s, border-color .2s; }
.md-ville a.md-vf-spe:hover { transform: translateY(-3px); border-color: var(--md-vf-noir); text-decoration: none; }
.md-vf-spe video.md-vf-spe-illu { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; object-fit: contain; margin: -96px 0 -8px; position: relative; z-index: 1; mix-blend-mode: multiply; pointer-events: none; transition: transform .25s; }
.md-ville a.md-vf-spe:hover video.md-vf-spe-illu { transform: translateY(-6px) scale(1.03); }
.md-ville .md-vf-spe h3 { font-size: 24px; line-height: 1.15; text-align: center; margin: 0; }
.md-vf-spe-petit { display: block; font-family: var(--md-vf-police-titre) !important; font-size: .6em; opacity: .8; }
.md-vf-prix { font-size: 16px; color: var(--md-vf-gris-texte); }
.md-vf-voir { margin-top: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Ils nous font confiance ---------- */
.md-vf-confiance { padding-top: 8px; padding-bottom: 56px; }
.md-ville .md-vf-confiance h2 { font-size: 30px; line-height: 1.55; text-align: center; margin-bottom: 24px; }
.md-vf-bande { overflow: hidden; }
.md-vf-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px; padding: 0 16px; }
.md-vf-logos img { display: block; height: 64px; width: auto; max-width: 140px; object-fit: contain; }
/* Défilement : seulement quand le script a doublé la liste (sans JavaScript ou en mouvement réduit : logos posés en grille) */
.md-vf-bande.md-vf-defile { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.md-vf-defile .md-vf-logos { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; animation: md-vf-logos 120s linear infinite; }
.md-vf-defile:hover .md-vf-logos { animation-play-state: paused; }
@keyframes md-vf-logos { to { transform: translateX(calc(-50% - 24px)); } }

/* ---------- Le centre : mosaïque de photos + fiche pratique ---------- */
.md-vf-bloc-centre { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 250px auto; gap: 14px; }
.md-vf-photos-centre { display: contents; }
.md-ville button.md-vf-photo-centre { position: relative; display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--md-vf-gris-trait); box-shadow: var(--md-vf-ombre); }
.md-vf-photo-centre img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.md-vf-photo-centre:hover img { transform: scale(1.05); }
.md-ville button.md-vf-photo-centre:focus-visible { outline: 3px solid var(--md-vf-violet); outline-offset: 3px; }
.md-ville button.md-vf-p1 { grid-row: 1 / 3; min-height: 480px; }
/* Cadrage neutre pour toutes les villes ; réglage validé seulement sur Agen (maquette). Une ville dont la photo est mal coupée : une ligne de plus sur le même modèle. */
.md-vf-photo-centre img { object-position: 50% 40%; }
.md-ville[data-ville="agen"] .md-vf-p1 img { object-position: 30% 40%; }
.md-ville[data-ville="agen"] .md-vf-p2 img { object-position: 55% 40%; }
.md-ville[data-ville="agen"] .md-vf-p3 img { object-position: 60% 70%; }
.md-vf-agrandir { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--md-vf-blanc); background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.md-vf-agrandir svg { width: 20px; height: 20px; }
.md-vf-photo-centre:hover .md-vf-agrandir, .md-vf-photo-centre:focus-visible .md-vf-agrandir { background: rgba(255,255,255,.4); transform: translateX(2px); }
.md-vf-fiche { grid-column: 2 / 4; background: var(--md-vf-blanc); border: 2px solid var(--md-vf-noir); border-radius: 16px; padding: 22px 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.md-vf-fiche-tete { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.md-vf-fiche-tete > img { display: block; width: 72px; height: auto; }
.md-ville .md-vf-fiche-tete h3 { font-size: 24px; line-height: 1.1; margin-bottom: 4px; }
.md-vf-presentation { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.md-vf-salle { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.md-vf-adresse { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.md-vf-info-lieu { position: relative; display: inline-flex; }
.md-ville button.md-vf-info-btn { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--md-vf-noir); background: var(--md-vf-lime); color: var(--md-vf-noir); font-size: 13px; line-height: 1; font-weight: 700; font-style: italic; display: grid; place-items: center; padding: 0; cursor: help; }
.md-vf-info-bulle { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: min(280px, 80vw); background: var(--md-vf-noir); color: var(--md-vf-blanc); font-size: 13px; line-height: 1.45; font-weight: 400; padding: 10px 12px; border-radius: 10px; box-shadow: var(--md-vf-ombre); opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 5; }
.md-vf-info-bulle::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--md-vf-noir); }
.md-vf-info-lieu:hover .md-vf-info-bulle, .md-vf-info-btn:focus-visible + .md-vf-info-bulle, .md-vf-info-lieu.md-vf-ouverte .md-vf-info-bulle { opacity: 1; visibility: visible; }
.md-vf-pratique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.md-vf-pratique li { background: var(--md-vf-lime); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 8px; align-content: start; }
.md-vf-pratique .md-vf-emo { grid-row: 1 / 3; font-size: 18px; line-height: 1.3; }
.md-vf-pratique b { font-size: 14px; }
.md-vf-pratique span:not(.md-vf-emo) { font-size: 14px; line-height: 1.4; }
.md-vf-acces { margin: 0; font-size: 13px; line-height: 1.5; color: var(--md-vf-gris-texte); }
.md-ville .md-vf-acces a { font-weight: 700; color: var(--md-vf-noir); text-decoration: underline; word-break: break-word; }
.md-vf-cpf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.md-ville .md-vf-cpf a.md-vf-btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Visionneuse des photos */
.md-vf-visionneuse { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; overflow: visible; }
.md-vf-visionneuse::backdrop { background: rgba(0,0,0,.85); }
.md-vf-visionneuse img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.md-ville .md-vf-legende { margin: 10px 0 0; color: var(--md-vf-blanc); text-align: center; font-size: 15px; }
.md-vf-visionneuse button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--md-vf-noir); background: var(--md-vf-blanc); color: var(--md-vf-noir); font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.md-vf-visionneuse .md-vf-fermer { top: -18px; right: -12px; }
.md-vf-visionneuse .md-vf-nav { top: calc(50% - 40px); }
.md-vf-visionneuse .md-vf-prec { left: -14px; }
.md-vf-visionneuse .md-vf-suiv { right: -14px; }

/* ---------- Comment ça se passe ? (plan de vol) ---------- */
.md-vf-vol { position: relative; }
.md-vf-trace { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.md-vf-trace-reste { fill: none; stroke: var(--md-vf-noir); stroke-opacity: .35; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 12; }
.md-vf-trace-vole { fill: none; stroke: var(--md-vf-violet); stroke-width: 4; stroke-linecap: round; }
.md-vf-balise { display: grid; justify-items: center; gap: 6px; position: relative; z-index: 2; }
.md-vf-balise-h { width: 76px; height: 76px; border-radius: 50%; background: var(--md-vf-blanc); border: 3px dashed var(--md-vf-noir); display: grid; place-items: center; font-family: var(--md-vf-police-titre) !important; font-size: 34px; line-height: 1; }
.md-vf-balise-mot { font-family: var(--md-vf-police-main) !important; font-size: 24px; line-height: 1; }
.md-vf-atterrissage .md-vf-balise-h { width: 96px; height: 96px; background: var(--md-vf-lime); border: 3px solid var(--md-vf-noir); font-size: 42px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.md-vf-atterrissage.md-vf-posee .md-vf-balise-h { transform: scale(1.12); }
.md-vf-etapes { padding: 40px 0; display: grid; gap: 56px; position: relative; z-index: 2; }
.md-vf-etape { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.md-vf-bulle { width: 150px; height: 136px; position: relative; transition: transform .45s cubic-bezier(.3,1.6,.5,1); transform: scale(.9); }
.md-vf-bulle img { display: block; width: 100%; height: 100%; }
.md-vf-coche { position: absolute; right: 6px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--md-vf-noir); color: var(--md-vf-blanc); display: grid; place-items: center; font-size: 17px; font-weight: 700; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1) .1s; }
.md-vf-etape-carte { background: var(--md-vf-blanc); border-radius: 12px; box-shadow: var(--md-vf-ombre); padding: 24px; max-width: 420px; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s; }
.md-vf-etape:nth-child(odd) .md-vf-bulle { grid-column: 1; grid-row: 1; justify-self: end; margin-right: 72px; }
.md-vf-etape:nth-child(odd) .md-vf-etape-carte { grid-column: 2; grid-row: 1; justify-self: start; }
.md-vf-etape:nth-child(even) .md-vf-bulle { grid-column: 2; grid-row: 1; justify-self: start; margin-left: 72px; }
.md-vf-etape:nth-child(even) .md-vf-etape-carte { grid-column: 1; grid-row: 1; justify-self: end; }
.md-vf-num { display: inline-block; background: var(--md-vf-lime); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; }
.md-ville .md-vf-etape h3 { font-size: 23px; line-height: 1.2; margin-bottom: 6px; }
.md-vf-etape-carte .md-vf-note { margin-top: 10px; font-size: 14px; color: var(--md-vf-gris-texte); }
.md-ville .md-vf-etape-carte a.md-vf-lien { display: inline-block; margin-top: 10px; font-size: 15px; }
.md-vf-outils { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.md-vf-outils li { border: 2px solid var(--md-vf-noir); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 700; }
.md-vf-etape.md-vf-active .md-vf-bulle { transform: scale(1.04); }
.md-vf-etape.md-vf-active .md-vf-coche { transform: scale(1); }
.md-vf-etape.md-vf-active .md-vf-etape-carte { border-color: var(--md-vf-noir); box-shadow: var(--md-vf-ombre-forte); }
/* Drone décoratif : affiché seulement quand le script a tracé le chemin (sans JavaScript ou en mouvement réduit : pas de drone) */
.md-vf-drone { display: none; position: absolute; left: 0; top: 0; width: 120px; height: 109px; margin: -54px 0 0 -60px; z-index: 3; pointer-events: none; will-change: transform; }
.md-vf-vol-actif .md-vf-drone { display: block; }
.md-vf-drone-corps { width: 100%; height: 100%; animation: md-vf-flotte 2.4s ease-in-out infinite; }
.md-vf-drone-corps img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 26px 10px rgba(0,0,0,.16)); }
@keyframes md-vf-flotte { 0%, 100% { transform: translateY(-3px) rotate(-1.5deg); } 50% { transform: translateY(3px) rotate(1.5deg); } }

/* Encart communauté */
.md-vf-club { margin-top: 40px; background: var(--md-vf-lime); border: 2px solid var(--md-vf-noir); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; z-index: 2; }
.md-vf-club figure { display: grid; gap: 6px; }
.md-vf-club figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; box-shadow: var(--md-vf-ombre); }
.md-vf-club figcaption { font-size: 13px; color: var(--md-vf-gris-texte); }
.md-ville .md-vf-club h3 { font-size: 30px; line-height: 1.15; margin-bottom: 6px; }
.md-vf-club-intro { margin: 0 0 20px; }
.md-vf-club ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.md-vf-club li { background: var(--md-vf-blanc); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.md-vf-club-emo { font-size: 24px; line-height: 1.2; }
.md-vf-club li b { display: block; }
.md-vf-club li span:not(.md-vf-club-emo) { font-size: 15px; }
.md-ville .md-vf-club li a { font-weight: 700; font-size: 15px; color: var(--md-vf-noir); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Les petits plus ---------- */
.md-vf-plus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.md-vf-plus article { background: var(--md-vf-blanc); border-radius: 12px; box-shadow: var(--md-vf-ombre); padding: 20px 20px 22px; text-align: center; border: 2px solid transparent; transition: transform .2s, border-color .2s; }
.md-vf-plus article:hover { transform: translateY(-3px); border-color: var(--md-vf-noir); }
.md-vf-plus img { display: block; width: 104px; height: auto; margin: -6px auto 4px; }
.md-ville .md-vf-plus h3 { font-size: 21px; line-height: 1.15; margin-bottom: 8px; }
.md-vf-plus p { margin: 0; font-size: 15px; line-height: 1.5; }
.md-vf-centre-btn { text-align: center; margin-top: 36px; }

/* ---------- Avis : common:avisFormation (cartes .md-carte-avis-*, css/md-carte-avis.css), appelé tel quel, habillé ici sous .md-vf-avis-bloc.
   Conteneurs du tag en display: contents : ses éléments et la pastille Google sont rangés dans l'ordre de la maquette (sur-titre, H2, pastille, lien, cartes). ---------- */
.md-vf-avis-colonne { display: flex; flex-direction: column; align-items: center; max-width: 1200px; margin: 0 auto; padding-left: var(--md-vf-gouttiere); padding-right: var(--md-vf-gouttiere); text-align: center; }
.md-vf-avis-bloc .container, .md-vf-avis-bloc .row { display: contents; }
.md-vf-avis-bloc .spacer, .md-vf-avis-bloc .spacer-sm { display: none; }
.md-vf-avis-bloc .h9 { order: 1; display: inline-block; background: none; padding: 0; margin: 0 0 8px; font-family: var(--md-vf-police-main) !important; font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: normal; text-transform: none; color: var(--md-vf-noir); }
.md-ville.md-ville .md-vf-avis-bloc .wrapCards h2 { order: 2; font-size: 38px; line-height: 1.1; margin: 0; text-align: center; color: var(--md-vf-noir); }
.md-ville a.md-vf-note-google { order: 3; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; border: 2px solid var(--md-vf-noir); border-radius: 999px; padding: 6px 16px; text-decoration: none; font-weight: 700; color: var(--md-vf-noir); background: var(--md-vf-blanc); transition: transform .15s; }
.md-ville a.md-vf-note-google:hover { transform: translateY(-2px); text-decoration: none; }
.md-vf-note-google .md-vf-etoiles { font-size: 18px; letter-spacing: 2px; line-height: 1; }
.md-vf-avis-bloc .wrapCards p.md-lien-avis { order: 4; margin: 10px 0 40px; font-size: 15px; line-height: 1.55; color: var(--md-vf-noir); }
.md-vf-avis-bloc p.md-lien-avis a { color: var(--md-vf-noir); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.md-vf-avis-bloc .row > .md-carte-avis-liste { order: 5; align-self: stretch; min-width: 0; margin: 0; }
.md-vf-avis-bloc .wrapCards p.md-carte-avis-info { order: 6; }

/* ---------- Financement + villes ---------- */
.md-vf-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.md-vf-bloc { background: var(--md-vf-blanc); border-radius: 12px; box-shadow: var(--md-vf-ombre); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.md-vf-picto { display: block; width: 96px; height: 87px; }
.md-ville .md-vf-bloc h2 { font-size: 30px; line-height: 1.15; text-align: left; }
.md-vf-bloc .md-vf-sur-titre { margin: 0; }
.md-vf-bloc .md-vf-actions { margin-top: 6px; gap: 12px 20px; }
.md-vf-financeurs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.md-ville .md-vf-financeurs img { display: block; height: 52px; width: auto; max-width: 120px; object-fit: contain; }
/* Carte Mapbox du site (#mapCarte, js/mapCarte.js) : cadre noir arrondi ; theme.css donne à #mapCarte 95 % x 83 % de son parent, ramené ici à 100 % */
.md-vf-carte-villes { width: 100%; height: 460px; border: 2px solid var(--md-vf-noir); border-radius: 12px; overflow: hidden; background: var(--md-vf-gris-clair); }
.md-ville .md-vf-carte-villes #mapCarte { position: relative; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; }
.md-ville .md-vf-lien-centres { margin-top: 14px; }
.md-vf-villes-collapse { width: 100%; }
/* Liste en défilement vertical seul, grille (comme md-formation-villes-liste) */
.md-vf-villes-liste { margin-top: 2px; padding: 12px 16px; max-height: 320px; overflow-x: hidden; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; font-size: 15px; background: var(--md-vf-gris-clair); border-radius: 12px; }
.md-vf-villes-liste li { break-inside: avoid; padding: 2px 0; }
.md-ville .md-vf-villes-liste a { text-decoration: none; color: var(--md-vf-noir); }
.md-ville .md-vf-villes-liste a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Écrans moyens ---------- */
@media (min-width: 901px) and (max-width: 1100px) {
  .md-vf-plus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 900px) {
  .md-vf-sec { padding-top: 56px; padding-bottom: 56px; }
  .md-ville .md-vf-tete h2 { font-size: 28px; }
  .md-vf-hero-grille { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 56px; }
  .md-ville .md-vf-hero h1 { font-size: 36px; }
  .md-ville .md-vf-chapo { font-size: 17px; }
  .md-vf-photo { justify-self: start; margin-left: 18px; width: calc(100% - 18px); }
  .md-vf-pastilles { position: static; margin-top: 16px; display: flex; flex-wrap: wrap; }
  .md-vf-releve { margin-top: 10px; text-align: left; }
  .md-vf-cartes { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .md-vf-spes ul { grid-template-columns: minmax(0, 1fr); gap: 100px; }
  /* Photos du centre : défilent au doigt */
  .md-vf-bloc-centre { display: block; }
  .md-vf-photos-centre { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
  .md-ville button.md-vf-photo-centre { flex: 0 0 86%; min-height: 0; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .md-vf-fiche { padding: 18px; }
  .md-vf-etapes { gap: 36px; }
  .md-vf-etape { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
  .md-vf-etape:nth-child(n) .md-vf-bulle { grid-column: 1; grid-row: 1; justify-self: center; margin: 0; width: 76px; height: 69px; }
  .md-vf-etape:nth-child(n) .md-vf-etape-carte { grid-column: 2; grid-row: 1; justify-self: stretch; max-width: none; padding: 18px; }
  .md-vf-coche { width: 24px; height: 24px; font-size: 13px; right: -4px; top: -4px; }
  .md-ville .md-vf-etape h3 { font-size: 20px; }
  .md-vf-balise { justify-items: start; }
  .md-vf-decollage, .md-vf-atterrissage { grid-template-columns: 76px auto; align-items: center; gap: 14px; }
  .md-vf-decollage .md-vf-balise-h { justify-self: center; }
  .md-vf-atterrissage .md-vf-balise-h { width: 76px; height: 76px; font-size: 34px; justify-self: center; }
  .md-vf-drone { width: 78px; height: 71px; margin: -35px 0 0 -39px; }
  .md-vf-club { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; gap: 16px; }
  .md-vf-club figure img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
  .md-ville .md-vf-club h3 { font-size: 24px; }
  .md-vf-club ul { grid-template-columns: minmax(0, 1fr); }
  .md-vf-plus { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .md-vf-avis-bloc .row > .md-carte-avis-liste { margin-right: calc(-1 * var(--md-vf-gouttiere)); padding-right: var(--md-vf-gouttiere); }
  .md-ville.md-ville .md-vf-avis-bloc .wrapCards h2 { font-size: 28px; }
  .md-vf-duo { grid-template-columns: minmax(0, 1fr); }
  .md-vf-bloc { padding: 24px 20px; }
  .md-ville .md-vf-bloc h2 { font-size: 26px; }
  .md-ville .md-vf-financeurs img { height: 42px; }
  .md-vf-carte-villes { height: 340px; }
}
@media (max-width: 520px) {
  .md-vf-plus { grid-template-columns: minmax(0, 1fr); }
  .md-vf-pratique { grid-template-columns: minmax(0, 1fr); }
  .md-vf-fiche-tete { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .md-vf-fiche-tete > img { width: 52px; }
  .md-ville .md-vf-fiche-tete h3 { font-size: 21px; }
  .md-vf-fiche-tete > div { position: relative; }
  .md-vf-info-lieu { position: static; }
  .md-vf-info-bulle { left: 0; right: 0; width: auto; transform: none; bottom: calc(100% + 8px); }
  .md-vf-info-bulle::after { display: none; }
  .md-vf-visionneuse .md-vf-prec { left: 4px; }
  .md-vf-visionneuse .md-vf-suiv { right: 4px; }
  .md-vf-visionneuse .md-vf-fermer { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-vf-drone-corps { animation: none; }
  .md-vf-defile .md-vf-logos { animation: none; }
  .md-vf-bulle, .md-vf-coche, .md-vf-etape-carte, .md-vf-atterrissage .md-vf-balise-h, .md-vf-carte, .md-ville a.md-vf-spe, .md-ville video.md-vf-spe-illu, .md-ville a.md-vf-btn, .md-ville a.md-vf-pastille, .md-ville a.md-vf-note-google, .md-vf-photo-centre img, .md-vf-plus article { transition: none; }
}
