* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header-nav-newsletters {
    position: absolute;
    top: 1.5rem;
    right: 14rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.6s ease-out;
}

.header-nav-newsletters svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.header-nav-newsletters-btn {
	background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-nav-newsletters-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-nav-newsletters svg path {
    stroke: #fff;
}

.header-nav-lang-selector {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-nav-lang-selector svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.header-nav-lang-selector svg path {
    stroke: #fff;
}

.header-nav-lang-selector select {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-nav-lang-selector select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-nav-lang-selector select option {
    background: #667eea;
    color: #fff;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

footer {
    position: fixed;
    bottom: 0;
	left: 0;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-in 0.5s both;
	padding: 1.5rem 0;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin: 0;
}

@media (max-width: 768px) {
    .lang-selector {
        top: 1rem;
        right: 1rem;
    }
    
    .lang-selector select {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    footer {
        bottom: 1rem;
    }
    
    footer p {
        font-size: 0.7rem;
    }
	
	.carousel {
		width: 80%; /* prend un peu plus de place sur petits écrans */
	}
	
	.carousel-track {
		gap: 4em; /* espace un peu réduit pour mobile */
		padding-right: 4em;
	}
	
	.carousel-track svg {
		height: 50%; /* icônes plus petites sur mobile */
	}
}

/* Encore plus petit sur très petits écrans */
@media (max-width: 480px) {
	.carousel {
		width: 100%; /* plein écran sur mobile */
		min-width: 100vw;
	}
	
	.carousel-track {
		gap: 3em;         /* encore un peu moins d’espace */
		padding-right: 3em;
	}
	
	.carousel-track svg {
		height: 40%; /* SVG encore plus petits sur smartphone */
	}
}

/* Styles de base (écran large) pour le carousel */
.carousel {
	margin: 100px auto;
	width: 50%; /* Ajuste ici la largeur sur grand écran */
	max-width: 700px; /* limite supérieure */
	min-width: 320px; /* largeur minimale égale à un petit écran de smartphone */
	/* border: 5px solid red; */
	display: flex;
	overflow-x: auto;
	overflow: hidden;
	position: relative;
	margin-top: 3rem;
	scrollbar-width: none; /* masque la scrollbar sur Firefox */
}

.carousel:: -webkit-scrollbar {
	display:none; /* masque la scrollbar sur Chrome/Safari */
}

.carousel-track {
	height: 8vh; /* responsive selon la taille de l’écran */
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4em; /* plus grand espace entre les SVG */
	animation: scroll 40s infinite linear;
	padding-right: 4em; /* plus grand espace entre les SVG */
}

.carousel-track svg {
	height: 60%; /* prend 60% de la hauteur du track */
	width: auto;
	flex-shrink: 0;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.carousel-track svg:hover {
	opacity: 0.9;
	/* transform: scale(1.05); */
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Option : pause au survol */
.carousel-track:hover {
	/* animation-play-state: paused; */
}

/* Styles pour les SVG */
.logo-bg { fill: rgba(255, 255, 255, 0.15); }
.logo-fg { fill: rgba(255, 255, 255, 0.50); }

/* Styles pour la page stats.html */
.stats-container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stats-header {
    margin-bottom: 3rem;
}

.stats-header h1 {
    margin-bottom: 0.5rem;
}

.stats-header .subtitle {
    opacity: 0.8;
    font-size: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Augmente la taille des badges tout en gardant le ratio */
.stat-badge img {
    width: 160px;        /* largeur fixe sur desktop */
    height: auto;
    max-width: 90%;      /* limite la taille sur petits écrans */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); /* petit effet sympa */
    transition: transform 0.3s ease;
}

/* Effet subtil au survol */
.stat-badge img:hover {
    transform: scale(1.05);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .stats-container {
        padding: 1.5rem;
    }
}

/* ========================================
   STYLES POUR LA PAGE SPLASH (index.html)
   ======================================== */

.splash-logo {
    width: 400px;
    height: auto;
    transition: transform 0.4s ease;
}

.splash-logo:hover {
    transform: scale(1.05);
}

/* Animation pour chaque polygone */
.splash-logo polygon {
    opacity: 0;
    animation: slideInFade 0.8s ease-out forwards;
}

/* Délais séquentiels pour chaque élément */
.splash-logo polygon:nth-child(1) { animation-delay: 0.1s; }
.splash-logo polygon:nth-child(2) { animation-delay: 0.2s; }
.splash-logo g:nth-child(4) polygon:nth-child(1) { animation-delay: 0.3s; }
.splash-logo g:nth-child(4) polygon:nth-child(2) { animation-delay: 0.4s; }
.splash-logo g:nth-child(4) polygon:nth-child(3) { animation-delay: 0.5s; }
.splash-logo polygon:nth-child(5) { animation-delay: 0.6s; }
.splash-logo polygon:nth-child(6) { animation-delay: 0.7s; }
.splash-logo polygon:nth-child(7) { animation-delay: 0.8s; }
.splash-logo polygon:nth-child(8) { animation-delay: 0.9s; }
.splash-logo polygon:nth-child(9) { animation-delay: 1.0s; }
.splash-logo polygon:nth-child(10) { animation-delay: 1.1s; }
.splash-logo polygon:nth-child(11) { animation-delay: 1.2s; }
.splash-logo polygon:nth-child(12) { animation-delay: 1.3s; }

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Variante pour certains éléments venant du bas */
.splash-logo polygon:nth-child(even) {
    animation-name: slideInFadeUp;
}

@keyframes slideInFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de rotation douce au survol */
.splash-logo:hover g {
    animation: gentleRotate 3s ease-in-out infinite;
}

@keyframes gentleRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(5deg); }
}

/* Ombre portée qui apparaît après l'animation */
.splash-logo.show-shadow {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: shadowFadeIn 0.3s ease-out forwards;
}

@keyframes shadowFadeIn {
    from {
        filter: drop-shadow(0 0px 0px rgba(0, 0, 0, 0));
    }
    to {
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
    }
}

/* ========================================
   STYLES POUR LA PAGE NEWS LETTERS
   ======================================== */

.newsletter-container {
	text-align: center;
	padding: 2rem;
	max-width: 800px;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.newsletter-header {
	margin-bottom: 3rem;
}

.newsletter-header h1 {
	margin-bottom: 0.5rem;
}

.newsletter-header .subtitle {
	opacity: 0.8;
	font-size: 1rem;
}

.newsletter-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.newsletter-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	padding: 2rem;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-align: left;
}

.newsletter-card:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.newsletter-date {
	font-size: 0.85rem;
	opacity: 0.7;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.newsletter-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.8rem;
	line-height: 1.3;
}

.newsletter-excerpt {
	opacity: 0.9;
	margin-bottom: 1.2rem;
	line-height: 1.6;
}

.newsletter-link {
	display: inline-block;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 0.6rem 1.5rem;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 25px;
	transition: all 0.3s ease;
}

.newsletter-link:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateX(5px);
}

.back-link {
	display: inline-block;
	margin-top: 2rem;
	padding: 0.8rem 2rem;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50px;
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 600;
}

.back-link:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.newsletter-container {
		padding: 1.5rem;
	}
	
	.newsletter-card {
		padding: 1.5rem;
	}
	
	.newsletter-title {
		font-size: 1.2rem;
	}
}