/*
Theme Name: Rêve d'enfant
Theme URI: https://revedenfant.org
Description: Thème enfant de Twenty Twenty-Five pour l'association Rêve d'enfant — cours d'arabe Montessori pour enfants à Courbevoie.
Author: Azdine Mansour
Author URI: https://azdinemansour.fr
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revedenfant
*/

/* Hero scroll indicator */
.scroll-indicator {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	animation: bounce-down 2s ease-in-out infinite;
}
.scroll-indicator span {
	display: block;
	width: 20px;
	height: 20px;
	border-right: 2px solid rgba(255,255,255,0.4);
	border-bottom: 2px solid rgba(255,255,255,0.4);
	transform: rotate(45deg);
}
@keyframes bounce-down {
	0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
	50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* Method ALEEF icon wrapper */
.method-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background: #F0F7F0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	color: #2E7D8C;
}

/* Age badge pills */
.age-badge {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 50px;
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.88rem;
}
.age-badge--green { background: #6AAF6E; }
.age-badge--teal { background: #2E7D8C; }
.age-badge--navy { background: #1B3A5C; }

/* Age cards hover */
.age-card {
	transition: transform 0.25s, box-shadow 0.25s;
}
.age-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 32px rgba(27,58,92,0.14);
}

/* Story beat image placeholder */
.story-placeholder {
	border-radius: 16px;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.story-placeholder--teal {
	background: rgba(46,125,140,0.08);
	color: #2E7D8C;
}
.story-placeholder--green {
	background: rgba(106,175,110,0.08);
	color: #6AAF6E;
}
.story-placeholder span {
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: 1rem;
	text-align: center;
}

/* Scroll reveal animations */
.reveal {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}
.reveal img {
	transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
	transform: scale(0.92);
	opacity: 0;
}
.reveal.visible img {
	transform: scale(1);
	opacity: 1;
}

/* Word reveal */
.word-reveal .word {
	display: inline-block;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	margin-right: 0.3em;
}
.word-reveal .word.word-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Counter pulse */
@keyframes counter-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.12); }
	100% { transform: scale(1); }
}
.counter-number.counted {
	animation: counter-pulse 0.5s ease;
}

/* Timeline vertical */
.timeline-vertical {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 0;
}
.timeline-vertical::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #A8E6A3;
	transform: translateX(-50%);
}
.timeline-node {
	display: grid;
	grid-template-columns: 1fr 60px 1fr;
	gap: 20px;
	align-items: center;
	margin-bottom: 48px;
	position: relative;
}
.timeline-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.1rem;
	color: #fff;
	z-index: 2;
	margin: 0 auto;
}
.timeline-circle--green { background: #6AAF6E; }
.timeline-circle--teal { background: #2E7D8C; }
.timeline-circle--navy { background: #1B3A5C; }
.timeline-node--left .timeline-card { text-align: right; }
.timeline-node--left .timeline-img { text-align: left; }
.timeline-node--right .timeline-card { text-align: left; }
.timeline-node--right .timeline-img { text-align: right; }
.timeline-img img {
	border-radius: 16px;
	max-width: 100%;
}

/* Séance type 3-column layout */
.seance-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 32px;
	align-items: center;
}
.seance-col {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.seance-phase-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1rem;
	color: #1B3A5C;
	margin-bottom: 2px;
}
.seance-phase-duration {
	color: #6AAF6E;
	font-weight: 800;
	font-size: 0.85rem;
}
.seance-phase-desc {
	font-size: 0.88rem;
	color: #555;
	line-height: 1.5;
}

/* Testimonial pattern */
.testimonial-pattern {
	position: relative;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(255,255,255,0.03) 0px,
		rgba(255,255,255,0.03) 2px,
		transparent 2px,
		transparent 12px
	);
}

/* Responsive */
@media (max-width: 768px) {
	.timeline-vertical::before { left: 24px; }
	.timeline-node {
		grid-template-columns: 48px 1fr;
		gap: 16px;
	}
	.timeline-node--left .timeline-card,
	.timeline-node--right .timeline-card { text-align: left; }
	.timeline-node--left .timeline-img,
	.timeline-node--right .timeline-img { grid-column: 1 / -1; }
	.timeline-circle { grid-row: 1; }
	.seance-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.seance-grid img { max-width: 300px; margin: 0 auto; }
	.seance-col > div { text-align: left !important; }
}
