/*
Theme Name: Campus Escalade
Theme URI: https://campusescalade.com/
Author: Campus Escalade
Description: Thème sur mesure pour Campus Escalade (Trois-Rivières), basé sur la charte graphique 2025 : bleu intense, rouge bloc, Figtree et motif topographique. Toutes les pages sont modifiables dans l'éditeur de blocs.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: campus-escalade
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
::selection { background: var(--wp--preset--color--rouge-bloc); color: #fff; }
:focus-visible { outline: 3px solid var(--wp--preset--color--rouge-bloc); outline-offset: 3px; }

/* Texte sur fonds foncés : liens lisibles */
.has-bleu-intense-background-color a:not(.wp-element-button),
.has-noir-background-color a:not(.wp-element-button),
.has-bleu-nuit-background-color a:not(.wp-element-button),
.has-gris-profond-background-color a:not(.wp-element-button),
.has-rouge-bloc-background-color a:not(.wp-element-button) { color: inherit; }
.has-bleu-intense-background-color a:not(.wp-element-button):hover,
.has-noir-background-color a:not(.wp-element-button):hover,
.has-bleu-nuit-background-color a:not(.wp-element-button):hover { color: var(--wp--preset--color--rouge-bloc); }

/* Les sections pleine largeur se touchent (pas d'espace blanc entre elles) */
.wp-block-post-content > .alignfull, .wp-block-post-content > .alignfull + * { margin-block-start: 0 !important; }
.wp-block-post-content > .alignfull { margin-block-end: 0 !important; }
main.wp-block-group { margin-block-start: 0 !important; }

/* ---------- Petits éléments typographiques ---------- */
.ce-eyebrow {
	font-size: 0.8125rem !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rouge-bloc);
}
.ce-eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 1.75em; height: 3px; margin-right: .6em; position: relative; top: -.1em; background: currentColor; border-radius: 2px; }
.ce-eyebrow.has-blanc-color::before { background: var(--wp--preset--color--rouge-bloc); }
.ce-lead { font-size: var(--wp--preset--font-size--moyen) !important; line-height: 1.5; max-width: 38em; }
.ce-sous-titre { font-weight: 500 !important; text-transform: none !important; letter-spacing: -0.01em !important; }
.ce-accent { color: var(--wp--preset--color--rouge-bloc); }
.ce-note { font-size: var(--wp--preset--font-size--petit) !important; opacity: .8; }

/* ---------- Motif topographique (charte, section 05) ---------- */
.ce-motif { position: relative; isolation: isolate; overflow: hidden; }
.ce-motif::before {
	content: ""; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
	background: url("assets/img/motif-bleu-royal.svg") center / cover no-repeat;
	opacity: .4;
}
.ce-motif--blanc::before { background-image: url("assets/img/motif-blanc.svg"); opacity: .09; }
.ce-motif--nuit::before { background-image: url("assets/img/motif-bleu-nuit.svg"); opacity: .45; }
.ce-motif--rouge::before { background-image: url("assets/img/motif-rouge.svg"); opacity: .35; }
.ce-motif--royal-pale::before { opacity: .18; }
.ce-motif--coin::before { inset: -20% -40% auto auto; width: 75%; height: 140%; background-size: 900px auto;
	-webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
	mask-image: radial-gradient(closest-side, #000 55%, transparent); }

/* ---------- En-tête ---------- */
.ce-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .25s ease; }
.admin-bar .ce-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ce-header { top: 0; } }
.ce-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.ce-header .ce-logo img { width: 128px; display: block; }
.ce-header .wp-block-navigation a { text-decoration: none; }
.ce-header .wp-block-navigation .wp-block-navigation-item__content { padding: .35rem 0; position: relative; }
.ce-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--wp--preset--color--rouge-bloc);
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.ce-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.ce-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.ce-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--noir) !important; color: #fff !important; padding: 2rem; }
.ce-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.6rem; font-weight: 700; gap: 1rem; text-transform: uppercase; }
.ce-header .ce-header-cta .wp-block-button__link { padding: .7rem 1.1rem; font-size: .85rem; }
@media (max-width: 600px) { .ce-header .ce-header-cta { display: none; } .ce-header .ce-logo img { width: 104px; } }

/* ---------- Boutons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; border: 2px solid currentColor; padding: calc(.95rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--blanc); color: var(--wp--preset--color--noir); border-color: var(--wp--preset--color--blanc); }
.has-blanc-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-gris-pale-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--noir); color: #fff; border-color: var(--wp--preset--color--noir); }
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.ce-lien-fleche a, a.ce-lien-fleche { font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.ce-lien-fleche a::after, a.ce-lien-fleche::after { content: " →"; transition: margin .2s ease; }
.ce-lien-fleche a:hover::after { margin-left: .3em; }

/* ---------- Héros ---------- */
.ce-hero { min-height: min(88vh, 820px); display: flex; align-items: center; }
.ce-hero > * { width: 100%; }
.ce-hero h1 { max-width: 15ch; font-size: clamp(2.75rem, 5.6vw, 5rem); }
.ce-hero-photo { position: relative; }
.ce-hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--wp--custom--radius); box-shadow: 18px 18px 0 var(--wp--preset--color--rouge-bloc); }
.ce-pastille {
	position: absolute; left: -1.5rem; bottom: 2rem; margin: 0 !important;
	background: var(--wp--preset--color--noir); color: #fff; padding: 1rem 1.25rem; border-radius: var(--wp--custom--radius);
	font-weight: 700; line-height: 1.1; text-transform: uppercase; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.ce-pastille strong { display: block; font-size: 2.4rem; letter-spacing: -.03em; color: var(--wp--preset--color--rouge-bloc); }
@media (max-width: 781px) { .ce-hero { min-height: 0; } .ce-pastille { left: .75rem; bottom: .75rem; } .ce-hero-photo img { box-shadow: 10px 10px 0 var(--wp--preset--color--rouge-bloc); } }

/* Héros de page intérieure */
.ce-page-hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); max-width: 16ch; }

