/* --- POLICES EN LOCAL --- */

/* Inter - Normal (400) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: local(''), url('./fonts/inter-400.woff2') format('woff2');
    font-display: swap;
}

/* Inter - Medium (500) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: local(''), url('./fonts/inter-500.woff2') format('woff2');
    font-display: swap;
}

/* Inter - SemiBold (600) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: local(''), url('./fonts/inter-600.woff2') format('woff2');
    font-display: swap;
}

/* Playfair Display - SemiBold (600) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    src: local(''), url('./fonts/playfair-600.woff2') format('woff2');
    font-display: swap;
}

/* Playfair Display - Bold (700) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    src: local(''), url('./fonts/playfair-700.woff2') format('woff2');
    font-display: swap;
}

/* --- VARIABLES DE COULEURS ET POLICES --- */
:root {

    --primary-brown: #9B4F26;
    --secondary-beige: #F4EFEA;
    --text-dark: #1A1A1A;
    --text-gray: #5A5A5A;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}
html {
    scroll-behavior: smooth;
}
/* --- RÉINITIALISATION DE BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #FCFBF8;
    line-height: 1.6;
}

/* --- EN-TÊTE (NAVBAR) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background-color: #ffffff;
    border-bottom: 1px solid #EAE5DE;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 15px 35px rgba(26, 26, 26, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
    padding: 15px 6%;
}

/* Alignement du logo et du texte - transformé en lien cliquable */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none; /* Empêche le soulignement du lien */
    color: inherit; /* Garde les bonnes couleurs du texte */
}

/* Taille de l'image du logo dans l'en-tête */
.logo-img-header {
    height: 55px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 2px;
}

/* Liens transformés en boutons */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    background-color: var(--secondary-beige);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #EAE5DE;
}

/* Le bouton devis spécifique en marron */
.btn-nav-devis {
    background-color: var(--primary-brown) !important;
    color: #ffffff !important;
}

.btn-nav-devis:hover {
    background-color: #82401f !important;
}

/* --- SECTION PRINCIPALE (HERO) --- */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 6%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--secondary-beige);
    color: var(--primary-brown);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-brown);
    border-radius: 50%;
    margin-right: 8px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content h1 .highlight {
    color: var(--primary-brown);
}

.hero-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-content p {
    color: var(--text-gray);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--primary-brown);
    color: white;
}

/* Au survol, le bouton monte d'un millimètre et s'éclaircit légèrement */
.btn-primary:hover {
    background-color: #A85A2E;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(155, 79, 38, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-beige);
    color: var(--text-dark);
}

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

.features {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

/* --- SECTION SPÉCIALITÉS --- */
.specialties {
    padding: 80px 6%;
    background-color: #F6F4EF;
}

.specialties-header {
    max-width: 1400px;
    margin: 0 auto 60px auto;
}

.specialties-header h2, .specialties-header p {
    max-width: 650px;
}

.section-subtitle {
    display: block;
    color: var(--primary-brown);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.specialties-header h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.specialties-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.specialty-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid #EFECE8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 26, 26, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
}

/* La boîte de l'icône avec une transition fluide */
.icon-box {
    width: 55px;
    height: 55px;
    background-color: var(--secondary-beige);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: background-color 0.4s ease; /* Permet un changement de couleur en douceur */
}

/* On prépare aussi l'icône à changer de couleur en douceur */
.icon-box svg {
    transition: stroke 0.4s ease;
}

/* --- L'EFFET MAGIQUE AU SURVOL --- */
/* 1. Le fond de la petite boîte devient marron */
.specialty-card:hover .icon-box {
    background-color: var(--primary-brown);
}

/* 2. Le trait de l'icône (le dessin) devient blanc */
.specialty-card:hover .icon-box svg {
    stroke: #ffffff !important; 
    /* Le !important force la couleur blanche par-dessus le marron défini dans le HTML */
}

.specialty-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.specialty-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- PAGE RÉALISATIONS (MES TRAVAUX) --- */
.portfolio-page {
    padding: 60px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-header {
    margin-bottom: 50px;
    max-width: 650px;
}

.portfolio-header h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.portfolio-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--secondary-beige);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #EAE5DE;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.portfolio-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.portfolio-caption {
    padding: 20px 25px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* --- PAGE CONTACT --- */
.contact-page {
    padding: 60px 6%;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 50px;
}

.contact-header h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

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

.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-large-card {
    display: flex;
    align-items: center;
    background-color: #F6F4EF;
    border: 1px solid #EAE5DE;
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.contact-large-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(26, 26, 26, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
}

.contact-icon-box {
    background-color: var(--primary-brown);
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    flex-shrink: 0;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-value {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- PAGE DEVIS --- */
/* --- PAGE DEVIS --- */
.devis-page {
    padding: 60px 6%;
    max-width: 800px; 
    margin: 0 auto;
    text-align: center;
}

.devis-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.devis-header .section-subtitle {
    text-align: center;
    margin-bottom: 15px;
}

.devis-header h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.2;
    text-wrap: balance; /* Équilibre le titre pour éviter le mot tout seul en bas */
}

/* Le petit trait décoratif chic sous le titre */
.devis-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-brown);
    margin: 30px auto 0 auto;
    border-radius: 2px;
}

.devis-header p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 580px; /* Resserre le paragraphe pour un rendu plus premium */
    margin: 0 auto;
}

