/* =========================================================
   FORUM ARMORICAIN
   Charte design : sobriété, blanc, typographie Bilzig forte
   Inspirations : Aspen Institute (architecture), Long Now (densité)
   Couleurs : bleu marine #04326B, or #C39F4F (extraites du logo)
   ========================================================= */

@font-face {
    font-family: 'Bilzig';
    src: url('fonts/Bilzig-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bilzig';
    src: url('fonts/Bilzig-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Bilzig';
    src: url('fonts/Bilzig-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bilzig';
    src: url('fonts/Bilzig-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bilzig';
    src: url('fonts/Bilzig-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bleu: #04326B;
    --bleu-dark: #022150;
    --or: #C39F4F;
    --or-dark: #A8853B;
    --blanc: #FFFFFF;
    --creme: #F7F4ED;
    --gris-clair: #E8E4DA;
    --gris: #6B6B6B;
    --noir: #1A1A1A;
    --max-width: 1280px;
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Bilzig', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--noir);
    line-height: 1.6;
    background: var(--blanc);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--bleu); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--or); }

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

/* ========== HEADER ========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--gris-clair);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.site-header .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--bleu);
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand img {
    height: 48px;
    width: auto;
}

.brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand .brand-text span:first-child {
    color: var(--or);
    font-weight: 500;
    letter-spacing: 0.08em;
}

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav.main-nav a {
    color: var(--noir);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--bleu);
    border-bottom-color: var(--or);
}

.cta-header {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bleu);
    color: var(--blanc);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0;
    transition: background 0.2s;
}

.cta-header:hover { background: var(--or); color: var(--blanc); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bleu);
    font-size: 24px;
    cursor: pointer;
}

/* ========== HERO ========== */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bleu);
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(4, 50, 107, 0.92) 0%,
        rgba(4, 50, 107, 0.65) 50%,
        rgba(4, 50, 107, 0.35) 100%
    );
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px;
    color: var(--blanc);
}

.hero-logo {
    width: 220px;
    height: auto;
    margin-bottom: 36px;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}

@media (max-width: 700px) {
    .hero-logo { width: 150px; margin-bottom: 24px; }
}

.hero-eyebrow {
    color: var(--or);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--blanc);
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    max-width: 14ch;
}

.hero p.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    max-width: 56ch;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== BUTTONS ========== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--or);
    color: var(--bleu);
    border-color: var(--or);
}
.btn-primary:hover {
    background: var(--blanc);
    color: var(--bleu);
    border-color: var(--blanc);
}

.btn-ghost {
    background: transparent;
    color: var(--blanc);
    border-color: var(--blanc);
}
.btn-ghost:hover {
    background: var(--blanc);
    color: var(--bleu);
}

.btn-dark {
    background: var(--bleu);
    color: var(--blanc);
    border-color: var(--bleu);
}
.btn-dark:hover {
    background: var(--or);
    color: var(--bleu);
    border-color: var(--or);
}

/* ========== SECTIONS ========== */

section { padding: 96px 0; }

section.tight { padding: 64px 0; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section-eyebrow {
    color: var(--or);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
}

h1, h2, h3, h4 {
    color: var(--bleu);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    margin-bottom: 32px;
    max-width: 24ch;
}

h3 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 18px;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card h3 { font-size: 1.45rem; }
.event h3 { font-size: 1.3rem; }

/* ========== GRILLE TARIFAIRE ========== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    background: var(--blanc);
}

.pricing-table tr {
    border-bottom: 1px solid var(--gris-clair);
}

.pricing-table tr.highlight {
    background: var(--creme);
}

.pricing-table td {
    padding: 24px 16px;
    vertical-align: middle;
}

.pricing-table .pricing-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bleu);
}

.pricing-table .pricing-detail {
    font-size: 0.9rem;
    color: var(--gris);
    margin-top: 4px;
    font-weight: 400;
}

.pricing-table .pricing-amount {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--bleu);
    text-align: right;
    white-space: nowrap;
}

.pricing-table .pricing-real {
    font-size: 0.85rem;
    color: var(--gris);
    font-weight: 400;
    margin-top: 4px;
    text-align: right;
}

.pricing-badge {
    display: inline-block;
    background: var(--or);
    color: var(--bleu);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    margin-left: 12px;
    vertical-align: middle;
}

/* ========== INCISE ACTUALITÉ HP ========== */
.actu-strip {
    background: var(--or);
    color: var(--bleu);
    padding: 18px 0;
}
.actu-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.actu-strip .actu-content {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.actu-strip .actu-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--bleu);
    border-right: 1px solid rgba(4, 50, 107, 0.3);
    padding-right: 16px;
    white-space: nowrap;
}
.actu-strip .actu-date {
    font-weight: 700;
    color: var(--bleu);
    white-space: nowrap;
}
.actu-strip .actu-title {
    font-weight: 500;
    color: var(--bleu);
}
.actu-strip .actu-cta {
    color: var(--bleu);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border-bottom: 2px solid var(--bleu);
    padding-bottom: 2px;
}
.actu-strip .actu-cta:hover {
    color: var(--blanc);
    border-bottom-color: var(--blanc);
}
@media (max-width: 700px) {
    .actu-strip .actu-label { border-right: none; padding-right: 0; }
}

