/* ================== CONTACT ================== */
/* ================== PAGE CONTACT ================== */
/* Variables de couleurs */
        :root {
            --primary-color: #1a4f8b;
            --secondary-color: #f8b739;
            --accent-color: #e63946;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
        }
        
        /* Styles de la navbar */
        .navbar {
            background: linear-gradient(135deg, var(--primary-color) 0%, #2c6cb0 100%) !important;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            padding: 0.8rem 1rem;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }
        
        .navbar-brand {
            font-weight: 700;
            font-size: 1.8rem;
            color: white !important;
            display: flex;
            align-items: center;
        }
        
        .navbar-brand i {
            color: var(--secondary-color);
            font-size: 1.8rem;
            margin-right: 0.5rem;
        }
        
        .nav-link {
            color: rgba(255, 255, 255, 0.85) !important;
            font-weight: 500;
            padding: 0.8rem 1rem !important;
            margin: 0 0.2rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .nav-link:hover, 
        .nav-link:focus {
            color: white !important;
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--secondary-color);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .nav-link:hover::after {
            width: 70%;
        }
        
        .nav-link.active {
            color: white !important;
            background-color: rgba(255, 255, 255, 0.15);
        }
        
        .nav-link.active::after {
            width: 70%;
            background: var(--secondary-color);
        }
        
        .navbar-toggler {
            border: none;
            color: white !important;
            padding: 0.5rem;
        }
        
        .navbar-toggler:focus {
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
        }
        
        /* Media queries pour le responsive */
        @media (max-width: 991px) {
            .navbar-collapse {
                background-color: var(--primary-color);
                padding: 1rem;
                border-radius: 0 0 10px 10px;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                margin-top: 0.5rem;
            }
            
            .nav-link {
                padding: 0.7rem 1rem !important;
                margin: 0.2rem 0;
                text-align: center;
            }
        }


:root {
    --primary-color: #1a4f8b;
    --secondary-color: #f8b739;
    --accent-color: #e63946;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* ================== BANNIÈRE ================== */
        .news-banner {
            background: url('images/grad.jpg') center/cover no-repeat;
  height: 60vh; /* prend toute la hauteur de l’écran */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
        }
        .news-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* rend le texte lisible */
}
.news-banner .content {
  position: relative;
  z-index: 1;
}
        
        .news-banner h1 {
            font-weight: 800;
            font-size: 3.5rem;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            margin-bottom: 1rem;
        }
        
        .news-banner p {
            font-size: 1.3rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.contact-content {
    padding: 3rem 2rem;
}

/* Responsive */
        @media (max-width: 992px) {
            .news-banner h1 {
                font-size: 2.8rem;
            }
        }
        
        @media (max-width: 768px) {
            .news-banner {
                height: 50vh;
                padding: 0 1rem;
            }
            
            .news-banner h1 {
                font-size: 2.4rem;
            }
            
            .news-banner p {
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 576px) {
            .news-banner h1 {
                font-size: 2rem;
            }
        }

/* ================== FORMULAIRE ================== */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.contact-form h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 79, 139, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.contact-form .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c6cb0 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-form .btn: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;
}

.contact-form .btn:hover:before {
    left: 100%;
}

.contact-form .btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffc857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(248, 183, 57, 0.3);
}

.contact-form .btn:active {
    transform: translateY(-1px);
}

/* ================== INFORMATIONS ================== */
.contact-info {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.contact-info:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.contact-info h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.contact-info > p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.info-box {
    background: rgba(26, 79, 139, 0.05);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.info-box:hover {
    background: rgba(26, 79, 139, 0.1);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-box:hover .icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.info-box span {
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-box:hover span {
    color: var(--primary-color);
}

.working-hours {
    background: rgba(248, 183, 57, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.working-hours:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 183, 57, 0.2);
}

.working-hours h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.working-hours p {
    color: #495057;
    margin-bottom: 0;
    font-weight: 500;
}

/* CORRECTION DES ICÔNES SOCIALES */
        .socials-icons {
            margin-top: 1.5rem;
            display: flex;
            gap: 15px;
        }
        
        .socials-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: rgba(26, 79, 139, 0.1);
            color: var(--primary-color);
            border-radius: 50%;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            text-decoration: none;
            
        }
        
        .socials-icons a:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        /* Couleurs spécifiques pour chaque réseau social */
        .socials-icons a[href*="facebook"]:hover {
            background: #1877f2;
            color: white;
        }
        
        .socials-icons a[href*="tiktok"]:hover {
            background: #000000;
            color: white;
        }
        
        .socials-icons a[href*="instagram"]:hover {
            background: #e4405f;
            color: white;
        }
        
        .socials-icons a[href*="youtube"]:hover {
            background: #ff0000;
            color: white;
        }
/* ================== CARTE ================== */
.contact-map {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ================== ANIMATIONS ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form, .contact-info {
    animation: fadeInUp 0.6s ease-out;
}

.contact-info {
    animation-delay: 0.2s;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .contact-header h1 {
        font-size: 2.4rem;
    }
    
    .contact-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-form, .contact-info {
        padding: 2rem;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        border-radius: 15px;
        margin: 1rem auto;
    }
    
    .contact-header {
        padding: 2rem 1.5rem;
    }
    
    .contact-header h1 {
        font-size: 2.2rem;
    }
    
    .contact-header p {
        font-size: 1.1rem;
    }
    
    .contact-form, .contact-info {
        margin-bottom: 2rem;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .working-hours {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .contact-header h1 {
        font-size: 1.9rem;
    }
    
    .contact-header p {
        font-size: 1rem;
    }
    
    .contact-form h3, .contact-info h3 {
        font-size: 1.6rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .contact-form .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-map iframe {
        height: 250px;
    }
}

/* États de validation du formulaire */
.form-control:valid {
    border-color: #28a745;
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--accent-color);
}

/* Loading state pour le bouton */
.contact-form .btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-form .btn.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
        
        /* ================== MAP ================== */
        .map-section {
            margin-top: 3rem;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .map-section iframe {
            width: 100%;
            height: 300px;
            border: none;
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .contact-header h1 {
                font-size: 2.4rem;
            }
            
            .contact-content {
                padding: 2rem 1.5rem;
            }
            
            .contact-form, .contact-info {
                padding: 2rem;
            }
        }
        
        @media (max-width: 768px) {
            .contact-container {
                border-radius: 15px;
                margin: 1rem auto;
            }
            
            .contact-header {
                padding: 2rem 1.5rem;
            }
            
            .contact-header h1 {
                font-size: 2.2rem;
            }
            
            .contact-form, .contact-info {
                margin-bottom: 2rem;
            }
            
            .info-box {
                padding: 1rem;
            }
        }
        
        @media (max-width: 576px) {
            .contact-header h1 {
                font-size: 1.9rem;
            }
            
            .contact-header p {
                font-size: 1.1rem;
            }
            
            .contact-form h3, .contact-info h3 {
                font-size: 1.6rem;
            }
            
            .form-control {
                padding: 10px 12px;
            }
            
            .contact-info .social-icons a {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
        }



footer {
    background: #053a74;
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: rotate(-2deg);
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h4 {
    color: #FFD700;
    font-size: 1.4em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, transparent);
}

footer p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 300;
}

footer button {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    color: #053a74;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

footer button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.5);
}

.social-icons a {
    display: inline-block;
    color: #fff;
    padding: 10px 20px;
    margin: 8px 0;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icons a::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: 0.5s;
}

.social-icons a:hover::before {
    left: 100%;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(10px);
}

.social-icons i {
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

footer a:hover {
    color: #FFD700;
}

footer a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FFD700;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

.c {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,215,0,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    footer::before {
        top: -30px;
        height: 60px;
    }
    
    footer .col-md-3 {
        margin-bottom: 40px;
        text-align: center;
    }
    
    footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons a {
        max-width: 250px;
        margin: 8px auto;
    }
}

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background: #0362c5;
  color: #fff;
  border: none;
  padding: 15px 18px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: none; /* caché au début */
  transition: background 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
  background: #024a94;
  transform: scale(1.1);
}

