/* Socle commun des pages ACAF refaites (à partir de Tarifs) : couleurs, polices, bandeau, barre de sections, sections.
   Chaque page ajoute ses propres styles sous sa classe (.acaf-tarifs…). */
@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-page {
	--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 commun.js */
	color: var(--encre);
	font: 400 17px/1.6 var(--texte);
	background: var(--fond);
}
.acaf-page *, .acaf-page *::before, .acaf-page *::after { box-sizing: border-box; }
.acaf-page h1, .acaf-page h2, .acaf-page h3 { margin: 0; color: inherit; letter-spacing: 0; text-transform: none; text-wrap: balance; }
.acaf-page h1, .acaf-page h2 { font-family: var(--titre); font-weight: 500; }
/* Remises à zéro sans poids, pour que les classes des pages gardent la main (titres et liens gardent le leur face au kit Elementor). */
.acaf-page :where(p, dl, dd, figure) { margin: 0; }
.acaf-page :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.acaf-page :where(table) { border-collapse: collapse; }
/* Tableaux : neutralise les styles du thème (bordures grises, lignes zébrées, marges). */
.acaf-page table { margin: 0; border: 0; font-size: inherit; }
.acaf-page table th, .acaf-page table td { border: 0; background: none; line-height: 1.45; }
.acaf-page table tbody > tr:nth-child(odd) > td, .acaf-page table tbody > tr:nth-child(odd) > th,
.acaf-page table tbody tr:hover > td, .acaf-page table tbody tr:hover > th { background-color: transparent; }
.acaf-page table thead:first-child tr:first-child th, .acaf-page table tbody:first-child tr:first-child td { border-top: 0; }
.acaf-page a { color: inherit; }
.acaf-page :focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.acaf-page__col { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }

/* Bandeau : photo, voile bleu nuit à gauche, grand titre blanc, vague */
.acaf-page__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-photo) var(--acaf-photo-position, 50% 50%) / cover no-repeat; }
.acaf-page__hero .acaf-page__col { width: 100%; padding-top: clamp(28px, 4svh, 56px); }
.acaf-page__ariane { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88); }
.acaf-page__ariane a { text-decoration: none; }
.acaf-page__ariane a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acaf-page__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-page__chapo { margin-top: 18px; max-width: 36ch; 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-page__hero--compact { min-height: clamp(180px, 15vw, 230px); }
.acaf-page__hero--compact h1 { font-size: clamp(38px, min(4.6vw, 8svh), 64px); }
.acaf-page__vague { display: block; width: 100%; height: clamp(44px, 6vw, 96px); margin-top: auto; margin-bottom: -1px; }
.acaf-page__vague path { fill: var(--bande); }

/* Barre de sections collante */
.acaf-page__sections { position: sticky; top: var(--entete); z-index: 50; background: var(--bande); }
.acaf-page__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-page__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-page__sections a:hover { color: #fff; }
.acaf-page__sections a.actif { color: #fff; border-color: var(--rouge); }

/* Sections */
.acaf-page__groupe { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--entete) + 56px); }
.acaf-page__sections + .acaf-page__groupe { padding-top: clamp(32px, 4vw, 56px); }
.acaf-page > .acaf-page__groupe:last-child { padding-bottom: clamp(72px, 9vw, 120px); }
.acaf-page__groupe > .acaf-page__col > h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; padding-bottom: 18px; border-bottom: 1px solid var(--trait); color: var(--encre); }
.acaf-page__note { margin-top: 20px; font-size: 14.5px; color: var(--brume); }

