/* ==========================================================================
   architecte.css — Architecte
   Thème : esthétique calque, papier ivoire, encre marine, grille millimétrée,
           règles graduées et croquis technique
   ========================================================================== */

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

body {
    font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
    line-height: 1.7;
    color: #1c2435;
    background: #f4ecd8;
    background-image:
        linear-gradient(rgba(28, 36, 53, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 36, 53, .04) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0;
    min-height: 100vh;
    font-size: 18px;
}

/* Bandeau lateral "règle graduée" */
body::before {
    content: '';
    position: fixed;
    top: 0; bottom: 0;
    left: 0;
    width: 18px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(28,36,53,.08) 100%),
        repeating-linear-gradient(
            0deg,
            #1c2435 0,
            #1c2435 1px,
            transparent 1px,
            transparent 12px,
            #1c2435 12px,
            #1c2435 13px,
            transparent 13px,
            transparent 24px
        );
    background-color: #ebe2c8;
    border-right: 1px solid #1c2435;
    pointer-events: none;
    z-index: 5;
}

.arch-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 28px 60px 50px;
    position: relative;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: #1c2435;
    text-decoration: none;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.78em;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid #1c2435;
    padding-bottom: 1px;
}
.back-link:hover { color: #b8741a; border-color: #b8741a; }

/* HERO ====================================================================== */
.arch-hero {
    background: #fbf6e9;
    border: 2px solid #1c2435;
    padding: 42px 44px 36px;
    margin-bottom: 36px;
    position: relative;
}

.arch-hero::before {
    /* Cartouche projet en haut à droite */
    content: 'PROJET / FICHE — ARCHITECTE · ÉCH 1:1 · DOC 01';
    position: absolute;
    top: 12px; right: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72em;
    color: #1c2435;
    letter-spacing: 2px;
    opacity: 0.7;
}

.arch-hero::after {
    /* Tampon "ENCRÉ" */
    content: '';
    position: absolute;
    bottom: 14px; right: 18px;
    width: 70px; height: 70px;
    border: 2px solid #b8741a;
    border-radius: 50%;
    background:
        repeating-linear-gradient(45deg, transparent 0 4px, rgba(184, 116, 26, .18) 4px 5px);
    opacity: 0.6;
}

.arch-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4.6em;
    font-weight: 600;
    color: #1c2435;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.arch-hero .surtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78em;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #b8741a;
    margin-bottom: 8px;
}

.arch-hero .tagline {
    font-style: italic;
    font-size: 1.2em;
    color: #3a4256;
    max-width: 640px;
    margin-top: 16px;
    line-height: 1.55;
}

/* SECTIONS ================================================================== */
.section {
    background: #fbf6e9;
    border: 1px solid rgba(28, 36, 53, .35);
    padding: 28px 36px;
    margin-bottom: 22px;
    position: relative;
}

.section::before {
    /* Index "A1, A2..." en marge */
    counter-increment: section-counter;
    content: 'A.' counter(section-counter);
    position: absolute;
    top: 26px; left: -18px;
    transform: rotate(-90deg);
    transform-origin: left center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72em;
    color: #b8741a;
    letter-spacing: 2px;
    background: #fbf6e9;
    padding: 2px 6px;
}

body { counter-reset: section-counter; }

.section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85em;
    font-weight: 600;
    color: #1c2435;
    margin-bottom: 14px;
    border-bottom: 2px solid #1c2435;
    padding-bottom: 6px;
    letter-spacing: -0.3px;
}

.section h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95em;
    color: #b8741a;
    margin: 18px 0 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section p { margin-bottom: 12px; color: #2a3147; }
.section ul, .section ol { margin: 10px 0 14px 24px; }
.section li { margin-bottom: 6px; color: #2a3147; }
.section strong { color: #1c2435; font-weight: 700; }
.section em { color: #b8741a; font-style: italic; }

/* TIMELINE ================================================================== */
.timeline {
    border-left: 2px solid #1c2435;
    padding-left: 24px;
    margin: 18px 0;
}
.timeline-event {
    position: relative;
    padding-bottom: 14px;
}
.timeline-event::before {
    content: '◆';
    position: absolute;
    left: -32px;
    color: #b8741a;
    font-size: 0.85em;
}
.timeline-event .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: #b8741a;
    letter-spacing: 1px;
    margin-right: 10px;
    background: rgba(184, 116, 26, .1);
    padding: 1px 8px;
}

/* TABLE ===================================================================== */
.section table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.94em;
}
.section th {
    background: #1c2435;
    color: #fbf6e9;
    padding: 10px 14px;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.section td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(28, 36, 53, .25);
    background: #fbf6e9;
}
.section tr:last-child td { border-bottom: none; }

/* HATCH BLOCK =============================================================== */
.hatched {
    background:
        repeating-linear-gradient(45deg, transparent 0 8px, rgba(28, 36, 53, .08) 8px 9px),
        #fbf6e9;
    border: 1px solid #1c2435;
    padding: 18px 22px;
    margin: 16px 0;
}
.hatched strong { color: #b8741a; }

/* FORMATION DIAGRAM ========================================================= */
.formation-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 18px 0;
    flex-wrap: wrap;
}
.f-step {
    flex: 1 1 130px;
    background: #fbf6e9;
    border: 1.5px solid #1c2435;
    padding: 14px 16px;
    position: relative;
    text-align: center;
}
.f-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -14px; top: 50%;
    transform: translateY(-50%);
    background: #f4ecd8;
    padding: 2px 4px;
    color: #b8741a;
    font-size: 1.3em;
    z-index: 2;
}
.f-step .f-year {
    font-family: 'JetBrains Mono', monospace;
    color: #b8741a;
    font-size: 0.85em;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.f-step .f-name {
    font-weight: 700;
    color: #1c2435;
    font-size: 0.95em;
    line-height: 1.3;
}

/* SPEC GRID ================================================================= */
.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.spec-card {
    background: #fbf6e9;
    border: 1px solid #1c2435;
    padding: 14px 16px;
    position: relative;
}
.spec-card::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; width: 12px; height: 12px;
    border-top: 2px solid #b8741a;
    border-left: 2px solid #b8741a;
}
.spec-card::after {
    content: '';
    position: absolute;
    bottom: -6px; right: -6px; width: 12px; height: 12px;
    border-bottom: 2px solid #b8741a;
    border-right: 2px solid #b8741a;
}
.spec-card h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: #b8741a;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.spec-card p { margin: 0; font-size: 0.95em; }

/* RESPONSIVE ================================================================ */
@media (max-width: 700px) {
    body::before { display: none; }
    .arch-wrap { padding: 26px 18px 60px; }
    .arch-hero h1 { font-size: 2.7em; }
    .arch-hero { padding: 28px 22px; }
    .section { padding: 22px 22px; }
    .section h2 { font-size: 1.45em; }
    .section::before { display: none; }
}
