/* Page « La flotte » ACAF : styles limités au bloc .acaf-flotte. */
@font-face {
	font-family: "ACAF Excellence";
	src: url("/wp-content/uploads/2022/02/ExcellenceInMotion_Medium.ttf") format("truetype");
	font-weight: 400 600;
	font-display: swap;
}

.acaf-flotte {
	--nuit: #071037;
	--fort: var(--nuit); /* titres, liens forts (blanc en mode sombre) */
	--fond: #fff; /* fond de page et des cartes */
	--bande: var(--nuit); /* bandes et blocs bleu nuit */
	--rouge: #e22701;
	--ciel: #f1f5fa;
	--encre: #141a33;
	--brume: #5a6380;
	--trait: #d8deea;
	--titre: "ACAF Excellence", "Raleway", "Helvetica Neue", Arial, sans-serif;
	--texte: "Work Sans", "Helvetica Neue", Arial, sans-serif;
	--entete: 110px; /* hauteur de l'en-tête collant, mesurée par flotte.js */
	color: var(--encre);
	font: 400 17px/1.6 var(--texte);
	background: var(--fond);
}
.acaf-flotte *, .acaf-flotte *::before, .acaf-flotte *::after { box-sizing: border-box; }
.acaf-flotte h1, .acaf-flotte h2, .acaf-flotte h3 { margin: 0; color: inherit; letter-spacing: 0; text-transform: none; text-wrap: balance; }
.acaf-flotte h1, .acaf-flotte h2 { font-family: var(--titre); font-weight: 500; }
/* Remises à zéro sans poids, pour que les classes de la page gardent la main (les titres et liens gardent le leur face au kit Elementor). */
.acaf-flotte :where(p, dl, dd) { margin: 0; }
.acaf-flotte :where(ul) { list-style: none; margin: 0; padding: 0; }
.acaf-flotte a { color: inherit; }
.acaf-flotte :focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.acaf-flotte__col { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }

