/* ==========================================================================
   avocat.css — Avocat
   Thème : bibliothèque de droit classique — cuir bordeaux, parchemin ivoire,
           dorures, typographie serif sobre, drapé de robe.
   ========================================================================== */

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

body {
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    line-height: 1.7;
    color: #2a1a14;
    background: #f3e9d7;
    background-image:
        radial-gradient(ellipse at top left, rgba(120, 30, 35, .08), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(212, 165, 84, .12), transparent 55%);
    min-height: 100vh;
    font-size: 19px;
}

.av-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 24px 60px;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: #781e23;
    text-decoration: none;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1em;
    border-bottom: 1px solid #781e23;
    padding-bottom: 1px;
}
.back-link:hover { color: #d4a554; border-color: #d4a554; }

/* HERO ====================================================================== */
.av-hero {
    background:
        linear-gradient(180deg, rgba(0,0,0,.06), transparent 30%),
        #fbf3df;
    border: 3px double #781e23;
    border-radius: 2px;
    padding: 60px 50px 50px;
    margin-bottom: 36px;
    text-align: center;
    position: relative;
    box-shadow:
        0 12px 32px rgba(120, 30, 35, .12),
        inset 0 0 0 8px rgba(212, 165, 84, .15);
}

.av-hero::before {
    /* Frise d'ornement décoratif en haut */
    content: '❦  ⚖  ❦';
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    color: #d4a554;
    font-size: 1.3em;
    letter-spacing: 6px;
}

.av-hero::after {
    /* Sigle "Article 1" en pied */
    content: '— Plaidoirie · Code · Justice —';
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    color: #781e23;
    font-style: italic;
    font-size: 0.92em;
    letter-spacing: 3px;
    opacity: 0.7;
}

.av-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 5em;
    font-weight: 600;
    color: #781e23;
    line-height: 1;
    letter-spacing: 1px;
    margin: 18px 0 14px;
    text-shadow: 0 2px 4px rgba(120, 30, 35, .12);
}

.av-hero .surtitle {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    color: #d4a554;
    font-size: 1em;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.av-hero .tagline {
    font-style: italic;
    font-size: 1.2em;
    color: #5a3528;
    max-width: 700px;
    margin: 12px auto 0;
    line-height: 1.5;
}

/* SECTIONS ================================================================== */
.section {
    background: #fbf3df;
    border: 1px solid rgba(120, 30, 35, .35);
    padding: 32px 40px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
    position: relative;
}

.section::before {
    /* Ruban marque-page rouge en haut à gauche */
    content: '';
    position: absolute;
    top: -1px; left: 28px;
    width: 22px; height: 60px;
    background: linear-gradient(180deg, #781e23 0%, #5a161a 70%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, .25);
}

.section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2em;
    font-weight: 600;
    color: #781e23;
    margin: 0 0 16px 50px;
    border-bottom: 1px solid rgba(212, 165, 84, .55);
    padding-bottom: 8px;
    letter-spacing: -0.3px;
}

.section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.35em;
    color: #5a3528;
    margin: 18px 0 8px;
}

.section p { margin-bottom: 12px; color: #2a1a14; text-align: justify; hyphens: auto; }
.section ul, .section ol { margin: 10px 0 14px 26px; }
.section li { margin-bottom: 6px; color: #2a1a14; }
.section strong { color: #781e23; font-weight: 700; }
.section em { font-style: italic; color: #5a3528; }

/* DROP CAP — première lettre de la section "Définition" */
.section.with-dropcap p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', serif;
    float: left;
    font-size: 4.5em;
    line-height: 0.9;
    margin: 4px 10px 0 0;
    color: #781e23;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(212, 165, 84, .3);
}

/* CITATION (PULL QUOTE) ===================================================== */
.pull-quote {
    border-left: 4px solid #d4a554;
    padding: 14px 0 14px 24px;
    margin: 22px 0;
    font-style: italic;
    font-size: 1.15em;
    color: #5a3528;
    background:
        linear-gradient(90deg, rgba(212, 165, 84, .08), transparent 80%);
}
.pull-quote .source {
    display: block;
    font-style: normal;
    font-size: 0.85em;
    color: #781e23;
    margin-top: 6px;
    letter-spacing: 1px;
    text-align: right;
}

/* TIMELINE ================================================================== */
.timeline {
    border-left: 2px solid #d4a554;
    padding-left: 22px;
    margin: 18px 0;
}
.timeline-event {
    position: relative;
    padding-bottom: 14px;
}
.timeline-event::before {
    content: '§';
    position: absolute;
    left: -29px;
    color: #781e23;
    font-size: 1.1em;
    background: #fbf3df;
    padding: 0 4px;
}
.timeline-event .date {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #781e23;
    font-weight: 600;
    margin-right: 8px;
}

/* TABLES ==================================================================== */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.96em;
    background: #fbf3df;
    border: 1px solid #781e23;
}
.section th {
    background: #781e23;
    color: #fbf3df;
    padding: 10px 14px;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.section td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(120, 30, 35, .25);
}
.section tr:last-child td { border-bottom: none; }

/* SPECIALITES GRID ========================================================== */
.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.spec {
    background: #fbf3df;
    border: 1px solid rgba(212, 165, 84, .55);
    padding: 14px 18px;
    border-left: 4px solid #781e23;
}
.spec h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1em;
    color: #781e23;
    margin-bottom: 4px;
}
.spec p { margin: 0; font-size: 0.95em; color: #5a3528; }

/* ARTICLE FAUX-LATIN BLOCK (parchemin) ====================================== */
.parchemin {
    background:
        repeating-linear-gradient(
            transparent 0,
            transparent 26px,
            rgba(212, 165, 84, .15) 26px,
            rgba(212, 165, 84, .15) 27px
        ),
        #fbf3df;
    border: 1px solid #d4a554;
    padding: 20px 24px;
    margin: 18px 0;
    font-style: italic;
    color: #5a3528;
}
.parchemin strong { color: #781e23; font-style: normal; }

/* RESPONSIVE ================================================================ */
@media (max-width: 700px) {
    .av-hero h1 { font-size: 2.8em; }
    .av-hero { padding: 40px 24px 38px; }
    .section { padding: 26px 22px; }
    .section h2 { font-size: 1.55em; margin-left: 38px; }
    .section::before { left: 14px; height: 44px; width: 16px; }
}
