:root {
    --cires-navy: #0f2742;
    --cires-navy-2: #173b63;
    --cires-gold: #c9a45c;
    --cires-gold-dark: #9e7b38;
    --cires-ivory: #f7f3ea;
    --cires-paper: #fffdf8;
    --cires-text: #26313d;
    --cires-muted: #6f7882;
    --cires-border: #ddd6c8;
    --cires-white: #ffffff;
    --cires-danger: #a23a3a;
    --cires-success: #2e6e4f;
    --shadow-soft: 0 12px 35px rgba(15, 39, 66, 0.10);
    --shadow-card: 0 8px 24px rgba(15, 39, 66, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --container: 1220px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(201, 164, 92, 0.08), transparent 34%),
        var(--cires-ivory);
    color: var(--cires-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

/* Bande supérieure */
.topbar {
    background: var(--cires-navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar a {
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--cires-gold);
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* En-tête */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid rgba(15, 39, 66, 0.10);
    backdrop-filter: blur(14px);
}

.header-main {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cires-gold);
    border-radius: 50%;
    background: var(--cires-navy);
    color: var(--cires-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}

.brand-text {
    min-width: 0;
}

.brand-kicker {
    display: block;
    color: var(--cires-gold-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.brand-title {
    margin: 2px 0 0;
    color: var(--cires-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--cires-muted);
    font-size: 0.84rem;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    position: relative;
    padding: 12px 13px;
    color: var(--cires-navy);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 7px;
    height: 2px;
    background: var(--cires-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(15, 39, 66, 0.04);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 8px;
    padding: 12px 18px !important;
    background: var(--cires-navy);
    color: var(--cires-white) !important;
    box-shadow: 0 6px 18px rgba(15, 39, 66, 0.18);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--cires-navy-2) !important;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--cires-border);
    border-radius: 10px;
    background: var(--cires-paper);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--cires-navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Titres et sections */
.section {
    padding: 76px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cires-gold-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--cires-gold);
}

h1,
h2,
h3,
h4 {
    color: var(--cires-navy);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.lead {
    color: var(--cires-muted);
    font-size: 1.08rem;
}

/* Composants */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--cires-navy);
    color: var(--cires-white);
}

.btn-primary:hover {
    background: var(--cires-navy-2);
}

.btn-outline {
    border-color: var(--cires-navy);
    color: var(--cires-navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--cires-navy);
    color: var(--cires-white);
}

.btn-gold {
    background: var(--cires-gold);
    color: var(--cires-navy);
}

.card {
    background: var(--cires-paper);
    border: 1px solid rgba(15, 39, 66, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.article-card {
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    color: var(--cires-muted);
    font-size: 0.82rem;
}

.article-title {
    margin: 12px 0 10px;
}

.article-title a:hover {
    color: var(--cires-gold-dark);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(201, 164, 92, 0.45);
    border-radius: 999px;
    background: rgba(201, 164, 92, 0.10);
    color: var(--cires-gold-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Formulaires */
.form-control {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--cires-border);
    border-radius: 10px;
    background: var(--cires-paper);
    color: var(--cires-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--cires-gold);
    box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.13);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Pied de page */
.site-footer {
    margin-top: 72px;
    background:
        linear-gradient(rgba(15, 39, 66, 0.98), rgba(15, 39, 66, 0.98)),
        var(--cires-navy);
    color: rgba(255, 255, 255, 0.76);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 48px;
    padding: 68px 0 52px;
}

.footer-brand .brand-title {
    color: var(--cires-white);
}

.footer-brand p {
    max-width: 430px;
    margin: 18px 0 0;
}

.footer-title {
    margin: 0 0 18px;
    color: var(--cires-white);
    font-size: 1rem;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--cires-gold);
    transform: translateX(3px);
}

.footer-contact {
    display: grid;
    gap: 12px;
}

.footer-contact strong {
    color: var(--cires-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.82rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal a:hover {
    color: var(--cires-gold);
}

/* Mobile */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        inset: 104px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: var(--cires-paper);
        border-bottom: 1px solid var(--cires-border);
        box-shadow: var(--shadow-soft);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 14px;
    }

    .nav-cta {
        margin: 8px 0 0;
        text-align: center;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .header-main {
        min-height: 86px;
    }

    .main-nav {
        inset: 86px 0 auto 0;
    }

    .brand-subtitle {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

    .footer-main {
        gap: 34px;
        padding: 52px 0 40px;
    }

    .footer-bottom-inner {
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(calc(100% - 22px), var(--container));
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-kicker {
        font-size: 0.62rem;
    }
}
/* =========================================================
   CORRECTION D'AFFICHAGE DU HEADER
   Remplace les anciennes règles du menu Administration,
   ou ajoute ce bloc tout à la fin de revue.css.
   ========================================================= */

/* Le logo peut se réduire sans pousser le menu hors de l'écran */
.header-main-revue {
    gap: clamp(18px, 2.2vw, 34px);
}

.header-main-revue .brand {
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 430px;
}

.header-main-revue .brand-text {
    overflow: hidden;
}

.header-main-revue .brand-kicker,
.header-main-revue .brand-title,
.header-main-revue .brand-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Le menu reste sur une seule ligne sur ordinateur */
.header-main-revue .main-nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 2px;
}

.header-main-revue .main-nav > a,
.header-main-revue .nav-dropdown-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
}

.header-main-revue .main-nav > a {
    padding-left: 10px;
    padding-right: 10px;
}

.header-main-revue .nav-dropdown-toggle {
    padding-left: 10px;
    padding-right: 10px;
}

.header-main-revue .nav-cta {
    min-width: 132px;
    margin-left: 6px;
    padding: 12px 16px !important;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

/* Sous-menu Administration */
.nav-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--cires-navy);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 7px;
    height: 2px;
    background: var(--cires-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover > .nav-dropdown-toggle,
.nav-dropdown.open > .nav-dropdown-toggle,
.nav-dropdown.active > .nav-dropdown-toggle {
    background: rgba(15, 39, 66, 0.04);
}

.nav-dropdown:hover > .nav-dropdown-toggle::after,
.nav-dropdown.open > .nav-dropdown-toggle::after,
.nav-dropdown.active > .nav-dropdown-toggle::after {
    transform: scaleX(1);
}

.nav-dropdown-icon {
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-icon,
.nav-dropdown.open .nav-dropdown-icon {
    margin-top: 4px;
    transform: rotate(225deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    z-index: 1200;
    width: 235px;
    padding: 9px;
    background: var(--cires-paper);
    border: 1px solid rgba(15, 39, 66, 0.10);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 28px;
    width: 13px;
    height: 13px;
    background: var(--cires-paper);
    border-top: 1px solid rgba(15, 39, 66, 0.10);
    border-left: 1px solid rgba(15, 39, 66, 0.10);
    transform: rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-nav .nav-dropdown-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 8px;
    color: var(--cires-navy);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav .nav-dropdown-menu a::after {
    display: none;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a.active {
    background: rgba(201, 164, 92, 0.12);
    color: var(--cires-gold-dark);
}

/*
 * Le menu mobile est déclenché dès 1180 px.
 * Cela évite tout chevauchement sur les écrans intermédiaires.
 */
@media (max-width: 1180px) {
    .header-main-revue {
        min-height: 86px;
    }

    .header-main-revue .brand {
        max-width: calc(100% - 64px);
        min-width: 0;
    }

    .header-main-revue .menu-toggle {
        display: flex;
        flex: 0 0 44px;
    }

    .header-main-revue .main-nav {
        position: fixed;
        inset: 86px 0 auto 0;
        z-index: 1300;
        display: none;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 18px;
        background: var(--cires-paper);
        border-bottom: 1px solid var(--cires-border);
        box-shadow: var(--shadow-soft);
        white-space: normal;
    }

    .topbar + .site-header .header-main-revue .main-nav {
        inset: 122px 0 auto 0;
        max-height: calc(100vh - 122px);
    }

    .header-main-revue .main-nav.open {
        display: flex;
    }

    .header-main-revue .main-nav > a,
    .header-main-revue .nav-dropdown-toggle {
        width: 100%;
        padding: 13px 14px;
        white-space: normal;
    }

    .header-main-revue .nav-cta {
        width: 100%;
        min-width: 0;
        margin: 8px 0 0;
        white-space: normal;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
    }

    .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        padding: 0 0 0 13px;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transform: none;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        pointer-events: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 220px;
        padding-top: 6px;
        padding-bottom: 6px;
        pointer-events: auto;
    }

    .main-nav .nav-dropdown-menu a {
        padding: 11px 14px;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .header-main-revue .brand-kicker {
        max-width: 230px;
    }

    .topbar + .site-header .header-main-revue .main-nav,
    .header-main-revue .main-nav {
        inset: 86px 0 auto 0;
        max-height: calc(100vh - 86px);
    }
}