/* Bandeau : photo au naturel, grand titre, vague bleu nuit */
.acaf-flotte__hero { position: relative; display: flex; flex-direction: column; min-height: clamp(320px, min(44vw, 100svh - var(--entete) - 300px), 580px); color: #fff; background: linear-gradient(90deg, rgba(7,16,55,.8) 0%, rgba(7,16,55,.62) 32%, rgba(7,16,55,.18) 54%, rgba(7,16,55,0) 68%), #2a3354 var(--acaf-flotte-photo) 50% 70% / cover no-repeat; }
.acaf-flotte__hero .acaf-flotte__col { width: 100%; padding-top: clamp(28px, 4svh, 56px); }
.acaf-flotte__ariane { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88); display: flex; flex-wrap: wrap; gap: 8px; }
.acaf-flotte__ariane a { text-decoration: none; }
.acaf-flotte__ariane a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acaf-flotte__hero h1 { margin-top: 12px; font-size: clamp(50px, min(8vw, 12.5svh), 120px); line-height: .92; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 24px rgba(7,16,55,.45); }
.acaf-flotte__chapo { margin-top: 18px; max-width: 34ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; font-weight: 500; color: #fff; text-shadow: 0 1px 12px rgba(7,16,55,.5); }
.acaf-flotte__vague { display: block; width: 100%; height: clamp(44px, 6vw, 96px); margin-top: auto; margin-bottom: -1px; }
.acaf-flotte__vague path { fill: var(--bande); }

/* Barre de sections collante */
.acaf-flotte__sections { position: sticky; top: var(--entete); z-index: 50; background: var(--bande); }
.acaf-flotte__sections ul { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); display: flex; gap: clamp(20px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; }
.acaf-flotte__sections a { display: block; padding: 16px 0 18px; color: rgba(255,255,255,.72); text-decoration: none; font: 500 15px/1 var(--texte); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.acaf-flotte__sections a:hover { color: #fff; }
.acaf-flotte__sections a.actif { color: #fff; border-color: var(--rouge); }

/* Groupes */
.acaf-flotte__groupe { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--entete) + 56px); }
.acaf-flotte__sections + .acaf-flotte__groupe { padding-top: clamp(32px, 4vw, 56px); }
.acaf-flotte__groupe:last-of-type { padding-bottom: clamp(72px, 9vw, 120px); }
.acaf-flotte__groupe > .acaf-flotte__col > h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; padding-bottom: 18px; border-bottom: 1px solid var(--trait); color: var(--encre); }

/* Cartes avion */
.acaf-flotte__cartes { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.acaf-flotte__carte { display: flex; }
.acaf-flotte__lien { display: flex; flex-direction: column; width: 100%; text-decoration: none; border: 1px solid var(--trait); border-radius: 6px; overflow: hidden; background: var(--fond); transition: border-color .2s, box-shadow .2s, transform .2s; }
.acaf-flotte__lien:hover { border-color: var(--trait); box-shadow: 0 10px 28px -14px rgba(7,16,55,.35); transform: translateY(-2px); }
.acaf-flotte__vignette { aspect-ratio: 3 / 2; background: var(--ciel); overflow: hidden; }
.acaf-flotte__vignette img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.acaf-flotte__lien:hover .acaf-flotte__vignette img { transform: scale(1.03); }
.acaf-flotte__corps { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.acaf-flotte__entete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.acaf-flotte__entete h3 { font: 500 25px/1.15 var(--titre); color: var(--fort); }
.acaf-flotte__nombre { flex-shrink: 0; font-size: 14px; color: var(--brume); }
.acaf-flotte__puces { display: flex; flex-wrap: wrap; gap: 6px; }
.acaf-flotte__puces li { padding: 3px 10px; border-radius: 99px; background: var(--ciel); color: var(--fort); font-size: 13px; font-weight: 500; line-height: 1.4; }
.acaf-flotte__prix { margin-top: auto; padding-top: 4px; color: var(--brume); font-size: 15px; }
.acaf-flotte__prix strong { color: var(--encre); font-size: 22px; font-weight: 600; }
.acaf-flotte__prix--versions { display: grid; gap: 2px; }
.acaf-flotte__prix--versions div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.acaf-flotte__prix--versions strong { font-size: 18px; }
.acaf-flotte__plus { font-size: 14.5px; font-weight: 600; color: var(--rouge); }
.acaf-flotte__plus::after { content: " →"; }
.acaf-flotte__mention { margin-top: 28px; font-size: 14.5px; color: var(--brume); }
.acaf-flotte__mention a { color: var(--fort); font-weight: 600; text-underline-offset: 3px; }

/* Galerie défilante (fiches et simulateur) */
.acaf-flotte__galerie { position: relative; background: var(--ciel); }
.acaf-flotte__defile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 2; }
.acaf-flotte__defile::-webkit-scrollbar { display: none; }
.acaf-flotte__defile img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.acaf-flotte__fleche { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--fort); cursor: pointer; box-shadow: 0 2px 10px rgba(7,16,55,.18); }
.acaf-flotte__fleche[data-sens="-1"] { left: 12px; }
.acaf-flotte__fleche[data-sens="1"] { right: 12px; }
.acaf-flotte__fleche:disabled { opacity: 0; pointer-events: none; }
.acaf-flotte__fleche svg, .acaf-flotte__fermer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons : neutralise les styles de bouton du thème (bordure et fond roses au survol / focus). */
.acaf-flotte .acaf-flotte__fleche, .acaf-flotte .acaf-flotte__fermer,
.acaf-flotte .acaf-flotte__fleche:hover, .acaf-flotte .acaf-flotte__fermer:hover,
.acaf-flotte .acaf-flotte__fleche:focus, .acaf-flotte .acaf-flotte__fermer:focus { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--fort); box-shadow: 0 2px 10px rgba(7,16,55,.18); font: inherit; line-height: 1; text-transform: none; }
.acaf-flotte .acaf-flotte__fleche:hover, .acaf-flotte .acaf-flotte__fermer:hover { background: var(--fond); }

/* Contenu d'une fiche ou du simulateur */
.acaf-flotte__infos { display: grid; gap: 16px; align-content: start; }
.acaf-flotte__tarifs { display: grid; border-top: 1px solid var(--trait); }
.acaf-flotte__tarifs div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.acaf-flotte__tarifs dt { font-size: 15.5px; }
.acaf-flotte__tarifs dd { text-align: right; color: var(--brume); font-size: 14.5px; }
.acaf-flotte__tarifs strong { color: var(--encre); font-size: 19px; font-weight: 600; }
.acaf-flotte__note { font-size: 14px; color: var(--brume); }
.acaf-flotte__texte { display: grid; gap: 12px; font-size: 16px; line-height: 1.65; }
.acaf-flotte__texte p { margin: 0; }
.acaf-flotte__carac h3 { margin-bottom: 6px; font: 600 15px/1.4 var(--texte); color: var(--fort); }
.acaf-flotte__carac ul { display: grid; gap: 4px; font-size: 15.5px; }
.acaf-flotte__carac li { position: relative; padding-left: 18px; }
.acaf-flotte__carac li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); }

