/*
Theme Name:   Twenty Twenty-Three Child
Theme URI:    https://example.com/twentytwentythree-child
Description:  Child theme de Twenty Twenty-Three avec charte typographique personnalisee (Inter, couleurs, echelle fluid)
Author:       Certified Dyslexic
Author URI:   https://example.com
Template:     twentytwentythree
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:  twentytwentythree-child
*/

/* Import Google Font Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/*
 * Note: La majorite des styles est geree via theme.json
 * Ce fichier CSS est reserve aux ajustements impossibles en JSON
 * ou aux overrides specifiques si necessaires.
 */

/* ============================================
   ORNEMENTS DE TITRES
   Positionnement robuste des SVG decoratifs
   ============================================ */

.title-with-ornament {
	position: relative;
	display: inline-block;
}

.title-with-ornament .ornament-svg {
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

/* Ornement sous le titre (style underline) */
.ornament-underline {
	bottom: -0.1em;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	max-width: 400px;
	height: auto;
}

/* Ornement derriere le titre */
.ornament-behind {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120%;
	max-width: 500px;
	height: auto;
}

/* Container pour titre + ornement */
.wp-block-group.has-ornament {
	position: relative;
}

.wp-block-group.has-ornament > .wp-block-image.ornament-image {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	margin: 0 !important;
}

.wp-block-group.has-ornament > .wp-block-image.ornament-image img {
	width: auto;
	height: auto;
	max-width: 100%;
}

.wp-block-group.has-ornament > *:not(.ornament-image) {
	position: relative;
	z-index: 1;
}

/* Ornement positionne sous le titre - aligne a gauche par defaut */
.ornament-position-bottom {
	bottom: -0.25rem;
	left: 0;
}

/* Ornement positionne sous le titre - centre */
.ornament-position-bottom-center {
	bottom: -0.25rem;
	left: 50%;
	transform: translateX(-50%);
}

/* Ornement positionne derriere centre */
.ornament-position-center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Ornement avec largeur specifique (editable via WP) */
.ornament-image.has-custom-width img {
	width: var(--ornament-width, auto);
}

/* ============================================
   ORNEMENT DERRIERE UN MOT SPECIFIQUE
   ============================================ */

.word-with-ornament {
	position: relative;
	display: inline-block;
	z-index: 1;
}

.word-ornament {
	position: absolute;
	left: 50%;
	bottom: -0.1em;
	transform: translateX(-50%);
	width: 130%;
	pointer-events: none;
	z-index: -1;
}

.word-ornament img {
	display: block;
	width: 100%;
	height: auto;
}

/* Variante pour titres de section (2024, 2022) */
.word-ornament-title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 150%;
	pointer-events: none;
	z-index: -1;
}

.word-ornament-title img {
	display: block;
	width: 100%;
	height: auto;
}

/* Variante pour titres de page (Presse, Ressources) */
.word-ornament-page {
	position: absolute;
	left: 50%;
	bottom: -0.2em;
	transform: translateX(-50%);
	width: 100%;
	pointer-events: none;
	z-index: -1;
}

.word-ornament-page img {
	display: block;
	width: 100%;
	height: auto;
}

/* ============================================
   COMPOSANT QUOTE UNIFIE
   ============================================ */

/* Container principal */
.quote-block {
	position: relative;
}

/* Quote open - au debut */
.quote-block .quote-open {
	width: 32px;
	height: auto;
	margin-bottom: 0.5rem;
}

/* Texte de la citation */
.quote-block .quote-text {
	font-size: var(--wp--preset--font-size--quote);
	line-height: 1.2;
	font-weight: 700;
	margin: 0;
}

/* Quote close - inline apres le texte */
.quote-block .quote-close {
	display: inline;
	width: 24px;
	height: auto;
	vertical-align: middle;
	margin-left: 0.5rem;
}

/* Nom de l'auteur */
.quote-block .quote-author {
	font-size: var(--wp--preset--font-size--body);
	margin: 1rem 0 0 0;
}

