/* ==========================================
   1. RESET & BASES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f5f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Pousse le footer vers le bas */
}

/* ==========================================
   2. LOGO
   ========================================== */
.logo-container {
    text-align: center;
    padding: 25px 0;
}

.logo {
    width: 300px;
    max-width: 90%;
    height: auto;
}

/* ==========================================
   3. MENU PRINCIPAL (ORDINATEUR)
   ========================================== */
.navbar {
    background-color: #c9b189;
    width: max-content;   /* Ajuste la barre à la largeur des boutons */
    margin: 0 auto;       /* Centre le menu */
    border-radius: 4px;   
    border: 1px solid #b59a6e; 
    padding: 0 10px;      
    position: relative;
}

.navbar > ul.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;            /* Espace entre les boutons */
}

.navbar li {
    position: relative;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 8px;             
    font-weight: bold;
    border-radius: 4px;   
    transition: background-color 0.2s ease; 
}

.navbar a:hover,
.navbar a.active {
    background-color: #b59a6e;
}

.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white; /* Triangle vers le bas */
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* ==========================================
   4. SOUS-MENU (ORDINATEUR)
   ========================================== */
.submenu {
    display: none;
    position: absolute;
    background: white;
    min-width: 220px;
    top: 100%;
    left: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

/* Zone de sécurité pour éviter que le menu se ferme au survol */
.dropdown::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.submenu li {
    display: block;
    width: 100%;
}

.submenu a {
    color: #555;
    padding: 12px 20px;
    font-weight: normal;
    display: block;
}

.submenu a:hover {
    background-color: #f1ebd9;
    color: #9b7a4b;
}

.dropdown:hover .submenu {
    display: block;
}

.burger-menu {
    display: none; /* Masqué sur ordinateur */
}
/* ==========================================
   5. CONTENU GÉNÉRAL & SERVICES (ORDINATEUR)
   ========================================== */
main {
    padding: 60px 20px;
    flex: 1; 
}

.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

h1 {
    color: #9b7a4b;
    margin-bottom: 20px;
}

.services-intro p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.services-grid-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur PC */
    gap: 30px;
    max-width: 1100px;
    width: 100%;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h2 {
    color: #4a4238;
    margin-bottom: 12px;
    font-size: 22px;
}

.card-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1; 
}

.btn-card {
    display: inline-block;
    background-color: #c9b189;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    align-self: flex-start; 
    transition: background-color 0.2s ease;
}

.btn-card:hover {
    background-color: #b59a6e;
}

/* ==========================================
   6. PAGE D'ACCUEIL (HOME - ORDINATEUR)
   ========================================== */
.home-main {
    padding: 40px 0 0 0; 
}

.hero-section {
    background-color: #ffffff;
    padding: 80px 20px;
    margin-bottom: 60px;
    border-bottom: 1px solid #dbd3c7;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 24px;
    color: #9b7a4b;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

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

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #9b7a4b;
    text-decoration: none;
    padding: 12px 25px;
    border: 2px solid #c9b189;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #c9b189;
    color: white;
}

.features-section {
    max-width: 1100px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title p {
    color: #9b7a4b;
    font-weight: bold;
    margin-top: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #dbd3c7;
}

.feature-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #4a4238;
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.cta-section {
    background-color: #c9b189;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #f8f5f0;
}

.cta-section .btn-card {
    background-color: #4a4238;
}

.cta-section .btn-card:hover {
    background-color: #332d26;
}

/* ==========================================
   7. PAGE FORMULAIRE DE CONTACT (ORDINATEUR)
   ========================================== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.contact-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #4a4238;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dbd3c7;
    border-radius: 4px;
    background-color: #faf9f6;
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9b189;
    box-shadow: 0 0 0 3px rgba(201, 177, 137, 0.2);
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background-color: #c9b189;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    align-self: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: #b59a6e;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ==========================================
   8. PAGE À PROPOS (ORDINATEUR)
   ========================================== */
.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.about-lead {
    font-size: 18px;
    color: #9b7a4b;
    font-weight: bold;
    margin-top: 10px;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto 80px auto;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    color: #4a4238;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
}

.about-text h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #c9b189;
    margin-top: 8px;
    border-radius: 2px;
}

.about-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}
/* ==========================================
   9. PIED DE PAGE (FOOTER) & AVIS GOOGLE
   ========================================== */
footer {
    background-color: #4a4238;
    color: #f8f5f0;
    text-align: center;
    padding: 35px 20px;
    font-size: 14px;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-google-reviews {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
    max-width: 400px;
    margin: 0 auto 25px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.google-logo {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.review-title {
    color: white;
    font-weight: normal;
    margin-left: 5px;
}

.stars {
    color: #FBBC05;
    font-size: 20px;
    margin-bottom: 8px;
}

.rating-text {
    color: #dbd3c7;
    margin-bottom: 12px;
}

.btn-google {
    display: inline-block;
    color: #c9b189;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid #c9b189;
    padding: 6px 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-google:hover {
    background-color: #c9b189;
    color: #4a4238;
}

.footer-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c9b189;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: white;
}

/* ==========================================================================
   10. RESPONSIVE MODE : SMARTPHONE & TABLETTE (< 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .navbar {
        width: 100%;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .burger-menu {
        display: block;
        position: absolute;
        top: -65px; /* S'aligne parfaitement face au logo */
        right: 15px;
        z-index: 110;
        cursor: pointer;
        background: none;
        border: none;
        padding: 15px;
    }

    .burger-menu .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #000000; /* Lignes noires */
        margin: 5px auto;
        transition: all 0.3s ease;
    }

    .navbar > ul.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #c9b189;
        padding: 10px 0;
        gap: 0;
    }

    .navbar > ul.nav-links.active {
        display: flex;
    }

    .navbar a {
        padding: 15px 25px;
        width: 100%;
        border-radius: 0;
        justify-content: space-between;
    }

    .dropdown:hover .submenu {
        display: none;
    }
    
    .dropdown:hover .arrow {
        transform: none;
    }

    .submenu {
        position: static;
        width: 100%;
        background-color: #f1ebd9;
        box-shadow: none;
        padding-left: 20px;
    }

    .mobile-click.open .submenu {
        display: block;
    }

    .submenu a {
        color: #4a4238;
    }

    .burger-menu.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-click.open .arrow {
        transform: rotate(180deg);
    }

    /* Grille de services sur Mobile : 1 seule colonne */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image {
        height: 200px; 
    }

    /* Formulaire sur mobile */
    .contact-container {
        padding: 20px;
        margin: 0 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .btn-submit {
        width: 100%;
    }

    /* Éléments À Propos sur mobile */
    .about-section,
    .about-section.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .about-image {
        width: 100%;
        height: 280px;
    }

    .about-text {
        text-align: center;
    }

    .about-text h2::after {
        margin: 8px auto 0 auto;
    }

    /* Accueil sur mobile */
    .hero-section {
        padding: 50px 20px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn-card, 
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-section h2 {
        font-size: 22px;
    }
}