/* ---------- Bandeau de chiffres ---------- */
.ce-stats { gap: 0 !important; }
.ce-stats > .wp-block-column { padding: 1.75rem 1.5rem; border-left: 1px solid rgba(255,255,255,.18); }
.ce-stats > .wp-block-column:first-child { border-left: 0; }
.ce-stat-chiffre { font-size: clamp(1.9rem, 3.4vw, 2.75rem) !important; white-space: nowrap; font-weight: 800; line-height: 1 !important; letter-spacing: -.03em; margin: 0 0 .35rem !important; }
.ce-stat-label { font-size: .95rem !important; opacity: .85; margin: 0 !important; line-height: 1.35 !important; }
@media (max-width: 781px) { .ce-stats > .wp-block-column { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); flex-basis: 50% !important; } }

/* ---------- Photos ---------- */
.ce-photo img { width: 100%; object-fit: cover; border-radius: var(--wp--custom--radius); display: block; }
.ce-photo.ce-portrait img { aspect-ratio: 4 / 5; }
.ce-photo.ce-carre img { aspect-ratio: 1; }
.ce-photo.ce-paysage img { aspect-ratio: 3 / 2; }
.ce-photo.ce-large img { aspect-ratio: 16 / 9; }
.ce-photo.ce-haut img { aspect-ratio: 3 / 4.2; }
.ce-decale { margin-top: 3rem !important; }
@media (max-width: 781px) { .ce-decale { margin-top: 0 !important; } }

/* ---------- Cartes ---------- */
.ce-carte {
	background: var(--wp--preset--color--blanc); color: var(--wp--preset--color--noir);
	border-radius: var(--wp--custom--radius); overflow: hidden; height: 100%;
	display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
	box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 24px rgba(19,41,138,.08);
}
.ce-carte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(19,41,138,.18); }
.ce-carte > .wp-block-image { margin: 0 !important; }
.ce-carte > .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; width: 100%; display: block; border-radius: 0; }
.ce-carte-corps { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.ce-carte-corps > :last-child { margin-top: auto !important; padding-top: .5rem; }
.wp-block-column > .ce-carte { height: 100%; }
.ce-carte-bord { border-top: 6px solid var(--wp--preset--color--bleu-intense); }
.ce-carte-bord.is-rouge { border-top-color: var(--wp--preset--color--rouge-bloc); }

/* ---------- Étapes numérotées ---------- */
.ce-etapes { counter-reset: etape; }
.ce-etape { counter-increment: etape; position: relative; padding-top: 4.25rem !important; }
.ce-etape::before {
	content: counter(etape, decimal-leading-zero); position: absolute; top: 0; left: 0;
	font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--wp--preset--color--rouge-bloc);
}

/* ---------- Tableaux de prix ---------- */
.ce-prix table, .is-style-prix table { border-collapse: collapse; width: 100%; font-size: 1.0625rem; }
.ce-prix th, .ce-prix td, .is-style-prix th, .is-style-prix td { border: 0; border-bottom: 1px solid #dfe2ee; padding: .95rem .5rem; text-align: left; vertical-align: top; }
.ce-prix thead th, .is-style-prix thead th { border-bottom: 3px solid var(--wp--preset--color--noir); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; padding-bottom: .6rem; }
.ce-prix td:not(:first-child), .ce-prix th:not(:first-child), .is-style-prix td:not(:first-child), .is-style-prix th:not(:first-child) { text-align: right; white-space: nowrap; }
.ce-prix td:not(:first-child), .is-style-prix td:not(:first-child) { font-weight: 700; font-variant-numeric: tabular-nums; }
.ce-prix tbody tr:hover, .is-style-prix tbody tr:hover { background: var(--wp--preset--color--gris-pale); }
.ce-prix figcaption, .is-style-prix figcaption { text-align: left; font-size: .875rem; opacity: .75; margin-top: .6rem; }
.ce-prix-vedette {
	border-radius: var(--wp--custom--radius); position: relative; overflow: hidden;
}
.ce-prix-montant { font-size: clamp(3rem, 6vw, 4.5rem) !important; font-weight: 800; line-height: 1 !important; letter-spacing: -.04em; margin: 0 !important; }
.ce-prix-montant sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: .05em; }

/* ---------- Liste à crochets ---------- */
.ce-liste-check, .is-style-crochets { list-style: none; padding-left: 0 !important; }
.ce-liste-check li, .is-style-crochets li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.ce-liste-check li::before, .is-style-crochets li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--wp--preset--color--rouge-bloc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- FAQ (bloc Détails) ---------- */
.wp-block-details summary { font-weight: 700; font-size: 1.15rem; cursor: pointer; list-style: none; position: relative; padding-right: 2.5rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%;
	display: grid; place-items: center; background: var(--wp--preset--color--bleu-intense); color: #fff; font-size: 1.3rem; font-weight: 600; transition: transform .25s ease, background .25s ease;
}
.wp-block-details[open] summary::after { content: "–"; background: var(--wp--preset--color--rouge-bloc); }
.wp-block-details > :not(summary) { margin-top: .75rem; max-width: 46em; }

/* ---------- Défilant (marquee) ---------- */
.ce-defilant { overflow: hidden; white-space: nowrap; }
.ce-defilant p { display: inline-block; margin: 0 !important; padding-left: 0; animation: ce-defile 40s linear infinite;
	font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important; }
@keyframes ce-defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ce-defilant p { animation: none; padding-left: 0; } }

/* ---------- Carte Google / iframe ---------- */
.ce-iframe iframe { width: 100%; border: 0; border-radius: var(--wp--custom--radius); display: block; min-height: 420px; background: var(--wp--preset--color--gris-pale); }