.devis-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.devis-card {
    background-color: #F6F4EF;
    border: 1px solid #EAE5DE;
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.devis-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.devis-icon-box {
    width: 55px;
    height: 55px;
    background-color: #EBE4DB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.devis-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.devis-value {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-value {
    font-size: 2rem;
}

.devis-value:hover {
    color: var(--primary-brown);
}

.devis-info-text {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 500px;
    line-height: 1.6;
}

.devis-divider {
    width: 60px;
    border: none;
    border-top: 1px solid #DCD6CD;
    margin: 40px 0;
}

/* --- SECTION CALL TO ACTION --- */
.cta-section {
    padding: 20px 6% 80px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.cta-box {
    background-color: var(--primary-brown);
    border-radius: 20px;
    padding: 70px 40px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-box p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 35px auto;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--secondary-beige);
    padding: 60px 6%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Taille de l'image du logo dans le footer */
.logo-img-footer {
    height: 60px;
    width: auto;
}

.footer-logo strong {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-dark);
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary-brown);
    margin-bottom: 20px;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.footer-legal {
    text-align: right;
    color: var(--text-gray);
    font-size: 0.9rem;
    align-self: flex-end;
}

/* --- AJUSTEMENTS RESPONSIVE POUR TÉLÉPHONES --- */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        flex-direction: column;
        padding: 40px 6%;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .specialties-header h2 {
        font-size: 2.2rem;
    }
    .cta-box h2 {
        font-size: 2.2rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-legal {
        text-align: left;
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    /* Contact */
    .contact-large-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
    .contact-icon-box {
        margin-bottom: 20px;
        margin-right: 0;
    }
    .contact-header h2 {
        font-size: 2.5rem;
    }
    .contact-value {
        font-size: 1.2rem;
    }
    
    /* Devis */
    .devis-header h2 {
        font-size: 2.5rem;
    }
    .devis-value {
        font-size: 1.8rem;
    }
    .email-value {
        font-size: 1.4rem;
        word-break: break-all;
    }
    .devis-card {
        padding: 40px 20px;
    }
    
    /* Portfolio */
    .portfolio-header h2 {
        font-size: 2.5rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.legal-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-brown);
    text-decoration: underline;
}

/* --- PAGE MENTIONS LÉGALES --- */
.legal-page {
    padding: 60px 40px;
    max-width: 900px;
    margin: 60px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #EAE5DE;
}

.legal-page h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 40px;
    text-align: center;
}

.legal-page h2 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid #EAE5DE;
    padding-bottom: 8px;
}

.legal-page p, .legal-page ul {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-page ul {
    padding-left: 20px;
}

.legal-page li {
    margin-bottom: 8px;
}

/* On s'assure que la carte coupe ce qui dépasse lors du zoom */
.portfolio-card {
    background-color: var(--secondary-beige);
    border-radius: 12px;
    overflow: hidden; /* Très important pour bloquer le zoom dans les coins ronds */
    border: 1px solid #EAE5DE;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* On prépare l'animation fluide sur l'image */
.portfolio-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Animation de pro */
}

/* Au survol : la carte monte ET l'image zoom */
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(155, 79, 38, 0.08); /* Ombre douce marronnée */
}

.portfolio-card:hover img {
    transform: scale(1.06); /* Zoom de 6% très élégant */
}

/* --- CARROUSEL PORTFOLIO --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 280px; /* Même hauteur que les autres images de travaux */
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Le style des flèches */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 26, 26, 0.4);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-brown);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* On désactive le zoom au survol uniquement pour le carrousel pour éviter un bug visuel */
.portfolio-card:hover .carousel-slide {
    transform: none;
}

/* --- LIGHTBOX (ZOOM PHOTOS) --- */
.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Au-dessus de tout le reste (même le menu) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir transparent */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Classe ajoutée en JS pour afficher la lightbox */
.lightbox.active {
    display: flex;
    opacity: 1;
}

/* L'image en grand */
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain; /* Garde les bonnes proportions */
}

/* Le bouton Fermer (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2010;
}

/* Les flèches de la lightbox */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    border: none;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
    z-index: 2010;
}

.lightbox-close:hover, .lightbox-btn:hover {
    color: var(--primary-brown);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Change le curseur de la souris pour indiquer qu'on peut cliquer sur la photo */
.carousel-slide {
    cursor: zoom-in;
}