/* =====================================================================
   VALSAINTE STYLE — feuille de style commune du site
   ---------------------------------------------------------------------
   Toutes les classes commencent par « val- » : elles ne touchent à rien
   d'autre sur le site. On les combine librement, par exemple :
     <p class="val-texte val-l val-orange val-gras">Texte</p>
   Les règles sont préfixées « html body » et marquées !important pour
   rester prioritaires sur les réglages globaux du thème et du CSS
   additionnel (qui imposent des tailles et couleurs de titres/liens).
   ===================================================================== */

/* ---------- 1. Palette et réglages communs (modifiables en un seul endroit) ---------- */
:root {
	--val-bleu: #214165;
	--val-bleu-fonce: #17324a;
	--val-bleu-moyen: #17618a;
	--val-turquoise: #62d2d6;
	--val-turquoise-fonce: #2f9aa3;
	--val-vert: #5f9e3a;
	--val-vert-clair: #8ac25e;
	--val-vert-fonce: #2b5d18;
	--val-orange: #e78318;
	--val-orange-clair: #f2a53d;
	--val-jaune: #ffd36e;
	--val-rouge: #c0392b;
	--val-gris: #5f7381;
	--val-gris-fonce: #425c6c;
	--val-gris-bleu: #4b6f83;
	--val-blanc: #ffffff;

	--val-fond-creme: #f8fcf5;
	--val-fond-vert: #dff4cd;
	--val-fond-orange: #fff0dc;
	--val-fond-bleu: #d7f3f3;
	--val-fond-rouge: #fdecea;

	--val-police: Arial, Helvetica, sans-serif;
	--val-arrondi: 18px;
	--val-arrondi-grand: 28px;
	--val-ombre: 0 14px 32px rgba(33, 65, 101, 0.10);
	--val-ombre-douce: 0 7px 18px rgba(33, 65, 101, 0.07);
	--val-degrade-bleu: linear-gradient(135deg, #174d73 0%, #17618a 55%, #55cbd0 100%);
	--val-degrade-orange: linear-gradient(135deg, #e78318 0%, #f2a53d 55%, #ffd36e 100%);
	--val-degrade-vert: linear-gradient(135deg, #dff4cd, #c3e8ab);
}

/* ---------- 2. Conteneur de bloc ---------- */
html body .val-bloc {
	width: 100%;
	margin: 28px auto;
	font-family: var(--val-police) !important;
	color: var(--val-bleu);
	line-height: 1.55;
}
html body .val-bloc *,
html body .val-bloc *::before,
html body .val-bloc *::after { box-sizing: border-box; }
html body .val-bloc a:not(.val-bouton) { font-size: inherit !important; }
html body .val-largeur-texte { max-width: 780px; margin-left: auto; margin-right: auto; }

/* ---------- 3. Textes ---------- */
html body .val-texte { margin: 0 0 0.8em; font-family: var(--val-police) !important; font-size: 16px !important; line-height: 1.6; color: var(--val-gris-fonce) !important; }
html body .val-titre { margin: 0 0 10px; font-family: var(--val-police) !important; font-size: clamp(27px, 3.4vw, 38px) !important; font-weight: 900 !important; line-height: 1.1; letter-spacing: -0.5px; color: var(--val-bleu) !important; }
html body .val-titre-marque { font-style: italic; letter-spacing: -1px; }
html body .val-sous-titre { margin: 0 0 22px; font-family: var(--val-police) !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.5; color: var(--val-gris-bleu) !important; }
html body .val-intertitre { margin: 0 0 10px; font-family: var(--val-police) !important; font-size: clamp(20px, 2.4vw, 24px) !important; font-weight: 800 !important; line-height: 1.25; color: var(--val-bleu) !important; }

/* Tailles (de la plus petite à la plus grande) */
html body .val-xs { font-size: 12px !important; }
html body .val-s { font-size: 14px !important; }
html body .val-m { font-size: 16px !important; }
html body .val-l { font-size: 18px !important; }
html body .val-xl { font-size: 22px !important; line-height: 1.3; }
html body .val-xxl { font-size: clamp(24px, 3vw, 30px) !important; line-height: 1.2; }
html body .val-geant { font-size: clamp(30px, 4.2vw, 46px) !important; line-height: 1.05; }

/* Couleurs du texte */
html body .val-bleu { color: var(--val-bleu) !important; }
html body .val-bleu-fonce { color: var(--val-bleu-fonce) !important; }
html body .val-turquoise { color: var(--val-turquoise-fonce) !important; }
html body .val-vert { color: var(--val-vert) !important; }
html body .val-vert-fonce { color: var(--val-vert-fonce) !important; }
html body .val-orange { color: var(--val-orange) !important; }
html body .val-jaune { color: var(--val-jaune) !important; }
html body .val-rouge { color: var(--val-rouge) !important; }
html body .val-gris { color: var(--val-gris) !important; }
html body .val-gris-bleu { color: var(--val-gris-bleu) !important; }
html body .val-blanc { color: var(--val-blanc) !important; }

/* Graisse, style, alignement */
html body .val-normal { font-weight: 400 !important; }
html body .val-semi { font-weight: 600 !important; }
html body .val-gras { font-weight: 800 !important; }
html body .val-tres-gras { font-weight: 900 !important; }
html body .val-italique { font-style: italic !important; }
html body .val-majuscules { text-transform: uppercase; letter-spacing: 0.5px; }
html body .val-centre { text-align: center !important; }
html body .val-droite { text-align: right !important; }
html body .val-sans-marge { margin: 0 !important; }
html body .val-marge-s { margin-bottom: 12px !important; }
html body .val-marge-m { margin-bottom: 22px !important; }
html body .val-marge-l { margin-bottom: 32px !important; }
html body .val-bloc-ligne { display: block !important; }
html body .val-en-ligne { display: inline-flex !important; }
html body .val-gauche { text-align: left !important; }

/* Surlignage « feutre » */
html body .val-surligne { background: linear-gradient(transparent 58%, rgba(255, 211, 110, 0.75) 58%); padding: 0 2px; }
html body .val-surligne-vert { background: linear-gradient(transparent 58%, rgba(138, 194, 94, 0.45) 58%); padding: 0 2px; }
html body .val-surligne-bleu { background: linear-gradient(transparent 58%, rgba(98, 210, 214, 0.45) 58%); padding: 0 2px; }

/* ---------- 4. Fonds ---------- */
html body .val-fond-creme { background: var(--val-fond-creme) !important; }
html body .val-fond-vert { background: var(--val-fond-vert) !important; }
html body .val-fond-orange { background: var(--val-fond-orange) !important; }
html body .val-fond-bleu { background: var(--val-fond-bleu) !important; }
html body .val-fond-bleu-fonce { background: var(--val-bleu) !important; color: #fff !important; }
html body .val-fond-blanc { background: #fff !important; }

/* ---------- 5. Grand encadré décoratif (en-têtes de page) ---------- */
html body .val-encadre-deco {
	position: relative;
	overflow: hidden;
	padding: 48px 50px 44px;
	border: 1px solid rgba(95, 158, 58, 0.18);
	border-radius: var(--val-arrondi-grand);
	background:
		radial-gradient(circle at 7% 10%, rgba(255, 211, 110, 0.30) 0, rgba(255, 211, 110, 0) 22%),
		radial-gradient(circle at 94% 90%, rgba(138, 194, 94, 0.20) 0, rgba(138, 194, 94, 0) 23%),
		linear-gradient(135deg, #f8fcf5 0%, #ffffff 51%, #f5fbf2 100%);
	box-shadow: var(--val-ombre);
}
html body .val-encadre-deco::before,
html body .val-encadre-deco::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
html body .val-encadre-deco::before { width: 225px; height: 225px; top: -132px; right: 6%; background: var(--val-vert); opacity: 0.14; }
html body .val-encadre-deco::after { width: 155px; height: 155px; bottom: -88px; left: 4%; background: var(--val-turquoise); opacity: 0.13; }
html body .val-encadre-deco > * { position: relative; z-index: 1; }

/* ---------- 6. Encadrés simples, cartes ---------- */
html body .val-encadre { padding: 20px 24px; margin: 0 0 20px; border-radius: var(--val-arrondi); background: var(--val-fond-creme); border: 1px solid rgba(95, 158, 58, 0.18); }
html body .val-encadre-info { background: var(--val-fond-bleu); border-color: rgba(47, 154, 163, 0.25); }
html body .val-encadre-vert { background: var(--val-degrade-vert); border-color: transparent; color: var(--val-vert-fonce); box-shadow: var(--val-ombre-douce); }
html body .val-encadre-orange { background: var(--val-fond-orange); border-color: rgba(231, 131, 24, 0.25); }
html body .val-encadre-alerte { background: var(--val-fond-rouge); border-color: rgba(192, 57, 43, 0.25); }
html body .val-carte { padding: 24px; margin: 0 0 20px; border-radius: var(--val-arrondi); background: #fff; border: 1px solid #e5ddc8; box-shadow: var(--val-ombre-douce); }

/* Ligne « icône + texte » (ex : date, lieu, horaires) */
html body .val-ligne { display: flex; align-items: center; gap: 16px; }
html body .val-ligne > div:last-child { text-align: left; }
html body .val-icone { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: #fff; font-size: 26px; line-height: 1; }
html body .val-icone svg { width: 28px; height: 28px; }

/* Étiquette arrondie */
html body .val-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px; font-family: var(--val-police) !important; font-size: 14px !important; font-weight: 800 !important; line-height: 1.2; color: var(--val-orange) !important; background: var(--val-fond-orange); }
html body .val-badge-vert { color: var(--val-vert-fonce) !important; background: var(--val-fond-vert); }
html body .val-badge-bleu { color: var(--val-bleu) !important; background: var(--val-fond-bleu); }
html body .val-badge-plein { color: #fff !important; background: var(--val-degrade-bleu); }

/* Rangée d'étiquettes */
html body .val-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
html body .val-centre .val-badges,
html body .val-badges.val-centre { justify-content: center; }
html body .val-badges .val-badge { margin: 0; }

/* Points clés numérotés (petites cartes avec pastille) */
html body .val-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 30px; text-align: left; }
html body .val-point { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(33, 65, 101, 0.07); background: #fff; box-shadow: 0 6px 16px rgba(33, 65, 101, 0.06); color: var(--val-gris-fonce); font-size: 15px; font-weight: 600; line-height: 1.4; transition: transform 0.25s ease, box-shadow 0.25s ease; }
html body .val-point:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(33, 65, 101, 0.10); }
html body .val-pastille { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #214165 0%, #62d2d6 55%, #8ac25e 100%); color: #fff; font-size: 15px; font-weight: 800; }

/* ---------- 7. Boutons ---------- */
html body a.val-bouton,
html body button.val-bouton,
html body .val-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	font-family: var(--val-police) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	color: #fff !important;
	background: var(--val-degrade-bleu);
	box-shadow: 0 6px 14px rgba(33, 65, 101, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
html body a.val-bouton:hover,
html body a.val-bouton:focus,
html body .val-bouton:hover { color: #fff !important; font-size: 15px !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(33, 65, 101, 0.24); filter: brightness(1.05); }
html body .val-bouton.val-bouton-orange,
html body a.val-bouton.val-bouton-orange:hover,
html body a.val-bouton.val-bouton-orange:focus { color: #17324a !important; background: var(--val-degrade-orange); }
html body .val-bouton.val-bouton-vert { background: linear-gradient(135deg, #5f9e3a, #8ac25e); }
html body .val-bouton.val-bouton-contour,
html body a.val-bouton.val-bouton-contour:hover,
html body a.val-bouton.val-bouton-contour:focus { color: var(--val-bleu) !important; background: #fff; box-shadow: inset 0 0 0 2px var(--val-bleu); }
html body .val-bouton.val-bouton-petit,
html body a.val-bouton.val-bouton-petit:hover,
html body a.val-bouton.val-bouton-petit:focus { padding: 8px 16px; font-size: 13px !important; }
html body .val-bouton.val-bouton-large { display: flex; width: 100%; }
html body .val-boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html body .val-centre .val-boutons,
html body .val-boutons.val-centre { justify-content: center; }

/* ---------- 8. Listes, citation, séparateur ---------- */
html body .val-liste-coche { list-style: none !important; margin: 0 0 16px; padding: 0 !important; }
html body .val-liste-coche li { position: relative; margin: 0 0 8px; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--val-gris-fonce); }
html body .val-liste-coche li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--val-fond-vert); color: var(--val-vert-fonce); font-size: 12px; font-weight: 900; line-height: 20px; text-align: center; }
html body .val-citation { margin: 0 0 20px; padding: 14px 20px; border-left: 4px solid var(--val-orange); border-radius: 0 12px 12px 0; background: var(--val-fond-creme); font-style: italic; font-size: 17px !important; line-height: 1.6; color: var(--val-bleu) !important; }
html body .val-separateur { height: 4px; margin: 24px 0; border: 0; border-radius: 4px; background: linear-gradient(90deg, #214165, #62d2d6, #8ac25e, #e78318); }

/* ---------- 9. Colonnes (automatiquement en une colonne sur téléphone) ---------- */
html body .val-grille { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .val-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .val-grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Compléments pour le widget « Bloc de page » ---------- */
html body .val-texte p { margin: 0 0 0.8em; font-size: inherit !important; color: inherit !important; line-height: inherit; }
html body .val-texte p:last-child { margin-bottom: 0; }
html body .val-texte a:not(.val-bouton) { color: var(--val-bleu-moyen) !important; text-decoration: underline; }
html body .val-centre .val-liste-coche { display: inline-block; text-align: left; }
html body .val-points-1 { grid-template-columns: 1fr; }
html body .val-points-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .val-cadre-image { position: relative; overflow: hidden; padding: 48px 50px 44px; border-radius: var(--val-arrondi-grand); background-size: cover; background-position: center; box-shadow: var(--val-ombre); }
html body .val-sans-cadre { padding: 0; }
html body .val-bloc .val-centre-bloc { margin-left: auto; margin-right: auto; }
@media (max-width: 767px) {
	html body .val-cadre-image { padding: 30px 18px 26px; border-radius: 21px; }
	html body .val-points-3 { grid-template-columns: 1fr; }
	html body .val-cartes-2, html body .val-cartes-3 { grid-template-columns: 1fr; }
	html body .val-carte-info { padding: 20px 18px; gap: 14px; }
	html body .val-plan { aspect-ratio: 4 / 3; }
}

/* Cartes d'information colorées (icône + titre + texte), comme les pages Contacts, Structure, EcoleDirecte */
html body .val-cartes { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0 0 24px; text-align: left; }
html body .val-cartes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .val-cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .val-carte-info { position: relative; overflow: hidden; display: flex; gap: 18px; padding: 24px 26px; border: 1px solid rgba(33, 65, 101, 0.07); border-radius: 22px; background: #fff; box-shadow: var(--val-ombre-douce); transition: transform 0.25s ease, box-shadow 0.25s ease; }
html body .val-carte-info:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(33, 65, 101, 0.11); }
html body .val-carte-info .val-icone { background: linear-gradient(135deg, #dff4cd, #8ac25e); color: #fff; }
html body .val-carte-orange .val-icone { background: linear-gradient(135deg, #ffe6c2, #f0a94e); }
html body .val-carte-bleu .val-icone { background: linear-gradient(135deg, #d7e6f3, #7ea6cf); }
html body .val-carte-turquoise .val-icone { background: linear-gradient(135deg, #d7f3f3, #62d2d6); }
html body .val-carte-gris .val-icone { background: linear-gradient(135deg, #e6e6ea, #b7b9c2); }
html body .val-carte-info .val-icone svg, html body .val-carte-info .val-icone i { color: #fff; fill: #fff; }
html body .val-carte-corps { flex: 1; min-width: 0; }
html body .val-carte-titre { margin: 4px 0 10px !important; font-family: var(--val-police) !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.2; color: var(--val-bleu) !important; }
html body .val-carte-corps p { margin: 0 0 6px; font-size: 15px !important; line-height: 1.55; color: var(--val-gris) !important; }
html body .val-carte-corps p:last-child { margin-bottom: 0; }
html body .val-carte-corps strong { color: var(--val-bleu); font-weight: 800; }
html body .val-carte-corps a:not(.val-bouton) { color: var(--val-turquoise-fonce) !important; font-weight: 700; font-size: inherit !important; text-decoration: none; }
html body .val-carte-corps a:not(.val-bouton):hover { text-decoration: underline; }
html body .val-carte-gris .val-carte-corps p { font-style: italic; }

/* Photo arrondie, plan, signature */
html body .val-photo { display: block; width: 100%; height: auto; margin: 0 0 22px; border-radius: 22px; box-shadow: var(--val-ombre-douce); }
html body .val-plan { position: relative; overflow: hidden; margin: 0 0 22px; border-radius: 22px; box-shadow: var(--val-ombre-douce); aspect-ratio: 16 / 7; background: #eef2f4; }
html body .val-plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html body .val-signature { margin: 10px 0 0; font-family: var(--val-police) !important; font-size: 16px !important; font-style: italic; color: var(--val-gris-fonce) !important; }
html body .val-signature strong { display: block; margin-top: 4px; font-style: normal; font-weight: 800; color: var(--val-bleu); }

/* ---------- Bouton ancre (aller aux photos, retour en haut...) ---------- */
html body .val-ancre-wrap { margin: 18px 0; }
html body .val-ancre-wrap.val-ancre-cache { display: none; }
html body .val-bouton .val-ancre-icone { display: inline-flex; align-items: center; font-size: 1.05em; }
html body .val-bouton .val-ancre-icone svg { width: 1em; height: 1em; fill: currentColor; }
html body .val-ancre-anime .val-ancre-icone { animation: valAncreRebond 1.8s ease-in-out infinite; }
@keyframes valAncreRebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
html body .val-ancre-haut.val-ancre-anime .val-ancre-icone { animation-name: valAncreRebondHaut; }
@keyframes valAncreRebondHaut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
html body .val-ancre-compte { display: inline-flex; align-items: center; margin-left: 2px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); font-size: 0.85em; font-weight: 800; }
html body .val-bouton-contour .val-ancre-compte { background: var(--val-fond-bleu); }
html body .val-bouton.val-ancre-grand { padding: 15px 30px; font-size: 17px !important; }
/* Bouton flottant, en bas de l'écran */
html body .val-ancre-wrap.val-ancre-flottant { position: fixed; z-index: 9990; bottom: 22px; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
html body .val-ancre-flottant.val-ancre-droite { right: 22px; }
html body .val-ancre-flottant.val-ancre-gauche { left: 22px; }
html body .val-ancre-flottant.val-ancre-centre-flottant { left: 50%; transform: translate(-50%, 12px); }
html body .val-ancre-flottant.val-ancre-visible { opacity: 1; visibility: visible; transform: translateY(0); }
html body .val-ancre-flottant.val-ancre-centre-flottant.val-ancre-visible { transform: translate(-50%, 0); }
html body .val-ancre-flottant .val-bouton { box-shadow: 0 10px 24px rgba(23, 50, 74, 0.28); }
html body .val-ancre-rond .val-bouton { width: 52px; height: 52px; padding: 0; border-radius: 50%; }
html body .val-ancre-rond .val-ancre-texte, html body .val-ancre-rond .val-ancre-compte { display: none; }
@media (max-width: 767px) {
	html body .val-ancre-wrap.val-ancre-flottant { bottom: 16px; }
	html body .val-ancre-flottant.val-ancre-droite { right: 16px; }
	html body .val-ancre-flottant.val-ancre-gauche { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html body .val-ancre-anime .val-ancre-icone { animation: none; }
}

/* ---------- Nuage de mots (6 modèles) ---------- */
html body .val-nuage { margin: 28px auto; text-align: center; font-family: var(--val-police) !important; }
html body .val-nuage .val-nuage-titre { margin: 0 0 6px !important; font-size: clamp(26px, 3.6vw, 38px) !important; font-weight: 900 !important; font-style: italic; letter-spacing: -1px; line-height: 1.1; color: var(--val-bleu) !important; }
html body .val-nuage .val-nuage-titre em { font-style: italic; color: var(--val-vert) !important; }
html body .val-nuage-sous { margin: 0 0 28px; font-size: 15px !important; color: var(--val-gris-fonce) !important; }
html body .val-nuage-mots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; line-height: 1.1; margin: 0; padding: 0; list-style: none; }
html body .val-nuage-mots li { margin: 0; padding: 0; list-style: none; }
html body .val-mot { display: inline-block; font-weight: 800; color: var(--c, var(--val-bleu)); transform: rotate(var(--r, 0deg)); transition: transform 0.25s ease; }
html body .val-nuage-survol .val-mot:hover { transform: rotate(0deg) scale(1.12); }
html body .val-mot-0 { font-size: clamp(14px, 1.6vw, 16px); }
html body .val-mot-1 { font-size: clamp(16px, 2vw, 20px); }
html body .val-mot-2 { font-size: clamp(20px, 2.7vw, 28px); }
html body .val-mot-3 { font-size: clamp(26px, 3.8vw, 40px); }
html body .val-mot-4 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 900; }
html body .val-mot-italique { font-style: italic; font-weight: 700; }
html body .val-nuage-anime .val-mot { animation: valMotApparait 0.5s ease-out both; animation-delay: var(--d, 0s); }
@keyframes valMotApparait { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(0.6); } to { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); } }

/* 1. Pêle-mêle coloré : certains mots sur une étiquette */
html body .val-nuage--pelemele .val-mot-etiquette { padding: 6px 16px; border-radius: 999px; background: var(--f); color: var(--t, var(--c)); }

/* 2. Étiquettes : tous les mots sur une pastille */
html body .val-nuage--etiquettes .val-nuage-mots { gap: 10px; }
html body .val-nuage--etiquettes .val-mot { padding: 8px 18px; border-radius: 999px; background: var(--f); color: var(--t); font-weight: 800; box-shadow: 0 4px 10px rgba(33, 65, 101, 0.06); }
html body .val-nuage--etiquettes .val-mot-0 { font-size: 14px; }
html body .val-nuage--etiquettes .val-mot-1 { font-size: 15.5px; }
html body .val-nuage--etiquettes .val-mot-2 { font-size: 17px; }
html body .val-nuage--etiquettes .val-mot-3 { font-size: 20px; }
html body .val-nuage--etiquettes .val-mot-4 { font-size: 24px; }

/* 3. Nuage doux : sans inclinaison, les petits mots plus clairs */
html body .val-nuage--doux .val-nuage-mots { gap: 8px 20px; }
html body .val-nuage--doux .val-mot { font-weight: 700; }
html body .val-nuage--doux .val-mot-0 { opacity: 0.6; }
html body .val-nuage--doux .val-mot-1 { opacity: 0.78; }
html body .val-nuage--doux .val-mot-3, html body .val-nuage--doux .val-mot-4 { font-weight: 900; }

/* 4. Tableau d'école (ardoise et craie) */
html body .val-nuage--ardoise { padding: 40px 30px 44px; border: 14px solid #9a6a3a; border-radius: 18px; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 45%), #2f4a3a; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35), 0 14px 30px rgba(33, 65, 101, 0.18); }
html body .val-nuage--ardoise .val-mot,
html body .val-nuage--ardoise .val-nuage-titre,
html body .val-nuage--ardoise .val-nuage-sous { font-family: "Comic Sans MS", "Chalkboard SE", "Segoe Print", "Bradley Hand", cursive !important; text-shadow: 0 0 1px rgba(255, 255, 255, 0.5), 0 0 6px rgba(255, 255, 255, 0.12); }
html body .val-nuage--ardoise .val-nuage-titre { color: #ffffff !important; font-style: normal; letter-spacing: 0; }
html body .val-nuage--ardoise .val-nuage-titre em { color: #ffd36e !important; font-style: normal; }
html body .val-nuage--ardoise .val-nuage-sous { color: rgba(255, 255, 255, 0.8) !important; }
html body .val-nuage--ardoise .val-mot { font-weight: 700; }

/* 5. Post-it */
html body .val-nuage--postit .val-nuage-mots { gap: 18px; }
html body .val-nuage--postit .val-mot { padding: 16px 20px 18px; min-width: 110px; border-radius: 3px; background: var(--f); color: var(--t); font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive; font-weight: 700; box-shadow: 0 8px 16px rgba(33, 65, 101, 0.14); }
html body .val-nuage--postit .val-mot-0 { font-size: 15px; }
html body .val-nuage--postit .val-mot-1 { font-size: 17px; }
html body .val-nuage--postit .val-mot-2 { font-size: 20px; }
html body .val-nuage--postit .val-mot-3 { font-size: 24px; }
html body .val-nuage--postit .val-mot-4 { font-size: 30px; }

/* Post-it : photos punaisées entre les mots */
html body .val-nuage--postit .val-postit-photo { position: relative; margin: 6px 4px; padding: 8px 8px 10px; min-width: 0; border-radius: 3px; background: #fff; box-shadow: 0 10px 20px rgba(33, 65, 101, 0.18); }
html body .val-nuage--postit .val-postit-photo::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; transform: translateX(-50%) rotate(-4deg); background: var(--scotch, #fff3a8); opacity: 0.85; border-radius: 2px; }
html body .val-nuage--postit .val-postit-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin: 0; }
html body .val-nuage--postit .val-postit-photo figcaption { margin-top: 6px; font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--val-gris-fonce); text-align: center; }
html body .val-nuage--postit .val-postit-photo-petite { width: 130px; }
html body .val-nuage--postit .val-postit-photo-moyenne { width: 180px; }
html body .val-nuage--postit .val-postit-photo-grande { width: 240px; }

/* 6. Bulles */
html body .val-nuage--bulles .val-nuage-mots { gap: 14px; }
html body .val-nuage--bulles .val-mot { display: inline-flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%), var(--c); color: #fff; font-weight: 800; text-align: center; line-height: 1.1; box-shadow: 0 8px 18px rgba(33, 65, 101, 0.15); }
html body .val-nuage--bulles .val-mot-0 { width: 92px; font-size: 13px; }
html body .val-nuage--bulles .val-mot-1 { width: 108px; font-size: 14.5px; }
html body .val-nuage--bulles .val-mot-2 { width: 128px; font-size: 16px; }
html body .val-nuage--bulles .val-mot-3 { width: 150px; font-size: 19px; }
html body .val-nuage--bulles .val-mot-4 { width: 176px; font-size: 22px; }
html body .val-nuage--bulles .val-mot-long { font-size: 0.8em !important; letter-spacing: -0.2px; }
html body .val-nuage--bulles.val-nuage-flotte .val-mot { animation: valBulleFlotte 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes valBulleFlotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 767px) {
	html body .val-nuage-mots { gap: 8px 12px; }
	html body .val-nuage--ardoise { padding: 28px 14px 30px; border-width: 10px; }
	html body .val-nuage--bulles .val-nuage-mots { gap: 10px; }
	html body .val-nuage--bulles .val-mot-0 { width: 76px; font-size: 11.5px; }
	html body .val-nuage--bulles .val-mot-1 { width: 86px; font-size: 12.5px; }
	html body .val-nuage--bulles .val-mot-2 { width: 100px; font-size: 13.5px; }
	html body .val-nuage--bulles .val-mot-3 { width: 116px; font-size: 15px; }
	html body .val-nuage--bulles .val-mot-4 { width: 134px; font-size: 17px; }
	html body .val-nuage--postit .val-mot { min-width: 0; padding: 12px 14px 14px; }
	html body .val-nuage--postit .val-postit-photo { padding: 6px 6px 8px; }
	html body .val-nuage--postit .val-postit-photo-petite { width: 110px; }
	html body .val-nuage--postit .val-postit-photo-moyenne { width: 140px; }
	html body .val-nuage--postit .val-postit-photo-grande { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	html body .val-nuage-anime .val-mot, html body .val-nuage--bulles.val-nuage-flotte .val-mot { animation: none; }
}

/* ---------- 10. Apparition douce à l'affichage ---------- */
html body .val-apparition { animation: vsApparition 0.7s ease-out both; }
html body .val-apparition-2 { animation-delay: 0.15s; }
html body .val-apparition-3 { animation-delay: 0.3s; }
@keyframes vsApparition { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	html body .val-apparition { animation: none; }
}

/* ---------- 11. Tablette et téléphone ---------- */
@media (max-width: 1024px) {
	html body .val-cartes-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html body .val-grille-3,
	html body .val-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	html body .val-encadre-deco { padding: 30px 18px 26px; border-radius: 21px; }
	html body .val-intertitre { font-size: 18px !important; }
	html body .val-titre { letter-spacing: -0.3px; }
	html body .val-grille,
	html body .val-grille-3,
	html body .val-grille-4 { grid-template-columns: 1fr; }
	html body .val-texte { font-size: 15px !important; }
	html body .val-l { font-size: 17px !important; }
	html body .val-xl { font-size: 20px !important; }
	html body .val-sous-titre { font-size: 15.5px !important; }
	html body .val-ligne { gap: 12px; }
	html body .val-icone { flex-basis: 44px; width: 44px; height: 44px; border-radius: 13px; }
	html body .val-boutons .val-bouton { flex: 1 1 auto; }
	html body .val-points { grid-template-columns: 1fr; }
	html body .val-ligne-mobile-colonne { flex-direction: column; text-align: center; }
	html body .val-ligne-mobile-colonne > div:last-child { text-align: center; }
}
