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

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #043d5b;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header principal */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header img {
    height: 80px;
    width: auto;
}

/* Navigation générale */
nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #043d5b;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 24px;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

nav a:hover {
    background-color: #fccd2c;
    color: #004182;
    transform: translateY(-1px);
}

nav a[href*="/login"] {
    color: white !important;
    background-color: #043d5b !important;
}

nav a[href*="/login"]:hover {
    background-color: #365899 !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Section bienvenue*/
.bienvenue-section {
    height: 100px;
    background-color: #043d5b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 10;
}

.bienvenue-section h1 {
    margin: 0;
}

/* Section Objectif*/
.objectif-section {
    background-color: #fccd2c;
    color: #043d5b;
    padding: 80px 30px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-wrap: break-word;
    hyphens: auto;
}
.activity-selector {
    background-color: #fccd2c;
    color: #043d5b;
    padding: 80px 30px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-wrap: break-word;
    hyphens: auto;
}

.objectif-content {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.objectif-section h2 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 24px;
}

/* Bouton Explorer */
.btn-explorer {
    display: inline-block;
    background-color: #043d5b;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    margin-top: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.btn-explorer:hover {
    background-color: #fff;
    color: #043d5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

/*Carrousel*/
.carrousel-container {
    overflow: hidden;
    max-width: 640px;
    height: 360px;
    margin: 40px auto 0;
}

.carrousel-images {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carrousel-images img {
    width: 640px;
    height: 360px;
    object-fit: cover;
    flex-shrink: 0;
}

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

/*Formulaire*/
.formulaire-section {
    background-color: #043d5b;
    padding: 60px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formulaire-section main {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
}

.formulaire-section h1 {
    text-align: center;
    color: #043d5b;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
}

.formulaire-section div {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 20px auto;
}

.formulaire-section label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}

.formulaire-section input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.formulaire-section input:focus {
    outline: none;
    border-color: #043d5b;
    box-shadow: 0 0 0 3px rgba(4,61,91,0.1);
}

/* Boutons */
.formulaire-section button {
    width: 100%;
    padding: 14px;
    background: #043d5b;
    color: #fccd2c;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: not-allowed;
    opacity: 0.6;
}

.formulaire-section button:hover {
    opacity: 0.8;
}

.formulaire-section a {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #043d5b;
    text-decoration: none;
    font-weight: 500;
}

.formulaire-section a:hover {
    text-decoration: underline;
}

/* Main */
main {
    flex: 1;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    margin-top: auto;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        height: auto;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    header img {
        height: 60px;
    }

    nav a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .bienvenue-section {
        height: auto;
        min-height: 80px;
        padding: 20px 15px;
    }

    .bienvenue-section h1 {
        font-size: 20px !important;
        padding: 0 15px;
    }

    .bienvenue-section,
    .objectif-section {
        padding: 40px 15px;
    }

    .objectif-section h2 {
        font-size: 20px !important;
        line-height: 1.3;
        padding: 0 15px;
    }

    .objectif-content {
        margin-bottom: 40px;
    }

    .btn-explorer {
        padding: 10px 24px;
        font-size: 15px;
    }

    .carrousel-container {
        height: 400px;
    }

    .carrousel-images img {
        height: 400px;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .formulaire-section {
        padding: 40px 15px;
    }

    .formulaire-section main {
        padding: 30px 20px;
    }

    .formulaire-section h1 {
        font-size: 24px;
    }
}


/* Div boutons inscription */
.btn-group-inscription {
     display: flex;
     flex-direction: column;
     gap: 12px;
     align-items: center;
     background-color: #f8f9fa;
     padding: 20px;
     border-radius: 12px;
 }

 .btn-group-inscription button {
     width: 100%;
     padding: 12px 20px;
     background-color: #fccd2c;
     color: #043d5b !important;
     border: 2px solid #043d5b;
     border-radius: 24px;
     font-weight: bold;
     font-size: 16px;
     cursor: not-allowed;
 }

 .btn-group-inscription a {
     color: white !important;
     text-decoration: none;
     font-weight: bold;
     padding: 8px 16px;
     border-radius: 24px;
     transition: all 0.3s ease;
 }

 .btn-group-inscription a:hover {
     background-color: #043d5b;
     color: #fccd2c !important;
     transform: translateY(-1px);
 }
/* Bottom nav (uniforme, basee sur animateur) */
.bottom-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(4,61,91,0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 10px;
    z-index: 200;
}

.bottom-nav .nav-item{
    text-decoration:none;
    color: rgba(4,61,91,0.75);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 6px;
    border-radius: 12px;
}

.bottom-nav .nav-item i{
    font-size: 16px;
}

.bottom-nav .nav-item.active{
    color: #043d5b;
    background: rgba(252,205,44,0.35);
    border: 1px solid rgba(252,205,44,0.60);
}

/* Spacer to avoid nav overlap */
.bottom-spacer{
    height: 74px;
}
