/*
Theme Name: Nabaya Sporting Club 6
Theme URI: https://www.nabaya-sporting.com
Author: Nabaya Sporting Club
Description: Thème officiel et dynamique du Nabaya Sporting Club (NBS) : diaporama d’accueil, effectif, calendrier et résultats de Ligue 2, classement, programme des journées, compte à rebours, photos, vidéos, directs, boutique en ligne (WooCommerce) et formulaire de contact. Tout se gère depuis le menu « Nabaya SC » de l’administration.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nabaya-sc
Tags: sport, football, club, one-column, custom-menu, featured-images
*/

/* Les styles principaux sont dans assets/css/site.css. Ajustements propres à WordPress ci-dessous. */

body.admin-bar header.site{top:32px}
@media (max-width:782px){body.admin-bar header.site{top:46px}}
nav.main .current-menu-item>a,nav.main .current_page_item>a,nav.main .current-menu-ancestor>a{background:rgba(255,255,255,.1);color:#fff}
nav.main li{position:relative}
.brand .custom-logo{width:58px;height:58px;object-fit:contain}

/* Contenus éditoriaux (actualités, pages) */
.entry{max-width:760px}
.entry-content{font-size:1.08rem;line-height:1.75}
.entry-content h2{font-size:clamp(2rem,4vw,2.8rem);margin:1.6em 0 .5em}
.entry-content h3{font-size:1.7rem;margin:1.4em 0 .4em}
.entry-content p,.entry-content ul,.entry-content ol{margin:0 0 1.1em}
.entry-content img{height:auto;border-radius:6px}
.entry-content a{color:var(--red);text-underline-offset:3px}
.entry-content blockquote{margin:1.5em 0;padding-left:20px;border-left:6px solid var(--red);font-family:var(--display);font-weight:800;font-size:1.8rem;text-transform:uppercase;line-height:1.05}
.entry-thumb{margin:0 0 32px;border-radius:8px;overflow:hidden}
.entry-thumb img{width:100%;height:auto}
.entry-meta{color:var(--muted);font-weight:600;margin-top:14px}
.alignwide{max-width:1100px}
.alignfull{width:100vw;margin-left:calc(50% - 50vw)}
.wp-caption-text,.wp-element-caption{font-size:.9rem;color:var(--muted)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Liste d’actualités */
.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.post-card{position:relative;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--bg);display:flex;flex-direction:column}
.post-card .pic{aspect-ratio:16/9;background:var(--navy);display:flex;align-items:center;justify-content:center;overflow:hidden}
.post-card .pic img{width:100%;height:100%;object-fit:cover}
.post-card .pic img.tree{width:auto;height:80%;object-fit:contain}
.post-card .txt{padding:20px 22px 24px}
.post-card time{display:block;color:var(--red);font-weight:700;font-size:.9rem;margin-bottom:8px}
.post-card h3{font-size:1.7rem;margin-bottom:10px}
.post-card h3 a{text-decoration:none}
.post-card h3 a::after{content:"";position:absolute;inset:0}
.post-card p{color:var(--muted);margin:0}
.pagination{display:flex;gap:8px;margin-top:40px;flex-wrap:wrap}
.pagination .page-numbers{padding:8px 14px;border:2px solid var(--line);border-radius:4px;text-decoration:none;font-weight:700}
.pagination .current{background:var(--navy);border-color:var(--navy);color:#fff}

/* Formulaire de contact : retour serveur */
.cnotice{margin:0;padding:12px 14px;border-radius:6px;font-weight:700}
.cnotice.ok{background:#1C7C4A;color:#fff}
.cnotice.err{background:#FFE3E7;color:var(--red-deep)}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* Page 404 */
.notfound{text-align:center;padding-block:clamp(80px,12vw,160px)}
.notfound h1{font-size:clamp(4rem,14vw,10rem);text-transform:uppercase}
