/* ==========================================================================
   INDEX PAGE - TOPCENTER
   Charte: #0D4FD8 (bleu) & #FF772A (orange)
   Style: Professionnel, Simple et Moderne
   ========================================================================== */

/* Variables CSS */
:root {
    --topcenter-blue: #0D4FD8;
    --topcenter-orange: #FF772A;
    --topcenter-blue-light: rgba(13, 79, 216, 0.1);
    --topcenter-orange-light: rgba(255, 119, 42, 0.1);
    --topcenter-blue-dark: #0a3db0;
    --topcenter-orange-dark: #e6671f;
    --section-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #495057;
    background: #ffffff;
}

/* Navbar améliorée */
.navbar-topcenter {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}

.navbar-topcenter.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar-topcenter.navbar-scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--topcenter-blue) !important;
}

.navbar-brand img.navbar-logo {
    height: 45px;
    transition: transform 0.3s ease;
}

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

.navbar-toggler-topcenter {
    border: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230D4FD8' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link-topcenter {
    color: #333333 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link-topcenter:hover {
    color: var(--topcenter-blue) !important;
}

.nav-link-topcenter.active {
    color: var(--topcenter-blue) !important;
}

.nav-link-topcenter.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--topcenter-orange);
    border-radius: 1px;
}

.nav-link-topcenter i {
    margin-right: 0.25rem;
}

.btn-topcenter-outline {
    border: 2px solid var(--topcenter-blue) !important;
    color: var(--topcenter-blue) !important;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.btn-topcenter-outline:hover {
    background-color: var(--topcenter-blue) !important;
    color: #ffffff !important;
}

.btn-topcenter-orange {
    background-color: var(--topcenter-orange) !important;
    border: 2px solid var(--topcenter-orange) !important;
    color: #ffffff !important;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-weight: 500;
}

.btn-topcenter-orange:hover {
    background-color: var(--topcenter-orange-dark) !important;
    border-color: var(--topcenter-orange-dark) !important;
}

.navbar-spacer {
    height: 80px;
}

/* Hero Carousel - Animations supprimées */
.hero-section {
    position: relative;
    height: 0vh;
    min-height: 550px;
    overflow: hidden;
}

#heroCarousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* Transition supprimée */
}

/* Overlay dégradé sur chaque slide */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 79, 216, 0.75) 0%,
        rgba(255, 119, 42, 0.6) 50%,
        rgba(13, 79, 216, 0.75) 100%
    );
    z-index: 1;
}

/* Contenu du carrousel - Animation supprimée */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
    max-width: 800px;
}

.hero-content {
    /* Animation supprimée */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton hero amélioré */
.btn-hero {
    background: white;
    border: none;
    color: var(--topcenter-blue);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--topcenter-blue);
    text-decoration: none;
}

/* Contrôles carrousel améliorés */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 100%, 100%;
    background-image: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: var(--transition);
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--topcenter-blue);
}

.carousel-control-prev-icon::after {
    border-top: 0;
    border-right: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.carousel-control-next-icon::after {
    border-bottom: 0;
    border-left: 0;
    transform: translate(-50%, -50%) rotate(-135deg);
}

/* Indicateurs carrousel améliorés */
.carousel-indicators {
    bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.carousel-indicators .active {
    background: var(--topcenter-orange);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 119, 42, 0.4);
}

/* Sections Générales améliorées */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--topcenter-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--topcenter-blue), var(--topcenter-orange));
    border-radius: 2px;
}

.section-lead {
    font-size: 1.25rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Presentation Section améliorée */
.presentation-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.presentation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--topcenter-blue), var(--topcenter-orange));
    z-index: 10;
}

.presentation-section img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.presentation-section img:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Classe pour supprimer les animations */
.no-animation {
    animation: none !important;
    transition: none !important;
}

/* Features améliorées */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: var(--topcenter-blue-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid var(--topcenter-blue);
    position: relative;
    overflow: hidden;
}

.feature-item:nth-child(2) {
    background: var(--topcenter-orange-light);
    border-left-color: var(--topcenter-orange);
}

.feature-item:nth-child(3) {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    font-size: 1.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    transition: var(--transition);
    width: 40px;
    text-align: center;
}

.feature-item:nth-child(1) .feature-icon { color: var(--topcenter-blue); }
.feature-item:nth-child(2) .feature-icon { color: var(--topcenter-orange); }
.feature-item:nth-child(3) .feature-icon { color: #28a745; }

.feature-item h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Services Section améliorée */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--card-shadow);
    border-top: 4px solid transparent;
}

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

.blue-card {
    border-top-color: var(--topcenter-blue);
}

.orange-card {
    border-top-color: var(--topcenter-orange);
}

.green-card {
    border-top-color: #28a745;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--topcenter-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--topcenter-blue);
}

.orange-card .service-icon {
    background: var(--topcenter-orange-light);
    color: var(--topcenter-orange);
}

.green-card .service-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-link {
    color: var(--topcenter-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--topcenter-blue-dark);
}

/* Manager Section améliorée */
.manager-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.manager-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--topcenter-blue), var(--topcenter-orange));
}

.quote-block {
    background: var(--section-bg);
    border-left: 5px solid var(--topcenter-orange);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    box-shadow: var(--card-shadow);
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--topcenter-orange);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.quote-block p {
    font-size: 1.25rem;
    font-style: italic;
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    padding-left: 1rem;
    margin: 0;
}

.orange-accent {
    display: block;
    color: var(--topcenter-orange);
    font-weight: 600;
    font-size: 1rem;
    text-align: right;
    margin-top: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-right: 1rem;
}

.manager-section img[alt="Manager Général"] {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.manager-section:hover img[alt="Manager Général"] {
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
}

/* CTA Section améliorée */
.cta-section {
    background: linear-gradient(135deg, var(--topcenter-blue) 0%, var(--topcenter-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.cta-section .btn-light {
    background: white;
    color: var(--topcenter-blue);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* News Section améliorée */
.news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 2rem;
}

.news-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blue-accent { color: var(--topcenter-blue); }
.orange-accent { color: var(--topcenter-orange); }
.green-accent { color: #28a745; }

.news-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.news-footer small {
    color: #6c757d;
}

.read-more {
    color: var(--topcenter-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--topcenter-blue-dark);
}

/* Partners Section améliorée */
.partners-section {
    background: white;
}

.partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    padding: 1rem;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Animations supprimées pour la section présentation */
.presentation-section img.no-animation,
.presentation-section .no-animation {
    animation: none !important;
    transition: none !important;
}

/* Responsive amélioré */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .presentation-section .row,
    .manager-section .row {
        flex-direction: column;
    }
    
    .manager-section img[alt="Manager Général"] {
        margin-bottom: 2rem;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .quote-block {
        padding: 2rem 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .feature-icon {
        margin: 0 auto 0.75rem;
    }
}

/* Accessibilité améliorée */
.btn:focus,
a:focus,
.nav-link:focus {
    outline: 2px solid var(--topcenter-blue);
    outline-offset: 2px;
}

/* Reduced motion - toutes les animations supprimées */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}