/*
Theme Name: BébéParent(hèse)
Description: Thème du site BébéParent(hèse), d'après la maquette v3 « Berceuse » : couleurs du logo, polices hébergées sur le site, mise en page verrouillée (Camille modifie textes et photos, pas la structure).
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Author: Louis Fourage
Text Domain: bebeparenthese
License: GPL-2.0-or-later
*/

/* ---------- Réglages communs ---------- */
:root {
	--bp-carte-r: 28px;
	--bp-r-lg: 36px;
	--bp-r-sm: 14px;
	--bp-ligne: #E7DFD3;
	--bp-gris: #69655A;
	--bp-bord: #A6AB90;
	--bp-sauge: #C3C6AC;
	--bp-peche: #F3C7B2;
	--bp-puce: #B98C76;
	--bp-sec-pad: clamp(56px, 8vw, 104px);
}
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks *, .wp-site-blocks *::before, .wp-site-blocks *::after, .editor-styles-wrapper * { box-sizing: border-box; }
:where(h1, h2, h3) { text-wrap: balance; overflow-wrap: break-word; }
li::marker { color: var(--bp-puce); }
:focus-visible { outline: 3px solid var(--wp--preset--color--titre); outline-offset: 3px; }
.screen-reader-text:focus { clip: auto; }

/* Les sections pleine largeur se touchent, sans espace blanc entre elles */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull,
.wp-block-post-content > .wp-block-block > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.wp-block-post-content > .wp-block-block { margin-block-start: 0; }

/* ---------- En-tête ---------- */
.bp-entete { background: var(--wp--preset--color--creme); }
.bp-entete > .wp-block-group { min-height: 82px; gap: 18px; }
.bp-marque { gap: 12px; }
.bp-marque .wp-block-site-logo img { width: 64px; height: auto; }
.bp-entete .wp-block-site-title { line-height: 1.05; letter-spacing: -0.01em; }
.bp-entete .wp-block-navigation { gap: 22px; }
.bp-entete .wp-block-navigation-item a { padding: 12px 0; color: var(--wp--preset--color--encre); }
.bp-entete .wp-block-navigation-item.current-menu-item > a,
.bp-entete .wp-block-navigation-item a[aria-current="page"] {
	color: var(--wp--preset--color--titre);
	text-decoration: underline; text-decoration-color: var(--bp-peche);
	text-underline-offset: 7px; text-decoration-thickness: 3px;
}
.bp-entete .wp-block-button__link { padding: 12px 20px; }
.bp-entete .wp-block-navigation__responsive-container-open {
	border: 2px solid var(--bp-bord); border-radius: 999px; padding: 8px 14px; color: var(--wp--preset--color--titre);
}
.bp-entete .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.bp-entete .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { font-size: 18px; }
/* Lien « Prendre rendez-vous » dans le menu : seulement dans le menu du téléphone (sinon c'est le bouton) */
.bp-entete .bp-nav-mobile { display: none !important; }
.bp-entete .is-menu-open .bp-nav-mobile { display: flex !important; font-weight: 700; }
@media (max-width: 1080px) { .bp-entete .wp-block-navigation { gap: 16px; font-size: 15px; } }
@media (max-width: 600px) {
	.bp-marque .wp-block-site-logo img { width: 48px; }
	.bp-entete .wp-block-site-title { font-size: 19px !important; }
	.bp-entete .bp-entete-bouton { display: none; }
}

/* ---------- Sections ---------- */
.bp-sec { padding-top: var(--bp-sec-pad); padding-bottom: var(--bp-sec-pad); }
/* Deux sections de suite sur le même fond clair : pas de double marge */
.bp-sec:not(.has-background) + .bp-sec:not(.has-background) { padding-top: 0; }
.bp-sec-tete { text-align: center; max-width: 62ch; margin-inline: auto !important; margin-bottom: 40px; }
.bp-sec-tete p { color: var(--bp-gris); font-size: 18px; }

/* Bandeau des pages intérieures (et de l'accueil) : arrondi en bas, fond crème */
.bp-bandeau {
	background: var(--wp--preset--color--creme);
	border-radius: 0 0 40px 40px;
	text-align: center;
	padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px);
	position: relative; z-index: 1;
}
.bp-bandeau p { max-width: 60ch; margin-inline: auto !important; font-size: 19px; }
.bp-bandeau + .bp-sec { margin-top: -40px !important; padding-top: calc(var(--bp-sec-pad) + 40px); }