/* Role/metier - pas de marge supplementaire */
.quote-block .quote-role {
	font-size: var(--wp--preset--font-size--body-small);
	margin: 0;
	color: var(--wp--preset--color--primary-text);
}

/* Liste de quotes (qui-sommes-nous) */
.quotes-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 60rem;
	margin: 0 auto;
}

/* Card quote avec avatar */
.quote-card {
	display: flex;
	gap: 3rem;
	align-items: center;
}

.quote-card .quote-avatar {
	flex-shrink: 0;
	width: 40%;
}

.quote-card .quote-avatar img {
	width: 100%;
	height: auto;
}

.quote-card .quote-block {
	flex: 1;
	width: 60%;
}

/* Quote inversee (image a droite) */
.quote-card.quote-inverted {
	flex-direction: row-reverse;
}

/* Responsive quotes */
@media (max-width: 768px) {
	.quote-block .quote-open {
		width: 24px;
	}

	.quote-block .quote-close {
		width: 20px;
	}

	.quote-card {
		flex-direction: column;
		gap: 1.5rem;
	}

	.quote-card.quote-inverted {
		flex-direction: column;
	}

	.quote-card .quote-avatar {
		width: 50%;
		max-width: 200px;
	}

	.quote-card .quote-block {
		width: 100%;
	}
}

/* ============================================
   SECTIONS ET LAYOUT
   Gaps uniformes et responsive
   ============================================ */

/* Section standard - gap desktop 6rem, mobile 4rem */
.section-standard {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

@media (max-width: 768px) {
	.section-standard {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
}

/* Gap interne des sections */
.section-inner-gap {
	gap: 3rem;
}

@media (max-width: 768px) {
	.section-inner-gap {
		gap: 2rem;
	}
}

/* Hero section - plus grand padding */
.section-hero {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

@media (min-width: 769px) {
	.section-hero {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
}

/* ============================================
   UTILITAIRES
   ============================================ */

/* Texte uppercase */
.text-uppercase {
	text-transform: uppercase;
}

/* Letter spacing pour titres */
.letter-spacing-tight {
	letter-spacing: -0.02em;
}

/* Hide sur mobile/desktop */
@media (max-width: 768px) {
	.hide-mobile {
		display: none !important;
	}
}

@media (min-width: 769px) {
	.hide-desktop {
		display: none !important;
	}
}

/* ============================================
   PAGE SANS TITRE WP
   Masque le titre de page WordPress natif
   quand on utilise les patterns avec H1 Display
   ============================================ */

/* Masquer TOUS les titres de page WordPress natifs */
.wp-block-post-title,
h1.wp-block-post-title,
.entry-title,
header.entry-header {
	display: none !important;
}

/* ============================================
   REDUCTION DES PADDINGS SECTIONS
   ============================================ */

.section-hero {
	padding: 2rem 0 !important;
}

/* Enlever padding Y sur wp-site-blocks */
.wp-site-blocks {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* ============================================
   NAVIGATION HEADER
   ============================================ */

.site-header {
	max-width: 100vw;
	position: sticky;
	padding: 1rem 2rem;
	background-color: var(--wp--preset--color--background);
	z-index: 10;
}

.site-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 100%;
	margin: 0 auto;
}

.site-header-left {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-header-right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-logo img {
	height: 40px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-nav a {
	color: var(--wp--preset--color--primary-text);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--body);
}

.site-nav a:hover {
	color: var(--wp--preset--color--accent);
}

/* Active menu item */
.site-nav a.is-active {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white) !important;
	padding: 0 0.25rem;
}

/* Dropdown menu */
.nav-item-dropdown {
	position: relative;
}

.nav-item-dropdown .dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--wp--preset--color--white);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	padding: 0.5rem 0;
	min-width: 200px;
	z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
	display: block;
}

.dropdown-menu a {
	display: block;
	padding: 0.5rem 1rem;
}

.dropdown-menu a:hover {
	background: var(--wp--preset--color--accent-light);
}

.dropdown-menu a.is-active {
	background-color: transparent;
	color: var(--wp--preset--color--accent) !important;
	padding: 0.5rem 1rem;
}

/* CTA Contact */
.nav-cta {
	background-color: var(--wp--preset--color--primary-text);
	color: var(--wp--preset--color--white) !important;
	padding: 0.5rem 1rem;
	border-radius: 4px;
}

.nav-cta:hover {
	background-color: var(--wp--preset--color--accent);
}

/* ============================================
   BURGER MENU (under 1280px)
   ============================================ */

.burger-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 20px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 101;
}

.burger-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--wp--preset--color--primary-text);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-toggle.is-open span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.burger-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.burger-toggle.is-open span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* Mobile nav hidden by default */
.mobile-nav {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--wp--preset--color--white);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	z-index: 100;
	padding: 2rem;
}

