/* Suppression du min-height pour le main-container et site-main */
#main-container,
#main,
.site-main {
    min-height: auto !important;
}

/* Forcer Funnel Display sur tous les titres gspb_heading */
.gspb_heading {
    font-family: 'Funnel Display', sans-serif !important;
    font-weight: 800 !important;
}

/* Styles pour le header avec classes */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8,12,14,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.h-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-box {
    width: 28px;
    height: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.logo-box span {
    border-radius: 3px;
    display: block;
    background: rgba(255,255,255,.15);
}

.logo-box span:nth-child(1) {
    border-radius: 8px 3px 3px 3px;
}

.logo-box span:nth-child(4) {
    background: rgba(255,255,255,.4);
    border-radius: 3px 3px 3px 8px;
}

.logo-name {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Header Logo Container & Gradient Text */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.header-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(to right, #0077b6, #8cc697, #ff6900);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    display: inline-block;
}

/* Logo DDS.png */
.site-logo-container img {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo-container:hover img {
    transform: scale(1.05);
}

.sticky-logo img {
    filter: brightness(0.1); /* Pour le logo sur fond clair si nécessaire */
}

/* EduFlex Style Section */
.eduflex-section {
    padding: 60px 4% !important;
    background-color: #ffffff !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1440px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 50px !important;
}

/* Typography */
.eduflex-title {
    color: #1a1a1a !important;
    font-size: 3.5rem !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.eduflex-desc {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #666666 !important;
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 40px !important;
    max-width: 90%;
}

/* Buttons */
.eduflex-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.eduflex-btn {
    padding: 15px 35px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eduflex-btn-primary {
    background-color: #ff6900 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(255, 105, 0, 0.2) !important;
}
.eduflex-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 105, 0, 0.3) !important;
}

.eduflex-btn-outline {
    background-color: transparent !important;
    color: #1a1a1a !important;
    border: 1px solid #d0d0d0 !important;
}
.eduflex-btn-outline:hover {
    border-color: #1a1a1a !important;
}

/* Stats */
.eduflex-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif !important;
}

.stat-label {
    font-size: 0.85rem;
    color: #888888;
    font-family: 'Inter', sans-serif !important;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    margin-top: 5px;
}

.stat-divider {
    height: 40px;
    width: 1px;
    background-color: #eaeaea;
}

/* Collage Area */
.eduflex-collage-container {
    position: relative;
    width: 100%;
    min-height: 480px;
}

/* Collage Images */
.collage-img {
    position: absolute;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 4px solid #ffffff; /* Pour bien marquer la superposition */
}

.collage-img-1 {
    width: 55%;
    height: 350px;
    border-radius: 40px 40px 15px 40px;
    top: 0;
    left: 15%;
    z-index: 2;
    background-color: #aed9e0;
}

.collage-img-2 {
    width: 45%;
    height: 250px;
    border-radius: 40px 15px 40px 40px;
    bottom: 10px;
    left: 0;
    z-index: 3;
    background-color: #9cd0a3;
}

.collage-img-3 {
    width: 40%;
    height: 280px;
    border-radius: 20px 40px 20px 20px;
    top: 60px;
    right: 2%;
    z-index: 1;
    background-color: #c9b1de;
}

/* Decorative Shapes */
.shape-star {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #8cc697;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 0;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 { top: 180px; left: -10px; width: 22px; height: 22px; }
.shape-2 { top: -20px; right: 20px; width: 70px; height: 70px; background-color: #d1ecf1; }
.shape-3 { bottom: 80px; right: 5%; width: 20px; height: 20px; background-color: #8cc697; }
.shape-submit { bottom: 20px; right: 60px; width: 30px; height: 30px; background-color: #bfa1ce; border-radius: 50%; position: absolute;}

@media (max-width: 999px) {
    .eduflex-section {
        padding: 60px 5% !important;
    }
    .eduflex-title { font-size: 2.2rem !important; }
    .eduflex-buttons { flex-direction: column; align-items: stretch; }
    .eduflex-collage-container { margin-top: 60px; min-height: 400px; }
    .stat-divider { display: none; }
    .eduflex-stats { gap: 15px; }
}



/* Hero Section Expansion */
.hero-section-expanded {
    min-height: 95vh !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 250px !important;
    padding-bottom: 250px !important;
}

.mission-subtitle {
    font-weight: 600;
    color: #ff6900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px !important;
    display: block;
}

.mission-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-top: 30px !important;
    max-width: 90%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.btn-nav {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #ff6900 !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s ease !important;
    text-decoration: none;
}

.btn-nav:hover {
    background: #ff6900 !important;
    color: #fff !important;
    border-color: #ff6900 !important;
}

.btn-nav svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    fill: #fff !important;
}

/* ── HERO BLOCK (premier bloc) – agrandissement ── */
#gspb_container-id-gsbp-60ddfbc {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    background: linear-gradient(135deg, #080C0E 0%, #0d1f1a 15%, #2A9D8F 40%, #1a6b5f 60%, #e07830 80%, #FF8C42 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Decorative car icons - top right */
#gspb_container-id-gsbp-60ddfbc::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: 12%;
    right: 6%;
    transform: rotate(-12deg);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91z'/%3E%3C/svg%3E");
}

/* Decorative car icon - bottom left */
#gspb_container-id-gsbp-60ddfbc::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    bottom: 8%;
    left: 4%;
    transform: rotate(15deg);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91z'/%3E%3C/svg%3E");
}

/* Contenu hero au-dessus des décorations */
#gspb_container-id-gsbp-60ddfbc > * {
    position: relative !important;
    z-index: 1 !important;
}

#gspb_container-id-gsbp-60ddfbc #gspb_heading-id-gsbp-8c8637a {
    font-size: 80px !important;
    line-height: 1.1 !important;
    margin-bottom: 28px !important;
    color: #fff !important; /* Forcer le blanc */
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#gspb_container-id-gsbp-60ddfbc .gspb_text-id-gsbp-84cfb1f {
    font-size: 20px !important;
    line-height: 1.7 !important;
    margin-bottom: 40px !important;
    max-width: 520px;
    color: rgba(255,255,255,0.9) !important;
}

/* Style pour la voiture dans le Hero */
.hero-car-col {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Centering for the collage */
    padding: 0 !important;
}

.hero-car-img {
    width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    z-index: 2;
}

@media (min-width: 1000px) {
    /* Styles for the car when it is in the second section - Balanced */
    .eduflex-car-container .hero-car-img {
        width: 105% !important;
        max-width: 110% !important;
        margin-right: -5% !important; 
        transform: translateX(20px);
    }
}

@media (max-width: 999px) {
    .eduflex-car-container .hero-car-img {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin-top: 40px;
    }
    #section-2 {
        padding: 60px 20px !important;
    }
}

