/* ========================================
   DESIGN MODERNE CLAIR - PAGE D'ACCUEIL
   SRM TTA - Version 2025 - Style Épuré
   ======================================== */

/* ========================================
   VARIABLES DE COULEURS CLAIRES
   ======================================== */

:root {
    --primary-blue: #4a71aa;
    --light-blue: #e8f0f8;
    --accent-blue: #3498db;
    --success-green: #2ecc71;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafbfc;
    --border-light: #e1e8ed;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.08);
}

/* ========================================
   SECTION CAROUSEL - STYLE CLAIR
   ======================================== */

.image-carousel-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
    min-height: 85vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.carousel-swiper {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 85vh;
    max-height: 850px;
}

.carousel-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-swiper .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
    filter: brightness(0.75) contrast(1.1) saturate(1.1);
}

/* Overlay sombre pour le slider */
.carousel-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Contenu du slide - Style épuré */
.carousel-swiper .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1100px;
    padding: 0 80px;
    z-index: 2;
    color: #FFFFFF;
    pointer-events: none;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-swiper .slide-title {
    font-family: 'Roboto', sans-serif;
    font-size: 72px;
    font-weight: 800;
    margin: 0 0 30px 0;
    line-height: 1.1;
    letter-spacing: -2.5px;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.carousel-swiper .slide-text {
    font-family: 'Hind', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 45px 0;
    line-height: 1.8;
    max-width: 750px;
    text-align: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6), 0 1px 5px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.carousel-swiper .slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(74, 113, 170, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.carousel-swiper .slide-cta::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;
}

.carousel-swiper .slide-cta:hover::before {
    left: 100%;
}

.carousel-swiper .slide-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 113, 170, 0.35);
    background: var(--accent-blue);
}

.carousel-swiper .slide-cta:active {
    transform: translateY(-1px);
}

.carousel-swiper .slide-cta i {
    transition: transform 0.3s ease;
}

.carousel-swiper .slide-cta:hover i {
    transform: translateX(5px);
}

/* Boutons de navigation - Style clair */
.carousel-swiper .swiper-button-next,
.carousel-swiper .swiper-button-prev {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(74, 113, 170, 0.1);
}

.carousel-swiper .swiper-button-next:hover,
.carousel-swiper .swiper-button-prev:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 113, 170, 0.3);
    border-color: var(--primary-blue);
}

.carousel-swiper .swiper-button-next::after,
.carousel-swiper .swiper-button-prev::after {
    font-size: 22px;
    font-weight: 700;
}

/* Pagination claire */
.carousel-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-swiper .swiper-pagination-bullet-active {
    background: var(--primary-blue);
    width: 35px;
    border-radius: 6px;
    border-color: white;
    box-shadow: 0 3px 10px rgba(74, 113, 170, 0.4);
}

/* ========================================
   SECTION ESPACE CLIENT - STYLE CLAIR
   ======================================== */

.client-section {
    padding: 120px 20px;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.client-section .client-title {
    font-size: 56px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-dark);
    letter-spacing: -2px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.client-section .client-title::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Cartes de paiement - Style clair et épuré */
.payment-card {
    background: var(--bg-white);
    padding: 50px 40px;
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 4px 20px var(--shadow-light),
                0 1px 3px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-medium),
                0 4px 12px var(--shadow-light);
    border-color: var(--primary-blue);
}

.payment-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 45px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.payment-card:hover .payment-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.payment-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-icon img {
    transform: scale(1.05);
}

.payment-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.payment-card:hover h3 {
    color: var(--primary-blue);
}

.payment-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.payment-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(74, 113, 170, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 113, 170, 0.3);
    background: #FFF !important;
}

