/* ===== VARIABLES ===== */
:root {
    --primary-color: #00BCD4;
    --primary-dark: #0097A7;
    --primary-light: #B2EBF2;
    --secondary-color: #1A237E;
    --secondary-dark: #0D1642;
    --secondary-light: #3949AB;
    --accent-color: #FF6B6B;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Empêche le scroll horizontal sur tous les navigateurs mobiles (y compris iOS Safari)
       sans casser position:fixed comme le ferait overflow-x:hidden sur body seul */
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.button--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button--secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.button--secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.button--large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.button--full {
    width: 100%;
}

.button--accent {
    background: linear-gradient(135deg, var(--accent-color), #FF5252);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 2px solid var(--accent-color);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.button--accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button--accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #FF5252, var(--accent-color));
}

.button--accent:hover::before {
    left: 100%;
}

.button--compact {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.button--ghost {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button--ghost:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1002;
    /* Transition limitée (pas "all") pour éviter les effets de bord sur mobile */
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
}

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

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

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

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    color: var(--white);
}

.hero__title-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero__title-sub {
    display: block;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero__image {
    position: relative;
    animation: fadeInRight 1s ease 0.4s backwards;
    border-radius: var(--border-radius-lg);
    overflow: visible;
}

.hero__img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    display: block;
}

.hero__img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero__wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: var(--white);
}

/* ===== OBJECTIFS SECTION ===== */
.objectifs {
    background: var(--light-bg);
}

.objectifs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.objectif-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.objectif-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.objectif-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.objectif-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.objectif-card__description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.step__description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== STAGES SECTION ===== */
.stages {
    background: #0b0f2a;
    position: relative;
    overflow: hidden;
}

.stages .section__title,
.stages .section__subtitle {
    color: white;
}

.section__tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #00e5ff);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.stages__bg-decoration {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 188, 212, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 35, 126, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.stages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    perspective: 1200px;
}

/* --- Card wrapper --- */
.stage-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 680px;
}

.stage-card:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glow effect on hover */
.stage-card__glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.stage-card--attaquants .stage-card__glow {
    box-shadow: inset 0 0 60px rgba(255, 107, 107, 0.15);
}
.stage-card--milieux .stage-card__glow {
    box-shadow: inset 0 0 60px rgba(0, 188, 212, 0.15);
}
.stage-card--defenseurs .stage-card__glow {
    box-shadow: inset 0 0 60px rgba(63, 81, 181, 0.2);
}

.stage-card:hover .stage-card__glow {
    opacity: 1;
}

