/* Reset & Variables */
:root {
    --primary-blue: #1A365D;
    --accent-blue: #3182CE;
    --text-dark: #2D3748;
    --bg-light: #DBEAFE;
    --white: #FFFFFF;
    --gray-light: #E2E8F0;
    --gray-text: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo img {
    max-height: 60px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(rgba(26, 54, 93, 0.04), rgba(26, 54, 93, 0.04)), var(--white);
    border-bottom: 1px solid var(--gray-light);
}

.hero h1 {
    font-size: 2.8rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #4A5568;
}

.btn {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2);
}

.btn:hover {
    background: var(--primary-blue);
    transform: translateY(-1px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    scroll-margin-top: 100px;
}

h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

/* Products Page & Grid */
.intro-text {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
    max-width: 800px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.img-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #F7FAFC;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

.img-hover {
    opacity: 0;
}

.product-card:hover .img-main {
    opacity: 0;
}

.product-card:hover .img-hover {
    opacity: 1;
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* About Section & Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent-blue);
    border-top: 1px solid var(--gray-light);
    border-right: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.about-card p {
    margin-bottom: 1.25rem;
}

.about-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-card li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Contact Page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-light);
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--accent-blue);
    font-weight: bold;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary-blue);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 6rem;
    font-size: 0.95rem;
}

footer p:first-child {
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Highlight / Features Section on index.html */
.features-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid var(--gray-light);
}

.feature-box h3 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 968px) {
    .about-grid, .contact-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .map-container {
        min-height: 350px;
    }
    .map-container iframe {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1rem;
    }
    .nav-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .container {
        padding: 3rem 1.5rem;
    }
    .contact-section {
        padding: 2rem 1.5rem;
    }
}
/* Style du Formulaire de Contact */
.contact-form {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}


/* --- NOUVEAU DESIGN ACCUEIL (STYLE CARLOS) --- */

.hero-carlos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #EFF6FF;
    color: #1A56DB;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid #BFDBFE;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-blue {
    color: #1A56DB;
}