/* ---------- Pied de page ---------- */
.ce-footer a { text-decoration: none; }
.ce-footer a:hover { text-decoration: underline; }
.ce-footer .ce-logo img { width: 180px; }
.ce-footer h4 { font-size: .8rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--bleu-royal); margin-bottom: .9rem; }
.ce-footer ul { list-style: none; padding: 0; margin: 0; }
.ce-footer li { margin-bottom: .4rem; }
.ce-heures { font-variant-numeric: tabular-nums; }
.ce-heures p { display: flex; justify-content: space-between; gap: 1rem; margin: 0 !important; padding: .3rem 0; border-bottom: 1px dashed rgba(127,127,127,.35); }
.ce-heures p:last-child { border-bottom: 0; }
.ce-reseaux a { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); font-weight: 700; font-size: .8rem; }
.ce-reseaux a:hover { background: var(--wp--preset--color--rouge-bloc); border-color: var(--wp--preset--color--rouge-bloc); text-decoration: none; }

/* ---------- Pop-up d'annonce ---------- */
.ce-popup-overlay {
	position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 1.25rem;
	opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(2px);
}
.ce-popup-overlay.is-visible { opacity: 1; }
.ce-popup-overlay .ce-popup {
	position: relative; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; margin: 0 !important;
	border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.45);
	transform: translateY(20px) scale(.98); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.ce-popup-overlay.is-visible .ce-popup { transform: none; }
.ce-popup-fermer {
	position: absolute; top: .6rem; right: .6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(0,0,0,.35); color: #fff; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; z-index: 2;
}
.ce-popup-fermer:hover { background: var(--wp--preset--color--rouge-bloc); }
/* Sur le site, la pop-up est cachée tant que le script ne l'a pas affichée */
body:not(.wp-admin) .ce-popup:not(.is-ready) { display: none; }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ce-js .ce-anim { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
	.ce-js .ce-anim.is-in { opacity: 1; transform: none; }
}

/* ---------- Utilitaires ---------- */
.ce-arrondi img, .ce-arrondi { border-radius: var(--wp--custom--radius); }
.ce-centre { text-align: center; }
.ce-max-texte { max-width: 40em; }

/* Surtitre sur fond bleu : blanc pour le contraste */
.has-bleu-intense-background-color .ce-eyebrow,
.has-bleu-nuit-background-color .ce-eyebrow { color: var(--wp--preset--color--blanc); }
.has-bleu-intense-background-color .ce-eyebrow::before { background: var(--wp--preset--color--rouge-bloc); }

/* Menu mobile : « Première visite » en premier, aligné à gauche */
.ce-header .ce-nav-mobile { display: none; }
.ce-header .is-menu-open .ce-nav-mobile { display: block; }
.ce-header .is-menu-open .ce-nav-mobile a { color: var(--wp--preset--color--rouge-bloc) !important; }
.ce-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.ce-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }

/* Slogan « Lieu de vie » */
.ce-slogan-geant {
	font-size: clamp(4rem, 13vw, 11rem) !important; font-weight: 800 !important; line-height: .88 !important;
	letter-spacing: -.045em !important; color: var(--wp--preset--color--bleu-intense); margin-top: .5rem !important;
}
.ce-slogan-geant .ce-accent { color: var(--wp--preset--color--rouge-bloc); }
/* Sous le logo, selon la charte (p. 13) : espacement 1/3 de la hauteur du E, jamais plus large que le logo */
.ce-footer .ce-logo { margin-bottom: 0 !important; }
.ce-slogan-logo { width: 180px; margin-top: .45rem !important; font-size: 1.32rem !important; font-weight: 400; line-height: 1; letter-spacing: .01em; }

/* Héros « Lieu de vie » (fond blanc) */
.ce-hero-slogan .ce-slogan-geant { font-size: clamp(4.5rem, 14vw, 12.5rem) !important; max-width: none; margin-top: .75rem !important; }
.ce-hero-slogan .ce-lead { margin-top: var(--wp--preset--spacing--40) !important; }
.ce-titre-xl { font-size: clamp(2.5rem, 5.2vw, 4.5rem) !important; max-width: 14ch; }
/* Héros « Lieu de vie » : on part du haut, pas centré verticalement dans une grande hauteur */
.ce-hero.ce-hero-slogan { min-height: 0; align-items: flex-start; }
.ce-hero-slogan .ce-hero-photo img { object-position: center 35%; }

