/* ==========================
   RESET & BASE STYLES
========================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: whitesmoke;
}
section {
  scroll-margin-top: 90px; /* adapte la valeur à la hauteur de ton header */
}

/* ==========================
   UTILITIES & ANIMATIONS
========================== */
.oval-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================
   HEADER & NAVIGATION
========================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    height: 80px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e74c3c;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button1, .cta-button {
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button1 {
    background-color: rgba(255, 166, 0, 0.764);
    font-size: 14px;
}

.cta-button {
    background-color: #e74c3c;
}

/* ==========================
   SLIDESHOW (HERO SECTION)
========================== */
main {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 70px; /* Espace pour le header fixed */
}

.slideshow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 85%;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button {
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button.primary {
    background-color: #e74c3c;
    color: #fff;
    border: 2px solid #e74c3c;
}

.button.primary:hover {
    background-color: transparent;
    color: #e74c3c;
    transform: translateY(-3px);
}

.button.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.button.secondary:hover {
    background-color: #fff;
    color: #2c3e50;
}

/* CSS spécifique pour la modale ovale de rendez-vous */
#rendezVousModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

#rendezVousModal .modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 80px; /* Forme ovale */
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#rendezVousModal h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#rendezVousModal .form-group {
    margin-bottom: 1.2rem;
    display: flex;
    gap: 1rem;
}

#rendezVousModal .form-group input[type="text"],
#rendezVousModal .form-group input[type="email"],
#rendezVousModal .form-group input[type="tel"],
#rendezVousModal .form-group select,
#rendezVousModal .form-group input[type="date"],
#rendezVousModal .form-group input[type="time"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

#rendezVousModal .form-group input[type="text"]:focus,
#rendezVousModal .form-group input[type="email"]:focus,
#rendezVousModal .form-group input[type="tel"]:focus,
#rendezVousModal .form-group select:focus,
#rendezVousModal .form-group input[type="date"]:focus,
#rendezVousModal .form-group input[type="time"]:focus {
    border-color: #3498db;
    outline: none;
}

#rendezVousModal select[name="type_rdv"] {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

#rendezVousModal textarea[name="motif"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    min-height: 100px;
    resize: vertical;
    background-color: #f9f9f9;
    margin-bottom: 1.5rem;
}

#rendezVousModal .confirm-button {
    background-color: #1E90FF;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

#rendezVousModal .confirm-button:hover {
    background-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 144, 255, 0.4);
}

#rendezVousModal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

#rendezVousModal .close-modal:hover {
    color: #e74c3c;
}

/* Animation pour l'apparition de la modale */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#rendezVousModal .modal-content {
    animation: modalFadeIn 0.4s ease-out forwards;
}

/* Style pour le placeholder des inputs */
#rendezVousModal ::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Style pour les inputs de type date et time */
#rendezVousModal input[type="date"],
#rendezVousModal input[type="time"] {
    padding: 12px;
}

#rendezVousModal input[type="date"]::-webkit-calendar-picker-indicator,
#rendezVousModal input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    padding: 4px;
    cursor: pointer;
}


/* ==========================
   GALERIE PROJETS
========================== */
.galerie-projets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 80px auto 0;
    max-width: 1600px;
    padding: 0 20px;
}

.carte-projet {
    height: 300px;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    margin: 0 auto;
}

.carte-projet:hover {
    transform: translateY(-5px);
}

.infos-projet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 1.5rem;
    color: white;
    text-align: center;
    width: 80%;
    max-width: 300px;
}

.infos-projet h3 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.bouton-projet {
    background: transparent;
    color: white;
    border: none;
    padding: 9px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 17px;
}

.bouton-projet:hover {
    background: #2980b9;
}


/* ==========================
   CARROUSEL SECTION
========================== */
.carousel-section {
    padding: 40px 5%;
    text-align: center;
    background-color: #fff;
}

.carousel-section h2 {
    font-size: 2.5rem;
    color: #115da9;
    font-weight: 700;
    margin-bottom: 20px;
}

.carousel-section p {
    font-size: 20px;
    color: black;
    font-weight: bold;
    margin-top: 10px;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 25px;
    padding-bottom: 20px;
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.card {
    flex: 0 0 400px;
    height: 400px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 25px 20px 20px;
    text-align: center;
}

.card-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.card-overlay p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ==========================
   HISTORY SECTION
========================== */
.history-section {
    padding: 40px 5%;
    background-color: whitesmoke;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.history-content {
    flex: 1;
    max-width: 600px;
}

.history-content h2 {
    font-size: 2.5rem;
    color: #115da9;
    margin-bottom: 25px;
    font-weight: 700;
}

.history-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.history-stats {
    flex: 0 0 400px;
    margin-top: 50px;
}

.stats-card {
    background-color: #e8f4f8;
    border-radius: 20px;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-number.blue { color: #3498db; }
.stat-number.purple { color: #9b59b6; }
.stat-number.green { color: #27ae60; }
.stat-number.orange { color: #f39c12; }

.stat-label {
    display: block;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* ==========================
   CONTACT SECTION
========================== */
.contact-section {
    padding: 40px 10%;
    background-color: #fff;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-title {
    font-size: 2.5rem;
    color: #115da9;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.contact-p {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info p {
    color: #555;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    margin-top: 5px;
}

.info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-text p:first-child {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.info-text p:last-child {
    color: #555;
    margin: 5px 0 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 25px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form .form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #c0392b;
}

/* ==========================
   MODAL STYLES
========================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 50px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.modal-icon {
    font-size: 3rem;
    color: #2ECC71;
    margin-bottom: 1rem;
}

.modal-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-btn:hover {
    background: #2980b9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================
   FOOTER
========================== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
}

.footer-column p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    color: #bdc3c7;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00bfff;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: white;
    font-size: 14px;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
/* TABLETTES (≤ 768px) */
@media (max-width: 768px) {
    header {
        padding: 12px 3%;
        flex-direction: column;
        gap: 15px;
    }
    .logo h1 { font-size: 20px; }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li { margin: 5px 10px; }
    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .cta-button1, .cta-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Slideshow */
    .hero-content h2 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    /* Galerie */
    .galerie-projets {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .carte-projet {
        height: 400px;
        max-width: 400px;
    }
    .infos-projet h3 { font-size: 1.5rem; }

    /* Carrousel */
    .carousel-track { gap: 15px; }
    .card {
        flex: 0 0 280px;
        height: 300px;
    }

    /* Histoire */
    .history-section {
        flex-direction: column;
        text-align: center;
    }
    .history-stats { flex: none; width: 100%; }
    .stats-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact */
    .contact-container { flex-direction: column; }
    .contact-title { font-size: 2rem; }
}

/* MOBILES (≤ 480px) */
@media (max-width: 480px) {
    .logo img {
        width: 50px;
        height: 60px;
    }
    nav ul li a { font-size: 15px; }

    /* Slideshow */
    .hero-content h2 { font-size: 2rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .button {
        width: 80%;
        margin: 5px 0;
    }

    /* Galerie */
    .galerie-projets { grid-template-columns: 1fr; }
    .carte-projet {
        height: 200px;
        max-width: 100%;
    }

    /* Carrousel */
    .card {
        flex: 0 0 220px;
        height: 250px;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }

    /* Formulaire */
    .contact-form { padding: 20px; }
    .form-group input,
    .form-group textarea { padding: 10px; }

    /* Footer */
    .footer-content { flex-direction: column; text-align: center; }
    .footer-column { margin-bottom: 20px; }
}