/* --- Header area --- */
.stage-card__header {
    padding: 2rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stage-card__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.stage-card__header--attaquants {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #ff6b6b 100%);
}

.stage-card__header--milieux {
    background: linear-gradient(135deg, #0077b6 0%, #0093dd 50%, #00b4d8 100%);
}

.stage-card__header--defenseurs {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
}

/* --- Icon --- */
.stage-card__icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-card__icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    animation: ringPulse 3s ease-in-out infinite;
}

.stage-card__icon-svg {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.stage-card:hover .stage-card__icon-svg {
    transform: scale(1.1) rotate(5deg);
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* --- Header text & stats --- */
.stage-card__header-text {
    flex: 1;
}

.stage-card__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.stage-card__level {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stage-card__stats {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.stat {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 8px 14px;
    text-align: center;
    min-width: 62px;
}

.stat__num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat__label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* --- Body --- */
.stage-card__body {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stage-card__description {
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.stage-card__features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.stage-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.45rem 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stage-card__features li:last-child {
    border-bottom: none;
}

.feature-icon-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-icon-dot--red   { background: #ff6b6b; box-shadow: 0 0 6px rgba(255,107,107,0.6); }
.feature-icon-dot--blue  { background: #00b4d8; box-shadow: 0 0 6px rgba(0,180,216,0.6); }
.feature-icon-dot--navy  { background: #7986cb; box-shadow: 0 0 6px rgba(121,134,203,0.6); }

/* --- Stage buttons --- */
.button--stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.button--stage svg {
    transition: transform 0.3s ease;
}

.button--stage:hover svg {
    transform: translateX(5px);
}

.button--stage--attaquants {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 4px 20px rgba(192,57,43,0.4);
}
.button--stage--attaquants:hover {
    box-shadow: 0 6px 28px rgba(231,76,60,0.6);
    transform: translateY(-2px);
}

.button--stage--milieux {
    background: linear-gradient(135deg, #0077b6, #0093dd);
    box-shadow: 0 4px 20px rgba(0,119,182,0.4);
}
.button--stage--milieux:hover {
    box-shadow: 0 6px 28px rgba(0,147,221,0.6);
    transform: translateY(-2px);
}

.button--stage--defenseurs {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    box-shadow: 0 4px 20px rgba(26,35,126,0.5);
}
.button--stage--defenseurs:hover {
    box-shadow: 0 6px 28px rgba(57,73,171,0.6);
    transform: translateY(-2px);
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stats-item {
    text-align: center;
    padding: 2rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.stats-item:last-child {
    border-right: none;
}

.stats-item__num {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-item__plus {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    vertical-align: top;
    margin-top: 0.2rem;
    display: inline-block;
}

.stats-item__label {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .stats-item:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.15);
    }
    .stats-item:last-child {
        border-bottom: none;
    }
}

/* ===== FONCTIONNALITES ===== */
.fonctionnalites {
    background: var(--light-bg);
}

.fonctionnalites__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    text-align: left;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
    border-radius: 0 4px 4px 0;
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-8px);
    border-color: transparent;
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0,188,212,0.12), rgba(26,35,126,0.12));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.35s ease;
}

.feature-card:hover .feature-card__icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.feature-card__description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact__info-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact__info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact__info-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contact__info-item p {
    color: var(--text-light);
}

.contact__form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form__group {
    position: relative;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    transform: translateY(-2.5rem) scale(0.9);
    color: var(--primary-color);
    background: var(--white);
    padding: 0 0.5rem;
}

.form__label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    transform-origin: left;
}

.form__label--select {
    transform: translateY(-2.5rem) scale(0.9);
    background: var(--white);
    padding: 0 0.5rem;
}

.form__select {
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__links li {
    color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== FOOTER SOCIAL ===== */
.footer__bottom-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer__social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.28rem 0.7rem 0.28rem 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 2px 10px rgba(220, 39, 67, 0.35);
    transition: var(--transition);
}

.footer__social-pill:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 16px rgba(220, 39, 67, 0.5);
}

.footer__social-pill svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.footer__social-pill:hover svg {
    transform: scale(1.15);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ===== RESPONSIVE ===== */

/* ── Overlay backdrop du menu mobile (masqué par défaut) ── */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1001;
    animation: overlayFadeIn 0.25s ease;
}
.nav__overlay.show { display: block; }
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── En-tête de marque dans le menu mobile (masqué sur desktop) ── */
.nav__menu-header {
    display: none;
}

/* ── Icônes de liens nav (masquées sur desktop) ── */
.nav__link-icon {
    display: none;
}

/* ── Caché par défaut sur desktop, visible uniquement dans le panneau mobile ── */
.nav__mobile-actions {
    display: none;
}

@media screen and (max-width: 968px) {
    .section__title {
        font-size: 2rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title-main {
        font-size: 2.5rem;
    }

    .hero__title-sub {
        font-size: 1.5rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__img {
        transform: none;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .contact__form {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    /* ══ MENU MOBILE REDESIGNÉ ══ */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 88%);
        height: 100vh;
        height: 100dvh; /* dynamic viewport height pour iOS */
        background: var(--white);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -6px 0 40px rgba(0, 0, 0, 0.18);
        padding: 0; /* padding géré par les sous-éléments */
    }

    .nav__menu.show-menu {
        right: 0;
    }

    /* ── En-tête branding dans le menu ── */
    .nav__menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.4rem;
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
        flex-shrink: 0;
        min-height: 72px;
    }

    .nav__menu-brand {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .nav__menu-brand-name {
        font-size: 1.05rem;
        font-weight: 800;
        color: white;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }
    .nav__menu-brand-tagline {
        font-size: 0.65rem;
        color: rgba(255,255,255,0.72);
        letter-spacing: 0.4px;
        font-weight: 400;
        font-style: italic;
    }

    /* ── Bouton fermeture dans le menu ── */
    .nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        color: white;
        font-size: 1rem;
        cursor: pointer;
        position: static;
        transition: background 0.2s, transform 0.2s;
        flex-shrink: 0;
        border: 1.5px solid rgba(255,255,255,0.25);
    }
    .nav__close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    /* ── Séparateur de section ── */
    .nav__menu-section-label {
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        color: var(--text-light);
        padding: 1rem 1.4rem 0.4rem;
    }

    /* ── Liste des liens ── */
    .nav__list {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        flex: 1;
    }

    .nav__item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .nav__item:last-child {
        border-bottom: none;
    }

    .nav__link {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 0.9rem 1.4rem;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-dark);
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
        border-radius: 0;
    }

    /* Désactiver le soulignement animé du desktop */
    .nav__link::after {
        display: none;
    }

    .nav__link:hover,
    .nav__link.active-link {
        border-left-color: var(--primary-color);
        background: linear-gradient(90deg, rgba(0,188,212,0.07), transparent);
        color: var(--primary-color);
    }

    /* ── Icônes des liens ── */
    .nav__link-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--light-bg);
        flex-shrink: 0;
        font-size: 1.05rem;
        transition: background 0.2s;
    }
    .nav__link:hover .nav__link-icon,
    .nav__link.active-link .nav__link-icon {
        background: rgba(0, 188, 212, 0.12);
    }

    .nav__link-text {
        flex: 1;
        line-height: 1.2;
    }
    .nav__link-arrow {
        font-size: 0.65rem;
        color: var(--text-light);
        transition: transform 0.2s;
    }
    .nav__link:hover .nav__link-arrow {
        transform: translateX(3px);
        color: var(--primary-color);
    }

    /* ── Toggle hamburger ── */
    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        transition: background 0.2s;
    }
    .nav__toggle:hover {
        background: var(--light-bg);
    }

    /* ── Boutons login/register masqués dans la barre nav (dans le menu slide-in) ── */
    .nav__actions .button {
        display: none;
    }

    /* ── Actions en bas du menu ── */
    .nav__mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.25rem 1.4rem 1.5rem;
        border-top: 1px solid var(--border-color);
        background: var(--light-bg);
        flex-shrink: 0;
    }
    .nav__mobile-actions .button {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        display: block;
        border-radius: 10px;
    }

    /* ── Ajustement du décalage page (nav = 60px) ── */
    .page-content-offset {
        padding-top: 70px !important;
    }

    .header {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .nav {
        height: 60px;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .hero__title-main {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero__title-sub {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .hero__description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .button--large {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section__header {
        margin-bottom: 2rem;
    }

    .section__title {
        font-size: 1.65rem;
        margin-bottom: 0.75rem;
    }

    .section__subtitle {
        font-size: 0.95rem;
    }

    .objectifs__grid,
    .fonctionnalites__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .objectif-card,
    .feature-card {
        padding: 1.5rem;
    }

    .objectif-card__icon,
    .feature-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .objectif-card__title,
    .feature-card__title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .objectif-card__description,
    .feature-card__description {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .stages__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stage-card {
        min-height: auto;
    }

    .stage-card__header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .stage-card__icon-wrap {
        width: 70px;
        height: 70px;
    }

    .stage-card__icon-svg {
        width: 60px;
        height: 60px;
    }

    .stage-card__title {
        font-size: 1.35rem;
    }

    .stage-card__level {
        font-size: 0.7rem;
    }

    .stage-card__stats {
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .stat {
        padding: 6px 10px;
        min-width: 55px;
    }

    .stat__num {
        font-size: 1.2rem;
    }

    .stat__label {
        font-size: 0.6rem;
    }

    .stage-card__body {
        padding: 1.25rem;
    }

    .stage-card__description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .stage-card__features {
        margin-bottom: 1.5rem;
    }

    .stage-card__features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .button--stage {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step__number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .step__title {
        font-size: 1.1rem;
    }

    .step__description {
        font-size: 0.875rem;
    }

    .stats-section {
        padding: 2.5rem 0;
    }

    .stats-item {
        padding: 1.5rem 0.75rem;
    }

    .stats-item__num {
        font-size: 2.5rem;
    }

    .stats-item__plus {
        font-size: 1.8rem;
    }

    .stats-item__label {
        font-size: 0.8rem;
    }

    .contact__info-item {
        padding: 1rem;
    }

    .contact__form {
        padding: 1.5rem;
    }

    .form__group {
        margin-bottom: 1rem;
    }

    .form__input,
    .form__textarea {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer__section {
        margin-bottom: 1rem;
    }

    .hero__floating-element {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Troncature du nom utilisateur sur très petits écrans */
    .nav__user-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav__user-text {
        max-width: 95px;
    }

    .section {
        padding: 2rem 0;
    }

    .section__header {
        margin-bottom: 1.5rem;
    }

    .section__title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .section__subtitle {
        font-size: 0.875rem;
    }

    .hero {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .hero__title-main {
        font-size: 1.5rem;
    }

    .hero__title-sub {
        font-size: 1rem;
    }

    .hero__description {
        font-size: 0.875rem;
    }

    .button--large {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
    }

    .objectif-card,
    .feature-card {
        padding: 1.25rem;
    }

    .stage-card__header {
        padding: 1.25rem 1rem 1rem;
    }

    .stage-card__body {
        padding: 1rem;
    }

    .stage-card__title {
        font-size: 1.2rem;
    }

    .stage-card__icon-wrap {
        width: 60px;
        height: 60px;
    }

    .stage-card__icon-svg {
        width: 50px;
        height: 50px;
    }

    .stats-item__num {
        font-size: 2rem;
    }

    .stats-item__plus {
        font-size: 1.5rem;
    }

    .stats-item__label {
        font-size: 0.75rem;
    }

    .contact__form {
        padding: 1.25rem;
    }

    .form__input,
    .form__textarea {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT ===== */
@media print {
    .header,
    .nav__toggle,
    .scroll-top,
    .hero__buttons,
    .button {
        display: none;
    }
}

/* ===== ENHANCED ANIMATIONS FROM EASY_TEST ===== */

/* Floating elements in hero section */
.hero__floating-element {
    position: absolute;
    padding: 10px 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.hero__floating-element svg {
    color: var(--primary-color);
}

.hero__floating-element span {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.hero__element-1 {
    top: 15%;
    left: 10px;
    animation-delay: 0s;
}

.hero__element-2 {
    bottom: 15%;
    right: 10px;
    animation-delay: 1s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Decorative floating spheres in hero */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background-color: rgba(0, 188, 212, 0.15);
    border-radius: 50%;
    z-index: 0;
    animation: floatRandom1 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-color: rgba(26, 35, 126, 0.1);
    border-radius: 50%;
    z-index: 0;
    animation: floatRandom2 18s ease-in-out infinite;
}

@keyframes floatRandom1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(20px, -15px) rotate(5deg); }
    40% { transform: translate(-15px, 20px) rotate(-5deg); }
    60% { transform: translate(15px, 15px) rotate(3deg); }
    80% { transform: translate(-20px, -10px) rotate(-3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes floatRandom2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-25px, 10px) rotate(-3deg); }
    50% { transform: translate(10px, -20px) rotate(5deg); }
    75% { transform: translate(-10px, -15px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Shimmer effect removed - replaced with smooth scale */
.objectif-card {
    position: relative;
    overflow: hidden;
}

/* Loading Spinner — styles définis en inline dans le <head> d'index.php pour éviter le FOUC */

/* Pulse animation removed - no longer needed */

/* Enhanced hover effects */
.objectif-card {
    transition: all 0.3s ease;
}

.objectif-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.objectif-card:hover .objectif-card__icon {
    transform: scale(1.08) rotate(-5deg);
}

/* Smooth transitions for all animated elements */
.hero::before,
.hero::after,
.hero__floating-element {
    will-change: transform;
}
/* NOTE : will-change retiré de .hero lui-même car il créait un contexte
   de superposition qui pouvait couvrir le header fixe sur iOS Safari */

/* Mobile adjustments for floating elements */
@media (max-width: 768px) {
    .hero__floating-element {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .hero__element-1 {
        top: 10%;
        left: 0;
    }
    
    .hero__element-2 {
        bottom: 10%;
        right: 0;
    }
    
    .hero::before {
        width: 70px;
        height: 70px;
        top: 5%;
        right: 5%;
    }
    
    .hero::after {
        width: 50px;
        height: 50px;
        bottom: 15%;
        left: 5%;
    }
}

@media (max-width: 480px) {
    .hero__floating-element {
        display: none;
    }
}