/* Accueil */
.bp-hero { border-radius: 0 0 50% 50% / 0 0 9% 9%; padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(64px, 8vw, 104px); }
.bp-hero + .bp-sec { margin-top: -90px !important; padding-top: calc(var(--bp-sec-pad) + 90px); }
.bp-hero .wp-block-image { margin-inline: auto; margin-bottom: 4px; }
.bp-hero .wp-block-image img { width: min(100%, 500px); height: auto; }
.bp-hero h1 { font-size: clamp(36px, 5.2vw, 64px); max-width: 17ch; margin-inline: auto !important; }
.bp-hero .wp-block-buttons { justify-content: center; }
.bp-lead { font-size: clamp(18px, 1.9vw, 21px) !important; max-width: 52ch; margin-inline: auto !important; }
.bp-lieu { font-size: 15px; color: var(--bp-gris); }
@media (max-width: 782px) {
	.bp-hero { border-radius: 0 0 36px 36px; padding-bottom: 48px; }
	.bp-hero .wp-block-image img { width: min(100%, 340px); }
	.bp-hero + .bp-sec { margin-top: -36px !important; padding-top: calc(56px + 36px); }
}

/* Mots-clés : texte en couleur, gros point entre chaque mot */
ul.bp-mots { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 16px; }
ul.bp-mots li { margin: 0; display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: clamp(17px, 1.8vw, 20px); color: #5A6A4B; }
ul.bp-mots li:nth-child(2) { color: #A2573A; }
ul.bp-mots li + li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--bp-sauge); flex: none; }
ul.bp-mots li:nth-child(3)::before { background: var(--bp-peche); }
@media (max-width: 480px) {
	ul.bp-mots { gap: 0 9px; flex-wrap: nowrap; }
	ul.bp-mots li { font-size: 15px; gap: 9px; white-space: nowrap; }
	ul.bp-mots li + li::before { width: 7px; height: 7px; }
}

.bp-intro { max-width: 64ch; margin-inline: auto !important; text-align: center; }
.bp-intro p { font-size: 18px; }
.bp-citation {
	font-family: var(--wp--preset--font-family--fraunces); font-weight: 500;
	font-size: clamp(22px, 2.6vw, 30px) !important; line-height: 1.3; color: var(--wp--preset--color--titre);
}
.bp-intro .bp-citation { margin-top: 28px; }

/* ---------- Cartes ---------- */
.bp-carte {
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--bp-ligne); border-radius: var(--bp-carte-r);
	padding: 32px;
}
.bp-carte > * + * { margin-block-start: 12px; }
.bp-carte h3 + * { margin-block-start: 12px; }
@media (max-width: 782px) { .bp-carte { padding: 24px; } }
.bp-grille { gap: 24px; }

/* Pastilles dessinées au trait, comme le logo (dessin en CSS : rien à casser pour Camille) */
.bp-ico-am::before, .bp-ico-ta::before, .bp-ico-pa::before {
	content: ""; display: block; width: 76px; height: 76px; border-radius: 50%;
	margin-bottom: 18px; background-repeat: no-repeat; background-position: center; background-size: 44px 44px;
}
.bp-ico-am::before {
	background-color: var(--wp--preset--color--peche-doux);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='%237E886B' d='M24 6c-5 7-12 15-12 23a12 12 0 0 0 24 0c0-8-7-16-12-23z'/%3E%3Cpath stroke='%23DE9F84' d='M18 30a6 6 0 0 0 6 6'/%3E%3C/svg%3E");
}
.bp-ico-ta::before {
	background-color: var(--wp--preset--color--sauge-doux);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='%23DE9F84' d='M20 12v-2a4 4 0 0 1 8 0v2'/%3E%3Crect stroke='%237E886B' x='17' y='12' width='14' height='5' rx='2'/%3E%3Cpath stroke='%237E886B' d='M17.5 17h13l1.5 4v19a4 4 0 0 1-4 4h-8a4 4 0 0 1-4-4V21zM21 26h4M21 31h4M21 36h4'/%3E%3C/svg%3E");
}
.bp-ico-pa::before {
	background-color: var(--wp--preset--color--peche-doux);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle stroke='%237E886B' cx='17' cy='15' r='5.5'/%3E%3Ccircle stroke='%23DE9F84' cx='31' cy='17' r='4.5'/%3E%3Cpath stroke='%237E886B' d='M7 40c1-9 6-14 10-14s9 5 10 14'/%3E%3Cpath stroke='%23DE9F84' d='M23 40c1-7 4-11 8-11s7 4 8 11'/%3E%3C/svg%3E");
}

