/* --- VARIABLES --- */
:root {
    --primary-blue: #003366;
    --accent-blue: #007BFF;
    --card-cyan: #4FB3D9;
    --card-dark: #1a1a1a;
    --light-bg: #f4f7f9;
    --text-dark: #333;
    --white: #ffffff;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}

section { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo span { color: var(--accent-blue); }
.logo.white { color: white; }

nav ul {
    display: flex;
    list-style: none;
}

nav ul li { margin-left: 25px; }

nav ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover { color: var(--accent-blue); }

/* --- HERO SECTION (CARTE DE VISITE) --- */
#accueil {
    position: relative;
    height: 500px;
    width: 100%;
    background-color: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-top-content {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 10% 0 10%; /* Ajustement hauteur nom */
    position: relative;
    z-index: 10;
}

.hero-logo-box { width: 180px; height: 180px; }
.hero-logo-box img { max-width: 100%; height: auto; }

.hero-title {
    text-align: center; 
    width: 100%;        
    margin: 0 auto;
    font-size: 4rem; 
    color: var(--text-dark); 
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-black-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 60%;
    background-color: var(--card-dark);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-blue-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 70%;
    background-color: var(--card-cyan);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    z-index: 2;
}

.hero-contact-info {
    position: absolute;
    bottom: 40px;
    right: 10%;
    text-align: right;
    color: var(--white);
    z-index: 3;
}

.artisan-name { font-size: 1.5rem; font-weight: bold; margin: 0; }
.artisan-job { color: var(--card-cyan); margin: 5px 0; }

/* --- À PROPOS --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    
}

.about-img {
    flex: 1;
    min-width: 300px;
    height: 400px; /* Tu peux ajuster la hauteur ici */
    border-radius: 15px;
    overflow: hidden; /* Pour que l'image ne dépasse pas des bords arrondis */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* MAGIE : l'image remplit le cadre sans se déformer */
    display: block;
}

/* Ajustement mobile */
@media (max-width: 768px) {
    .about-img {
        height: 300px; /* Un peu plus petit sur téléphone */
    }
}

.about-text { flex: 1; min-width: 300px; }
.about-text h2 { text-align: left; margin-bottom: 15px; }
.about-text h3 { color: var(--accent-blue); margin-bottom: 10px; }

.about-img {
    flex: 1;
    min-width: 300px;
    background: var(--light-bg);
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

/* --- GALERIE --- */
/* Grille de 3 colonnes */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 colonnes */
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Garde le cadrage serré sur l'outil/la main */
}

/* Le bandeau de texte gris comme sur ton image */
.gallery-label {
    background-color: #f0f0f0; 
    color: #333;
    text-align: center;
    padding: 12px 5px;
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid #ddd;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- Section Contact Premium --- */
.contact-section {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.contact-container-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto 0;
}

.contact-box-modern {
    display: flex;
    align-items: center;
    background: #1a1a1a; /* Noir de la carte */
    padding: 25px 35px;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 8px solid #4FB3D9; /* Bleu cyan accent */
    position: relative;
    overflow: hidden;
}

.contact-box-modern:not(.no-click):hover {
    transform: translateX(15px);
    background: #252525;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(79, 179, 217, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
}

.icon-circle i {
    color: #4FB3D9;
    font-size: 1.5rem;
}

.contact-content {
    flex-grow: 1;
}

.contact-content span {
    display: block;
    color: #4FB3D9;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.contact-content strong {
    color: #ffffff;
    font-size: 1.4rem;
    font-family: 'Arial', sans-serif;
}

.contact-arrow {
    color: rgba(255,255,255,0.2);
    font-size: 1.2rem;
    transition: 0.3s;
}

.contact-box-modern:hover .contact-arrow {
    color: #4FB3D9;
    transform: translateX(5px);
}

.contact-box-modern.no-click {
    background: #ffffff;
    border-left: 8px solid #1a1a1a;
}

.contact-box-modern.no-click .contact-content strong { color: #1a1a1a; }
.contact-box-modern.no-click .icon-circle { background: #f5f5f5; }
.contact-box-modern.no-click .icon-circle i { color: #1a1a1a; }

/* Responsive */
@media (max-width: 600px) {
    .contact-box-modern {
        padding: 20px;
    }
    .contact-content strong {
        font-size: 1.1rem;
    }
    .icon-circle {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }
}

.btn {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover { background: var(--primary-blue); }
.btn-full { width: 100%; }

/* --- FOOTER --- */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px 0;
}

.footer-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column { flex: 1; min-width: 250px; margin-bottom: 20px; }
.footer-column.center { text-align: center; }
.footer-column.right { text-align: right; }

.footer-socials a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: 0.3s;
}

.footer-socials a:hover { color: var(--card-cyan); }

.footer-links { list-style: none; }
.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    #accueil { height: 400px; }
    .contact-grid { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .footer-column { text-align: center !important; }
}