/* =========================================================
   CADRESE EXPRESS
   IDENTITÉ VISUELLE : BLEU ROYAL + OR + BLANC
   ========================================================= */

/* =========================
   1. VARIABLES
   ========================= */

:root {
    --navy: #173B70;
    --deep: #102B53;
    --teal: #B88A28;
    --aqua: #D4A43A;

    --ink: #293241;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #FAF8F2;

    --white: #FFFFFF;
    --gold: #D4A43A;
    --gold-dark: #B88A28;
    --gold-light: #FFF5DA;
    --royal-light: #F4F6FA;
}

/* =========================
   2. STYLES GÉNÉRAUX
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-dark);
}

p,
li,
td,
th {
    font-family: 'Inter', Arial, sans-serif;
}

button,
input,
select,
textarea {
    font-family: 'Inter', Arial, sans-serif;
}

.container {
    width: min(1180px, calc(100% - 44px));
    margin: auto;
}

/* =========================
   3. BARRE SUPÉRIEURE
   ========================= */

.top {
    background: var(--deep);
    color: var(--gold);
    padding: 7px max(22px, calc((100% - 1180px) / 2));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.top span {
    float: right;
}

/* =========================
   4. HEADER
   ========================= */

header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 44px));
    margin: auto;
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Ancien logo textuel, conservé pour compatibilité */

.logo {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -0.065em;
    color: var(--navy);
    line-height: 1;
}

.logo span {
    color: var(--gold-dark);
}

/* Logo image dans le header */

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    display: block;
    width: 190px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

/* =========================
   5. NAVIGATION
   ========================= */

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--navy);
}

nav a:hover {
    color: var(--gold-dark);
}

nav a[aria-current="page"] {
    color: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 4px;
    font-weight: 800;
}

/* =========================
   6. BOUTONS
   ========================= */

.nav-pill,
.button {
    display: inline-block;
    background: var(--navy);
    color: var(--white);

    border: 1px solid var(--navy);
    padding: 11px 17px;
    border-radius: 6px;

    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 750;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

/* Bouton de navigation */

.nav-pill {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--deep);
}

.button:hover {
    background: var(--deep);
    border-color: var(--deep);
    color: var(--white);
}

.nav-pill:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--deep);
}

/* Bouton secondaire */

.button.secondary {
    background: var(--white);
    color: var(--navy);
    border-color: #B9C7D9;
}

.button.secondary:hover {
    background: var(--royal-light);
    border-color: var(--navy);
    color: var(--navy);
}

/* Bouton discret */

.button.subtle {
    background: transparent;
    color: var(--navy);
    border-color: #B9C7D9;
}

.button.subtle:hover {
    background: var(--royal-light);
    border-color: var(--navy);
}

/* =========================
   7. SECTION INTRODUCTION
   ========================= */

.intro {
    padding: 105px 0;
    background: linear-gradient(
        125deg,
        #F4F6FA,
        #FFFFFF 58%,
        #FAF5E8
    );
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr;
    gap: 90px;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 850;
    color: var(--gold-dark);
    margin: 0 0 16px;
}

/* =========================
   8. TYPOGRAPHIE
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--navy);
}

h1 {
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.035em;
    line-height: 1.35;
    margin: 0 0 22px;
}

/* h1 {
    font-size: clamp(35px, 4.3vw, 64px);
    letter-spacing: -0.045em;
    margin: 0 0 22px;
} */

h2 {
    font-size: clamp(24px, 2.3vw, 33px);
    margin: 0 0 18px;
}

h3 {
    font-size: 20px;
    margin: 14px 0 12px;
}

.lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 760px;
}

.lead.compact {
    margin-bottom: 36px;
}

.slogan {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: var(--navy);
    margin: 28px 0;
}

/* =========================
   9. GROUPES DE BOUTONS
   ========================= */

.buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* =========================
   10. PANNEAU D'INFORMATION
   ========================= */

.info-panel {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 12px;

    box-shadow: 0 18px 60px rgba(23, 59, 112, 0.08);
}

.mini-label {
    font-size: 12px;
    color: var(--gold-dark);
    letter-spacing: 0.18em;
    font-weight: 800;
}