/* Gradient vert (du foncé en bas vers le clair en haut) - EX-RADEEL - Carte 1 - Plante */
.payment-card:nth-child(1) .payment-icon {
    background: linear-gradient(180deg, #158a5a 0%, #1fa56d 50%, #35c180 100%);
}

.payment-card:nth-child(1) .payment-icon i {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Gradient bleu (du foncé en bas vers le clair en haut) - EX-ONEE Eau - Carte 2 - Goutte */
.payment-card:nth-child(2) .payment-icon {
    background: linear-gradient(180deg, #1e55c9 0%, #2b6ff0 50%, #4386ff 100%);
}

.payment-card:nth-child(2) .payment-icon i {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Gradient orange (du foncé en bas vers le clair en haut) - EX-ONEE Électricité - Carte 3 - Éclair */
.payment-card:nth-child(3) .payment-icon {
    background: linear-gradient(180deg, #d27605 0%, #e48907 50%, #f1a214 100%);
}

.payment-card:nth-child(3) .payment-icon i {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Effets hover avec intensification des gradients */
.payment-card:nth-child(1):hover .payment-icon {
    background: linear-gradient(180deg, #11784f 0%, #158a5a 50%, #1fa56d 100%);
    box-shadow: 0 12px 35px rgba(21, 138, 90, 0.35);
}

.payment-card:nth-child(2):hover .payment-icon {
    background: linear-gradient(180deg, #1a4aa8 0%, #1e55c9 50%, #2b6ff0 100%);
    box-shadow: 0 12px 35px rgba(43, 111, 240, 0.35);
}

.payment-card:nth-child(3):hover .payment-icon {
    background: linear-gradient(180deg, #c56804 0%, #d27605 50%, #e48907 100%);
    box-shadow: 0 12px 35px rgba(228, 137, 7, 0.35);
}

/* ========================================
   SECTION INFO - STYLE CLAIR
   ======================================== */

.info-section {
    padding: 120px 20px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.info-text h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 35px;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.info-text p,
.info-text div {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 25px;
}

.map-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: var(--bg-white);
    padding: 10px;
}

.map-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--shadow-medium);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.map-image-container:hover .map-image {
    transform: scale(1.02);
}

/* ========================================
   SECTION STATISTIQUES - STYLE CLAIR
   ======================================== */

.stats-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #d4e4f5 100%);
    position: relative;
    overflow: hidden;
}

.stats-section > .container {
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bg-white);
    padding: 55px 35px;
    border-radius: 24px;
    box-shadow: 0 8px 30px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--success-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.stat-number {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.stat-value {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
    display: inline-block;
    animation: scaleIn 0.6s ease-out;
}

.stat-unit {
    font-family: 'Roboto', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    vertical-align: baseline;
}

.stat-label {
    font-family: 'Hind', sans-serif;
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.stat-card:hover .stat-value {
    animation: pulse 1s ease-in-out;
}

/* ========================================
   SECTION APPELS D'OFFRES - STYLE CLAIR
   ======================================== */

.tenders-section {
    padding: 120px 20px;
    background: var(--bg-white);
}

.tenders-title {
    font-size: 56px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-dark);
    letter-spacing: -2px;
}

.tender-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-light);
    position: relative;
}

.tender-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue), var(--success-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tender-card:hover::before {
    transform: scaleX(1);
}

.tender-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.tender-btn {
    background: var(--primary-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(74, 113, 170, 0.2);
}

.tender-btn:hover {
    background: var(--accent-blue);
    transform: translateX(5px);
    color: white;
    box-shadow: 0 6px 20px rgba(74, 113, 170, 0.3);
}

/* ========================================
   SECTION ACTUALITÉS - STYLE CLAIR
   ======================================== */

.news-section {
    padding: 120px 20px;
    background: var(--bg-light);
}

.news-title {
    font-size: 56px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-dark);
    letter-spacing: -2px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.news-image {
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-btn {
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-btn:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

/* ========================================
   SECTION CONTACT - STYLE CLAIR
   ======================================== */

.contact-section {
    padding: 120px 20px;
    background: var(--bg-white);
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    padding: 60px 50px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 10px 40px rgba(74, 113, 170, 0.2);
    height: 100%;
}

.contact-form-box {
    background: var(--bg-white);
    padding: 60px 50px;
    border-radius: 24px;
    box-shadow: 0 4px 20px var(--shadow-light);
    height: 100%;
    border: 1px solid var(--border-light);
}

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

@media (max-width: 768px) {
    .image-carousel-section {
        min-height: 60vh;
    }

    .carousel-swiper {
        height: 60vh;
        min-height: 60vh;
        max-height: 600px;
    }

    .carousel-swiper .slide-content {
        padding: 0 40px;
        max-width: 95%;
    }

    .carousel-swiper .slide-title {
        font-size: 42px;
        margin-bottom: 20px;
        letter-spacing: -1.5px;
    }

    .carousel-swiper .slide-text {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .carousel-swiper .slide-cta {
        padding: 16px 35px;
        font-size: 16px;
    }

    .client-section,
    .info-section,
    .stats-section,
    .tenders-section,
    .news-section,
    .contact-section {
        padding: 80px 20px;
    }

    .client-section .client-title,
    .tenders-title,
    .news-title {
        font-size: 40px;
    }

    .payment-card {
        padding: 40px 30px;
    }

    .stat-value {
        font-size: 48px;
    }

    .stat-unit {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .image-carousel-section {
        min-height: 50vh;
    }

    .carousel-swiper {
        height: 50vh;
        min-height: 50vh;
        max-height: 500px;
    }

    .carousel-swiper .slide-content {
        padding: 0 25px;
        max-width: 98%;
    }

    .carousel-swiper .slide-title {
        font-size: 32px;
        margin-bottom: 15px;
        letter-spacing: -1px;
    }

    .carousel-swiper .slide-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .carousel-swiper .slide-cta {
        padding: 14px 28px;
        font-size: 14px;
    }

    .client-section .client-title,
    .tenders-title,
    .news-title {
        font-size: 32px;
    }

    .payment-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .stat-value {
        font-size: 42px;
    }

    .stat-unit {
        font-size: 30px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