/* Sections en bleu royal : texte foncé pour garder un bon contraste */
.has-bleu-royal-background-color .ce-eyebrow { color: var(--wp--preset--color--bleu-nuit); }
.has-bleu-royal-background-color .ce-eyebrow::before { background: var(--wp--preset--color--bleu-nuit); }
.has-bleu-royal-background-color > h2, .has-bleu-royal-background-color > .wp-block-heading { color: var(--wp--preset--color--blanc); }
.has-bleu-nuit-background-color .ce-stats > .wp-block-column { border-color: rgba(94,124,234,.35); }
.has-bleu-nuit-background-color .ce-stat-label { opacity: 1; color: #c9d3fa; }
.has-gris-profond-background-color .ce-prix-vedette.has-bleu-nuit-background-color { box-shadow: inset 0 0 0 1px rgba(94,124,234,.35); }

/* Première photo de l'accueil : sans cadre rouge */
.ce-hero-slogan .ce-hero-photo img { box-shadow: none; }

/* Heures d'ouverture sur l'accueil */
.ce-heures-carte { border-radius: var(--wp--custom--radius); border-top: 6px solid var(--wp--preset--color--bleu-intense); }
.ce-heures-carte .ce-heures p { font-size: 1.15rem; padding: .75rem 0; border-bottom-style: solid; border-bottom-color: #dfe2ee; }
.ce-heures-carte .ce-heures p span:last-child { font-weight: 700; }
.ce-heures p.is-today { color: var(--wp--preset--color--rouge-bloc); font-weight: 700; }
.ce-heures-carte .ce-heures p.is-today span:first-child::after { content: " · aujourd'hui"; font-weight: 500; font-size: .85em; }
.ce-heures p span:last-child { white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }

/* Cartes à photo haute (« Plus qu'un centre d'escalade ») */
.ce-carte.ce-carte-haute > .wp-block-image img { aspect-ratio: 4 / 5; object-position: center 40%; }


/* Avantages membres (accueil) */
.ce-membre-titre { font-size: clamp(3rem, 6.5vw, 5.75rem) !important; font-weight: 800 !important; line-height: .9 !important; letter-spacing: -.04em !important; }
.ce-avantage { border-bottom: 1px solid rgba(255,255,255,.18); padding: 1rem 0 1.05rem; margin: 0 !important; }
.ce-avantage:first-child { padding-top: 0; }
.ce-avantage h3 { font-size: 1.3rem !important; font-weight: 600 !important; display: flex; align-items: center; gap: .65rem; margin: 0 0 .3rem !important; }
.ce-avantage h3::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; background: var(--wp--preset--color--rouge-bloc); -webkit-mask: var(--ce-ico) center / contain no-repeat; mask: var(--ce-ico) center / contain no-repeat; }
.ce-avantage p { margin: 0 !important; font-size: .975rem; opacity: .85; padding-left: 2.15rem; }
.ce-membre .ce-note { margin-top: 1rem !important; }
.ce-membre .ce-photo img { aspect-ratio: 3 / 4.4; object-position: center 30%; }
@media (max-width: 781px) { .ce-membre .ce-photo img { aspect-ratio: 4 / 3; } }
.ce-av-infini { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8a4 4 0 1 0 0 8c3 0 7-8 10-8a4 4 0 1 1 0 8c-3 0-7-8-10-8z'/%3E%3C/svg%3E"); }
.ce-av-invite { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3-7 7-7s7 3 7 7'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E"); }
.ce-av-coeur { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 9c0 6-8 11-8 11z'/%3E%3C/svg%3E"); }
.ce-av-rabais { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V3h9l9 9-9 9z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.ce-av-etoile { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
.ce-av-famille { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='7' r='3'/%3E%3Ccircle cx='17' cy='9.5' r='2.5'/%3E%3Cpath d='M2 20c0-3.5 2.5-6 6-6s6 2.5 6 6'/%3E%3Cpath d='M14 20c0-2.5 1.5-4.5 3.5-4.5S21 17.5 21 20'/%3E%3C/svg%3E"); }

/* Fond noir « chalk » (heures d'ouverture de l'accueil) */
.ce-fond-chalk { background: #2f2c2a url("assets/img/fond-chalk.jpg") center / cover no-repeat; }
.ce-fond-chalk .ce-heures-carte { background: rgba(0,0,0,.38); backdrop-filter: blur(2px); }
.ce-fond-chalk .ce-heures-carte .ce-heures p { border-bottom-color: rgba(255,255,255,.14); }
.ce-fond-chalk .ce-heures p.is-today { color: var(--wp--preset--color--rouge-bloc); }
.ce-carte-boutique > .wp-block-image img { object-position: 62% center !important; }

/* « Plus qu'un centre » sur fond blanc : cartes bordées */
.has-blanc-background-color .ce-carte-haute { box-shadow: 0 0 0 1px #e3e6f0, 0 10px 30px rgba(19,41,138,.08); }
/* « Deviens membre » sur bleu royal */
.ce-membre.has-bleu-royal-background-color .ce-avantage { border-bottom-color: rgba(255,255,255,.35); }
.ce-membre.has-bleu-royal-background-color .ce-avantage h3::before { background: var(--wp--preset--color--blanc); }
.ce-membre.has-bleu-royal-background-color .ce-avantage p,
.ce-membre.has-bleu-royal-background-color .ce-note { opacity: 1; }
.ce-membre.has-bleu-royal-background-color .ce-membre-titre { color: var(--wp--preset--color--blanc); }
.ce-membre.has-bleu-royal-background-color .wp-block-button__link:hover { background: var(--wp--preset--color--bleu-nuit) !important; color: #fff !important; }

/* Masquer un bloc sur cellulaire (ajouter la classe « ce-ordi-seulement » dans Avancé › Classe(s) CSS additionnelle(s)) */
@media (max-width: 781px) { .ce-ordi-seulement { display: none !important; } }
/* …ou l'inverse : visible seulement sur cellulaire */
@media (min-width: 782px) { .ce-cell-seulement { display: none !important; } }

/* Pastilles « Meilleure valeur » / « Le plus populaire » */
.ce-badge { display: inline-block; vertical-align: middle; margin-left: .6rem; padding: .28rem .6rem; border-radius: 999px;
	background: var(--wp--preset--color--rouge-bloc); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; position: relative; top: -1px; }
.ce-badge--bleu { background: var(--wp--preset--color--bleu-intense); }
.ce-av-lieu { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.ce-photo-heures { margin-top: var(--wp--preset--spacing--50) !important; }
.ce-photo-heures img { aspect-ratio: 16 / 10; object-position: center 30%; box-shadow: 0 20px 50px rgba(0,0,0,.45); }

/* Bandeau de chiffres sur fond pâle */
.has-gris-pale-background-color .ce-stats > .wp-block-column { border-color: #dfe2ee; }
.has-gris-pale-background-color .ce-stat-chiffre { color: var(--wp--preset--color--bleu-intense); }
.has-gris-pale-background-color .ce-stat-label { opacity: 1; color: #5a5f73; }
@media (max-width: 781px) { .has-gris-pale-background-color .ce-stats > .wp-block-column { border-color: #dfe2ee; } }
.ce-photo.ce-panorama { margin-top: var(--wp--preset--spacing--60) !important; }
.ce-photo.ce-panorama img { aspect-ratio: 21 / 9; object-position: center 35%; }
@media (max-width: 781px) { .ce-photo.ce-panorama img { aspect-ratio: 4 / 3; object-position: 35% center; } }

/* « Deviens membre » sur fond pâle */
.ce-membre.has-gris-pale-background-color .ce-avantage { border-bottom-color: #dfe2ee; }
.ce-membre.has-gris-pale-background-color .ce-avantage p { opacity: 1; color: #5a5f73; }
.ce-membre.has-gris-pale-background-color .ce-membre-titre { color: var(--wp--preset--color--bleu-intense); }
/* Zone Junior sur bleu royal */
.ce-junior.has-bleu-royal-background-color .wp-block-button__link:hover { background: var(--wp--preset--color--bleu-nuit) !important; color: #fff !important; }
.ce-badge--vert { background: var(--wp--preset--color--rouge-bloc); }
.ce-prix thead th .ce-badge, .is-style-prix thead th .ce-badge { white-space: normal; text-align: left; line-height: 1.25; margin-top: .35rem; margin-left: 0; display: inline-block; border-radius: 6px; }
/* Tableaux de prix sur cellulaire : plus compacts, défilement si trop large */
@media (max-width: 600px) {
	.ce-prix, .is-style-prix { overflow-x: auto; }
	.ce-prix table, .is-style-prix table { font-size: .95rem; }
	.ce-prix th, .ce-prix td, .is-style-prix th, .is-style-prix td { padding: .8rem .35rem; }
	.ce-prix thead th, .is-style-prix thead th { font-size: .68rem; letter-spacing: .08em; }
}
.ce-carte-cours-junior > .wp-block-image img { object-position: 60% 42% !important; }
/* Héros : photo légèrement zoomée pour couper le coin bas-gauche */
.ce-hero-slogan .ce-hero-photo .wp-block-image { overflow: hidden; border-radius: var(--wp--custom--radius); }
.ce-hero-slogan .ce-hero-photo .wp-block-image img { transform: scale(1.10); transform-origin: 85% 15%; border-radius: 0; }
.ce-header .ce-nav-risques > a { color: var(--wp--preset--color--bleu-royal) !important; }
@media (max-width: 1180px) { .ce-header .wp-block-navigation { font-size: .85rem; } .ce-header .wp-block-navigation .wp-block-navigation__container { gap: 1.1rem !important; } }

/* Héros avec photo en arrière-plan (bloc Couverture) */
.ce-hero-cover h1 { font-size: clamp(2rem, 3.6vw, 3.25rem) !important; max-width: none; }
.ce-hero-cover .wp-block-cover__background { background: linear-gradient(90deg, rgba(40,40,40,.85) 0%, rgba(40,40,40,.55) 55%, rgba(40,40,40,.15) 100%) !important; opacity: 1 !important; }
@media (max-width: 781px) { .ce-hero-cover { min-height: 240px !important; } .ce-hero-cover .wp-block-cover__background { background: rgba(40,40,40,.6) !important; } }
.ce-hero-cover .wp-block-cover__inner-container { width: 100% !important; max-width: 1240px !important; margin-inline: auto !important; }
.ce-hero-cover .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
.ce-hero-cover { padding-inline: clamp(1.25rem, 4vw, 2.5rem) !important; }
.ce-hero-cover { padding-top: var(--wp--preset--spacing--40) !important; padding-bottom: var(--wp--preset--spacing--40) !important; }
.ce-photo img[src*="premiere-visite.jpg"] { object-position: center 22%; }

/* Cartes de cours juniors (couleurs des affiches) */
.ce-carte.ce-cours { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.ce-carte.ce-cours > .wp-block-image img { aspect-ratio: 16 / 10; object-position: center 30%; }
.ce-cours .ce-carte-corps { padding: 1.75rem 1.75rem 2rem; gap: .6rem; }
.ce-cours-age { font-size: clamp(3rem, 5vw, 4.25rem) !important; font-weight: 800; line-height: .95 !important; letter-spacing: -.04em; margin: 0 !important; white-space: nowrap; }
.ce-cours h3 { font-size: 1.5rem !important; font-weight: 700 !important; color: inherit; }
.ce-cours p { color: inherit; }
.ce-cours-infos { border-top: 1px solid rgba(255,255,255,.35); padding-top: 1rem; margin-top: .5rem !important; gap: 1rem !important; }
.ce-cours-label { font-size: .7rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .3rem !important; opacity: .85; }
.ce-cours-valeur { font-size: 1rem !important; font-weight: 700; line-height: 1.3 !important; margin: 0 !important; }
.ce-cours .wp-block-buttons { margin-top: .75rem !important; }
.ce-cours.has-rouge-bloc-background-color .wp-block-button__link { color: var(--wp--preset--color--rouge-bloc) !important; }
.ce-cours.has-noir-background-color .wp-block-button__link { color: var(--wp--preset--color--noir) !important; }
.ce-cours .wp-block-button__link:hover { background: var(--wp--preset--color--noir) !important; color: #fff !important; }
.ce-cours.has-noir-background-color .wp-block-button__link:hover { background: var(--wp--preset--color--rouge-bloc) !important; }

/* Carte prépayée : encadré bleu pâle pour la distinguer des entrées */
.ce-prix--bleu { background: #E4EAFB; color: var(--wp--preset--color--noir); padding: 1.25rem 1.5rem 1rem; border-radius: var(--wp--custom--radius); }
.ce-prix--bleu thead th { border-bottom-color: var(--wp--preset--color--bleu-nuit) !important; color: var(--wp--preset--color--bleu-nuit); }
.ce-prix--bleu th, .ce-prix--bleu td { border-bottom-color: #c8d2f2 !important; }
.ce-prix--bleu tbody tr:hover { background: rgba(255,255,255,.5) !important; }
.ce-prix--bleu figcaption { color: var(--wp--preset--color--bleu-nuit); }
.ce-prix--bleu .ce-badge { background: var(--wp--preset--color--rouge-bloc); color: #fff; }
.ce-hero-slogan .ce-eyebrow { font-size: calc(0.8125rem * 1.1) !important; }
/* Location : encadré gris pâle */
.ce-prix--gris { background: var(--wp--preset--color--gris-pale); padding: 1.25rem 1.5rem 1rem; border-radius: var(--wp--custom--radius); }
.ce-prix--gris th, .ce-prix--gris td { border-bottom-color: #dfe2ee !important; }
.ce-prix--gris tbody tr:hover { background: rgba(255,255,255,.6) !important; }

/* Mosaïque de 3 photos (Tarifs) */
.ce-mosaique { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 4 / 5; }
.ce-mosaique > .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: var(--wp--custom--radius); }
.ce-mosaique > .wp-block-image:first-child { grid-row: 1 / span 2; }
.ce-mosaique > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-mosaique > .wp-block-image:nth-child(1) img { object-position: 45% 50%; }
.ce-mosaique > .wp-block-image:nth-child(2) img { object-position: 50% 25%; }
.ce-mosaique > .wp-block-image:nth-child(3) img { object-position: 50% 55%; }
.ce-mosaique > .wp-block-image:nth-child(3) img { transform: scale(1.55); transform-origin: 52% 52%; }
/* Mosaïque Tarifs : alignée en haut et étirée sur toute la hauteur des tableaux */
.wp-block-column.is-vertically-aligned-stretch > .ce-mosaique { height: 100%; aspect-ratio: auto; min-height: 560px; }

/* Groupes : affiche détaillée dépliable dans la carte */
.ce-affiche { margin: 0 0 1.25rem; }
.ce-affiche > summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--bleu-intense); list-style: none; display: inline-flex; align-items: center; gap: .4em; }
.ce-affiche > summary::-webkit-details-marker { display: none; }
.ce-affiche > summary::after { content: "+"; font-size: 1.2em; line-height: 1; transition: transform .2s; }
.ce-affiche[open] > summary::after { transform: rotate(45deg); }
.ce-affiche[open] { background: var(--wp--preset--color--gris-pale); border-radius: var(--wp--custom--radius); padding: 1rem 1.1rem; }
.ce-affiche[open] > summary { margin-bottom: .6rem; }
.ce-affiche .ce-affiche-titre { margin: .9rem 0 .3rem; font-size: .95rem; }
.ce-affiche ul { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.ce-affiche ul li { margin: .15rem 0; }
.ce-affiche .ce-affiche-note { font-size: .82rem; opacity: .8; margin: .8rem 0 0; }
/* Le lien dépliable a le même look que « Voir l'affiche détaillée → » des autres cartes */
.wp-block-details.ce-affiche > summary { font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; padding-right: 0; position: static; color: var(--wp--preset--color--bleu-intense); }
.wp-block-details.ce-affiche > summary::after { content: "↓"; position: static; width: auto; height: auto; background: none !important; color: inherit; font-size: 1em; transform: none; border-radius: 0; margin-left: .3em; display: inline; }
.wp-block-details.ce-affiche[open] > summary::after { content: "↑"; transform: none; }
.wp-block-details.ce-affiche > :not(summary) { margin-top: 0; }
.ce-affiche .ce-affiche-titre { margin-top: .9rem !important; }
/* Mosaïque Tarifs : 3 photos empilées */
.ce-mosaique { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
.ce-mosaique > .wp-block-image:first-child { grid-row: auto; }
.ce-mosaique > .wp-block-image:nth-child(1) img { object-position: 50% 30%; }
.ce-mosaique > .wp-block-image:nth-child(2) img { object-position: 50% 30%; }
.ce-mosaique > .wp-block-image:nth-child(3) img { transform: scale(1.25); object-position: 50% 55%; }
.ce-mosaique { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.ce-mosaique > .wp-block-image { min-height: 0; height: 100%; }
/* La colonne prend la hauteur des tableaux; les 3 photos se partagent cette hauteur */
.wp-block-column:has(> .ce-mosaique) { position: relative; }
.wp-block-column > .ce-mosaique { position: absolute; inset: 0; height: auto; min-height: 0; aspect-ratio: auto; }
.ce-sombre .wp-element-caption { color: rgba(255,255,255,.7); }
.ce-affiche p:not(.ce-affiche-note) { font-size: .92rem; }
.ce-mosaique > .wp-block-image:nth-child(1) img { object-position: 50% 72%; }
.ce-mosaique > .wp-block-image:nth-child(1) img { object-position: 50% 62%; }
/* Accueil : surtitre du haut et son petit trait en noir (comme le bandeau du menu) */
.ce-hero-slogan .ce-eyebrow { color: var(--wp--preset--color--noir); }
.ce-hero-slogan .ce-eyebrow::before { background: var(--wp--preset--color--noir); }
.ce-mosaique > .wp-block-image:nth-child(3) img { transform: none; object-position: 50% 52%; }

/* Accueil : surtitre du haut agrandi encore de 10 % */
.ce-hero-slogan .ce-eyebrow { font-size: calc(0.8125rem * 1.21) !important; }

/* Avantages première visite (affiche « Ce qui t'attend ») */
.ce-offres { align-items: stretch !important; }
.ce-offre { position: relative; height: 100%; border-radius: var(--wp--custom--radius); padding: 2.25rem 1.75rem 2rem; overflow: hidden; }
.ce-offre h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem) !important; text-transform: uppercase; line-height: 1.05 !important; margin: 1.25rem 0 0 !important; letter-spacing: -.01em; }
.ce-offre h3::after { content: ""; display: block; width: 3.5rem; height: 4px; border-radius: 2px; margin: .9rem 0 1rem; background: currentColor; }
.ce-offre p:not(.ce-offre-num) { margin: 0; }
.ce-offre-num { width: 5.25rem; height: 5.25rem; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-style: italic; font-size: 2rem !important; line-height: 1 !important; margin: 0 !important; letter-spacing: -.02em; }
.ce-offre-num span { font-size: .7rem; font-weight: 500; font-style: normal; letter-spacing: .02em; margin-bottom: .15rem; }
.ce-offre--pale .ce-offre-num { background: var(--wp--preset--color--bleu-intense); color: #fff; }
.ce-offre--pale h3 { color: var(--wp--preset--color--rouge-bloc); }
.ce-offre--bleu .ce-offre-num { background: #fff; color: var(--wp--preset--color--bleu-intense); }
.ce-offre--noir .ce-offre-num { background: var(--wp--preset--color--rouge-bloc); color: #fff; }
.ce-offre--noir h3::after { background: var(--wp--preset--color--rouge-bloc); }
.ce-offre--bleu::before, .ce-offre--noir::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; background: url("assets/img/motif-blanc.svg") right -40px bottom -40px / 70% no-repeat; }
.ce-offre--noir::before { background-image: url("assets/img/motif-rouge.svg"); opacity: .35; }
.ce-offre > * { position: relative; }
.ce-offres-retour { text-align: center; font-weight: 800; color: var(--wp--preset--color--bleu-intense); font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important; margin-top: 2.5rem !important; }
@media (max-width: 781px) { .ce-offre { padding: 1.75rem 1.4rem; } }

/* Tarifs : entrée journalière en gris pâle, location un peu plus foncée */
.ce-prix--pale { background: var(--wp--preset--color--gris-pale); padding: 1.25rem 1.5rem 1rem; border-radius: var(--wp--custom--radius); }
.ce-prix--pale th, .ce-prix--pale td { border-bottom-color: #dfe2ee !important; }
.ce-prix--pale figcaption { padding: 0 .25rem; }
.ce-prix--gris { background: #E6E8EF; }
.ce-prix--gris th, .ce-prix--gris td { border-bottom-color: #d2d6e2 !important; }
.ce-offres-section .ce-lead { max-width: 1240px !important; margin-left: auto !important; margin-right: auto !important; }

/* Accueil : texte du haut aligné sur « LIEU DE VIE » (bord gauche des lettres et bord droit de « VIE ») */
.ce-hero-slogan .ce-slogan-geant { margin-left: -0.066em !important; margin-right: -0.016em !important; }
@media (min-width: 782px) {
	.ce-hero-slogan .wp-block-column:first-child { display: grid; grid-template-columns: max-content; justify-content: start; align-content: center; }
	.ce-hero-slogan .wp-block-column:first-child > * { margin-left: 0; margin-right: 0; }
	.ce-hero-slogan .wp-block-column:first-child > .ce-slogan-geant { margin-left: -0.066em !important; margin-right: -0.016em !important; }
	.ce-hero-slogan .ce-lead { width: 0; min-width: 100%; max-width: none; text-align: justify; hyphens: none; }
}
@media (max-width: 781px) { .ce-hero-slogan .ce-eyebrow { font-size: .78rem !important; letter-spacing: .08em; white-space: nowrap; } }
.ce-hero-slogan .ce-eyebrow::before { display: none; }
/* Heures : sans bande bleue en haut de la carte; journée d'aujourd'hui en bleu */
.ce-heures-carte { border-top: 0 !important; }
.ce-heures p.is-today, .ce-fond-chalk .ce-heures p.is-today { color: var(--wp--preset--color--bleu-royal) !important; }
/* Accueil : « Escalade de bloc · Trois-Rivières » exactement de la largeur de « LIEU » (ordi) */
@media (min-width: 782px) {
	.ce-hero-slogan .ce-eyebrow { font-size: calc(clamp(4.5rem, 14vw, 12.5rem) * 0.08145) !important; margin-left: -0.06em !important; }
}
.ce-offres-retour { text-align: left !important; }

/* Titre H1 des pages : invisible à l'écran, lu par Google, Bing, les IA et les lecteurs d'écran */
.ce-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
/* Textes « en bref » */
.ce-en-bref { max-width: 62ch; }
.has-noir-background-color .ce-lead.ce-en-bref { color: rgba(255,255,255,.85); }
.is-layout-constrained > .ce-lead.ce-en-bref { max-width: 1240px !important; }
.ce-pied-bref { font-size: .9rem; opacity: .7; max-width: 34ch; margin-top: .25rem !important; }
.wp-block-column h3 + .ce-en-bref { margin-top: .6rem; }
/* Textes d'introduction : alignés à gauche avec le titre (pas centrés) */
.is-layout-constrained > .ce-lead { margin-left: max(0px, calc((100% - 1240px) / 2)) !important; margin-right: auto !important; }
/* Mention des taxes, en petit */
.ce-note-taxes { font-size: .8rem !important; opacity: .7; margin-top: 1.25rem !important; }
.ce-offres-retour { color: var(--wp--preset--color--noir) !important; }

/* À propos : valeurs en grille 2 × 2, cartes de même hauteur */
.ce-valeurs { gap: 20px !important; }
.ce-valeur { border-radius: var(--wp--custom--radius); padding: 1.75rem 1.75rem 1.6rem; height: 100%; box-sizing: border-box; }
.ce-valeur-num { font-weight: 800; font-size: .95rem !important; letter-spacing: .04em; color: var(--wp--preset--color--rouge-bloc); margin: 0 !important; }
.ce-valeur h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem) !important; margin: .35rem 0 .6rem !important; hyphens: manual; overflow-wrap: normal; }
.ce-valeur p:not(.ce-valeur-num) { margin: 0; font-size: .95rem; }
.ce-valeurs-intro { opacity: .9; max-width: 30ch; }
@media (max-width: 781px) { .ce-valeurs { grid-template-columns: 1fr !important; } }
.ce-apropos-photo { margin-top: 24px !important; }

/* Accueil, Zone Junior : 3 photos (une large en haut, deux en dessous) */
.ce-mosaique-junior { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.ce-mosaique-junior > .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: var(--wp--custom--radius); }
.ce-mosaique-junior > .wp-block-image:first-child { grid-column: 1 / span 2; aspect-ratio: 16 / 9; }
.ce-mosaique-junior > .wp-block-image:not(:first-child) { aspect-ratio: 1 / 1; }
.ce-mosaique-junior > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-mosaique-junior > .wp-block-image:nth-child(2) img { object-position: 60% 45%; }
.ce-av-sante { --ce-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
/* Accueil, « Plus qu'un centre » : titres et textes des 3 cartes à la même hauteur */
.ce-carte-haute .ce-carte-corps { display: flex; flex-direction: column; justify-content: flex-start !important; }
.ce-carte-haute .ce-carte-corps > h3 { margin-top: 0 !important; margin-bottom: .75rem !important; }
.ce-carte-haute .ce-carte-corps > p { margin-top: 0 !important; }
@media (min-width: 782px) {
	.ce-carte-haute .ce-carte-corps > h3 { font-size: clamp(1.1rem, 2.1vw, 1.6rem) !important; white-space: nowrap; }
}
/* À propos : mission et vision dans la section des valeurs; photo pleine hauteur en haut */
.wp-block-column:has(> .ce-mv-texte) > h3 { font-size: 1.2rem !important; margin: 1.6rem 0 .4rem !important; text-transform: uppercase; letter-spacing: .04em; }
.ce-mv-texte { opacity: .92; margin-top: 0 !important; }
.ce-apropos-photo { margin-top: 0 !important; }
.ce-apropos-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; width: 100%; display: block; }
/* À propos : « On parle de nous », liens groupés par source */
.ce-presse-source { font-weight: 800; font-size: .8rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--rouge-bloc); margin: 0 0 .6rem !important; }
.ce-presse-liens { list-style: none; padding: 0 !important; margin: 0 !important; }
.ce-presse-liens li { padding: .55rem 0; border-top: 1px solid #e3e6f0; font-size: .95rem; line-height: 1.4; }
.ce-presse-liens li:last-child { border-bottom: 1px solid #e3e6f0; }
.ce-presse-liens a { color: var(--wp--preset--color--noir); text-decoration: none; font-weight: 500; }
.ce-presse-liens a::after { content: " ↗"; color: var(--wp--preset--color--bleu-intense); font-size: .85em; }
.ce-presse-liens a:hover { color: var(--wp--preset--color--bleu-intense); text-decoration: underline; }
/* À propos : deux photos côte à côte, décalées */
.ce-apropos-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.ce-apropos-duo > .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: var(--wp--custom--radius); }
.ce-apropos-duo > .wp-block-image img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; display: block; }
.ce-apropos-duo > .wp-block-image:first-child img { object-position: 45% 40%; }
.ce-apropos-duo > .wp-block-image:last-child { margin-top: 48px !important; }
.ce-apropos-duo > .wp-block-image:last-child img { object-position: 50% 45%; }
/* À propos sans photos : texte en une colonne lisible, aligné à gauche */
.is-layout-constrained > .ce-apropos-texte { max-width: 760px !important; margin-left: max(0px, calc((100% - 1240px) / 2)) !important; margin-right: auto !important; }
.ce-apropos-texte .ce-en-bref { max-width: none; }
.ce-apropos-texte > h3 { color: var(--wp--preset--color--bleu-intense); }
/* En-tête : « Première visite » en blanc (contour), « Certificat cadeau » en bouton plein */
.ce-header .ce-header-cta { gap: .5rem; flex-wrap: nowrap; }
.ce-header .ce-btn-visite .wp-block-button__link { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.85) !important; }
.ce-header .ce-btn-visite .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--noir) !important; }
/* En-tête : rien ne passe sur deux lignes sur les écrans moyens */
.ce-header .ce-header-cta .wp-block-button__link, .ce-header .wp-block-navigation-item__content { white-space: nowrap; }
@media (min-width: 601px) and (max-width: 1280px) {
	.ce-header .wp-block-navigation { --wp--style--block-gap: 1rem; font-size: .85rem; }
	.ce-header .wp-block-navigation .wp-block-navigation__container { gap: 1rem; }
	.ce-header .ce-header-cta .wp-block-button__link { padding: .6rem .8rem; font-size: .75rem; }
}
@media (min-width: 601px) and (max-width: 1140px) {
	.ce-header .wp-block-navigation-item:first-child { display: none; } /* « Accueil » : le logo y mène déjà */
}
/* Tablettes et petits ordis (≤ 1024 px) : menu hamburger, les deux boutons restent visibles */
@media (min-width: 600px) and (max-width: 1024px) {
	.ce-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.ce-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.ce-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; }
	.ce-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
}
/* Heures : petite note pour les jours fériés et le temps des Fêtes (texte modifiable dans la partie « heures ») */
.ce-heures-feries { font-size: .8rem !important; opacity: .75; margin-top: .9rem !important; display: block !important; }
.ce-heures-feries a { color: inherit; text-decoration: underline; }
/* Menu cellulaire : « Première visite » en blanc, « Certificat cadeau » reste en rouge */
.wp-block-navigation .ce-nav-mobile.ce-nav-visite > a,
.wp-block-navigation .ce-nav-mobile.ce-nav-visite .wp-block-navigation-item__content { color: #fff !important; }