.domain {
    padding: 19px 0;
    border-bottom: 1px solid var(--line);

    display: flex;
    gap: 20px;

    color: var(--gold-dark);
}

.domain:last-child {
    border: 0;
}

.domain strong {
    color: var(--navy);
}

/* =========================
   11. SECTIONS
   ========================= */

.section {
    padding-top: 80px;
    padding-bottom: 85px;
}

.section-heading {
    margin-bottom: 30px;
}

.soft {
    background: var(--bg);
}

/* =========================
   12. CARTES
   ========================= */

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

.card,
.list-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    padding: 26px;

    box-shadow: 0 8px 30px rgba(23, 59, 112, 0.05);
}

.card p,
.list-card p {
    color: var(--muted);
}

/* =========================
   13. BADGES
   ========================= */

.badge {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;

    color: var(--deep);
    background: var(--gold-light);

    padding: 5px 10px;
    border-radius: 4px;
}

/* =========================
   14. MÉTADONNÉES
   ========================= */

.meta,
.seats {
    font-size: 13px;
    color: var(--muted);
    margin: 16px 0;
}

.text-link {
    color: var(--navy);
    font-weight: 800;
}

.text-link:hover {
    color: var(--gold-dark);
}

/* =========================
   15. LISTES
   ========================= */

.stack {
    display: grid;
    gap: 15px;
}

.list-card h2 {
    font-size: 22px;
    margin-top: 14px;
}

.empty {
    padding: 30px;
    border: 1px dashed #C9D3DF;
    border-radius: 8px;
    color: var(--muted);
}

/* =========================
   16. FORMULAIRES
   ========================= */

.form-section {
    max-width: 820px;
}

.form-card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 28px 0;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 750;
    margin-bottom: 6px;
    color: var(--navy);
}

.field input,
.field textarea,
.field select {
    display: block;
    width: 100%;

    border: 1px solid #B9C7D9;
    border-radius: 6px;
    padding: 11px 13px;

    font: inherit;
    background: var(--white);
    color: var(--ink);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(23, 59, 112, 0.12);
}

.field small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   17. MESSAGES ET ALERTES
   ========================= */

.error {
    color: #AD2638 !important;
}

.alerts {
    padding-top: 16px;
}

.alert {
    padding: 12px 17px;
    border-radius: 6px;
    background: #E6F5EF;
}

.alert.error {
    background: #FFF0F0;
}

/* =========================
   18. ESPACE PERSONNEL
   ========================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 55px;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--navy);
    padding: 0;
    cursor: pointer;
    font-weight: 800;
}

.text-button:hover {
    color: var(--gold-dark);
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================
   19. FOOTER
   ========================= */

footer {
    background: var(--navy);
    color: #E5EBF3;
    padding: 55px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid strong {
    color: var(--gold);
}

.footer-grid p {
    margin: 0;
}

.footer-grid em {
    color: var(--white);
}

footer a {
    color: #E5EBF3;
}

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

/* =========================
   20. LOGO DU FOOTER
   ========================= */

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background-color: var(--white);
    border-radius: 10px;

    padding: 10px 16px;
    width: fit-content;
    max-width: 100%;

    text-decoration: none;
}

.footer-logo {
    display: block;
    width: 135px;
    max-width: 100%;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

/* =========================
   21. BAS DU FOOTER
   ========================= */

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 35px;
    padding-top: 16px;
    font-size: 13px;
}

/* =========================
   22. ACCESSIBILITÉ
   ========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* =========================
   23. TABLETTES
   ========================= */

@media (max-width: 950px) {

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 0;
    }

    nav {
        gap: 13px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

/* =========================
   24. LOGOS SUR MOBILE
   ========================= */

@media (max-width: 768px) {

    .header-logo {
        width: 150px;
        max-height: 55px;
    }

    .footer-brand {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .footer-logo {
        width: 115px;
        max-height: 45px;
    }
}

/* =========================
   25. PETITS ÉCRANS
   ========================= */

@media (max-width: 650px) {

    .top span {
        display: none;
    }

    .cards,
    .footer-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .intro {
        padding: 65px 0;
    }

    .section {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .form-card {
        padding: 20px;
    }

    nav a {
        font-size: 13px;
    }
}