.hero-car-img:hover {
    transform: scale(1.05) translateX(-10px);
}

#gspb_container-id-gsbp-60ddfbc .gspb_button-id-gsbp-10aafab .gspb-buttonbox {
    font-size: 16px !important;
    padding: 16px 30px !important;
}

@media (max-width: 999px) {
    #gspb_container-id-gsbp-60ddfbc {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .hero-car-col {
        justify-content: center !important;
        margin-top: 40px !important;
        padding: 20px !important;
    }

    .hero-car-img {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
    }

    #gspb_container-id-gsbp-60ddfbc #gspb_heading-id-gsbp-8c8637a {
        font-size: 56px !important;
    }

    .hero-section-expanded {
        min-height: 70vh !important;
        padding-top: 120px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 689px) {
    #gspb_container-id-gsbp-60ddfbc {
        padding-top: 130px !important;
        padding-bottom: 60px !important;
    }
    #gspb_container-id-gsbp-60ddfbc #gspb_heading-id-gsbp-8c8637a {
        font-size: 42px !important;
    }
    #gspb_container-id-gsbp-60ddfbc .gspb_text-id-gsbp-84cfb1f {
        font-size: 17px !important;
    }
}

/* ── Alignement et Uniformisation des Boutons ── */

/* Transformer les colonnes des formules en flexbox pour aligner les boutons en bas */
#gspb_row-id-gsbp-16ca367 .gspb_row__col--3 {
    display: flex;
    flex-direction: column;
}

