/* Hello world */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial Rounded Bold', 'Arial', sans-serif;
    color: #000;
    line-height: 1.4;
}

/* Global Container for content alignment */
/* C'est cette classe qui assure l'alignement de tous les blocs de contenu */
.container {
    max-width: 1200px; /* La largeur maximale de votre zone de contenu */
    margin: 0 auto;    /* Centre le conteneur */
    padding-left: 2rem; /* Padding horizontal pour un espacement cohérent */
    padding-right: 2rem; /* Padding horizontal pour un espacement cohérent */
}

/* HEADER */
header {
    background-color: #eda9f4;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

.fond-header {
    background-color: #eda9f4;
    position: fixed;
    width: 100%;
    height: 200px;
    top: 0;
    z-index: -1000;
}

/* Nouvelle classe pour masquer le header */
header.header-hidden {
    transform: translateY(-100%);
}

/* Le contenu du header est maintenant organisé via le .container */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;    /* Padding vertical spécifique au header */
    padding-bottom: 1rem; /* Padding vertical spécifique au header */
    /* Le padding horizontal est géré par la classe .container globale */
}

header .logo {
    font-weight: 900;
    font-size: 2rem;
    color: #ffd800;
    border: 3px solid #ffd800;
    border-radius: 50px;
    padding: 0.2rem 1rem;
    text-decoration: none;
    position: relative;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #ffd800;
    font-weight: bold;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd800;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* hamburger animé */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ffd800;
    left: 0;
    transition: 0.4s;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}
.menu-toggle span:nth-child(2) {
    top: 8px;
}
.menu-toggle span:nth-child(3) {
    top: 16px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* SECTION HERO */
.hero {
    background: #A3CFF7;
    padding-top: 3rem; /* Seulement padding vertical, horizontal via .container */
    padding-bottom: 3rem; /* Seulement padding vertical, horizontal via .container */
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    /* Le conteneur du hero, flex est déjà sur le .hero parent */
    display: flex; /* Le conteneur peut être un flex-item si le parent hero est flex */
    align-items: center; /* Alignement vertical si le parent hero est flex */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%; /* Hero content prend toute la largeur de son parent .container */
    /* max-width et margin auto ne sont plus nécessaires, gérés par .container */
}

.hero-text {
    color: #FFD800;
    text-align: left;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn {
    display: inline-flex;       /* Remplace inline-block */
    align-items: center;        /* Centre verticalement */
    justify-content: center;    /* Centre horizontalement (optionnel) */
    background: #FFD700;
    color: #A3CFF7;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    transition: transform 0.3s;
}


.btn:hover {
    transform: translateY(-5px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hero-grid img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

.hero-image {
    border-radius: 25px;
    padding: 0.5rem;
    position: relative;
}

.hero-image.purple {
    background: #E6D0FF;
}

.hero-image.yellow {
    background: #FFE66D;
}

.hero-image.blue {
    background: #D0E6FF;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        position: fixed;
        /* Utilisation d'une variable CSS pour la hauteur du header */
        top: var(--header-height, 80px);
        left: 0;
        width: 100%;
        background: #EFBAF5;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0;

        /* Animation */
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
    }

    nav.show {
        opacity: 1;
        max-height: 500px; /* Une valeur suffisante pour contenir le menu */
        padding: 1rem 0;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgb(255, 216, 0);
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/*Triangles*/
.guirlande-container {
    width: 100%;
    overflow: hidden;
    padding: 0;
translateY(-2px);
}

.guirlande-piste {
    display: flex;

    /* MODIFICATION : Largeur de la piste recalculée */
    /* 40 triangles * 60px (nouvelle largeur) = 2400px */
    width: 2400px;

    animation: defilement-inverse 15s linear infinite;
}

.triangle {
    /* MODIFICATION : Dimensions ajustées pour un ratio 2:1 */
    /* La base (width) est deux fois supérieure à la hauteur (height) */
    width: 60px;
    height: 30px;

    flex-shrink: 0;
    background-color: #A3CFF7;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

/* L'animation reste la même, pas de changement ici */
@keyframes defilement-inverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.footer {
    background-color: #A3CFF7;
    color: #ffd800;
    padding: 30px 0 0;
    position: relative;
}

footer .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 3px solid #ffd800;
}

.footer-content > div {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-content h3 {
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 25px;
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-content ul li {
    margin-bottom: 8px;
}

.footer-content a {
    color: #ffd800;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom a {
    color: #ffd800;
    text-decoration: none;
}

.fond-footer {
    background-color: #A3CFF7;
    position: fixed;
    width: 100%;
    height: 200px;
    bottom: 0;
    z-index: -1000;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
}