.mobile-nav.is-open {
	display: flex;
}

.mobile-nav a {
	font-size: var(--wp--preset--font-size--heading-3);
	color: var(--wp--preset--color--primary-text);
	text-decoration: none;
}

.mobile-nav a:hover {
	color: var(--wp--preset--color--accent);
}

.mobile-nav .nav-cta {
	margin-top: 1rem;
	padding: 0.75rem 1.5rem;
}

@media (max-width: 1280px) {
	.burger-toggle {
		display: flex;
	}

	.site-header-left .site-nav,
	.site-header-right .site-nav {
		display: none;
	}
}

.section-standard {
	padding-top: 3rem !important;
	padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
	.section-hero,
	.section-standard {
		padding-top: 2rem !important;
		padding-bottom: 2rem !important;
	}
}

/* Margins on sides for viewports under 1280px (except full-width accentLight sections) */
@media (max-width: 1280px) {
	.section-hero,
	.section-standard:not(.has-accent-light-background-color) {
		margin-left: 2rem;
		margin-right: 2rem;
	}
}

.banner-full {
	padding-top: 3rem !important;
	padding-bottom: 3rem !important;
}

/* ============================================
   BANNER FULL WIDTH
   Section pleine largeur avec fond colore
   ============================================ */

.banner-full {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* Responsive banner-full */
@media (max-width: 768px) {
	.banner-full {
		padding-top: 4rem !important;
		padding-bottom: 4rem !important;
	}
}

/* ============================================
   PRESS & RESSOURCES CARDS
   Cards sans fond avec logos et thumbnails
   ============================================ */

/* Press card - thumbnail full width */
.press-card .press-thumbnail img,
.ressource-card .ressource-thumbnail img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Press card - logo max height 48px */
.press-card .press-logo img {
	max-height: 48px;
	height: auto;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* Ressource card - logo max height */
.ressource-card .ressource-logo img {
	max-height: 15rem;
	width: 100%;
	object-fit: contain;
}

/* Links accent color */
.press-card a,
.ressource-card a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.press-card a:hover,
.ressource-card a:hover {
	text-decoration: underline;
}

/* External link with arrow icon */
.external-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.external-link::after {
	content: '';
	display: inline-block;
	width: 0.75em;
	height: 0.75em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23297CE2' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

/* Info alert banner */
.info-alert {
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 0.25rem;
	background-color: var(--wp--preset--color--accent-light);
	padding: 1rem 1.5rem;
	margin: 1rem 0;
}

.info-alert p {
	margin: 0;
}

/* ============================================
   TAMPON SELECTOR
   ============================================ */

.tampon-selector {
	border: 1px solid #E5E9ED;
	border-radius: 8px;
	padding: 2rem;
}

.tampon-preview {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.5rem;
	min-height: 17rem;
}

.tampon-preview img {
	max-width: 17rem;
	max-height: 17rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tampon-select-wrapper {
	margin-bottom: 1rem;
}

.tampon-select-wrapper label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.5rem;
	font-size: var(--wp--preset--font-size--body);
}

.tampon-select-wrapper select {
	width: 100%;
	padding: 0.75rem 2.5rem 0.75rem 1rem;
	border: 1px solid #E5E9ED;
	border-radius: 4px;
	font-size: var(--wp--preset--font-size--body);
	background-color: var(--wp--preset--color--white);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}

.tampon-download-btn {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--wp--preset--color--primary-text);
	color: var(--wp--preset--color--white);
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
}

.tampon-help-link {
	display: block;
	text-align: center;
	margin-top: 0.75rem;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--body-small);
}

.tampon-help-link:hover {
	text-decoration: underline;
}

.tampon-download-btn:hover {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

/* ============================================
   VIMEO VIDEO EMBED
   ============================================ */

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin-top: 2rem;
}

.video-container iframe,
.video-container .vp-center {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ============================================
   GALLERY MASONRY
   ============================================ */

.gallery-masonry {
	columns: 3;
	column-gap: 1rem;
}

.gallery-masonry figure {
	margin: 0 0 1rem 0;
	break-inside: avoid;
}

.gallery-masonry img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

@media (max-width: 768px) {
	.gallery-masonry {
		columns: 2;
	}
}

@media (max-width: 480px) {
	.gallery-masonry {
		columns: 1;
	}
}


/* ============================================
   TITRES SECTIONS UPPERCASE BOLD
   ============================================ */

.section-title-uppercase {
	text-transform: uppercase;
	font-weight: 700;
}

/* ============================================
   IMAGE QUI DEPASSE DU FOND
   Section "La naissance du projet"
   ============================================ */

@media (min-width: 1440px) {
	.image-overflow-section {
		margin-top: -1.5rem;
		margin-bottom: -1.5rem;
	}

	.image-overflow-section img {
		height: calc(100% + 3rem);
		object-fit: cover;
	}
}

/* ============================================
   PRESSE ET RESSOURCES - 2 COLONNES
   ============================================ */

.press-grid-2cols,
.ressources-grid-2cols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

@media (max-width: 768px) {
	.press-grid-2cols,
	.ressources-grid-2cols {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   TROUBLES APPARENTES - 2 COLONNES
   ============================================ */

.troubles-grid-2cols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

@media (max-width: 768px) {
	.troubles-grid-2cols {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
	padding: 2rem;
	background-color: var(--wp--preset--color--background);
	text-align: center;
}

.site-footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.footer-logo img {
	height: 80px;
	width: auto;
}

.footer-powered {
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--body-small);
}

.footer-powered a {
	color: var(--wp--preset--color--primary-text);
	text-decoration: none;
}

.footer-powered a:hover {
	color: var(--wp--preset--color--accent);
}

.footer-social {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-social img {
	width: 24px;
	height: 24px;
}

.footer-legal {
	font-size: var(--wp--preset--font-size--body-small);
	color: var(--wp--preset--color--primary-text);
	text-decoration: none;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.footer-legal:hover {
	opacity: 1;
	color: var(--wp--preset--color--accent);
}

/* ============================================
   CTA AVEC ARROW (fleche externe)
   ============================================ */

.cta-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
}

.cta-wrapper .cta-arrow {
	width: 64px;
	height: auto;
	flex-shrink: 0;
}

/* ============================================
   ANIMATIONS FADE IN
   ============================================ */

/* État initial - invisible */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
	opacity: 0;
	transform: translateX(-30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right {
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scale {
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* État visible - après animation */
.fade-in.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible,
.fade-in-scale.is-visible {
	opacity: 1;
	transform: translateY(0) translateX(0) scale(1);
}

/* Délais pour animations en cascade */
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }
.fade-delay-5 { transition-delay: 0.5s; }

/* Animation hero au chargement */
.hero-animate {
	opacity: 0;
	transform: translateY(20px);
	animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-animate-delay {
	opacity: 0;
	transform: translateY(20px);
	animation: heroFadeIn 0.8s ease-out 0.2s forwards;
}

@keyframes heroFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Animation pour les images */
.image-reveal {
	opacity: 0;
	transform: scale(0.98);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.image-reveal.is-visible {
	opacity: 1;
	transform: scale(1);
}

/* Animation pour les cards */
.card-animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.card-animate.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger pour les grilles */
.press-grid-2cols .press-card,
.ressources-grid-2cols .ressource-card,
.troubles-grid-2cols > div,
.gallery-masonry figure {
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.press-grid-2cols .press-card.is-visible,
.ressources-grid-2cols .ressource-card.is-visible,
.troubles-grid-2cols > div.is-visible,
.gallery-masonry figure.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Quote animation */
.quote-card {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.quote-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Section animations */
.section-hero,
.section-standard,
.banner-full {
	opacity: 0;
	transition: opacity 0.6s ease-out;
}

.section-hero.is-visible,
.section-standard.is-visible,
.banner-full.is-visible {
	opacity: 1;
}

/* Désactiver animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
	.fade-in,
	.fade-in-left,
	.fade-in-right,
	.fade-in-scale,
	.hero-animate,
	.hero-animate-delay,
	.image-reveal,
	.card-animate,
	.quote-card,
	.section-hero,
	.section-standard,
	.banner-full,
	.press-grid-2cols .press-card,
	.ressources-grid-2cols .ressource-card,
	.troubles-grid-2cols > div,
	.gallery-masonry figure {
		opacity: 1;
		transform: none;
		animation: none;
		transition: none;
	}
}

/* ============================================
   EDITEUR GUTENBERG - Désactiver animations
   Assure que le contenu est visible dans l'admin
   ============================================ */

.block-editor-page .fade-in,
.block-editor-page .fade-in-left,
.block-editor-page .fade-in-right,
.block-editor-page .fade-in-scale,
.block-editor-page .hero-animate,
.block-editor-page .hero-animate-delay,
.block-editor-page .image-reveal,
.block-editor-page .card-animate,
.block-editor-page .quote-card,
.block-editor-page .section-hero,
.block-editor-page .section-standard,
.block-editor-page .banner-full,
.block-editor-page .press-grid-2cols .press-card,
.block-editor-page .ressources-grid-2cols .ressource-card,
.block-editor-page .troubles-grid-2cols > div,
.block-editor-page .gallery-masonry figure,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .fade-in-left,
.editor-styles-wrapper .fade-in-right,
.editor-styles-wrapper .fade-in-scale,
.editor-styles-wrapper .hero-animate,
.editor-styles-wrapper .hero-animate-delay,
.editor-styles-wrapper .image-reveal,
.editor-styles-wrapper .card-animate,
.editor-styles-wrapper .quote-card,
.editor-styles-wrapper .section-hero,
.editor-styles-wrapper .section-standard,
.editor-styles-wrapper .banner-full,
.editor-styles-wrapper .press-grid-2cols .press-card,
.editor-styles-wrapper .ressources-grid-2cols .ressource-card,
.editor-styles-wrapper .troubles-grid-2cols > div,
.editor-styles-wrapper .gallery-masonry figure {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}

/* ============================================
   BUTTON HOVER GLOBAL
   Smooth transition on all buttons
   ============================================ */

.wp-block-button__link,
.wp-element-button,
.tampon-download-btn {
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	background-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--white) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(41, 124, 226, 0.3);
}

.wp-block-button__link:active,
.wp-element-button:active,
.tampon-download-btn:active {
	transform: translateY(0);
}

.nav-cta {
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(41, 124, 226, 0.3);
}

.tampon-download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(41, 124, 226, 0.3);
}

/* ============================================
   TROUBLE CARDS - TWO COLUMN WITH IMAGE
   ============================================ */

.trouble-card {
	display: flex;
	align-items: center;
	gap: 2rem;
	background: var(--wp--preset--color--white);
	border-radius: 8px;
	padding: 2rem;
	border: 1px solid var(--wp--preset--color--accent-light);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.trouble-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.trouble-card-image {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trouble-card-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.trouble-card-content {
	flex: 1;
}

.trouble-card-content h3 {
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	margin: 0 0 0.25rem 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.trouble-card-content .trouble-subtitle {
	font-size: var(--wp--preset--font-size--body-small);
	color: var(--wp--preset--color--primary-text);
	opacity: 0.7;
	margin: 0 0 0.75rem 0;
	font-style: italic;
}

.trouble-card-content .trouble-download {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.trouble-card-content .trouble-download:hover {
	text-decoration: underline;
}

.trouble-card-content p:last-child {
	font-size: var(--wp--preset--font-size--body-small);
	margin: 0;
	line-height: 1.6;
}

@media (max-width: 600px) {
	.trouble-card {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.trouble-card-image {
		width: 80px;
		height: 80px;
	}
}

/* ============================================
   STATISTICS SECTION - QUI SOMMES NOUS
   ============================================ */

.stats-section {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	padding: 3rem;
	background: linear-gradient(135deg, rgba(41, 124, 226, 0.04) 0%, rgba(41, 124, 226, 0.08) 100%);
	border: 1px solid rgba(41, 124, 226, 0.12);
	border-radius: 12px;
}

.stat-item {
	text-align: center;
	padding: 1.5rem 1rem;
}

.stat-number {
	font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
	font-weight: 800;
	color: var(--wp--preset--color--accent);
	line-height: 1;
	margin-bottom: 0.5rem;
	font-variant-numeric: tabular-nums;
}

.stat-label {
	font-size: var(--wp--preset--font-size--body-small);
	color: var(--wp--preset--color--primary-text);
	line-height: 1.4;
	max-width: 200px;
	margin: 0 auto;
}

@media (max-width: 600px) {
	.stats-section {
		grid-template-columns: 1fr 1fr;
		padding: 2rem 1rem;
		gap: 1rem;
	}

	.stat-item {
		padding: 1rem 0.5rem;
	}
}

/* ============================================
   CONTACT PAGE REDESIGN
   ============================================ */

.contact-layout {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 2rem;
	align-items: start;
}

.contact-info-box {
	padding: 2rem;
}

.contact-info-box p {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.7;
	margin: 0 0 1.5rem 0;
}

.contact-info-box .contact-email {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.contact-info-box .contact-email:hover {
	text-decoration: underline;
}

/* Contact Form 7 styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid var(--wp--preset--color--accent-light);
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	background: var(--wp--preset--color--white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(41, 124, 226, 0.1);
}

.wpcf7 textarea {
	min-height: 150px;
	resize: vertical;
}

.wpcf7 input[type="submit"] {
	background-color: var(--wp--preset--color--primary-text);
	color: var(--wp--preset--color--white);
	padding: 0.875rem 2rem;
	border: none;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
	background-color: var(--wp--preset--color--accent);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(41, 124, 226, 0.3);
}

.wpcf7 input[type="submit"]:active {
	transform: translateY(0);
}

.wpcf7 label {
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 500;
	display: block;
	margin-bottom: 0.25rem;
}

.wpcf7 p {
	margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* ============================================
   MENTIONS LEGALES
   ============================================ */

.mentions-legales h2 {
	font-size: var(--wp--preset--font-size--heading-2);
	margin-top: 3rem;
	margin-bottom: 1rem;
	font-weight: 700;
}

.mentions-legales h3 {
	font-size: var(--wp--preset--font-size--body-large);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.mentions-legales p,
.mentions-legales li {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.7;
}

.mentions-legales ul {
	padding-left: 1.5rem;
	margin: 0.5rem 0;
}

.mentions-legales a {
	color: var(--wp--preset--color--accent);
}
