/* =========================================
   QUENTIN STUDIO — styles.css (global)
   Palette : blanc cassé, gris chaud, noir doux
   ========================================= */

/* Protection photos — drag désactivé */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

:root {
    --cream:    #F7F4F0;
    --warm-bg:  #EDE9E4;
    --beige:    #D9D2C8;
    --stone:    #9E9488;
    --charcoal: #3A3530;
    --ink:      #1C1A18;
    --white:    #FFFFFF;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Jost', sans-serif;

    --max-w: 1300px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--charcoal);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(247, 244, 240, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--beige);
    transition: background var(--transition);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-link { text-decoration: none; }
.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--ink);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
}
.main-nav a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    transition: color var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--ink);
    transition: width var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: var(--transition);
}
/* Croix quand menu ouvert */
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.65);
    padding: 60px 40px 30px;
    margin-top: 0;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}
.footer-brand .logo-text { color: var(--white); font-size: 20px; }
.footer-brand p { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.footer-nav a {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: flex-start;
}
.footer-social a {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.footer-social a:hover { color: var(--white); border-color: var(--white); }
.footer-copy {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.08em;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ---- UTILITAIRES ---- */
.section-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 12px;
}
h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
}
.btn-outline {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 30px;
    border: 1px solid var(--charcoal);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    transition: all var(--transition);
}
.btn-outline:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

/* ---- BANDEAU COMMUN (portfolio, contact, prestations) ---- */
.portfolio-header,
.contact-header,
.prestations-header {
    height: 360px;
    padding: 130px 60px 60px;
    border-bottom: 1px solid var(--beige);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    position: relative;
    background-size: cover;
    background-position: 85% 71%;
}
.portfolio-header::before,
.contact-header::before,
.prestations-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 6, 0.52);
    pointer-events: none;
}
.portfolio-header .section-label,
.contact-header .section-label,
.prestations-header .section-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.portfolio-header h1,
.contact-header h1,
.prestations-header h1 {
    font-family: var(--font-display);
    font-size: clamp(52px, 6vw, 82px);
    font-weight: 300;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.portfolio-header p,
.contact-header p,
.prestations-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.03em;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ---- PAGE INTÉRIEURE ---- */
.page-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    background: var(--warm-bg);
    text-align: center;
}
.page-hero .section-label { justify-content: center; display: block; }
.page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .header-inner { padding: 0 20px; }
    /* Désactiver backdrop-filter sur mobile — sinon il casse position:fixed du menu */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(247, 244, 240, 0.98);
    }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        position: fixed;
        top: 70px; left: 0; right: 0; bottom: 0;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    .main-nav.open ul {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }
    .main-nav.open a {
        font-size: 14px;
        letter-spacing: 0.2em;
    }
    .menu-toggle { display: flex; }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .footer-social { justify-content: center; }

    /* Bandeaux pages intérieures */
    .portfolio-header,
    .contact-header,
    .prestations-header {
        height: 260px;
        padding: 90px 24px 36px;
    }
    .portfolio-header h1,
    .contact-header h1,
    .prestations-header h1 {
        font-size: clamp(38px, 8vw, 56px);
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .portfolio-header,
    .contact-header,
    .prestations-header {
        height: 220px;
        padding: 80px 20px 24px;
    }
    .portfolio-header h1,
    .contact-header h1,
    .prestations-header h1 {
        font-size: 34px;
        margin-bottom: 6px;
    }
    .portfolio-header p,
    .contact-header p,
    .prestations-header p {
        font-size: 13px;
        line-height: 1.5;
    }
    .btn-outline {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        box-sizing: border-box;
    }
    h2 { font-size: clamp(24px, 7vw, 36px); }
    .section-label { font-size: 10px; letter-spacing: 0.15em; }
    .site-footer { padding: 48px 20px 24px; }
    .footer-brand .logo-text { font-size: 18px; }
    .footer-nav { gap: 8px; }
    .footer-nav a { font-size: 11px; }
}