/*
Theme Name: Les Roquios
Theme URI: https://lesroquios.fr
Author: Amicale laïque du CEPAL
Description: Thème de blocs (édition complète du site) pour Les Roquios — Amicale laïque du CEPAL, Rezé. Tout se modifie depuis l'éditeur : couleurs et polices dans Styles, sections dans Modèles / Motifs.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roquios
*/

/* ==========================================================
   Les couleurs, polices et espacements généraux sont dans
   theme.json (menu « Styles » de l'éditeur de site).
   Ce fichier ne contient que la mise en forme propre aux
   sections de la maquette.
   ========================================================== */

html { scroll-behavior: smooth; }

/* Pas d'espace automatique entre en-tête / contenu / pied de page */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.home-main > * { margin-block: 0 !important; }

/* Gouttière gauche/droite des sections pleine largeur */
.sect,
.site-header,
.site-footer {
	padding-left: var(--wp--style--root--padding-left, 32px);
	padding-right: var(--wp--style--root--padding-right, 32px);
}

/* ---------- En-tête ---------- */
.site-header { padding-top: 20px; padding-bottom: 20px; }
.site-header .headbar { flex-wrap: nowrap; justify-content: space-between; align-items: center; }
.site-header .site-logo-img { margin: 0; }
.site-header .site-logo-img img { height: 65px; width: auto; }
.site-header .navwrap { gap: 18px; flex-wrap: nowrap; align-items: center; }
.site-header .header-cta { margin: 0; }

.main-nav { font-size: 15px; font-weight: 500; }
.main-nav .wp-block-navigation__container { gap: 8px; }
.main-nav .wp-block-navigation-item__content {
	padding: 8px 14px;
	border-radius: 999px;
	color: inherit;
}
.main-nav .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--cream);
	text-decoration: none;
}

/* ---------- Boutons ---------- */
.btn-blue .wp-block-button__link:hover { background-color: #166ca3 !important; }

/* ---------- Bandeau d'accueil ---------- */
.hero { text-align: center; padding-top: 56px; padding-bottom: 0; }

.hero .kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin: 0 auto 26px;
	background: var(--wp--preset--color--cream);
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
}
.hero .kicker::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
}

.hero .hero-title {
	font-size: clamp(32px, 5.4vw, 56px);
	line-height: 1.08;
	max-width: 16ch;
	margin: 0 auto 22px;
}
.hero .lead {
	font-size: 18px;
	color: var(--wp--preset--color--muted);
	max-width: 48ch;
	margin: 0 auto 34px;
}
.hero .ctas { gap: 14px; margin: 0 auto 56px; }

.hero .is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	background: transparent;
	padding: 9px 22px;
}
.hero .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

