/* =====================================================================
   Maître Mélody PICAT — feuille de style
   Sobre, professionnelle, sans JavaScript.
   ===================================================================== */

:root {
    --ink:        #16233d;   /* bleu nuit, couleur principale */
    --ink-soft:   #2a3a57;
    --brass:      #a8854e;   /* laiton / accent */
    --brass-dark: #8a6c3c;
    --cream:      #faf7f1;   /* fond clair */
    --paper:      #ffffff;
    --text:       #2c3038;
    --muted:      #6b7180;
    --line:       #e7e1d6;
    --shadow:     0 18px 40px -22px rgba(22, 35, 61, .35);

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Mulish", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brass-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 90%); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: .03em;
    padding: .85rem 2rem;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: .95rem;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-light { background: var(--brass); color: #fff; }
.btn-light:hover { background: var(--brass-dark); }
.btn-dark {
    background: var(--ink); color: #fff; border-color: var(--ink);
    width: 100%; padding: 1rem; font-size: 1rem;
}
.btn-dark:hover { background: var(--ink-soft); }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 241, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand-sub  { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Navigation (sans JS, via <details>) ---------- */
.nav { position: relative; }
.nav-toggle {
    list-style: none; cursor: pointer; display: none;
    width: 44px; height: 40px; padding: 9px 8px;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; }

.nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: .4rem;
}
.nav-list a {
    color: var(--ink); font-weight: 500; font-size: .95rem;
    padding: .55rem .85rem; border-radius: 2px; display: inline-block;
}
.nav-list a:hover { color: var(--brass-dark); text-decoration: none; }
.nav-cta {
    border: 1px solid var(--brass);
    color: var(--brass-dark) !important;
}
.nav-cta:hover { background: var(--brass); color: #fff !important; }

/* ---------- Héro ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex; align-items: center;
    background: var(--ink) url("img/litigation.webp") center/cover no-repeat;
    color: #fff;
    text-align: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(15,24,43,.78), rgba(15,24,43,.55));
}
.hero-content { position: relative; padding: 6rem 0; }
.hero-kicker {
    text-transform: uppercase; letter-spacing: .35em;
    font-size: .8rem; color: var(--brass); margin: 0 0 1rem;
    font-weight: 600;
}
.hero-title {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(2.6rem, 7vw, 5rem); margin: 0 0 .5rem; line-height: 1.05;
}
.hero-lead { font-size: clamp(1.1rem, 2.5vw, 1.45rem); margin: 0 0 2.4rem; color: #e9e3d6; }

/* ---------- Sections génériques ---------- */
.section { padding: 5.5rem 0; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .3em; font-size: .78rem;
    font-weight: 700; color: var(--brass-dark); margin: 0 0 .8rem;
}
.eyebrow-light { color: var(--brass); }
.section-title {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink);
    margin: 0 0 1.8rem; line-height: 1.15;
}
.section-title-light { color: #fff; }

.prose p { margin: 0 0 1.1rem; max-width: 68ch; }
.prose-center { margin-inline: auto; }
.prose-center p { margin-inline: auto; text-align: center; max-width: 75ch; }

/* Médaillon photo (Présentation) */
.presentation-head {
    display: flex; align-items: center; gap: 1.6rem;
    margin-bottom: 1.6rem; flex-wrap: wrap;
}
.presentation-head .section-title { margin: 0; }
.portrait {
    width: 150px; height: 150px; flex: 0 0 auto;
    border-radius: 50%; object-fit: cover; object-position: center top;
    border: 3px solid var(--brass);
    box-shadow: var(--shadow);
}
@media (max-width: 600px) {
    .portrait { width: 120px; height: 120px; }
}

/* À propos */
.section-about { padding: 3.5rem 0; background: var(--paper); border-block: 1px solid var(--line); }
.about-domains {
    font-family: var(--serif); font-style: italic;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--ink-soft);
    text-align: center; max-width: 60ch; margin: 0 auto; line-height: 1.5;
}

/* Serment */
.serment {
    margin: 2.5rem 0 0; padding: 1.8rem 2rem;
    border-left: 4px solid var(--brass);
    background: var(--paper); box-shadow: var(--shadow); border-radius: 2px;
}
.serment p { margin: 0 0 .8rem; }
.serment p:first-child { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.serment p:last-child { margin-bottom: 0; color: var(--muted); }

/* ---------- Section sombre (domaines) ---------- */
.section-dark { background: var(--ink); color: #d9dde6; }
.services-intro { max-width: 70ch; margin: 0 0 2.8rem; color: #c3c9d6; }

.cards {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(168,133,78,.35);
    border-radius: 3px; padding: 1.8rem;
}
.card h3 {
    font-family: var(--serif); font-weight: 500; color: #fff;
    font-size: 1.3rem; margin: 0 0 1rem;
    padding-bottom: .8rem; border-bottom: 1px solid rgba(168,133,78,.4);
}
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: .7rem; font-size: .95rem; line-height: 1.55; }
.card strong { color: #f0e8d8; }

/* ---------- Contact ---------- */
.section-contact { background: var(--paper); }
.contact-grid {
    display: grid; gap: 3rem;
    grid-template-columns: 1fr 1fr; align-items: start;
}
.contact-info h3, .contact-form-wrap h3 {
    font-family: var(--serif); font-weight: 500; color: var(--ink);
    font-size: 1.5rem; margin: 0 0 1.2rem;
}
address { font-style: normal; margin-bottom: 1.2rem; line-height: 1.7; }
.muted { color: var(--muted); font-size: .92rem; }
.contact-lines { margin: 0 0 1.4rem; line-height: 2; }
.rdv { color: var(--muted); margin-bottom: 1.6rem; }
.map { border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; }

/* ---------- Formulaire ---------- */
.contact-form-wrap {
    background: var(--cream); border: 1px solid var(--line);
    border-radius: 3px; padding: 2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
    display: block; font-weight: 600; font-size: .9rem;
    color: var(--ink); margin-bottom: .4rem;
}
.req { color: #b23b3b; }
.opt { color: var(--muted); font-weight: 400; }

.field input,
.field textarea {
    width: 100%; font-family: var(--sans); font-size: 1rem;
    padding: .7rem .85rem; color: var(--text);
    background: #fff; border: 1px solid var(--line); border-radius: 2px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
    outline: none; border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(168,133,78,.18);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Champ en erreur */
.field.has-error input,
.field.has-error textarea {
    border-color: #c0392b; background: #fdf4f3;
}
.field-error {
    display: block; margin-top: .35rem;
    color: #c0392b; font-size: .85rem; font-weight: 600;
}

/* Case à cocher RGPD */
.field-check .checkbox {
    display: flex; gap: .6rem; align-items: flex-start;
    font-weight: 400; font-size: .9rem; color: var(--text); cursor: pointer;
}
.field-check input[type="checkbox"] { width: auto; margin-top: .25rem; flex: 0 0 auto; }

/* Champ captcha (réponse courte) */
.field-captcha input { max-width: 140px; }

.form-note { font-size: .82rem; color: var(--muted); margin: 0 0 1.2rem; }

/* Messages globaux du formulaire */
.form-message { padding: 1rem 1.1rem; border-radius: 2px; margin-bottom: 1.4rem; font-weight: 600; }
.form-success { background: #eef7ee; color: #2e6b35; border: 1px solid #bfe0c2; }
.form-error   { background: #fdf0ef; color: #b23b3b; border: 1px solid #f1c9c5; }

/* Honeypot anti-spam : masqué proprement */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #aeb6c6; padding: 2rem 0; }
.footer-inner {
    display: flex; flex-wrap: wrap; gap: .8rem;
    justify-content: space-between; align-items: center; font-size: .9rem;
}
.site-footer a { color: #cdd3df; }
.footer-links { margin: 0; }
.footer-links span { margin: 0 .5rem; color: #5a6577; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    /* Activation du menu hamburger natif */
    .nav-toggle { display: flex; }
    .nav[open] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav[open] .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav[open] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle span { transition: transform .2s ease, opacity .2s ease; }

    .nav-list {
        position: absolute; right: 0; top: calc(100% + 10px);
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border: 1px solid var(--line);
        border-radius: 4px; box-shadow: var(--shadow);
        min-width: 220px; padding: .4rem;
    }
    .nav-list a { padding: .8rem 1rem; }
    .nav-cta { text-align: center; margin-top: .3rem; }
    .section { padding: 4rem 0; }
}
