﻿/* -----------------------------------
    FONTS
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #FAF9F7;
    color: #2A2A2A;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

.page-content {
    padding-top: 40px; /* au lieu de 100px */
}

/* TITRES */
h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #1F1F1F;
}

/* TITRES */
h1 {
    font-size: 48px;
    margin-bottom: 60px;
    font-family: 'Playfair Display', serif;
}
    /* -----------------------------------
   HEADER PREMIUM
----------------------------------- */
    .header-premium {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 2000;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-inner {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT: LOGO + TEXTE */
.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    height: 65px;
}

/* MENU DESKTOP */
.header-nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

.header-nav a {
    font-size: 16px;
    font-weight: 500;
    color: #6b6b6b;
    text-decoration: none;
    transition: .25s;
}

    .header-nav a:hover,
    .header-nav a.active {
        color: black;
    }

/* Animation soulignement */
.header-nav li {
    position: relative;
}

    .header-nav li::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: black;
        transition: .25s;
    }

    .header-nav li:hover::after {
        width: 100%;
    }

/* RIGHT: ICONES & TELEPHONE */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none !important;
}

    .social-icon i {
        font-size: 16px;
        color: #333;
    }

    .social-icon:hover {
        background: #f2f2f2;
        transform: translateY(-2px);
    }

    .social-icon.linkedin i {
        color: #0A66C2;
    }

.phone-number {
    font-weight: 600;
    font-size: 18px;
}

/* -----------------------------------
   HAMBURGER – MOBILE ONLY
----------------------------------- */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .hamburger i {
        font-size: 20px;
        color: #333;
    }

/* -----------------------------------
   RESPONSIVE HEADER (< 900px)
----------------------------------- */
@media (max-width: 900px) {

    /* Afficher le hamburger */
    .hamburger {
        display: flex;
    }

    /* Menu desktop disparaît */
    .header-nav ul {
        display: none !important;
    }

        /* Menu mobile */
        .header-nav ul.active {
            display: flex !important;
            flex-direction: column;
            position: absolute;
            top: 90px;
            right: 30px;
            background: white;
            padding: 25px;
            width: 220px;
            border-radius: 12px;
            box-shadow: 0 5px 18px rgba(0,0,0,0.15);
            gap: 22px;
            z-index: 3000;
        }

    /* Icones de droite disparaissent */
    .header-right {
        display: none;
    }
}

/* -----------------------------------
    HERO
----------------------------------- */

.hero {
    height: 75vh;
    background-image: url('/fond.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: white;
    position: relative;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.40));
        z-index: 0;
    }

    .hero h1,
    .hero p,
    .hero button {
        position: relative;
        z-index: 2;
    }

    .hero h1 {
        color: #ffffff;
        font-size: 64px;
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        letter-spacing: 2px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.7);
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 22px;
        margin-bottom: 25px;
    }

    /* Bouton Hero */
    .hero button {
        padding: 14px 34px;
        border-radius: 8px;
        border: 2px solid #ffffff;
        background: rgba(255,255,255,0.12);
        color: white;
        font-size: 20px;
        cursor: pointer;
        transition: 0.3s ease;
        backdrop-filter: blur(2px);
    }

        .hero button:hover {
            background: white;
            color: #1a1a1a;
            transform: translateY(-2px);
        }

/* -----------------------------------
    SECTIONS
----------------------------------- */
section {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
}

h2 {
    font-size: 38px;
    text-align: center;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
}

h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 20px;
}

/* -----------------------------------
    GALLERIES
----------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    /* Réduit l’écart entre les galeries */

    margin-top: 10px !important;

}

    .gallery img {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        transition: 0.3s;
    }

        .gallery img:hover {
            transform: scale(1.03);
        }

/* -----------------------------------
    FOOTER
----------------------------------- */
footer {
    background: #FAF9F7;
    padding: 45px;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid #C8B9A6;
}

    footer img {
        height: 100px;
        margin-bottom: 15px;
    }

    footer p {
        margin-top: 8px;
        font-size: 18px;
        color: #2A2A2A;
    }

/* -----------------------------------
   REALISATIONS PREMIUM
----------------------------------- */
.realisations-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    font-size: 46px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #1F1F1F;
}

.projet-block {
    background: #FFFFFF;
    padding: 60px 70px;
    border-radius: 26px;
    margin-bottom: 50px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .3s ease;
}

    .projet-block:hover {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    }

.projet-title {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.projet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    width: 100%;
}

    .projet-gallery a {
        display: block;
        width: 100%;
        height: 250px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        transition: transform .25s ease, box-shadow .25s ease;
    }

        .projet-gallery a:hover {
            transform: scale(1.03);
            box-shadow: 0 12px 28px rgba(0,0,0,0.12);
        }

    .projet-gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* SINGLE IMAGE */
    .projet-gallery.single {
        display: flex !important;
        justify-content: center;
    }

        .projet-gallery.single a {
            max-width: 1100px;
            height: 430px;
        }

    /* DOUBLE IMAGE */
    .projet-gallery.double {
        display: flex !important;
        justify-content: center;
        gap: 40px;
    }

        .projet-gallery.double a {
            width: 48%;
            height: 380px;
        }


/* ------- PAGE ATELIER ------- */

/* ---- PAGE ATELIER ---- */

