/* Pluriels et singuliers — feuille de style unique (reproduction du thème WordPress d'origine) */

@font-face {
	font-family: 'Raleway';
	src: url('/assets/fonts/raleway-normal.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Raleway';
	src: url('/assets/fonts/raleway-italic.woff2') format('woff2');
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

:root {
	--texte: #404040;
	--noir: #000;
	--jaune-hover: #fed709;
	--vert: #11a279;
	--bleu: #90c9dd;
	--violet: #7075a7;
	--rose: #c65979;
	--jaune: #f9b11b;
	--canard: #1a736d;
	--panneau: #212121;
	--largeur: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--texte);
	font: 300 1.2rem/1.3 'Raleway', sans-serif;
}

img { max-width: 100%; height: auto; border: 0; }
p { margin: 0 0 1.5em; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { clear: both; }
h1 { font-weight: 300; font-size: 59px; line-height: 63px; max-width: 300px; margin: .67em 0; }
h2 { font-size: 1.5em; font-weight: 700; margin: .83em 0; }
h4 { font-size: 1em; font-weight: 700; margin: 0 0 1.5em; }
a, a:visited { color: var(--texte); }

.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 5px; left: 5px; z-index: 100000; width: auto; height: auto; clip: auto;
	padding: 12px 20px; background: #f1f1f1; color: #21759b;
}

.container { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête ---------- */
.site-header .container { position: relative; display: flex; align-items: flex-start; }
.logo { display: block; position: relative; z-index: 2; margin-top: 20px; }
.logo img { display: block; width: 264px; }

.nav-top { position: absolute; top: 48px; right: 0; display: flex; gap: 40px; z-index: 3; }
.nav-top a, .menu a {
	color: var(--noir);
	text-transform: lowercase;
	text-decoration: underline;
}
.nav-top a { font-size: 28px; }
.nav-top a:hover, .nav-top a[aria-current="page"],
.menu a:hover, .menu a[aria-current="page"] { color: var(--jaune-hover); }

/* Bouton hamburger (style "boring" du plugin d'origine) */
.burger {
	flex: 0 0 85px; height: 35px; margin-top: 65px;
	padding: 0 0 0 5px; border: 0; background: transparent; cursor: pointer;
	position: relative; z-index: 4;
}
.burger span, .burger span::before, .burger span::after {
	display: block; position: absolute; width: 55px; height: 2px;
	background: var(--noir); border-radius: 4px; transition: transform .15s ease, opacity .15s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ''; }
.burger span::before { top: -18px; }
.burger span::after { bottom: -18px; }
.burger[aria-expanded="true"] span { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { top: 0; opacity: 0; }
.burger[aria-expanded="true"] span::after { bottom: 0; transform: rotate(-90deg); }

/* Menu complet : ligne horizontale sous la navigation (desktop) */
.menu {
	position: absolute; top: 110px; left: 360px; right: 20px; z-index: 3;
	visibility: hidden; opacity: 0; transform: translateX(-60px);
	transition: transform .5s, opacity .5s, visibility .5s;
}
.menu.is-open { visibility: visible; opacity: 1; transform: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 18px; }
.menu a { font-size: 21px; line-height: 1.6; }
.menu a.casse { text-transform: none; }
.menu .mobile-only, .menu .sous-menu { display: none; }

/* ---------- Contenu ---------- */
.site-main { padding-top: 57px; }
.home .site-main { padding-top: 87px; }
.page-title { margin-top: 40px; }
.home .page-title { display: none; }

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px; flex: 0 0 100%; max-width: 100%; }
.col-3 { flex-basis: 25%; max-width: 25%; }
.col-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
.col-6 { flex-basis: 50%; max-width: 50%; }
.col-8 { flex-basis: 66.6666%; max-width: 66.6666%; }
.decale-200 { padding-top: 200px; }
.decale-32 { padding-top: 32px; }
.bloc { margin-bottom: 35px; }

.legende { text-align: center; font-size: 15px; }
.photo-profil { text-align: right; padding-top: 16px; }
.photo-profil img { width: 300px; }

/* Formulaire de contact (reprend le style Formidable d'origine) */
.formulaire { display: flex; flex-wrap: wrap; gap: 0 15px; margin-top: 2em; }
.champ { flex: 0 0 100%; margin-bottom: 20px; }
.champ.demi { flex: 1 1 calc(50% - 8px); }
.champ label { display: block; font-size: 15px; font-weight: 400; margin-bottom: 5px; }
.champ label span { color: #b94a48; }
.champ input, .champ textarea {
	width: 100%; padding: 6px 10px; border: 1px solid #bfc3c8; border-radius: 0;
	font: 400 15px/1.3 'Raleway', sans-serif; color: var(--texte); background: #fff;
}
.champ textarea { min-height: 105px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--canard); outline-offset: 0; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mention-form { flex: 0 0 100%; font-size: 14px; margin-bottom: 1.5em; }
.formulaire button {
	margin-top: 15px; padding: 12px 20px; border: 1px solid #3e3e3e; border-radius: 0;
	background: #3e3e3e; color: #fff; font: 400 15px 'Raleway', sans-serif; cursor: pointer;
}
.formulaire button:hover, .formulaire button:focus { background: #fff; color: #3e3e3e; }
.retour { display: none; padding: 12px 15px; border-left: 4px solid; }
.retour:target { display: block; }
.retour-ok { border-color: var(--vert); background: #eaf7f2; }
.retour-erreur { border-color: var(--rose); background: #fbeef2; }

/* Bandeau cookies */
.bandeau-cookies {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center; gap: 15px 30px;
	padding: 15px 20px; background: #fff; border-top: 1px solid #ddd;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, .08); font-size: 15px;
}
.bandeau-cookies p { margin: 0; max-width: 700px; }
.bandeau-actions { display: flex; gap: 10px; }
.bandeau-actions button {
	min-width: 120px; padding: 10px 18px; border: 1px solid #3e3e3e; border-radius: 0;
	background: #3e3e3e; color: #fff; font: 400 15px 'Raleway', sans-serif; cursor: pointer;
}
.bandeau-actions button:hover, .bandeau-actions button:focus { background: #fff; color: #3e3e3e; }
button.lien { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Couleurs des cinq cœurs */
.vert { color: var(--vert); }
.bleu { color: var(--bleu); }
.violet { color: var(--violet); }
.rose { color: var(--rose); }
.jaune { color: var(--jaune); }
.vert, .bleu, .violet, .rose, .jaune { font-weight: 700; }
.taille28 { font-size: 28px; }

a.cta { font-size: 28px; font-weight: 700; }
a.cta-bleu { color: var(--bleu); }
a.cta-vert { color: var(--vert); }
a.cta-rose { color: var(--rose); }
a.cta-jaune { color: var(--jaune); }
a.cta-violet { color: var(--violet); }

/* Accordéons (Multiple Natures, Lire la suite) */
details { margin-bottom: 1.5em; }
summary {
	cursor: pointer; list-style: none; font-weight: 700;
	text-decoration: underline; padding: 19px 0 10px;
}
summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 1.5em; }

/* Accueil : les cinq cœurs et leurs libellés */
.coeurs-home { list-style: none; margin: 0; padding: 0 0 0 15px; }
.coeurs-home li { display: flex; align-items: center; margin-bottom: 35px; opacity: 0; animation: fondu .5s .25s forwards; }
.coeurs-home a { font-size: 28px; }
.coeurs-home img { display: block; width: 160px; margin-right: 10px; }

@keyframes fondu { to { opacity: 1; } }

/* ---------- Pied de page ---------- */
.site-footer { padding-top: 32px; }
.coeurs-footer { list-style: none; margin: 32px -15px 0; padding: 0; display: flex; height: 240px; position: relative; }
.coeurs-footer li { flex: 0 0 20%; text-align: center; opacity: 0; animation: fondu .5s .25s forwards; }
.coeurs-footer img { width: 160px; display: block; margin: 0 auto; }
.coeurs-footer span { display: none; position: absolute; left: 0; right: 0; text-align: center; }
.coeurs-footer li:hover span, .coeurs-footer a:focus span { display: block; }
.home .coeurs-footer,
[data-coeur="1"] .coeurs-footer li:nth-child(1),
[data-coeur="2"] .coeurs-footer li:nth-child(2),
[data-coeur="3"] .coeurs-footer li:nth-child(3),
[data-coeur="4"] .coeurs-footer li:nth-child(4),
[data-coeur="5"] .coeurs-footer li:nth-child(5) { display: none; }

.credit { text-align: center; margin: 32px 0 1em; }
.credit img { width: 20px; position: relative; top: 4px; }
.credit a { position: relative; text-decoration: none; transition: color .3s; }
/* Effet « trois points » au survol (effet 13 d'origine) */
.credit a::before {
	content: '•'; position: absolute; top: 70%; left: 50%; transform: translateX(-50%);
	color: transparent; font-size: 1.2em; pointer-events: none;
	transition: text-shadow .3s, color .3s;
}
.credit a:hover, .credit a:focus { color: var(--canard); }
.credit a:hover::before, .credit a:focus::before { color: var(--canard); text-shadow: 10px 0 var(--canard), -10px 0 var(--canard); }

.mentions { text-align: center; font-size: 14px; margin: 0 0 2em; }

/* ---------- Mobile (< 750px) ---------- */
@media (max-width: 750px) {
	h1 { font-size: 44px; line-height: 50px; text-align: center; max-width: 100%; }
	.col-3, .col-4, .col-6, .col-8 { flex-basis: 100%; max-width: 100%; }
	.decale-200, .decale-32 { padding-top: 0; }

	.site-header .container { justify-content: center; padding-top: 15px; }
	.nav-top { display: none; }
	.burger {
		position: fixed; top: 15px; right: 5%; z-index: 99999;
		width: 80px; height: 80px; margin: 0; padding: 0 0 0 12px; background: #fff;
	}
	.menu {
		position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: 75%; z-index: 99998;
		overflow-y: auto; padding: 100px 5% 30px; background: var(--panneau);
		transform: translateX(-100%); opacity: 1;
	}
	.menu > ul { display: block; }
	.menu .mobile-only, .menu .sous-menu { display: block; }
	.menu a, .menu a:visited { color: #fff; font-size: 18px; line-height: 40px; text-decoration: none; text-transform: none; }
	.menu .groupe { color: #fff; font-size: 18px; line-height: 40px; display: block; }
	.menu .sous-menu { padding-left: 15px; }
	.menu .sous-menu a { font-size: 16px; }

	.coeurs-home { padding: 0; }
	.coeurs-home li { flex-direction: column; text-align: center; }
	.coeurs-home img { margin: 0 0 15px; }
	.coeurs-footer { display: none; }
	.photo-profil { text-align: center; padding-top: 0; }
	.champ.demi { flex-basis: 100%; }
	.bandeau-cookies { flex-direction: column; align-items: stretch; }
}

/* Écrans moyens : la navigation se cale à droite (comme l'original) */
@media (min-width: 751px) and (max-width: 1190px) {
	.logo img { width: 230px; }
	.nav-top a { font-size: 24px; }
}
