/* ==========================================================================
   DOMAINE ÉQUESTRE DU RIVAL - STYLES COMMUNS À TOUTES LES PAGES
   ========================================================================== */

/* Couleurs du site

Couleurs Turquoise : #20B2AA;
Couleur Bleu : #1E3A8A;
Couleur sable : #F5F2E8;

*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   BANDES CINÉMASCOPE
   ========================================================================== */

.cinematic-bar {
    background: #20B2AA;
    height: 20px;
    width: 100%;
    position: relative;
    z-index: 5;

}

.cinematic-top {
    /* Bande noire du haut */
        /* BOX-SHADOW "ACCROCHÉ" SPECTACULAIRE */
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.30);
}

.cinematic-bottom {
    /* Bande noire du bas */
    background: #1E3A8A;
}

/* ==========================================================================
   HERO SECTION - HEADER
   ========================================================================== */

.hero {
    /* Image hero-bg.jpg pure - HAUTEUR RÉDUITE */
    background: url('../images/hero/hero-bg.jpg');
    height: 50vh; /* RÉDUIT de 80vh à 50vh */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    margin-top: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    
    /* CSS GRID pour contrôle total des positions */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 1fr; /* 3 zones égales */
    align-items: center;
    justify-items: center;
    gap: 20px; /* RÉDUIT de 40px à 20px */
}

/* Zone vide en haut */
.hero-top-space {
    grid-row: 1;
}

