@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700&family=Inter:wght@400;600&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --bg-body: #ffffff;
    /* Fond principal (ORANGE) */
    --card-bg: #FFFFFF;
    /* Fond des cartes et blocs */
    --text-heading: #103741;
    /* Bleu canard très foncé pour les titres */
    --text-body: #747871;
    /* Gris-vert doux pour les textes */
    --accent: #FE5D37;
    /* Orange vif pour les boutons et accents */
    --white: #FFFFFF;

    --radius-sm: 8px;
    --radius-lg: 32px;
    /* Bords très arrondis typiques du site */
    --radius-pill: 50px;
    /* Bord arrondi pour les boutons */

    --nav-height: 80px;
    --transition: 0.3s ease;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Lobster Two', cursive;
    color: var(--text-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(254, 93, 55, 0.3);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: 'Heebo', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(254, 93, 55, 0.5);
    color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(16, 55, 65, 0.05);
    box-shadow: 0 2px 12px rgba(16, 55, 65, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 2.2rem;
    color: var(--accent);
    z-index: 1100;
    position: relative;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 3px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
}

/* ── Hamburger Button ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
    position: relative;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--text-heading);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--accent);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--accent);
}

/* ── Mobile Nav Overlay ── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 55, 65, 0.4);
    z-index: 950;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ── Responsive: Mobile menu ── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background-color: var(--white);
        z-index: 1050;
        padding: calc(var(--nav-height) + 20px) 30px 40px;
        transform: translateX(110%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(16, 55, 65, 0.15);
        overflow-y: auto;
    }

    nav.open {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(16, 55, 65, 0.06);
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav.open ul li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation */
    nav.open ul li:nth-child(1) {
        transition-delay: 0.05s;
    }

    nav.open ul li:nth-child(2) {
        transition-delay: 0.10s;
    }

    nav.open ul li:nth-child(3) {
        transition-delay: 0.15s;
    }

    nav.open ul li:nth-child(4) {
        transition-delay: 0.20s;
    }

    nav.open ul li:nth-child(5) {
        transition-delay: 0.25s;
    }

    nav.open ul li:nth-child(6) {
        transition-delay: 0.30s;
    }

    nav ul li a {
        display: block;
        padding: 16px 4px;
        font-size: 1.15rem;
    }

    nav ul li a::after {
        display: none;
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: var(--accent);
        padding-left: 8px;
    }
}

/* Footer Styles */
.main-footer {
    background-color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(16, 55, 65, 0.05);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards & Sections */
.bg-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(16, 55, 65, 0.05);
    transition: all 0.4s ease;
}

/* Feature Cards Interactivity */
.feature-card:hover {
    transform: translateY(-10px);
}

/* The background changes to the pictogram's color on hover */
.card-vroum:hover {
    background-color: var(--accent);
}

.card-planning:hover {
    background-color: #28a745;
}

.card-music:hover {
    background-color: #ffc107;
}

.card-tools:hover {
    background-color: #17a2b8;
}

.feature-card:hover h3,
.feature-card:hover p,
.feature-card:hover i {
    color: var(--white) !important;
}

.feature-card i {
    transition: color 0.4s ease;
}

/* Info Capsules (Professor, Students, Videos) */
.info-capsule {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(16, 55, 65, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 60px 40px;
    margin: 40px auto;
    max-width: var(--container-width);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(16, 55, 65, 0.05);
}

.info-capsule:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 50px rgba(16, 55, 65, 0.1);
}

.info-capsule.hover-accent:hover {
    background-color: var(--accent);
}

.info-capsule.hover-accent:hover h2,
.info-capsule.hover-accent:hover h3,
.info-capsule.hover-accent:hover p,
.info-capsule.hover-accent:hover .btn-primary {
    color: var(--white) !important;
}

.info-capsule.hover-accent:hover .btn-primary {
    border: 2px solid var(--white);
    background-color: transparent;
}

.img-rounded {
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

.info-capsule:hover .img-rounded {
    transform: scale(1.05) rotate(1deg);
}

.img-circle {
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--bg-body);
    transition: all 0.5s ease;
}

.info-capsule:hover .img-circle {
    transform: rotate(5deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-in {
    animation: fadeInUp 0.8s ease out forwards;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 600px;
    min-height: 400px;
    overflow: hidden;
    background-color: #f4f4f4;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.carousel-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Controls */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
}

.carousel-dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-container {
        height: 50vh;
        min-height: 350px;
    }

    section {
        padding: 50px 0;
    }
}