/*
Theme Name: SFAF
Theme URI: https://www.sfaf.com/
Description: Thème WordPress reproduisant la maquette du site sfaf.com (Société Française des Analystes Financiers). Les styles d'origine sont chargés depuis assets/site/css/styles.min.css.
Version: 1.4.2
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: sfaf
Notes: Les fonctions (formations, commissions, base documentaire, agenda, formulaires, cookies) sont fournies par l'extension « SFAF — Fonctions du site vitrine » (sfaf-core).
*/

/* Ajustements propres à WordPress (les styles du site sont dans assets/site/css/styles.min.css) */
/* Barre d'administration : l'en-tête est en position relative (WordPress décale déjà la page).
   Seul le panneau du menu mobile, en position fixe, doit être décalé. */
.admin-bar header > .container, .admin-bar header > .container > .d-flex { top: 32px; }
@media (max-width: 782px) { .admin-bar header > .container, .admin-bar header > .container > .d-flex { top: 46px; } }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sfaf-pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; }
.sfaf-pagination .page-numbers { padding: 6px 12px; border: 1px solid #ccc; }
.sfaf-pagination .current { background: #1d2a5b; color: #fff; }

/* v1.1 — recherche globale */
.sfaf-search-results .label { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #0080c4; margin-bottom: 4px; }
.sfaf-search-results li { list-style: none; padding: 16px 0; border-bottom: 1px solid #e3e6ec; }
.sfaf-search-results li a { text-decoration: none; }
.sfaf-search-results .excerpt { display: block; color: #444; font-size: 14px; margin-top: 4px; }
.sfaf-search-form { display: flex; gap: 10px; margin: 0 0 20px; }
.sfaf-search-form input { flex: 1; padding: 10px; border: 1px solid #ccc; font: inherit; }

/* Accueil : bandeau (Membres SFAF à droite du titre), puis à la une à gauche et 3 dernières actualités à droite. */
body.page-home>.banner .sfaf-banner-members{width:46.4rem;max-width:100%;color:#fff}
body.page-home>.banner .sfaf-banner-members .membres-sfaf h2{margin:0 0 .5rem;font-size:2.075rem;color:#fff;font-weight:400;text-transform:none}
body.page-home>.banner .sfaf-banner-members ul{list-style:none;margin:0;padding:0}
body.page-home>.banner .sfaf-banner-members li{margin:0;padding:1rem 0;border-top:1px solid rgba(255,255,255,.25);font-size:1.4rem}
body.page-home>.banner .sfaf-banner-members a.d-flex{display:flex;align-items:center;color:#fff;text-decoration:none}
body.page-home>.banner .sfaf-banner-members a.d-flex:hover .text,body.page-home>.banner .sfaf-banner-members a.d-flex:focus .text{text-decoration:underline}
body.page-home>.banner .sfaf-banner-members .image{display:block;flex:0 0 7.15rem;width:7.15rem;height:6rem;background:center/cover no-repeat}
body.page-home>.banner .sfaf-banner-members .text{display:block;padding-left:1.2rem;font-weight:500;line-height:1.3}
@media (max-width:1023px){body.page-home>.banner .sfaf-banner-members{width:100%;margin-top:2rem}}

body.page-home>.bloc-white.sfaf-home-top{padding:3rem 0 2.4rem}
body.page-home>.bloc-white.sfaf-home-top>.container>.d-flex{display:flex;flex-direction:column;gap:2.4rem;justify-content:flex-start;flex-wrap:nowrap}
.sfaf-home-main{min-width:0}
.sfaf-latest__heading{margin:0 0 .5rem;font-size:2.075rem;color:#0080c4}
.sfaf-latest{list-style:none;margin:0;padding:0}
.sfaf-latest li{margin:0;padding:1.4rem 0;border-top:1px solid #f2f2f3}
.sfaf-latest a{display:flex;align-items:center;gap:1.2rem;color:#213045;text-decoration:none}
.sfaf-latest a:hover .sfaf-latest__title,.sfaf-latest a:focus .sfaf-latest__title{text-decoration:underline}
.sfaf-latest__img{flex:0 0 8rem;width:8rem;height:6.4rem;background:#e9edf2 center/cover no-repeat}
.sfaf-latest__text{display:block;font-size:1.3rem;font-weight:600;line-height:1.3}
.sfaf-latest__title{display:block}
.sfaf-latest__date{display:block;margin-top:.4rem;font-size:1.1rem;font-weight:400;color:#4d4d4d}
@media (min-width:1024px){
	body.page-home>.bloc-white.sfaf-home-top>.container>.d-flex{flex-direction:row;align-items:flex-start;gap:3.2rem}
	.sfaf-home-main{flex:1 1 auto}
	.sfaf-home-side{flex:0 0 27rem;width:27rem}
}

/* Accueil : « Les formations à la une » sur 3 colonnes. */
body.page-home>.bloc-white.sfaf-home-formations{padding:2.4rem 0 3rem;border-top:1px solid #dbdbdb}
.sfaf-formations-une__heading{margin:0 0 1.6rem;font-size:2.075rem;color:#009459}
.sfaf-formations-une{display:grid;grid-template-columns:1fr;gap:2rem;list-style:none;margin:0;padding:0}
.sfaf-formations-une li{margin:0;padding:0}
.sfaf-formations-une a{display:block;color:#213045;text-decoration:none}
.sfaf-formations-une__img{position:relative;display:block;height:16rem;background:linear-gradient(135deg,#213055,#0080c4) center/cover no-repeat}
.sfaf-formations-une__tag{position:absolute;left:0;bottom:0;padding:.4rem 1.2rem;background:#009459;color:#fff;font-size:1.2rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.sfaf-formations-une__title{display:block;margin-top:1rem;font-size:1.5rem;font-weight:700;line-height:1.3}
.sfaf-formations-une a:hover .sfaf-formations-une__title,.sfaf-formations-une a:focus .sfaf-formations-une__title{text-decoration:underline}
.sfaf-formations-une__all{margin:1.6rem 0 0;font-size:1.3rem;font-weight:700}
.sfaf-formations-une__all a{color:#009459}
@media (min-width:768px){.sfaf-formations-une{grid-template-columns:repeat(3,1fr)}}

.sfaf-home-main .sfaf-une__image,.sfaf-home-main .sfaf-une__img{height:350px;min-height:350px}