@media (max-width: 700px) {
    .pricing-table td { padding: 16px 8px; }
    .pricing-table .pricing-label { font-size: 1rem; }
    .pricing-table .pricing-amount { font-size: 1.3rem; }
}

p { margin-bottom: 1.2em; max-width: 70ch; }

p.intro {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--noir);
    max-width: 66ch;
    margin-bottom: 32px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--gris-clair);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ========== GRILLES ========== */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
}

.card {
    background: var(--blanc);
    border: 1px solid var(--gris-clair);
    padding: 32px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(4, 50, 107, 0.08);
    border-color: var(--or);
}

.card .card-eyebrow {
    color: var(--or);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card h3 { margin-bottom: 12px; }

/* ========== SECTIONS COLORÉES ========== */

section.bleu {
    background: var(--bleu);
    color: var(--blanc);
}
section.bleu h2 { color: var(--blanc); }
section.bleu .section-eyebrow { color: var(--or); }
section.bleu p { color: rgba(255, 255, 255, 0.92); }
section.bleu a { color: var(--or); }

/* Les boutons gardent leurs couleurs propres dans les sections colorées */
section.bleu a.btn-primary { color: var(--bleu); }
section.bleu a.btn-primary:hover { color: var(--bleu); }
section.bleu a.btn-dark { color: var(--blanc); }
section.bleu a.btn-ghost { color: var(--blanc); }

section.creme { background: var(--creme); }

/* ========== CITATION ========== */

.pull-quote {
    max-width: 800px;
    margin: 64px auto;
    padding: 0 32px;
    text-align: center;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
    color: var(--bleu);
}
.pull-quote::before { content: '« '; color: var(--or); }
.pull-quote::after { content: ' »'; color: var(--or); }
.pull-quote cite {
    display: block;
    font-size: 0.7em;
    font-style: normal;
    font-weight: 400;
    color: var(--gris);
    margin-top: 16px;
    letter-spacing: 0.04em;
}

/* ========== AGENDA / EVENT ITEM ========== */

.event-list { display: flex; flex-direction: column; gap: 0; }

.event {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--gris-clair);
}

.event-date {
    font-weight: 700;
    color: var(--or);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
}

.event h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.event p {
    margin-bottom: 0;
    color: var(--gris);
    font-size: 0.95rem;
}

.event-location {
    font-size: 13px;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========== PAGE HEADER (sub-pages) ========== */

.page-header {
    background: var(--bleu);
    color: var(--blanc);
    padding: 96px 0 64px;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.20;
}

.page-header .container { position: relative; z-index: 1; }

.page-header .eyebrow {
    color: var(--or);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
}

.page-header h1 {
    color: var(--blanc);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    max-width: 22ch;
    margin-bottom: 24px;
}

.page-header p.lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 60ch;
}

/* ========== FEATURED IMAGE ========== */

.full-image {
    width: 100%;
    margin: 64px 0;
    overflow: hidden;
}

.full-image img {
    width: 100%;
    height: 60vh;
    max-height: 720px;
    object-fit: cover;
}

.image-caption {
    text-align: center;
    color: var(--gris);
    font-size: 14px;
    font-style: italic;
    margin-top: 12px;
}

/* ========== FOOTER ========== */

.site-footer {
    background: var(--bleu-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 32px;
    margin-top: 0;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand h4 {
    color: var(--blanc);
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.55;
}

.site-footer h4 {
    color: var(--or);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.site-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer ul a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.site-footer ul a:hover { color: var(--or); }

.site-footer .copyright {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 32px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer .copyright a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer .copyright a:hover { color: var(--or); }

/* Pages légales : titres calibrés pour du texte de lecture, pas des titres de section */
.page-legal > * { max-width: 78ch; }

.page-legal h2 {
    font-size: 1.35rem;
    margin-top: 48px;
    margin-bottom: 12px;
    max-width: none;
}

.page-legal h2:first-child { margin-top: 0; }
.page-legal ul { margin-bottom: 16px; }
.page-legal li { margin-bottom: 6px; }

/* ========== RESPONSIVE ========== */

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    nav.main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--blanc);
        border-bottom: 1px solid var(--gris-clair);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    nav.main-nav.open { max-height: calc(100vh - var(--header-h)); }
    nav.main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px 32px 24px;
    }
    nav.main-nav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--gris-clair);
    }
    .cta-header { display: none; }
    .grid-3, .cards-3, .cards-2 { grid-template-columns: 1fr; gap: 24px; }
    .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    .site-footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .event {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 0;
    }
    section { padding: 64px 0; }
    .hero-content { padding: 64px 32px; }
}

@media (max-width: 560px) {
    .site-header .container { padding: 0 20px; }
    .container { padding: 0 20px; }
    .site-footer .container { grid-template-columns: 1fr; }
    .brand .brand-text { font-size: 13px; }
    .brand img { height: 40px; }
}