/* Logo au centre - TAILLE RÉDUITE */
.hero-logo {
    grid-row: 2;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 350px; 
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zone vide en bas */
.hero-bottom-space {
    grid-row: 3;
}

.logo-overlay {
    max-width: 300px;
    max-height: 300px; 
    width: auto;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.logo-overlay:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   SECTION MENU
   ========================================================================== */

.menu-section {
    background: white;
    padding: 25px 0;
    position: relative;
    z-index: 4;
}

.hero-navigation {
    /* Conteneur pour le menu dans la nouvelle section */
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-navigation nav {
    display: flex;
    justify-content: center;
}

.hero-navigation nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    
    /* FOND GLASSMORPHISM COMPLET - COMME LE LOGO */
    background: rgba(245, 242, 232, 0.75);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin: 0;
    padding: 0;
    
    /* BOX-SHADOW ÉLÉGANT */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-navigation nav ul li {
    /* SUPPRESSION DES BORDURES ENTRE ÉLÉMENTS */
    border-right: none;
    flex: 1; /* Répartition égale de l'espace */
}

.hero-navigation nav ul li:last-child {
    border-right: none;
}

.hero-navigation nav ul li a {
    color: #1E3A8A;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    height: 50px;
    min-width: 0;
    
    /* FOND TRANSPARENT - PAS DE COULEUR DE FOND */
    background: transparent;
    
    /* TRANSITION UNIQUEMENT SUR LE TEXTE */
    transition: all 0.3s ease;
}

/* COMPORTEMENT HOVER - TEXTE UNIQUEMENT */
.hero-navigation nav ul li:hover a {
    /* CHANGEMENT DE COULEUR DU TEXTE UNIQUEMENT */
    color: #20B2AA; /* Turquoise plus vif */

    /* LÉGÈRE ÉLÉVATION DU TEXTE */
    transform: translateY(-1px);
    
    /* PAS DE CHANGEMENT DE FOND - FOND RESTE TRANSPARENT */
    background: transparent;
}

/* ÉTAT ACTIF */
.hero-navigation nav ul li a.active {
    color: #20B2AA;
    background: transparent;
    transform: translateY(-1px);
}

/* ==========================================================================
   PAGE INTRO SECTION - COMMUN À TOUTES LES PAGES SAUF ACCUEIL
   ========================================================================== */

.page-intro {
    padding: 80px 0 60px 0;
    background: linear-gradient(135deg, #F5F2E8 0%, #E8F4F8 100%);
    position: relative;
    z-index: 2;
}

.page-intro h1 {
    color: #1E3A8A;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* ==========================================================================
   SECTION TITLE - COMMUN
   ========================================================================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1E3A8A;
}

/* ==========================================================================
   QUICK CONTACT SECTION - COMMUN
   ========================================================================== */

.quick-contact {
    padding: 60px 0;
    background: linear-gradient(135deg, #20B2AA 0%, #1E3A8A 100%);
    position: relative;
    z-index: 2;
}

.contact-banner {
    text-align: center;
    color: white;
}

.contact-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-banner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: white;
    color: #1E3A8A;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-btn:hover {
    background: #F5F2E8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn.phone {
    background: #4ADE80;
    color: white;
}

.contact-btn.phone:hover {
    background: #22C55E;
}

.contact-btn.calendar {
    background: #F59E0B;
    color: white;
}

.contact-btn.calendar:hover {
    background: #EAB308;
}

.contact-btn.form {
    background: #EC4899;
    color: white;
}

.contact-btn.form:hover {
    background: #DB2777;
}

/* ==========================================================================
   FOOTER COMMUN A TOUTES LES PAGES
   ========================================================================== */

footer {
    background: #1E3A8A;
    color: white;
    padding: 50px 0 20px 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr 1fr 1fr; /* Logo auto + 3 colonnes égales */
    gap: 50px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-section h3 {
    color: #20B2AA;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section h4 {
    color: #20B2AA;
    margin: 20px 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p, 
.footer-section li {
    margin-bottom: 8px;
    color: #F5F2E8;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #20B2AA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F5F2E8;
    text-decoration: underline;
}

/* INFORMATIONS DE CONTACT */
.contact-info {
    margin-bottom: 25px;
}

.footer-hours p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* CRÉDENTIALS */
.footer-credentials {
    margin-top: 20px;
    padding: 15px;
    background: rgba(32, 178, 170, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(32, 178, 170, 0.2);
}

.footer-credentials p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* RÉSEAUX SOCIAUX */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    background: #20B2AA;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: white;
    color: #20B2AA;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FOOTER BOTTOM AVEC LIENS LÉGAUX
   ========================================================================== */

.footer-bottom {
    border-top: 1px solid #20B2AA;
    padding-top: 25px;
    text-align: center;
    color: #F5F2E8;
    font-size: 0.9rem;
}

.footer-legal-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #20B2AA;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #F5F2E8;
    text-decoration: underline;
}

.footer-legal-links span {
    color: #20B2AA;
    opacity: 0.7;
}

.footer-copyright p {
    margin-bottom: 5px;
}

/* ==========================================================================
   LOGO FOOTER
   ========================================================================== */

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.footer-logo .logo-overlay {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: none !important;
    transform: none !important;
}

.footer-logo .logo-overlay:hover {
    transform: none !important;
    scale: 1 !important;
}

/* ==========================================================================
   RESPONSIVE MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        width: 160px;
        height: 160px;
        padding: 25px;
        margin: 0 auto 20px auto;
    }
    
    .footer-logo .logo-overlay {
        max-width: 120px;
        max-height: 120px;
    }
    
    .footer-hours,
    .footer-credentials {
        text-align: left;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legal-links span {
        display: none; /* Cache les • sur mobile */
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1E3A8A;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

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

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

.service-item {
    animation: fadeInUp 0.6s ease-out;
}

.service-item:nth-child(2) {
    animation-delay: 0.2s;
}

.service-item:nth-child(3) {
    animation-delay: 0.4s;
}

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

@media (max-width: 768px) {
    /* BANDES CINÉMASCOPE MOBILE */
    .cinematic-bar {
        height: 15px; /* Réduites sur mobile */
    }
    
    /* HERO MOBILE */
    .hero {
        height: 40vh; /* Encore plus réduit sur mobile */
        gap: 15px;
    }
    
    /* LOGO MOBILE */
    .hero-logo {
        width: 250px; /* Encore plus petit sur mobile */
        height: 250px;
        padding: 20px;
    }
    
    .logo-overlay {
        max-width: 220px;
        max-height: 220px;
    }
    
    /* MENU MOBILE RESPONSIVE - GLASSMORPHISM ADAPTÉ */
    .menu-section {
        padding: 20px 0;
        /* Shadow adapté mobile */
        box-shadow: 
            0 8px 25px rgba(30, 58, 138, 0.25),
            0 4px 15px rgba(0, 0, 0, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    
    .hero-navigation nav ul {
        flex-direction: column;
        border-radius: 15px;
        margin: 0 10px;
        
        /* Glassmorphism renforcé sur mobile */
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    
    .hero-navigation nav ul li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        flex: none;
    }
    
    .hero-navigation nav ul li:last-child {
        border-bottom: none;
    }
    
    .hero-navigation nav ul li a {
        height: 45px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    /* Hover mobile adapté */
    .hero-navigation nav ul li:hover a {
        color: #20B2AA;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.6),
            0 0 12px rgba(32, 178, 170, 0.7);
        background: transparent;
    }
    
    /* NOUVELLES SECTIONS RESPONSIVE - STRUCTURE CENTRÉE */
    .content-wrapper {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 30px;
    }
    
    .team-content {
        order: -1; /* Équipe en premier sur mobile */
    }
    
    .actualites-content {
        order: 2; /* Actualités après sur mobile */
    }
    
    .team-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .team-member {
        flex: 0 1 calc(50% - 10px);
        min-width: 150px;
    }
    
    .team-photo {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .installations-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* AUTRES SECTIONS MOBILE */
    .owner-content,
    .installations-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        border-right: none;
        border-bottom: 1px solid #20B2AA;
    }
    
    .page-intro h1 {
        font-size: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}