/* ═══════════════════════════════════════════════════════════
   ElieTRIQUE.COM - STYLES PROFESSIONNELS
   Version nettoyée par Junior & Claude - Novembre 2025
   
   TABLE DES MATIÈRES:
   1. Reset & Variables
   2. Navigation
   3. Hero Section
   4. Services
   5. About Section  
   6. Why Choose Us
   7. Contact Section
   8. Footer
   9. Cookie Consent
   10. Responsive
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1. RESET & VARIABLES
   ═══════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables de couleurs du thème */
:root {
    --primary-dark: #2C3E50;      /* Gris-bleu foncé */
    --primary-blue: #3498DB;      /* Bleu principal */
    --primary-orange: #db8d34;    /* Orange du logo */
    --secondary-blue: #5DADE2;    /* Bleu secondaire */
    --light-gray: #ECF0F1;        /* Gris clair */
    --medium-gray: #BDC3C7;       /* Gris moyen */
    --dark-gray: #34495E;         /* Gris foncé */
    --white: #FFFFFF;             /* Blanc */
    --text-dark: #2C3E50;         /* Texte foncé */
    --text-light: #7F8C8D;        /* Texte clair */
    --success: #27AE60;           /* Vert succès */
    --shadow: rgba(0, 0, 0, 0.1); /* Ombre standard */
}

html {
    scroll-behavior: smooth; /* Défilement fluide pour les ancres */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* ═══════════════════════════════════════════════════════════
   2. NAVIGATION - Menu blanc avec logo double
   ═══════════════════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);  /* Fond blanc semi-transparent */
    backdrop-filter: blur(10px);             /* Effet de flou */
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre subtile */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo principal (icône + texte) */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre l'icône et le texte */
}

/* Logo icône (image de gauche) */
.logo-image {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05); /* Petit zoom au survol */
}

/* Logo texte (nom + RBQ) */
.logo-name {
    height: 30px;
    width: auto;
    transition: all 0.3s ease;
}

/* Menu de navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Bouton de changement de langue */
.lang-switch {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--white);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    transform: translateY(-2px);
}

/* Bouton téléphone (optionnel) */
.phone-button {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-orange);
}

.phone-button:hover {
    background: var(--white);
    color: var(--primary-orange);
}

/* Bouton hamburger (caché sur desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Animation du hamburger en X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ═══════════════════════════════════════════════════════════
   3. HERO SECTION - Bannière principale avec vidéo
   ═══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Vidéo de fond */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Contenu du hero */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 1200px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Boutons du hero */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-blue); /* ici */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Features (checkmarks) */
.hero-features {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    color: var(--success);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ═══════════════════════════════════════════════════════════
   4. SERVICES - Grille de services
   ═══════════════════════════════════════════════════════════ */

.services {
    padding: 6rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   5. ABOUT SECTION - Section À propos
   ═══════════════════════════════════════════════════════════ */

.about {
    padding: 6rem 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 2rem;
}

.about-feature {
    margin-bottom: 1.5rem;
}

.about-feature h4 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════════════════════
   6. WHY CHOOSE US - Pourquoi nous choisir avec background
   ═══════════════════════════════════════════════════════════ */

.why-choose {
    position: relative;
    height: 100vh;
    /* Gradient orange + image de fond */
    background-image: 
        linear-gradient(rgba(44, 62, 80, 0.90), rgba(255, 165, 0, 0.25)),
        url('images/Pan_cln.PNG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.why-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.why-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.why-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   7. CONTACT SECTION - Formulaire de contact
   ═══════════════════════════════════════════════════════════ */

.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.contact-details h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-details p, .contact-details a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--primary-blue);
}

/* Formulaire */
.contact-form {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Bouton de soumission du formulaire */
.contact-form button[type="submit"] {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;  /* Pleine largeur */
    margin-top: 1rem;
}

.contact-form button[type="submit"]:hover {
    background: #b87428;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(219, 141, 52, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   8. FOOTER - Pied de page avec pastille blur
   ═══════════════════════════════════════════════════════════ */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

/* 🔥 PASTILLE BLUR POUR LE LOGO + TEXTE 🔥 */
.footer-logo-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);     /* Fond noir semi-transparent */
    backdrop-filter: blur(10px);        /* EFFET BLUR! */
    -webkit-backdrop-filter: blur(10px); /* Pour Safari */
    border-radius: 20px;                /* Coins arrondis */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure subtile */
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Logo dans le footer */
.logo-foot {
    height: 120px;
    width: auto;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Empêche le logo de rétrécir */
}

/* Texte à côté du logo dans la pastille */
.footer-text {
    color: var(--white);
}

.footer-text p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-license {
    font-weight: 600;
    color: var(--secondary-blue); /* Bleu pour le RBQ */
}

/* Reste du footer */
.footer-content {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);  /* ← 4 COLONNES FIXES */
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--medium-gray);
    margin: 0;
}

.footer-bottom a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   9. COOKIE CONSENT - Bannière de consentement
   ═══════════════════════════════════════════════════════════ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-text p {
    color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-text a {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--primary-blue);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary-blue);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   10. RESPONSIVE - Adaptations mobile/tablette
   ═══════════════════════════════════════════════════════════ */

/* Tablette - 2 colonnes */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 colonne */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}


/* TABLETTE (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-name {
        height: 24px;
    }
}

/* MENU HAMBURGER (≤ 1024px) */
@media (max-width: 1024px) {
    /* Affiche le bouton hamburger */
    .menu-toggle {
        display: flex;
    }
    
    /* Menu devient vertical */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 2px solid var(--light-gray);
    }
    
    .nav-links a {
        color: var(--primary-dark);
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
        font-size: 1.1rem;
    }
    
    .nav-links a:hover {
        background: var(--light-gray);
        color: var(--primary-blue);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links .lang-switch {
        background: var(--primary-orange);
        margin: 1rem auto;
        width: 80px;
        border-radius: 25px;
    }
}

/* MOBILE (≤ 768px) */
@media (max-width: 768px) {
    /* Logo plus petit */
    .logo-image {
        height: 32px;
    }
    
    .logo-name {
        height: 20px;
    }
    
    .logo-foot {
        height: 100px;
    }
    
    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Grilles deviennent une colonne */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Why Choose Us */
    .why-choose {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
        margin-top: 0;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    /* .why-card {
        padding: 2rem 1.5rem;
    } */

    .why-card {
    background: rgba(255, 255, 255, 0.85);  /* ← 85% = Sweet spot! */
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    }
    
    .why-card h3,
    .why-card p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);  /* Halo blanc léger */
    }

    /* Footer pastille en colonne sur mobile */
    .footer-logo-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* TRÈS PETIT MOBILE (≤ 375px) */
@media (max-width: 375px) {
    .logo-image {
        height: 28px;
    }
    
    .logo-name {
        height: 16px;
    }
    
    .logo-foot {
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
}

/* Empêche le scroll horizontal quand menu ouvert */
body.menu-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   FIN DU FICHIER - Code nettoyé et optimisé!
   ═══════════════════════════════════════════════════════════ */