.atelier-page {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

    .atelier-page h1 {
        font-size: 48px;
        margin-bottom: 60px;
        font-family: 'Playfair Display', serif;
    }

/* Section */
.atelier-section {
    margin-bottom: 70px;
}

/* Icône minimaliste */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .icon-circle i {
        font-size: 24px;
        color: #4d4d4d;
    }

/* Titres */
.atelier-section h3 {
    font-size: 26px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

/* Texte */
.atelier-section p {
    font-size: 19px;
    line-height: 1.7;
    color: #333;
    max-width: 760px;
    margin: auto;
}

/* Mise en page premium pour les pages texte */
.page-section {
    max-width: 850px; /* largeur plus serrée = lecture premium */
    margin: 0 auto;
    padding: 60px 20px;
    margin-bottom: 15px !important;
}

    /* Titre principal */
    .page-section h2 {
        font-size: 46px;
        text-align: center;
        margin-bottom: 50px;
        font-family: 'Playfair Display', serif;
        font-weight: 600;
    }

    /* Sous-titres */
    .page-section h3 {
        font-size: 28px;
        text-align: center;
        margin: 40px 0 15px;
        font-family: 'Playfair Display', serif;
        font-weight: 600;
    }

    /* Paragraphes */
    .page-section p {
        font-size: 19px;
        line-height: 1.85; /* lecture douce */
        text-align: center; /* harmonie avec ta maquette */
        margin-bottom: 35px;
        color: #333;
    }


.section-intro {
    max-width: 750px; /* largeur agréable */
    margin: 0 auto 40px; /* centré + espace sous le texte */
    text-align: center; /* centre le texte */
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 15px !important;
}

/* Réduit l’espace entre les sections de réalisations */
.realisations-container {
    margin: 40px auto !important;
}

    /* Réduit la marge du titre */
    .realisations-container .section-title,
    h2 {
        margin-top: 0px !important;
        margin-bottom: 25px !important;
    }

/* ===== Section texte contact ===== */
.contact-infos {
    max-width: 700px;
    margin: 30px auto 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

/* ===== Messages de validation ===== */
.alert-success, .alert-error {
    max-width: 650px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}
/* --- Page Contact --- */

/* Container global */
.contact-container {
    max-width: 900px;
    margin: 40px auto 0 auto; /* remonte tout le bloc */
    text-align: center;
}

/* Texte d'introduction */
.contact-intro {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto; /* réduit l'espace */
    line-height: 1.7;
}

/* Coordonnées */
.contact-info {
    font-size: 18px;
    margin-bottom: 50px; /* espace propre avant le formulaire */
}

/* ----- CARTE DU FORMULAIRE ----- */
.contact-card {
    max-width: 750px;
    margin: 60px auto;
    padding: 45px;
    background: white;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

/* ----- GRILLE ----- */
/* Deux colonnes */
/* Ligne à 2 colonnes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 20px;
}

/* Groupes */
.form-group {
    margin-bottom: 20px;
}

    /* Labels */
    .form-group label {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 6px;
        display: block;
    }

    /* Inputs, select, textarea */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid #ddd;
        background: #fff;
        font-size: 16px;
        outline: none;
        transition: border 0.25s, box-shadow 0.25s;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #000;
            box-shadow: 0 0 8px rgba(0,0,0,0.08);
        }

        /* File input harmonisé */
        .form-group input[type="file"] {
            padding: 10px;
            border-radius: 10px;
        }

/* Bouton */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s ease;
}

    .btn-submit:hover {
        background: #333;
        transform: translateY(-2px);
    }

    .btn-submit:active {
        transform: scale(0.98);
    }

/* ----- RESPONSIVE ----- */
@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
    }
}


/* Responsive mobile */
@media (max-width: 700px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

        .contact-form textarea,
        .contact-form button,
        .contact-form label {
            grid-column: span 1;
        }
}


.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ------ Bouton ------ */
.btn-contact {
    width: 180px;
    padding: 12px;
    font-size: 17px;
    background: #7A6F5A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
    margin: 10px auto 0;
    display: block;
}

    .btn-contact:hover {
        background: #5f5648;
    }

/* ---- FORM CARD ---- */
.form-card {
    background: #fff;
    padding: 35px 40px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    max-width: 750px;
    margin: 40px auto;
}

    /* ---- TITRES DES CHAMPS ---- */
    .form-card label {
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 5px;
        display: block;
    }

    /* ---- INPUTS ---- */
    .form-card input,
    .form-card select,
    .form-card textarea {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 15px;
        transition: 0.2s;
    }

        /* Effet focus */
        .form-card input:focus,
        .form-card textarea:focus,
        .form-card select:focus {
            border-color: #bbb;
            box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
        }

/* ---- LAYOUT COMPACT ---- */
.row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

    .row .col {
        flex: 1;
    }

.form-card select {
    margin-bottom: 20px;
}

/* ---- TEXTAREA ---- */
.form-card textarea {
    height: 130px; /* plus petit */
    resize: vertical;
}

/* ---- BOUTON ---- */
.submit-btn {
    width: 100%;
    background: #000;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 10px;
}

    .submit-btn:hover {
        background: #333;
        transform: translateY(-2px);
    }


.alert {
    max-width: 700px;
    margin: 20px auto;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.success-alert {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-alert {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- MOBILE --- */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

.popup-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 22px 32px;
    border-radius: 14px;
    font-size: 20px
}

/* Apparence */
.success-popup {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.error-popup {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Animation de disparition */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}


/* Empêche tout décalage dû à un overflow */
html, body {
    overflow-x: hidden;
}

/* Ajustements mobile */
@media (max-width: 700px) {

    /* blocs projets trop paddés en mobile => overflow */
    .projet-block {
        padding: 24px 18px;
        border-radius: 18px;
    }

    /* grille: ne force plus 300px mini */
    .projet-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

        .projet-gallery a {
            height: 220px;
        }

        /* cas "double" en flex : passe en colonne */
        .projet-gallery.double {
            flex-direction: column;
            gap: 16px;
        }

            .projet-gallery.double a {
                width: 100%;
                height: 220px;
            }

        /* cas "single" */
        .projet-gallery.single a {
            height: 260px;
            max-width: 100%;
        }
}