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

:root {
    --first-color: #ED1C24;
    --secondary-color: #f0f0f0;
    --third-color: #0072CE;
    --text-color: rgb(10, 10, 10);
    --font-size-large: 1.5rem;
    --submerged-color: #0077C8;
    --turquoise-color: #00BCD4;
    --corail-color: #FF6F61;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.firstlego {
    color: var();
}

.btn {
    text-transform: uppercase;
    /* Capitalisation des CTA */
    font-weight: 600;
}

.btn-outline-primary {
    color: var(--third-color);
    border-color: var(--third-color);
}

.btn-outline-primary:hover {
    background-color: var(--third-color);
    color: white;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-nav .nav-link {
    padding-right: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 16px;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-nav .nav-link.active {
    color: #000000 !important;
    font-weight: bold;
}

main {
    flex: 1;
}

.gradient-background {
    background: #ffffff;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 67%, rgba(222, 230, 255, 1) 100%);
}




/* Formulaire de recherche */
form.d-flex input.form-control {
    max-width: 250px;
    padding: 4px 8px;
    font-size: 14px;
}

form.d-flex .btn {
    padding: 4px 12px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 5px;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.img_container {
    width: 100%;
    height: 550px;
    display: flex;
    position: relative;
    overflow: hidden;

}

.img_container img {
    object-fit: cover;
    height: 100%;
}


@media (max-width: 768px) {
    .img_container {
        height: 250px;
        margin-bottom: 5%;
    }

    .sub-img {
        max-height: 3%;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}


.finale_text:hover {
    color: var(--first-color);
}

.numbers {
    color: var(--third-color);
}

.submerged {
    color: var(--submerged-color);
}

/**/
.hover-effect {
    transition: all 0.3s ease;
    border-radius: 10px;
    border: none;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.icon-box {
    color: var(--submerged-color);
    transition: all 0.3s ease;
}

.hover-effect:hover .icon-box {
    transform: scale(1.1);
}

.btn-hover {
    transition: all 0.3s ease;
    min-width: 200px;
    /* Largeur minimale pour uniformité */
}

.btn-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #0b5ed7;
    color: #fff;
}

a.btn-c {
    background-color: var(--first-color);
    color: white;
    border-radius: 20px;
}

h3.text-primary {
    color: #0b5ed7 !important;
}


.competence-item {
    position: relative;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s;
}

.right-align {
    border-right: 3px solid #4e73df;
}

.left-align {
    border-left: 3px solid #4e73df;
}

.competence-item:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
}

.center-circle {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator-line {
    width: 100px;
    height: 3px;
}

/* badges */
.bg-cooperation {
    background-color: #be0000;
    color: white;
}

.bg-inclusion {
    background-color: #3300a0;
    color: white;
}

.bg-perseverance {
    background-color: #00ae03;
    color: #ffffff;
}

@media (max-width: 768px) {

    .right-align,
    .left-align {
        border: none;
        text-align: center !important;
        padding: 10px;
    }

    .center-circle {
        margin: 20px 0;
    }
}

/*h2.saison:hover{
    color: #e90303 !important;
}*/

/**/


.bg-soft-blue {
    background-color: #e3f2fd;
}

.bg-soft-orange {
    background-color: #fff3e0;
}

.bg-soft-green {
    background-color: #e8f5e9;
}

.bg-soft-purple {
    background-color: #f3e5f5;
}

.bg-soft-pink {
    background-color: #fce4ec;
}

.bg-orange {
    background-color: #fb8c00;
}

.bg-purple {
    background-color: #8e24aa;
}

.bg-pink {
    background-color: #e91e63;
}

.bg-innovation {
    background-color: #d00606;

}

.bg-text {
    color: #1e88e5;
}

.bg-blue-gradient {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
}

.bg-gold-gradient {
    background: linear-gradient(135deg, #ffd700, #ff9800);
}


.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #2196F3, #4CAF50, #FFC107);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    /*background: #fff;
        border: 4px solid #2196F3;
        border-radius: 50%;
        top: 30px;*/
    z-index: 1;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

/* Cartes Timeline */
.timeline-content {
    padding: 20px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
}

.timeline-date {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.left .timeline-icon {
    right: -70px;
    top: 20px;
}

.right .timeline-icon {
    left: -70px;
    top: 20px;
}

/* Carte finale spéciale */
.finale-card {
    color: #333;
    border: 2px solid #ffc107;
}

.finale-card h4 {
    color: #000;
}

.location {
    font-style: italic;
    margin-bottom: 0;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><circle cx="5" cy="5" r="2" fill="white" opacity="0.7"/></svg>');
    background-size: 15px 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.finale-card:hover .confetti {
    opacity: 1;
}

/* Animation */
.animate__animated {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .right,
    .left {
        left: 0;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .left .timeline-icon,
    .right .timeline-icon {
        left: -50px;
        right: auto;
    }
}



.flip-countdown-section {
   /* background: linear-gradient(135deg, #2c3e50, #4ca1af);*/
   background: linear-gradient(135deg, #50412c, #b78b14);
}

.flip-countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.flip-countdown-item {
    position: relative;
}



.component-card {
    transition: all 0.3s ease;
    background-color: white;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.icon-bg {
    transition: transform 0.3s ease;
}

.component-card:hover .icon-bg {
    transform: scale(1.1);
}


a.btn-c2 {
    background-color: #3508bb;
    color: white;
    border-radius: 20px;
}

.btn-hover2 {
    transition: all 0.3s ease;
    min-width: 200px;

}

.btn-hover2:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #009327;
    color: #fff;
}



.partner-logo {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    margin: 10px;
}



.navbar-logo {
    max-height: 60px;
    width: auto;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 992px) {
    .navbar-logo {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        max-height: 45px;
    }
}


.org-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.org-logo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.mission-item {
    background: white;
    border-left: 4px solid #0077C8;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0077C8, rgb(248, 53, 53));
}

/*inscription page*/
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}



.card-header {
    font-weight: 600;
}

.list-group-item {
    padding: 0.5rem 0;
    background: transparent;
    border-color: rgba(0, 0, 0, 0.05);
}

/*

.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}*/

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
}

/**/

/* Bannière en plein écran largeur */
.sub_text {
    background-color: rgba(132, 80, 2, 0.426);
    color: white;
    padding: 1rem;
    border-radius: 3x;
}

.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.partner-logo-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-info {
    min-height: 120px;
}

@media (max-width: 768px) {

    .partner-logo-container,
    .partner-info {
        min-height: auto;
    }
}

/**/

.bg-purple-fll {
    background-color: #6E3485;
}

.bg-red-fll {
    background-color: #E51B22;
}

.bg-green-fll {
    background-color: #009640;
}

.bg-gradient-sect {
    background: linear-gradient(#e7a9ff, #d56cff);
    color: white;
}


.hero-section {
    background: url('img/mobile-hero.svg') no-repeat;
    background-position: left center;
    background-size: contain;
    background-color: white;
    /* ou autre couleur si besoin */
}

@media (max-width: 768px) {
    .hero-section {
        background: none;
        /* cacher le SVG sur mobile si besoin */
    }
}

/*modif des couleurs de la page programmes*/

body.programmes-page .btn-primary {
    background-color: #6E3485 !important;
    border-color: #6E3485 !important;
}

body.programmes-page .btn-outline-primary {
    color: #6E3485 !important;
    border-color: #5a2271 !important;
}

body.programmes-page .btn-outline-primary:hover {
    background-color: #6E3485 !important;
    color: #fff !important;
}

body.programmes-page .separator-line {
    background-color: #6E3485 !important;
}

body.programmes-page .right-align {
    border-right: 3px solid #6E3485 !important;
}

body.programmes-page .left-align {
    border-left: 3px solid #6E3485 !important;
}

body.programmes-page .rounded-circle {
    border-color: #6E3485 !important;
}

body.saison-party .btn-primary {
    background-color: #c29c71 !important;
    border-color: #c38743 !important;
    color: #fff;

}

body.saison-party .btn-primary:hover {
    color: #fff;

}

body.saison-party .btn-outline-primary {
    background-color: #e99d47 !important;
    border-color: #c98538 !important;
    color: white;
}

body.saison-party .btn-outline-primary:hover {
    background-color: #ffffff !important;
    color:  #ac8557 !important;
}


body.saison-party .separator-line {
    background-color: #c29c71 !important;
}

body.saison-party .text-color {
    color: #c08848 !important;
}

body.saison-party .gradient-background {
    background: #ffffff;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 64%, rgba(230, 170, 101, 1) 100%);
}

body.saison-page .gradient-background {
    background: #ffffff;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 64%, #7ee7ffa5);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--fll-purple);
    transform: translateY(-3px);
}