/* Thème Antola : en-tête, pied de page, gabarits. Couleurs et polices : variables --af-* de l'extension antola-flux. */
:root {
	--at-largeur: 1296px;
	--at-pied: #1f292b;
	--af-marine: #14294f; --af-vert: #3d7310; --af-vert-clair: #eef4e6; --af-fond: #f4f7fa; --af-trait: #d5dce6; --af-texte: #2a3346; --af-gris: #5d6880;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--af-texte); font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--af-marine); }
.at-conteneur { width: min(var(--at-largeur), 100% - 48px); margin: 0 auto; }
.at-masque { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at-evitement { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 8px 14px; background: #fff; }
.at-evitement:focus { left: 8px; }
.at-centre { text-align: center; }

/* ---------- Bandeau du haut : Bai Euskarari, langues ---------- */
.at-bandeau .at-conteneur { display: flex; justify-content: flex-end; align-items: center; gap: 18px; min-height: 40px; }
.at-bai img { display: block; width: 22px; height: auto; }
.at-langues { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.at-langues a { color: var(--af-gris); text-decoration: none; }
.at-langues .at-actif a, .at-langues a:hover { color: var(--af-marine); font-weight: 600; }

/* ---------- En-tête ---------- */
.at-entete { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 0 var(--af-vert), 0 6px 18px rgba(20, 41, 79, .08); }
.admin-bar .at-entete { top: 32px; }
.at-entete .at-conteneur { display: flex; align-items: center; gap: 24px; min-height: 104px; }
.at-logo img { display: block; height: 80px; width: auto; }
.at-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.at-menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.at-menu > li { position: relative; padding: 0 11px; }
.at-menu a { display: block; color: var(--af-marine); text-decoration: none; }
.at-menu > li > a { padding: 30px 0; font-weight: 600; font-size: 16px; background: linear-gradient(var(--af-vert), var(--af-vert)) left calc(50% + 16px) / 0 3px no-repeat; transition: background-size .2s, color .2s; }
.at-menu > li:hover > a, .at-menu > li.current-menu-item:not(.menu-item-type-custom) > a, .at-menu > li.current-menu-ancestor > a { color: var(--af-vert); background-size: 100% 3px; }
.at-menu > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 4px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.at-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 260px; margin: 0; padding: 10px 0; list-style: none; background: #fff; border-top: 3px solid var(--af-vert); border-radius: 0 0 8px 8px; box-shadow: 0 10px 28px rgba(10, 20, 66, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.at-menu li:hover > .sub-menu, .at-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.at-menu .sub-menu a { padding: 9px 20px; font-size: 15px; font-weight: 500; }
.at-menu .sub-menu a:hover { color: var(--af-vert); background: var(--af-vert-clair); }
.at-menu > li.af-menu-contact { padding-left: 8px; }
.at-menu > li.af-menu-contact > a { padding: 10px 20px; border-radius: 4px; background: var(--af-vert); color: #fff; }
.at-menu > li.af-menu-contact:hover > a { background: var(--af-marine); color: #fff; }
.at-recherche { display: flex; align-items: center; }
.at-recherche input { width: 0; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; font: inherit; font-size: 15px; transition: width .2s, border-color .2s; }
.at-recherche:focus-within input { width: 160px; border-bottom-color: var(--af-trait); outline: none; }
.at-recherche button { padding: 6px; border: 0; background: none; color: var(--af-marine); cursor: pointer; }
.at-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.at-burger span:first-child, .at-burger span:first-child::before, .at-burger span:first-child::after { content: ""; display: block; width: 24px; height: 2px; margin: 0 auto; background: var(--af-marine); position: relative; transition: transform .2s; }
.at-burger span:first-child::before { position: absolute; top: -7px; }
.at-burger span:first-child::after { position: absolute; top: 7px; }
.at-burger[aria-expanded="true"] span:first-child { background: transparent; }
.at-burger[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.at-burger[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1299px) { .at-menu > li { padding: 0 7px; } .at-menu > li > a { font-size: 15px; } }
@media (max-width: 1099px) {
	.at-entete .at-conteneur { min-height: 72px; flex-wrap: wrap; }
	.at-logo img { height: 48px; }
	.at-burger { display: block; }
	.at-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0 0 16px; max-height: calc(100vh - 120px); overflow-y: auto; }
	.at-nav.at-ouvert { display: flex; }
	.at-menu { flex-direction: column; align-items: stretch; }
	.at-menu > li { padding: 0; border-top: 1px solid var(--af-trait); }
	.at-menu > li:not(.af-menu-contact) > a { padding: 12px 0; background: none !important; }
	.at-menu .sub-menu { position: static; min-width: 0; padding: 0 0 8px 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.at-menu .sub-menu a { padding: 6px 0; }
	.at-menu > li.af-menu-contact { padding: 12px 0 0; }
	.at-menu > li.af-menu-contact > a { text-align: center; }
	.at-recherche { margin-top: 12px; }
	.at-recherche input, .at-recherche:focus-within input { flex: 1; width: auto; border-bottom-color: var(--af-trait); }
}

/* ---------- Contenu ---------- */
.at-principal { display: block; min-height: 40vh; }
.at-contenu::after { content: ""; display: table; clear: both; }
.at-article-tete { padding-top: 48px; }
.at-article-tete h1, .at-liste h1 { margin: 0 0 8px; color: var(--af-marine); font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.at-date { margin: 0 0 24px; color: var(--af-gris); }
.at-article-image img { display: block; margin-bottom: 24px; border-radius: 6px; }
.at-liste { padding: 48px 0 72px; }
.at-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; padding: 0; list-style: none; }
.at-cartes a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding-bottom: 16px; border: 1px solid var(--af-trait); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--af-texte); }
.at-cartes img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.at-cartes strong, .at-cartes span { padding: 0 16px; }
.at-cartes strong { color: var(--af-marine); font-size: 18px; }
.nav-links { display: flex; gap: 12px; }
.at-contenu .alignleft { float: left; margin: 0 24px 16px 0; }
.at-contenu .alignright { float: right; margin: 0 0 16px 24px; }
.at-contenu .aligncenter { display: block; margin: 0 auto; }

/* ---------- Anciens blocs Jevelin (vcj_*) ---------- */
.at-vcj-titre { margin: 0 0 16px; }
.at-vcj-titre h1, h2.at-vcj-titre { color: var(--af-marine); font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.at-vcj-separateur { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--af-gris); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.at-vcj-separateur::before, .at-vcj-separateur::after { content: ""; flex: 1; border-top: 1px solid var(--af-trait); }
.at-vcj-boite { max-width: 300px; margin: 0 auto; display: flex; gap: 18px; align-items: flex-start; padding: 8px 0; }
.at-vcj-boite strong { display: block; margin-bottom: 4px; font-size: 17px; }
.at-vcj-boite a { color: inherit; }
.at-vcj-bouton { display: inline-block; padding: 10px 22px; border: 2px solid var(--af-marine); border-radius: 30px; text-decoration: none; font-weight: 600; }
.at-vcj-bouton:hover { background: var(--af-marine); color: #fff; }
.at-vcj-portfolio { display: grid; grid-template-columns: repeat(var(--colonnes, 4), 1fr); margin: 0; padding: 0; list-style: none; }
.at-vcj-portfolio a { position: relative; display: block; overflow: hidden; }
.at-vcj-portfolio img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.at-vcj-portfolio span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(20, 41, 79, .8)); color: #fff; font-weight: 600; opacity: 0; transition: opacity .2s; }
.at-vcj-portfolio a:hover img { transform: scale(1.04); }
.at-vcj-portfolio a:hover span, .at-vcj-portfolio a:focus span { opacity: 1; }
.at-vcj-compteur strong { color: var(--af-marine); font-size: 32px; }
.at-vcj-compteur span { color: var(--af-gris); }
.at-vcj-barre { position: relative; margin: 10px 0; padding-bottom: 8px; background: linear-gradient(var(--af-trait), var(--af-trait)) bottom / 100% 4px no-repeat; }
.at-vcj-barre i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--af-marine); }
.at-vcj-partenaires { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.at-vcj-partenaires img { max-height: 80px; width: auto; }
.at-vcj-accordeon { margin: 8px 0; padding: 12px 16px; border: 1px solid var(--af-trait); border-radius: 6px; }
.at-vcj-accordeon summary { cursor: pointer; font-weight: 600; }
@media (max-width: 767px) { .at-vcj-portfolio { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pied de page ---------- */
.at-pied { background: var(--at-pied); color: #c9d1d3; }
.at-pied-grille { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding: 72px 0; }
.at-pied-logo img { display: block; width: 180px; }
.at-pied-photos { display: grid; grid-template-columns: repeat(4, 82px); gap: 14px; margin: 0; padding: 0; list-style: none; }
.at-pied-photos img { display: block; width: 82px; height: 82px; object-fit: cover; transition: opacity .2s; }
.at-pied-photos a:hover img { opacity: .8; }
.at-pied-bai img { display: block; width: 132px; }
.at-copyright { background: #fff; color: var(--af-gris); font-size: 14px; }
.at-copyright .at-conteneur { padding: 20px 0; text-align: center; }
.at-copyright a { color: var(--af-gris); text-decoration: none; }
.at-copyright a:hover { color: var(--af-marine); }
.at-copyright span { margin: 0 8px; }
@media (max-width: 767px) {
	.at-pied-grille { justify-content: center; gap: 32px; padding: 48px 0; }
	.at-pied-photos { grid-template-columns: repeat(4, 64px); gap: 10px; }
	.at-pied-photos img { width: 64px; height: 64px; }
}
.at-haut { position: fixed; right: 30px; bottom: 30px; z-index: 90; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid var(--af-trait); border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--af-marine); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.at-haut.at-visible { opacity: 1; visibility: visible; }
@media print { .at-bandeau, .at-entete, .at-pied, .at-haut { display: none; } }

/* ---------- Grille du constructeur Unyson (anciennes pages) ---------- */
.sh-section-container { width: min(var(--at-largeur), 100% - 48px); margin: 0 auto; padding: 48px 0; }
.fw-row { display: flex; flex-wrap: wrap; margin: 0 -20px; }
.fw-row > [class*="fw-col-"] { width: 100%; padding: 0 20px; }
@media (min-width: 768px) {
	.fw-row > .fw-col-sm-3 { width: 25%; } .fw-row > .fw-col-sm-4 { width: 33.333%; } .fw-row > .fw-col-sm-6 { width: 50%; }
	.fw-row > .fw-col-sm-8 { width: 66.666%; } .fw-row > .fw-col-sm-9 { width: 75%; }
}
.sh-text-block h2, .sh-text-block h3 { color: var(--af-marine); font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
.sh-image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sh-image-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Marges des pages de texte (les rangées pleine largeur gardent les leurs) ---------- */
.at-contenu > :first-child:not([data-vc-full-width]) { margin-top: 40px; }
.at-contenu > :last-child:not([data-vc-full-width]):not(.vc_row-full-width) { margin-bottom: 56px; }
.at-contenu > .fw-page-builder-content > :first-child { margin-top: 0; }