/* Vague jaune sous le bandeau */
.arc-divider {
	height: 90px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,90 C240,0 1200,0 1440,90 L1440,90 L0,90 Z' fill='%23FBBB27'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* ---------- Bandeau des disciplines ---------- */
.badges { padding-top: 26px; padding-bottom: 26px; gap: 12px 44px; }
.badges .badge {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}
.badges .badge::before {
	content: '';
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: currentColor;
}
.badges .sw-yellow::before { background: var(--wp--preset--color--yellow); }
.badges .sw-red::before    { background: var(--wp--preset--color--red); }
.badges .sw-green::before  { background: var(--wp--preset--color--green); }
.badges .sw-blue::before   { background: var(--wp--preset--color--blue); }

/* ---------- Histoire ---------- */
.histoire { padding-top: 88px; padding-bottom: 88px; }
.histoire .histoire-cols { gap: 56px; margin: 0; align-items: center; }
.histoire .boat {
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.histoire .boat::before {
	content: '';
	position: absolute;
	inset: 14px;
	border-radius: 50%;
	border: 2px dashed rgba(255, 255, 255, .5);
}
.histoire .boat-label {
	font-family: var(--wp--preset--font-family--fredoka);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	max-width: 60%;
	margin: 0;
}
.histoire .histoire-text h2 { font-size: 30px; margin: 0 0 16px; }
.histoire .histoire-text p { color: var(--wp--preset--color--muted); font-size: 16px; max-width: 56ch; margin: 0; }
.histoire .histoire-text p + p { margin-top: 14px; }

/* ---------- Titres de section (partagés) ---------- */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 32px; margin: 0 0 10px; }
.section-head p { color: var(--wp--preset--color--muted); font-size: 15.5px; margin: 0; }

/* ---------- Activités ---------- */
.activities { padding-top: 88px; padding-bottom: 88px; }
.activities .activity-grid { gap: 26px; }

.activity-card { border-radius: 22px; overflow: hidden; height: 100%; gap: 0; }
.activity-card .banner {
	aspect-ratio: 3307 / 430;
	overflow: hidden;
	margin: 0;
	width: 100%;
}
.activity-card .banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.activity-card .card-body { padding: 22px 24px 26px; gap: 8px; flex: 1; }
.activity-card .card-body h3 { font-size: 19px; margin: 0; }
.activity-card .activity-desc { font-size: 14.5px; color: var(--wp--preset--color--muted); margin: 0; flex: 1; }
.activity-card .activity-meta { font-size: 13px; color: #6b6d67; margin: 4px 0 0; line-height: 1.6; }
.activity-card .wp-block-buttons { align-self: flex-start; margin-top: 8px; }

.activity-card .go .wp-block-button__link {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	border: 2px solid var(--wp--preset--color--blue);
	background: transparent;
	transition: all .2s ease-in-out;
}
.activity-card .go .wp-block-button__link::after { content: ' →'; }
.activity-card .go .wp-block-button__link:hover {
	background: var(--wp--preset--color--blue);
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(30, 128, 192, .25);
}

/* ---------- Rejoindre ---------- */
.rejoindre { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.rejoindre .blob { border-radius: 48px; padding: 64px 40px; }
.rejoindre .blob h2 { font-size: 30px; margin: 0 0 14px; }
.rejoindre .blob p { color: #FBDAD7; font-size: 16px; max-width: 48ch; margin: 0 auto 30px; }
.rejoindre .wp-block-buttons { margin: 0; }
.rejoindre .btn-white .wp-block-button__link { padding: 13px 28px; font-size: 15px; font-weight: 700; }
.rejoindre .btn-white .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--yellow) !important;
	color: var(--wp--preset--color--ink) !important;
}

/* ---------- Infos pratiques ---------- */
.pratique { padding-top: 0; padding-bottom: 96px; }
.pratique .pratique-grid { gap: 24px; }
.pratique .pratique-item { text-align: center; padding: 32px 20px; }
.pratique .pratique-item .icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	margin: 0 auto 16px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
}
.pratique .pratique-item h3 { font-size: 17px; margin: 0 0 8px; }
.pratique .pratique-item p:not(.icon) { font-size: 14.5px; color: var(--wp--preset--color--muted); margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { padding-top: 64px; padding-bottom: 28px; color: #EDEBE2; }
.site-footer .foot-cols { gap: 32px; margin: 0; padding-bottom: 40px; }
.site-footer .foot-logo { margin: 0 0 16px; }
.site-footer .foot-logo img { height: 42px; width: auto; }
.site-footer .desc { font-size: 14px; color: #B7B5AC; max-width: 32ch; margin: 0; }
.site-footer h4 { font-size: 14px; color: #fff; margin: 0 0 14px; }
.site-footer .foot-list { list-style: none; padding: 0; margin: 0; }
.site-footer .foot-list li { margin: 0 0 9px; font-size: 14px; color: #B7B5AC; }
.site-footer .foot-list a:hover { color: var(--wp--preset--color--yellow); }
.site-footer .foot-bottom {
	border-top: 1px solid #34372F;
	padding-top: 22px;
	gap: 10px;
	justify-content: space-between;
}
.site-footer .foot-bottom p { margin: 0; font-size: 13px; color: #84827A; }

/* ---------- Pages, articles, 404 ---------- */
.page-main { padding-top: 56px; padding-bottom: 88px; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content a { color: var(--wp--preset--color--blue); text-decoration: underline; }

/* ---------- Adaptation mobile ---------- */
@media (max-width: 880px) {
	.activities .activity-grid,
	.pratique .pratique-grid { grid-template-columns: 1fr; }
	.histoire .histoire-cols { gap: 32px; }
}
