/* ═══════════════════════════════════════════════════════════
   Les Français de Santo-André — Stylesheet
   Self-contained; no dependency on parent site assets.
═══════════════════════════════════════════════════════════ */

/* ── Google Fonts (Crimson for body, Montserrat for headings) ── */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;1,400;1,600&family=Montserrat:wght@400;600;700&display=swap');

/* ── Variables ── */
:root {
    --blue:    #002395;   /* French tricolor blue  */
    --white:   #ffffff;
    --red:     #ED2939;   /* French tricolor red   */
    --dark:    #1a1a2e;
    --text:    #2c2c2c;
    --muted:   #6c6c6c;
    --bg:      #fafaf8;
    --bg-alt:  #f2f0eb;
    --border:  #d4cfc6;
    --accent:  #8b5a2b;   /* warm parchment accent */

    --max-width: 860px;
    --reading-width: 720px;
}

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

html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: 'Crimson Pro', Georgia, serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
}

/* ── Tricolor bar ── */
.tricolor-bar {
    display: flex;
    height: 6px;
    width: 100%;
}
.tricolor-bar .blue  { flex: 1; background: var(--blue); }
.tricolor-bar .white { flex: 1; background: var(--white); border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.tricolor-bar .red   { flex: 1; background: var(--red); }

/* ══════════════════════════════════════
   HEADER / COVER
══════════════════════════════════════ */
.site-header {
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.header-inner {
    padding: 3.5rem 1.5rem 3rem;
    background: linear-gradient(160deg, #0a0a24 0%, #1a1a3e 60%, #0d0d1f 100%);
    position: relative;
}

.version-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 2rem;
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
}

.title-line {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    letter-spacing: 0.03em;
    color: var(--white);
}

.title-de {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.12em;
}

.subtitle {
    margin-top: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.85rem, 2.2vw, 1.05rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.location-note {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-nav {
    background: var(--blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-nav ul li a {
    display: block;
    padding: 0.75rem 1.4rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-nav ul li a:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

/* ══════════════════════════════════════
   MAIN CONTENT WRAPPER
══════════════════════════════════════ */
.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Section ── */
.section {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.4rem;
}

.section-title::after {
    content: '';
    display: block;
    margin-top: 0.4rem;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--red) 100%);
    border-radius: 2px;
}

.chapter-subtitle {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--dark);
    margin-top: 0.6rem;
    margin-bottom: 1.8rem;
    line-height: 1.2;
}

/* ── Body paragraphs ── */
.section p,
.company-article p {
    max-width: var(--reading-width);
    margin-bottom: 1.25rem;
    text-align: justify;
    hyphens: auto;
}

/* ── PRÉFACE ── */
.preface-section { background: none; }

.preface-text {
    border-left: 4px solid var(--blue);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: var(--bg-alt);
    border-radius: 0 6px 6px 0;
    max-width: var(--reading-width);
}

.preface-text p {
    font-style: italic;
    font-size: 1.05rem;
    color: #3a3a3a;
    margin-bottom: 1rem;
    text-align: left;
    max-width: 100%;
}

.preface-text p:last-child { margin-bottom: 0; }

/* ── TABLE OF CONTENTS ── */
.toc {
    margin-top: 1rem;
}

.toc-list {
    list-style: none;
    counter-reset: none;
    padding-left: 0;
}

.toc-list > .toc-chapter {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.toc-list > .toc-chapter:last-child { border-bottom: none; }

.toc-list a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a:hover { color: var(--blue); }

.toc-sublist {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.3rem;
}

.toc-sublist li {
    padding: 0.15rem 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.toc-sublist a { color: var(--muted); }
.toc-sublist a:hover { color: var(--blue); }

/* ── COMPANY ARTICLES ── */
.company-article {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}

.company-article:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 1.5rem;
}

.company-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    font-weight: 600;
    font-style: italic;
    color: var(--blue);
    margin-bottom: 1.2rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--red);
}

/* ── Photo figure ── */
.photo-figure {
    margin: 1.8rem 0;
    max-width: var(--reading-width);
}

.photo-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.18);
}

.photo-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

/* ── Coming-soon styling ── */
.coming-soon { opacity: 0.65; }

.forthcoming {
    font-style: italic;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 0.8rem 0;
}

.coming-soon-section {
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.forthcoming-list {
    list-style: none;
    padding-left: 1rem;
    margin-top: 1rem;
}

.forthcoming-list li {
    padding: 0.3rem 0;
    color: var(--muted);
    font-style: italic;
    font-size: 0.95rem;
}

.forthcoming-list li::before {
    content: '—  ';
    color: var(--border);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.55);
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.7;
}

.site-footer p {
    padding: 0.3rem 1rem;
}

.site-footer p:first-of-type { padding-top: 1.5rem; }
.site-footer p:last-of-type  { padding-bottom: 1.8rem; }

.footer-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 640px) {
    .preface-text {
        padding: 1rem 1rem 1rem 1.2rem;
    }
    .site-nav ul li a {
        padding: 0.6rem 0.9rem;
        font-size: 0.7rem;
    }
}

/* ══════════════════════════════════════
   PRINT
══════════════════════════════════════ */
@media print {
    .site-nav { display: none; }
    .section { page-break-inside: avoid; }
    .company-article { page-break-inside: avoid; }
    body { font-size: 12pt; }
}