/* Boutons (liens) */
.acaf-page .acaf-page__bouton { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 4px; background: var(--rouge); color: #fff; font: 600 15px/1.2 var(--texte); text-decoration: none; transition: background .2s; }
.acaf-page .acaf-page__bouton:hover { background: #c41f00; color: #fff; }
.acaf-page .acaf-page__bouton--clair { background: transparent; color: var(--fort); box-shadow: inset 0 0 0 1.5px var(--fort); }
.acaf-page .acaf-page__bouton--clair:hover { background: var(--bande); color: #fff; }

/* Bandeau-lien vers une autre page (photo, voile, titre, texte, bouton) */
.acaf-page .acaf-page__appel { margin-top: 28px; position: relative; display: flex; align-items: center; min-height: 300px; padding: clamp(28px, 4vw, 48px); border-radius: 6px; overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(90deg, rgba(7,16,55,.82) 0%, rgba(7,16,55,.55) 45%, rgba(7,16,55,.1) 80%), #2a3354 var(--acaf-appel) var(--acaf-appel-position, 50% 40%) / cover no-repeat; }
.acaf-page__appel-texte { display: grid; gap: 12px; justify-items: start; max-width: 440px; }
.acaf-page__appel-texte strong { font: 500 clamp(30px, 3.4vw, 44px)/1.05 var(--titre); }
.acaf-page__appel-texte > span:not(.acaf-page__bouton) { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.9); }
.acaf-page__appel-texte .acaf-page__bouton { margin-top: 6px; }
.acaf-page__appel:hover .acaf-page__bouton { background: #c41f00; }

/* Puces (VFR, Nuit, IFR…) */
.acaf-page__puces { display: flex; flex-wrap: wrap; gap: 6px; }
.acaf-page__puces li { padding: 2px 9px; border-radius: 99px; background: var(--ciel); color: var(--fort); font-size: 12.5px; font-weight: 500; line-height: 1.45; }

/* Formulaires WPForms (rendu « modern ») aux couleurs du club : réglés par les variables de WPForms. */
.acaf-page .wpforms-container {
	--wpforms-field-border-radius: 4px;
	--wpforms-field-border-style: solid;
	--wpforms-field-border-size: 1px;
	--wpforms-button-border-style: none;
	--wpforms-button-border-size: 1px;
	--wpforms-field-menu-color: #fff;
	--wpforms-field-size-padding-h: 14px;
	--wpforms-field-size-checkbox-size: 18px;
	--wpforms-field-size-sublabel-spacing: 5px;
	--wpforms-field-size-icon-size: 1;
	--wpforms-label-size-line-height: 20px;
	--wpforms-label-size-sublabel-font-size: 13px;
	--wpforms-label-size-sublabel-line-height: 17px;
	--wpforms-field-size-line-height: 20px;
	--wpforms-button-size-padding-h: 26px;
	--wpforms-button-size-margin-top: 10px;
	--wpforms-container-shadow-size-box-shadow: none;
	--wpforms-field-border-color: var(--trait);
	--wpforms-field-border-color-spare: var(--trait);
	--wpforms-field-text-color: var(--encre);
	--wpforms-field-background-color: var(--fond);
	--wpforms-label-color: var(--fort);
	--wpforms-label-sublabel-color: var(--brume);
	--wpforms-label-error-color: #c41f00;
	--wpforms-button-border-radius: 4px;
	--wpforms-button-background-color: var(--rouge);
	--wpforms-button-border-color: var(--rouge);
	--wpforms-button-text-color: #fff;
	--wpforms-page-break-color: var(--rouge);
	--wpforms-field-size-font-size: 16px;
	--wpforms-label-size-font-size: 15px;
	--wpforms-field-size-input-height: 46px;
	--wpforms-button-size-font-size: 15px;
	--wpforms-button-size-height: 48px;
	margin: 0;
	font-family: var(--texte);
}
.acaf-page .wpforms-container .wpforms-field-label { font-weight: 600; }
/* Champs sur toute la largeur, quelle que soit la taille réglée dans WPForms. */
.acaf-page .wpforms-container .wpforms-field input.wpforms-field-medium, .acaf-page .wpforms-container .wpforms-field input.wpforms-field-small,
.acaf-page .wpforms-container .wpforms-field select.wpforms-field-medium, .acaf-page .wpforms-container .wpforms-field select.wpforms-field-small,
.acaf-page .wpforms-container .wpforms-field textarea.wpforms-field-medium, .acaf-page .wpforms-container .wpforms-field textarea.wpforms-field-small,
.acaf-page .wpforms-container .wpforms-field-row.wpforms-field-medium, .acaf-page .wpforms-container .wpforms-field-row.wpforms-field-small,
.acaf-page .wpforms-container .wpforms-field .iti { width: 100%; max-width: 100%; }
.acaf-page .wpforms-container input:focus, .acaf-page .wpforms-container textarea:focus, .acaf-page .wpforms-container select:focus { border-color: var(--fort); box-shadow: 0 0 0 1px var(--fort); outline: none; }
.acaf-page .wpforms-container button[type="submit"] { padding: 0 26px; font-weight: 600; }
.acaf-page .wpforms-container button[type="submit"]:hover { background: #c41f00; }

@media (max-width: 620px) {
	.acaf-page__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-photo-mobile, var(--acaf-photo)) var(--acaf-photo-position, 50% 50%) / cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) {
	.acaf-page *, .acaf-page *::before, .acaf-page *::after { transition: none !important; animation: none !important; }
}

/* Le thème colore les liens survolés : le texte des bandeaux-liens reste blanc. */
.acaf-page a.acaf-page__appel:hover, .acaf-page a.acaf-page__appel:focus { color: #fff; }