/* Formules : lignes de prix, encadré « inclus », lien en bas de carte */
.bp-offre { display: flex; flex-direction: column; }
/* Sur l'accueil (cartes sans liste détaillée), l'introduction pousse les prix en bas : les cartes s'alignent */
.bp-offre:not(:has(.bp-detail)) > p:first-of-type { flex-grow: 1; }
.bp-lignes { border-top: 1px solid var(--bp-ligne); margin-block-start: 18px !important; gap: 0 !important; }
.bp-lignes > .bp-ligne { margin: 0 !important; }
.bp-ligne { padding: 10px 0; border-bottom: 1px solid var(--bp-ligne); font-size: 15.5px; gap: 12px; }
.bp-ligne > p { margin: 0; }
.bp-ligne > .bp-prix { white-space: nowrap; color: var(--wp--preset--color--titre); font-weight: 700; }
.bp-inclus { font-size: 15px; color: #7A4E3A; background: var(--wp--preset--color--peche-doux); border-radius: 12px; padding: 9px 13px; margin-block-start: 14px !important; }
.bp-plus { margin-top: auto !important; padding-top: 18px; font-weight: 600; }
.bp-plus a { padding: 8px 0; display: inline-block; }
ul.bp-detail { margin-block-start: 14px; }

/* Suivi : le cercle « 14 jours » */
.bp-lune {
	width: min(100%, 340px); aspect-ratio: 1; border-radius: 50%;
	background: var(--wp--preset--color--blanc);
	display: flex !important; flex-direction: column; justify-content: center; align-items: center; text-align: center;
	box-shadow: -26px 12px 0 -6px var(--bp-peche); margin-inline: auto; padding: 24px;
}
.bp-lune > * { margin: 0 !important; }
.bp-lune > * + * { margin-top: 8px !important; }
.bp-grand {
	font-family: var(--wp--preset--font-family--fraunces); font-weight: 500;
	font-size: clamp(46px, 6.6vw, 80px) !important; line-height: .9; letter-spacing: -0.01em;
	color: var(--wp--preset--color--titre); white-space: nowrap;
}
.bp-pastille { display: inline-block; font-size: 14.5px; font-weight: 600; padding: 5px 13px; border-radius: 999px; background: var(--wp--preset--color--blanc); color: #4C5741; }
@media (max-width: 782px) { .bp-lune { width: min(100%, 270px); } }

/* Qui suis-je : photo arrondie avec ombre décalée */
.bp-photo img { border-radius: var(--bp-r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 22px 18px 0 -6px var(--wp--preset--color--vert-pale); }
.bp-photo figcaption { font-size: 13px; color: var(--bp-gris); text-align: center; }

/* Mes formations : diplômes en pastilles */
.bp-diplomes { justify-content: center; gap: 16px; }
.bp-diplome {
	background: var(--wp--preset--color--blanc); border: 1px solid var(--bp-ligne); border-radius: 999px;
	padding: 8px 24px 8px 8px; gap: 14px; margin: 0 !important;
}
.bp-diplome::before { width: 52px !important; height: 52px !important; margin: 0 !important; background-size: 30px 30px !important; flex: none; }
.bp-diplome p { font-family: var(--wp--preset--font-family--fraunces); font-weight: 500; font-size: clamp(19px, 2vw, 22px); color: var(--wp--preset--color--titre); line-height: 1.2; margin: 0; }
@media (max-width: 782px) { .bp-diplome { width: 100%; border-radius: var(--bp-carte-r); } }

/* Accompagnement parental */
.bp-chapeau { font-family: var(--wp--preset--font-family--fraunces); font-size: clamp(22px, 2.4vw, 27px) !important; line-height: 1.3; color: var(--wp--preset--color--titre); }
.bp-appel { background: var(--wp--preset--color--peche-doux) !important; border-color: transparent !important; gap: 28px; margin-top: 40px !important; }
.bp-appel > .wp-block-buttons { flex: none; }
.bp-appel .wp-block-button__link { white-space: nowrap; }
@media (max-width: 782px) { .bp-appel { flex-direction: column; align-items: stretch !important; } }

/* Tableau des tarifs */
.bp-tableau table { border-collapse: collapse; width: 100%; font-size: 16px; }
.bp-tableau th, .bp-tableau td { text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--bp-ligne); vertical-align: top; }
.bp-tableau th { font-size: 14.5px; color: var(--bp-gris); font-weight: 600; }
.bp-tableau td:last-child, .bp-tableau th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.bp-tableau td:last-child { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 20px; color: var(--wp--preset--color--titre); }

/* Page Tarifs */
.bp-gros-prix { font-family: var(--wp--preset--font-family--fraunces); font-weight: 500; font-size: clamp(52px, 6vw, 72px) !important; line-height: 1; color: var(--wp--preset--color--titre); margin: 6px 0 10px !important; }
.bp-gris { color: var(--bp-gris); }
.bp-groupe + .bp-groupe { margin-top: 64px !important; }
.bp-groupe > h2, .bp-groupe > .bp-sous-titre { text-align: center; }
.bp-sous-titre { color: var(--bp-gris); font-size: 18px; margin-bottom: 28px !important; }
.bp-liste-prix > .bp-ligne { padding: 14px 0; align-items: center; }
.bp-ligne > .wp-block-group > * + * { margin-block-start: 2px; }
.bp-liste-prix .bp-prix { font-family: var(--wp--preset--font-family--fraunces); font-weight: 500 !important; font-size: 34px; line-height: 1; }
.bp-liste-prix small, .bp-precision { display: block; color: var(--bp-gris); font-size: 14.5px; }
.bp-note { margin-top: 28px !important; padding: 18px 22px; border-radius: var(--bp-carte-r); background: var(--wp--preset--color--blanc); border: 1px solid var(--bp-ligne); }
@media (max-width: 782px) { .bp-liste-prix .bp-prix { font-size: 28px; } }

/* Étapes numérotées */
ol.bp-etapes { counter-reset: etape; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
ol.bp-etapes > li { counter-increment: etape; margin: 0; }
ol.bp-etapes > li::before {
	content: counter(etape); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--wp--preset--color--vert-pale); color: #3F4935; font-weight: 700; margin-bottom: 10px;
}
@media (max-width: 900px) { ol.bp-etapes { grid-template-columns: minmax(0, 1fr); } }

/* Emplacements à venir (photos, carte, réservation) */
.bp-zone {
	border-radius: var(--bp-carte-r); border: 2px dashed var(--bp-bord); min-height: 170px;
	display: flex !important; align-items: center; justify-content: center; text-align: center;
	color: var(--bp-gris); padding: 20px; font-weight: 600;
}

/* Pages légales */
.bp-prose { max-width: 74ch; }
.bp-prose h2 { font-size: clamp(23px, 2.6vw, 28px); margin-top: 38px !important; }
.bp-avertissement { padding: 16px 20px; border-radius: var(--bp-carte-r); background: var(--wp--preset--color--beige); border: 1px solid var(--bp-ligne); }
mark.a-completer, .a-completer { color: var(--bp-gris); background: var(--wp--preset--color--beige); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.bp-fin { font-size: 14px; color: var(--bp-gris); }

/* Boutons secondaires (contour) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--titre); border-color: var(--bp-bord);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--sauge-doux); }
@media (max-width: 782px) {
	.bp-sec .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.bp-sec .wp-block-button { width: 100%; }
	.bp-sec .wp-block-button__link { width: 100%; }
}

/* Colonnes */
.wp-block-columns.bp-colonnes { gap: clamp(32px, 5vw, 56px); margin-bottom: 0; }
.bp-colonnes .wp-block-column > .wp-block-group > * + * { margin-block-start: 16px; }
.bp-colonnes .bp-carte + .bp-carte { margin-block-start: 16px; }
.bp-modalites { margin-top: 44px !important; }
.bp-photos-a-venir { margin-top: 36px !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 782px) { .bp-photos-a-venir { grid-template-columns: minmax(0, 1fr) !important; } }
.bp-photos-a-venir .bp-zone { min-height: 190px; margin: 0; font-size: 15px; }

/* ---------- Pied de page ---------- */
.bp-pied { background: var(--wp--preset--color--pied); color: #F6F1E8; padding-top: 52px; padding-bottom: 36px; font-size: 15px; }
.bp-pied a { color: #F6F1E8; }
.bp-pied .wp-block-site-title { font-size: 24px; }
.bp-pied .wp-block-site-title a { color: #F6F1E8; }
.bp-pied ul { list-style: none; padding: 0; margin: 0; }
.bp-pied li { margin: 0; }
.bp-pied li a { display: inline-block; padding: 10px 0; }
.bp-pied-bas { margin-top: 30px !important; padding-top: 20px; border-top: 1px solid #68735D; gap: 8px 24px; }
.bp-pied .a-completer { background: rgba(255, 255, 255, .12); color: #F6F1E8; }
/* Focus clavier lisible sur le fond foncé du pied de page */
.bp-pied :focus-visible { outline-color: #F6F1E8; }

/* ---------- Ajouts du 23/11/2026 (demandes de Camille du 22/11) ---------- */
/* Textes justifiés, avec coupure des mots (le site est en français : lang="fr-FR") pour éviter les grands blancs sur téléphone.
 * Seulement les paragraphes et listes du contenu : titres, textes centrés, prix, boutons, formulaires et pied de page ne bougent pas.
 * Spécificité nulle (:where) : toute règle d'alignement existante reste prioritaire. */
:where(main) :where(p, li):not(:where(
	.has-text-align-center, .has-text-align-right, .has-text-align-left,
	.bp-bandeau *, .bp-intro *, .bp-sec-tete *, .bp-lune *, .bp-ligne *, .bp-mots *, .bp-appel *,
	.bp-zone, .bp-plus, .bp-inclus, .bp-chapeau, .bp-citation, .bp-fin, .bp-insta, .bp-avis-carte, .bp-avis-qui, .bp-avis-quand,
	.bpr *, .bpc *, .bpz *, figcaption, .wp-block-buttons *
)) {
	text-align: justify;
	-webkit-hyphens: auto; hyphens: auto;
	hyphenate-limit-chars: 7 3 3;
}

/* Photos du tire-allaitement (2 photos) */
.bp-photos-ta { margin-top: 36px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 782px) { .bp-photos-ta { grid-template-columns: minmax(0, 1fr) !important; } }
.bp-photos-ta .wp-block-image { margin: 0; }
.bp-photos-ta .wp-block-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--bp-carte-r); }
.bp-photos-ta figcaption { font-size: 14.5px; color: var(--bp-gris); text-align: center; margin-top: 10px; }

/* Pied de page : Instagram */
.bp-pied .bp-insta { margin-top: 14px; }
.bp-insta a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; text-decoration: none; }
.bp-insta a span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }
.bp-insta-ico { flex: none; }

/* Page Avis : bouton centré */
.bp-avis-bouton { justify-content: center; margin-top: 24px; }

/* Page Avis : liste des avis (bp-avis.php, [bp_avis_liste]) */
.bp-avis-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 24px; }
.bp-avis-carte { margin: 0 !important; display: flex; flex-direction: column; }
.bp-avis-carte blockquote { margin: 0; padding: 0; border: 0; flex-grow: 1; }
.bp-avis-carte blockquote p { font-size: 16.5px; line-height: 1.6; margin: 0; }
.bp-avis-carte blockquote::before { content: "“"; display: block; font-family: var(--wp--preset--font-family--fraunces); font-size: 56px; line-height: .8; color: var(--bp-peche); }
.bp-avis-qui { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--bp-ligne); color: var(--wp--preset--color--titre); }
.bp-avis-quand { font-size: 14px; color: var(--bp-gris); margin-top: 4px !important; }
.bp-avis-verifie { color: #4C5741; font-weight: 600; }
.bp-avis-vide { text-align: center; color: var(--bp-gris); }
.bp-avis-regles { margin-top: 44px !important; margin-inline: auto !important; }
.bp-avis-regles h2 { font-size: clamp(22px, 2.4vw, 26px); }
.bp-etoiles { color: #B8862C; letter-spacing: 2px; font-size: 18px; line-height: 1; white-space: nowrap; }
.bp-etoiles-vides { color: var(--bp-ligne); }
.bp-avis-carte > .bp-etoiles { display: block; margin-bottom: 10px; }
.bp-avis-carte blockquote::before { display: none; }
.bp-avis-resume { text-align: center; font-size: 17px; margin: 0 auto 32px !important; max-width: none !important; }
.bp-avis-resume .bp-etoiles { font-size: 20px; vertical-align: -1px; }
.bp-avis-sans { color: var(--bp-gris); font-style: italic; flex-grow: 1; }
.bp-avis-reponse { margin-top: 14px; padding: 12px 14px; background: var(--wp--preset--color--beige); border-radius: 14px; font-size: 15px; }
.bp-avis-reponse p { margin: 0; }
.bp-avis-reponse p + p { margin-top: 4px; }
