/* ============================================================
   TEMPLATE PROFESSIONNEL — ARTISAN / DÉCORATION
   Inspiration : sites italiens de stucco & staff haut de gamme
   ============================================================ */

/* ============================================================
   GOOGLE FONTS — NE PAS MODIFIER
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,300;0,400;0,700;1,400&family=Manrope:wght@300;400;600;700&display=swap');


/* ============================================================
   VARIABLES — CHANGER CES VALEURS POUR UN NOUVEAU SITE
   ============================================================ */
:root {
    /* — Couleurs principales — */
    --color-primary:   #0056b3;   /* Bleu Méditerranée */
    --color-primary-dark: #003d82;/* Bleu profond (hover) */
    --color-accent:    #D95D39;   /* Terre cuite / Brique */
    --color-surface:   #FDFCF8;   /* Fond blanc chaud (chaux) */
    --color-surface-alt: #F5F7FA; /* Fond légèrement bleuté/gris */
    --color-text:      #2B3A42;   /* Texte principal - ardoise foncée */
    --color-text-light:#5E6D77;   /* Texte secondaire - gris bleuté */
    --color-white:     #FFFFFF;

    /* — Typographie — */
    --font-heading: 'Noto Serif', Georgia, serif;
    --font-body:    'Manrope', system-ui, sans-serif;

    /* — Espacements — */
    --section-padding: 120px;
    --container-max:   1280px;
    --gutter:          32px;

    /* — Effets — */
    --transition: all 0.35s ease;
    --shadow-soft: 0 8px 48px rgba(124, 61, 40, 0.07);
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.05);
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}


/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

strong { color: var(--color-text); font-weight: 600; }

/* Séparateur de section élégant */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    margin-bottom: 20px;
}

.section-title p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Ligne décorative dorée sous les titres */
.divider {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--color-accent);
    margin: 20px auto;
}
/* ========= Price Table Styles ========= */
.price-table th, .price-table td {
    border: 1px solid var(--color-accent);
    padding: 12px;
    text-align: left;
    color: var(--color-text);
}
.price-table th {
    background: var(--color-surface-alt);
    font-weight: 600;
}
.price-table tr:nth-child(even) {
    background: #f9f9f9;
}
.price-table a {
    color: var(--color-primary);
    text-decoration: underline;
}



/* ============================================================
   NAVIGATION (HEADER)
   ============================================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

/* Classe ajoutée par JS au scroll */
header.scrolled {
    background: rgba(250, 250, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(124, 61, 40, 0.1);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

header.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--color-white);
}

header.scrolled .hamburger {
    color: var(--color-primary);
}

/* Bouton Quitter — nav transparente (hero) */
.nav-links .btn-quit {
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 5px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--color-white) !important;
}
.nav-links .btn-quit:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--color-white);
}
/* Bouton Quitter — nav scrollée (fond blanc) */
header.scrolled .nav-links .btn-quit {
    border-color: #c0392b;
    color: #c0392b !important;
}
header.scrolled .nav-links .btn-quit:hover {
    background: #c0392b !important;
    color: var(--color-white) !important;
}


/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    /* TEMPLATE : angles droits — signature du style artisan haut de gamme */
    border-radius: 0;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    font-weight: 700;
}

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


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(to bottom, rgba(28, 14, 7, 0.65) 0%, rgba(28, 14, 7, 0.45) 100%),
        url('../img/hero-bg.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 var(--gutter);
    position: relative;
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 1;
}

/* Petit label au dessus du titre — style éditorial */
.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 8px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 24px;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   PAGE HEADER (sous-pages)
   ============================================================ */
.page-header {
    padding-top: 160px;
    padding-bottom: 70px;
    background-color: var(--color-surface-alt);
    text-align: center;
    border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}

.page-header .hero-label {
    color: var(--color-primary);
    border-color: var(--color-accent);
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.page-header p {
    max-width: 560px;
    margin: 0 auto;
}


/* ============================================================
   LAYOUT GÉNÉRAL
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section.section-block {
    padding: var(--section-padding) var(--gutter);
    max-width: var(--container-max);
    margin: 0 auto;
}

.bg-alt {
    background-color: var(--color-surface-alt);
    max-width: 100%;
    width: 100%;
}

.bg-dark {
    background-color: var(--color-primary);
    max-width: 100%;
    width: 100%;
    color: var(--color-white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px; /* Joint de grille très serré — style galerie */
}


/* ============================================================
   CARTES DE SERVICE (style galerie sans arrondi)
   ============================================================ */
.card {
    background: var(--color-white);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    filter: grayscale(15%);
}

.card:hover .card-img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.card-body {
    padding: 28px 28px 32px;
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.card:hover .card-body {
    border-left-color: var(--color-accent);
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.card-body p {
    font-size: 0.95rem;
    margin: 0;
}


/* ============================================================
   BLOC PRINCIPES (index.html)
   ============================================================ */
.principles-box {
    background-color: var(--color-surface-alt);
    padding: 48px;
    border-top: 2px solid var(--color-accent);
}

.principles-box h3 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.principle-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.principle-item:last-child { margin-bottom: 0; }

.principle-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: 1rem;
}

.principle-item span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}


/* ============================================================
   PAGE FONDATEUR
   ============================================================ */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.founder-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 2px solid var(--color-accent);
}

.signature {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-top: 40px;
    font-style: italic;
}

.founder-img-container {
    position: relative;
}

.founder-img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    max-height: 420px; /* PC : image visible sans défilement */
}

/* Cadre doré décalé */
.founder-img-container::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent);
    z-index: -1;
    pointer-events: none;
}


/* ============================================================
   BANNIÈRE GARANTIE (services.html)
   ============================================================ */
.guarantee-banner {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 60px 40px;
    margin-top: 2px;
    position: relative;
    overflow: hidden;
}

.guarantee-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--color-accent);
}

.guarantee-banner h3 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.guarantee-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    box-shadow: var(--shadow-soft);
}

.contact-info {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 50px;
    border-top: 2px solid var(--color-accent);
}

.contact-info h3 {
    color: var(--color-white);
    margin-bottom: 32px;
    font-size: 1.4rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 1rem;
}

.contact-info i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-form {
    padding: 60px 50px;
    background: var(--color-white);
}

.contact-form h3 {
    color: var(--color-text);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #D8D0C8;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.3s ease;
    border-radius: 0;
    outline: none;
}

.form-control:focus {
    border-bottom-color: var(--color-primary);
}

.form-control::placeholder {
    color: #B8AFA8;
}

textarea.form-control {
    height: 120px;
    resize: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--color-text);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px var(--gutter);
}

footer p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    margin: 0;
}


/* ============================================================
   ANIMATIONS FADE-IN AU SCROLL
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .grid-2,
    .founder-section,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-img-container::before { display: none; }

    .contact-info, .contact-form { padding: 40px 30px; }

    /* Mobile : image en premier, au-dessus du texte */
    .founder-image-wrapper {
        order: -1;
    }

    /* Mobile : image plus petite et visible dès l'accès */
    .founder-img {
        max-height: 280px;
        object-position: top;
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 80px; }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: var(--color-surface);
        width: 75%;
        max-width: 320px;
        text-align: center;
        padding: 40px 20px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: right 0.35s ease;
        gap: 28px;
    }

    .nav-links.active { right: 0; }

    .nav-links a { color: var(--color-text); }

    .hamburger { display: block; }

    .hero h1 { font-size: 2rem; }

    .grid-3 { grid-template-columns: 1fr; gap: 2px; }

    .principles-box { padding: 32px 24px; }
}