/* Appareils du club */
/* Tableaux : neutralise les styles du thème (bordures grises, lignes zébrées, marges). */
.acaf-flotte table { margin: 0; border: 0; font-size: inherit; }
.acaf-flotte table th, .acaf-flotte table td { border: 0; background: none; line-height: 1.45; }
.acaf-flotte table tbody > tr:nth-child(odd) > td, .acaf-flotte table tbody > tr:nth-child(odd) > th,
.acaf-flotte table tbody tr:hover > td, .acaf-flotte table tbody tr:hover > th { background-color: transparent; }
.acaf-flotte table thead:first-child tr:first-child th, .acaf-flotte table tbody:first-child tr:first-child td { border-top: 0; }

.acaf-flotte__appareils h3 { margin-bottom: 8px; font: 600 15px/1.4 var(--texte); color: var(--fort); }
.acaf-flotte__appareils table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.acaf-flotte .acaf-flotte__appareils th, .acaf-flotte .acaf-flotte__appareils td { padding: 8px 12px 8px 0; text-align: left; border-bottom: 1px solid var(--trait); font-weight: 400; white-space: nowrap; }
.acaf-flotte .acaf-flotte__appareils thead th { padding-top: 0; font-size: 13px; font-weight: 500; color: var(--brume); white-space: normal; vertical-align: bottom; }
.acaf-flotte .acaf-flotte__appareils tbody th { font-weight: 600; color: var(--fort); }
.acaf-flotte__appareils { overflow-x: auto; }
.acaf-flotte__indispo { display: block; width: max-content; margin-top: 3px; padding: 1px 8px; border-radius: 99px; background: #fdeae5; color: #a51d00; font-size: 12px; font-weight: 500; }

/* Simulateur */
.acaf-flotte__simu { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.acaf-flotte__simu .acaf-flotte__galerie { border-radius: 6px; overflow: hidden; }
.acaf-flotte__simu h3 { font: 500 clamp(26px, 2.4vw, 32px)/1.15 var(--titre); color: var(--fort); }

/* Fiche avion (boîte de dialogue) : photos en haut, prix à gauche, texte à droite */
.acaf-flotte__fiche { width: min(980px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 8px; color: var(--encre); background: var(--fond); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px -20px rgba(7,16,55,.5); }
.acaf-flotte__fiche:focus-visible { outline: none; }
.acaf-flotte__fiche::backdrop { background: rgba(7,16,55,.62); }
.acaf-flotte__fiche .acaf-flotte__defile { aspect-ratio: auto; height: min(52svh, 480px); }
.acaf-flotte__fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 3vw, 40px); }
.acaf-flotte__fiche h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--fort); }
.acaf-flotte__fiche .acaf-flotte__nombre { margin-top: -10px; }
.acaf-flotte__details { display: grid; gap: 18px; align-content: start; }
.acaf-flotte__fermer { position: sticky; top: 12px; float: right; margin: 12px 12px -52px 0; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--fort); cursor: pointer; box-shadow: 0 2px 10px rgba(7,16,55,.18); }
.acaf-flotte__fermer:hover { background: var(--fond); }
.acaf-flotte__fiche[open] { animation: acaf-flotte-ouvre .22s ease-out; }
@keyframes acaf-flotte-ouvre { from { opacity: 0; transform: translateY(12px); } }
html:has(.acaf-flotte__fiche[open]) { overflow: hidden; }

@media (max-width: 1100px) { .acaf-flotte__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.acaf-flotte__simu { grid-template-columns: minmax(0, 1fr); }
	.acaf-flotte__fiche { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border-radius: 0; }
	.acaf-flotte__fiche .acaf-flotte__defile { height: auto; aspect-ratio: 3 / 2; }
	.acaf-flotte__fiche-corps { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 40px; }
	.acaf-flotte .acaf-flotte__appareils th, .acaf-flotte .acaf-flotte__appareils td { padding-right: 8px; font-size: 13.5px; }
}
@media (max-width: 620px) {
	.acaf-flotte__cartes { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.acaf-flotte__hero { background: linear-gradient(180deg, rgba(7,16,55,.8) 0%, rgba(7,16,55,.62) 60%, rgba(7,16,55,.2) 88%, rgba(7,16,55,0) 100%), #2a3354 var(--acaf-flotte-photo-mobile, var(--acaf-flotte-photo)) 35% 80% / cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) {
	.acaf-flotte *, .acaf-flotte *::before, .acaf-flotte *::after { transition: none !important; animation: none !important; }
	.acaf-flotte__defile { scroll-behavior: auto; }
}