#gspb_row-id-gsbp-16ca367 .gspb_button_wrapper {
    margin-top: auto;
}

/* Style Global des Boutons Greenshift (page d'accueil et autres) */
.gspb-buttonbox {
    background-color: #000 !important;
    border: 2px solid #ff6900 !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
    border-radius: 100px !important;
}

.gspb-buttonbox .gspb-buttonbox-title {
    color: #fff !important;
}

.gspb-buttonbox svg,
.gspb-buttonbox svg path {
    fill: #fff !important;
}

.gspb-buttonbox:hover {
    background-color: #ff6900 !important;
    border-color: #ff6900 !important;
    color: #fff !important;
}

/* ── Section 2 : titre dégradé blanc/bleu/vert/orange ── */
#gspb_heading-id-gsbp-6cb1326 {
    background: linear-gradient(90deg, #fff 0%, #2A9D8F 40%, #FF8C42 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ── Boutons hover orange (pas bleu) sur toute la home ── */
.gspb_iconBox a:hover .gspb_iconBox__wrapper,
.gspb-containerlink:hover {
    color: #FF8C42 !important;
}

.gspb_iconBox a:hover svg path {
    fill: #FF8C42 !important;
}

/* Fix Section 2 - Alignement images à droite */
#gspb_row-id-gsbp-de2d87e > .gspb_row__content {
    align-items: center !important;
    gap: 40px !important;
}

#gspb_col-id-gsbp-3dac3a3 {
    display: flex !important;
    justify-content: flex-end !important;
}

#gspb_row-id-gsbp-3bd9860-s2 {
    width: 100% !important;
    max-width: 600px !important;
}

/* Empêcher la voiture du Hero 1 de passer en dessous sur tablette/desktop */
@media (min-width: 768px) {
    #gspb_row-id-gsbp-5f74e45 > .gspb_row__content {
        flex-wrap: nowrap !important;
    }
    #gspb_col-id-gsbp-89724d5,
    .hero-car-col {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
    .hero-car-img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        transform: translateX(-40px) !important;
    }
}

/* Section Sombre & Cartes (Style Premium) */
.sec-dark { background: #080C0E; color: #fff; }
.sec-dark .sec-title { color: #fff; }
.sec-dark .sec-desc { color: rgba(255,255,255,0.6); }
.sec-dark .sec2-r { background: radial-gradient(circle at 30% 70%, #1a3a55 0%, #060e15 100%); border: 1px solid rgba(255,255,255,0.1); }
.sec-dark .sec-badge { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.sec-dark .sec2-r-title { color: #fff; }
.sec-dark .sec2-r-tag { color: rgba(255,255,255,0.5); }

/* Grille 2 Colonnes (Style Actualités) */
.sec2 { max-width: var(--wrap); margin: 0 auto; padding: 120px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 80px; }
.sec2-l { flex: 0 0 55%; }
.sec2-r { flex: 0 0 45%; border-radius: 30px; padding: 60px; position: relative; overflow: hidden; }

@media (max-width: 999px) {
  .sec2 { flex-direction: column; padding: 80px 20px; gap: 40px; }
  .sec2-l, .sec2-r { flex: 0 0 100%; width: 100%; }
}

/* Marges EduFlex pour l'harmonisation des pages (Priorité renforcée) */
body .eduflex-section-padding {
    padding-top: 150px !important;
    padding-bottom: 150px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    body .eduflex-section-padding {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}