.separator-line {
    width: 50px;
    height: 4px;
    background-color: #1A56DB;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.hero-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

/* L'astuce pour donner un bord arrondi à l'image comme sur sa maquette */
.hero-image-container img {
    max-width: 100%;
    border-radius: 20px 100px 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    /* Les lignes pour le fondu sur la gauche */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.features-carlos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
    gap: 2rem;
}

.feature-item {
    flex: 1;
    min-width: 200px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #1A56DB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.feature-item h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.cta-container {
    text-align: center;
    margin: 2rem 0 5rem 0;
}

.btn-large {
    display: inline-block;
    background-color: #1A56DB;
    color: white;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
}

.btn-large:hover {
    background-color: #1E40AF;
    transform: translateY(-2px);
}

/* Responsive pour les téléphones (Le bricolage de Paulo) */

@media (max-width: 768px) {
    /* On remonte l'image en alignant tout vers le haut */
    .hero-carlos {
        flex-direction: row;
        flex-wrap: nowrap;
        padding-top: 1.5rem;
        padding-bottom: 0.5rem; /* On réduit l'espace en bas pour remonter la suite */
        align-items: flex-start; /* C'est ça qui tire l'image vers le haut */
        gap: 1rem;
    }

    .hero-content {
        flex: 0 0 55%;
        min-width: 0;
    }

    .hero-image-container {
        flex: 0 0 45%;
        min-width: 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-image-container img {
        border-radius: 10px 40px 10px 10px;
        margin-top: 0.5rem; /* Petit ajustement pour aligner visuellement */
    }

    /* Les 3 icônes rentrées au chausse-pied */
    .features-carlos {
        flex-direction: row; /* Force l'alignement horizontal */
        gap: 0.5rem; /* Presque pas d'espace entre les colonnes */
        margin-top: 0; /* On remonte tout le bloc au maximum */
        padding: 0 0.5rem;
        align-items: flex-start;
    }

    .feature-item {
        flex: 1;
        min-width: 0; /* Obligatoire sinon ça déborde de l'écran */
        padding: 0;
    }

    /* Miniaturisation extrême des pastilles */
    .icon-circle {
        width: 35px;
        height: 35px;
        margin-bottom: 0.5rem;
    }

    .icon-circle svg {
        width: 16px;
        height: 16px;
    }

    /* Texte microscopique pour que ça passe */
    .feature-item h3 {
        font-size: 0.65rem;
        line-height: 1.1;
        margin-bottom: 0.3rem;
    }

    .feature-item p {
        font-size: 0.55rem;
        line-height: 1.2;
    }

 }

 /* --- Liens des Catalogues PDF (Version Pro) --- */
 .catalog-links {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 1.5rem; /* Espacement bien défini entre les boutons */
     margin-top: 2.5rem;
 }

 .catalog-link {
     display: inline-flex;
     align-items: center;
     gap: 0.6rem;
     color: var(--primary-blue);
     background-color: var(--white); /* Fond blanc pour les faire ressortir */
     font-size: 0.95rem;
     font-weight: 600;
     text-decoration: none;
     padding: 0.8rem 1.5rem; /* On donne de l'épaisseur */
     border-radius: 50px; /* Bords totalement arrondis */
     border: 1px solid var(--gray-light);
     box-shadow: 0 2px 8px rgba(0,0,0,0.04); /* Petite ombre subtile */
     transition: all 0.3s ease;
 }

 /* Pour empêcher l'icône de s'écraser si le texte est long */
 .catalog-link svg {
     flex-shrink: 0;
 }

 .catalog-link:hover {
     color: var(--white);
     background-color: var(--primary-blue); /* Inversion des couleurs au survol */
     border-color: var(--primary-blue);
     transform: translateY(-3px); /* Petit effet de soulèvement */
     box-shadow: 0 6px 15px rgba(26, 86, 219, 0.15);
 }

 /* --- Réseaux Sociaux Accueil --- */
 .social-home {
     margin-top: 3rem;
     text-align: center;
 }

 .social-home p {
     font-size: 0.9rem;
     color: var(--gray-text);
     margin-bottom: 1rem;
     font-weight: 600;
 }

 .social-icons {
     display: flex;
     justify-content: center;
     gap: 1.5rem;
 }

 .social-icons a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 50px;
     height: 50px;
     background-color: var(--text-dark); /* Gris foncé par défaut */
     color: var(--white); /* L'icône est blanche */
     border-radius: 50%; /* Ça fait le rond */
     transition: all 0.3s ease;
 }

 /* Changement de couleur au survol pour faire pro */
 .social-icons a:hover {
     background-color: var(--primary-blue);
     transform: translateY(-3px);
     box-shadow: 0 4px 10px rgba(0,0,0,0.15);
 }


 /* --- POPUP PRODUIT (MODAL) --- */
 .modal {
     display: none;
     position: fixed;
     z-index: 2000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(26, 54, 93, 0.7); /* Bleu foncé semi-transparent Kasaled */
     backdrop-filter: blur(4px); /* Rend le site flou derrière le popup */
     align-items: center;
     justify-content: center;
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .modal.show {
     display: flex;
     opacity: 1;
 }

 .modal-content {
     background-color: var(--white);
     padding: 2.5rem;
     border-radius: 12px;
     max-width: 800px;
     width: 90%;
     position: relative;
     box-shadow: 0 10px 40px rgba(0,0,0,0.3);
     transform: translateY(-20px);
     transition: transform 0.3s ease;
 }

 .modal.show .modal-content {
     transform: translateY(0);
 }

 .close-modal {
     position: absolute;
     top: 15px;
     right: 20px;
     font-size: 28px;
     color: var(--gray-text);
     cursor: pointer;
     transition: color 0.2s;
 }

 .close-modal:hover {
     color: var(--accent-blue);
 }

 .modal-body {
     display: flex;
     gap: 2rem;
     align-items: flex-start;
 }

 #modal-img {
 width: 300px;
 border-radius: 8px;
 object-fit: cover;
 border: 1px solid var(--gray-light);
 }

 .modal-details {
     flex: 1;
 }

 #modal-title {
 color: var(--primary-blue);
 font-size: 1.6rem;
 margin-bottom: 1rem;
 }

 .modal-desc {
     color: var(--text-dark);
     margin-bottom: 1.5rem;
     line-height: 1.6;
 }

 .modal-specs {
     list-style: none;
     background: #F7FAFC;
     padding: 1.5rem;
     border-radius: 8px;
     border: 1px solid var(--gray-light);
 }

 .modal-specs li {
     margin-bottom: 0.8rem;
     color: var(--text-dark);
     font-size: 0.95rem;
 }

 .modal-specs li:last-child {
     margin-bottom: 0;
 }

 .modal-specs li strong {
     color: var(--primary-blue);
 }

 /* Version Mobile du Popup */
 @media (max-width: 768px) {
     .modal-body {
         flex-direction: column;
         align-items: center;
     }
     #modal-img {
     width: 100%;
     max-width: 300px;
     }
     .modal-content {
         padding: 1.5rem;
     }
 }
