/* ============================================================
   ORKUBAUGUR — Feuille de styles
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    /* Couleurs (estimées depuis la maquette, à affiner) */
    --c-purple-dark:  #390139;   /* sections JV / Behind / CTA */
    --c-purple-mid:   #6c5896;   /* section Monument */
    --c-blue-slate:   #64689d;   /* section Steering Committee */
    --c-orange:       #efa83f;   /* boutons primaires */
    --c-orange-dark:  #d9942e;
    --c-title-purple: #4e2069;   /* titre "Orkubaugur" */
    --c-black:        #141414;   /* footer */
    --c-white:        #ffffff;
    --c-grey:         #d7d4d3;   /* gouttières autour de la top bar */
    --c-ink:          #1d1430;   /* texte sur fond clair */
    --c-muted-light:  rgba(255, 255, 255, 0.78);

    /* Polices (Adobe Fonts — slugs du kit) */
    --font-title:   "big-caslon-fb", "Big Caslon", Georgia, serif;
    --font-heading: "oswald", "Oswald", "Arial Narrow", sans-serif;
    --font-body:    "filson-pro", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

    /* Layout */
    --container: 1340px;
    --gutter: clamp(1.25rem, 4vw, 3rem);

    /* Typographie (cibles desktop, fluides vers le mobile) */
    --fs-title:   clamp(2.4rem, 5vw, 2.725rem);    /* Big Caslon — 58px */
    --fs-heading: clamp(1.5rem, 2.6vw, 1.9375rem); /* Oswald light — 31px */
    --fs-body:    clamp(1.05rem, 1.6vw, 1.6875rem);/* Filson — 27px */
    --fs-small:   clamp(0.95rem, 1.1vw, 1.0625rem);/* descriptions colonnes — 17px */

    /* Échelle d'espacements (réutilisée sur toute la page) */
    --space-2xs: 0.5rem;
    --space-xs:  0.75rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 5.5rem;   /* padding vertical des lames */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-body);
    color: var(--c-ink);
    line-height: 1.6;
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; font-weight: 400; }

/* Titre de grande lame — Big Caslon 58px */
.lame-title {
    font-family: var(--font-title);
    font-size: var(--fs-title);
    line-height: 1.05;
    text-transform: uppercase;
}
/* Intertitre — Oswald light 31px */
.lame-heading {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: var(--fs-heading);
}

/* ---------- Utilitaires ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
}
.btn--little {
    padding: 0.4em 1.0em;
}

.btn--normal {
    padding: 0.75em 1.6em;
}

.btn--orange {
    background: var(--c-orange);
    color: var(--c-purple-dark);
}
.btn--orange:hover { background: var(--c-orange-dark); }

.btn--white {                /* fond blanc + fine bordure orange (top bar) */
    background: var(--c-white);
    color: var(--c-ink);
    border-color: var(--c-orange);
}
.btn--white:hover { background: #fff7ea; }

.btn--ghost-light {            /* bouton outline clair (sur fond foncé) */
    background: transparent;
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn--ghost-dark {            /* bouton outline foncé (sur fond clair) */
    background: transparent;
    color: var(--c-ink);
    border-color: rgba(29, 20, 48, 0.4);
}
.btn--ghost-dark:hover { background: rgba(29, 20, 48, 0.06); }

/* ============================================================
   LAME 1 — TOP BAR
   ============================================================ */
.topbar {
    background: var(--c-grey);          /* gouttières grises à gauche/droite */
    padding-inline: var(--gutter);
}
.topbar__inner {
    position: relative;
    max-width: var(--container);
    margin-inline: auto;
    background: var(--c-purple-dark);   /* bande violette centrée */
    min-height: 76px;
    padding: 0.7rem clamp(1.5rem, 4vw, 2.75rem);
}
.topbar .btn { font-size: 0.82rem; }

/* Drapeau (changement de langue) — en haut à droite */
.lang-switch {
    position: absolute;
    top: 0.7rem;
    right: clamp(1.5rem, 4vw, 2.75rem);
    display: flex;
    gap: 0.4rem;
}
.lang-switch__item {
    display: block;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-switch__item:hover { opacity: 1; transform: scale(1.05); }
.lang-switch__item img { width: 38px; height: 38px; }

/* Boutons — décalés vers le bas, débordent sous la bande (desktop) */
.topbar__actions {
    position: absolute;
    right: clamp(1.5rem, 4vw, 2.75rem);
    bottom: 0;
    transform: translateY(50%);
    display: flex;
    gap: 0.6rem;
}

/* ============================================================
   LAME 2 — HERO
   ============================================================ */
.hero {
    background: var(--c-white);
    text-align: center;
    min-height: calc(100svh - 90px);   /* presque tout l'écran (hors top bar) */
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
}
.hero__inner {
    max-width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left:15px;
    padding-right:15px;
}
.hero__title {
    margin-bottom: 1.25rem;
}
.hero__logo {
    height: auto;
}
.hero__subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 2.5625rem);  /* 41px */
    line-height: 1.2;
    color: var(--c-ink);
    margin-bottom: 0.4rem;
}
.hero__tagline {
    font-family: var(--font-heading);
    font-weight: 300;                            /* Oswald light */
    font-size: clamp(1.4rem, 3.5vw, 2.5625rem);  /* 41px */
    line-height: 1.2;
    color: var(--c-ink);
    margin-bottom: 2rem;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* ============================================================
   PATRON DE LAME — bande centrée + gouttières grises
   ============================================================ */
.lame {
    background: var(--c-grey);          /* gouttières gauche/droite */
    padding-inline: var(--gutter);
}
.lame__band {
    max-width: var(--container);
    margin-inline: auto;
}
.lame__content {
    padding: var(--space-2xl) clamp(1.5rem, 5vw, 4rem);
}
.lame--dark  .lame__band { background: var(--c-purple-dark); color: var(--c-white); }
.lame--mid   .lame__band { background: var(--c-purple-mid);  color: var(--c-white); }
.lame--slate .lame__band { background: var(--c-blue-slate);  color: var(--c-white); }

/* Lame pleine largeur : pas de gouttières grises, contenu recentré */
.lame--full { padding-inline: 0; }
.lame--full .lame__band { max-width: none; }
.lame--full .lame__content { max-width: var(--container); margin-inline: auto; }

/* En-tête de lame (titre + intro) */
.lame__head {
    text-align: center;
    max-width: 60ch;
    margin: 0 auto var(--space-xl);
}
.lame__head .lame-title { margin-bottom: var(--space-sm); }
.lame__intro { font-weight: 300; opacity: 0.95; }

/* ============================================================
   LAME 3 — JULES VERNE & ICELAND (grille de cartes)
   ============================================================ */
.cards {
    display: grid;
    gap: var(--space-lg);
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

/* Lame 6 : 2ᵉ rangée de 2 cartes centrées (mêmes largeurs que la rangée de 3) */
.cards--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 66.6%;
    margin: var(--space-xl) auto 0;
}
/* Noms du comité : sur une ligne, pas de réserve de hauteur */
.committee .card__title { min-height: 0; }

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card__title {
    text-align: center;
    margin-bottom: var(--space-md);
    min-height: 2.2em;          /* réserve 2 lignes → images/textes alignés */
}
.card__media {
    width: clamp(160px, 14vw, 200px);
    aspect-ratio: 1;
    margin-bottom: var(--space-md);
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.card__text {
    font-size: var(--fs-small);
    line-height: 1.55;
    align-self: stretch;        /* texte aligné à gauche, pleine largeur */
}

/* ============================================================
   LAME 4 — THE MONUMENT (image + colonne de texte)
   ============================================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, var(--space-xl));
    align-items: center;
}
.split__media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.split__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ============================================================
   LAME 7 — CALL TO ACTION
   ============================================================ */
.cta { text-align: center; }
.cta .lame__head { margin-bottom: var(--space-md); }
.cta__text {
    font-family: var(--font-heading);
    font-weight: 300;            /* Oswald light */
    max-width: 72ch;
    margin: 0 auto var(--space-xl);
}
.cta__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   PAGE — MENTIONS LÉGALES
   ============================================================ */
.legal {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-2xl) var(--gutter);
}
.legal__title { margin-bottom: var(--space-lg); }
.legal__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: var(--fs-small);
}
.legal__row {
    display: grid;
    grid-template-columns: minmax(0, 18rem) 1fr;
    gap: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(29, 20, 48, 0.1);
}
.legal__row dt { font-weight: 700; }
.legal__row dd { margin: 0; }
.legal__row a { text-decoration: underline; }
.legal__back { margin-top: var(--space-xl); }

@media (max-width: 640px) {
    .legal__row { grid-template-columns: 1fr; gap: var(--space-2xs); }
    .legal__row dt { margin-top: var(--space-2xs); }
}

/* ============================================================
   LAME 8 — FOOTER
   ============================================================ */
.footer {
    background: var(--c-black);
    color: var(--c-white);
    padding: var(--space-2xl) var(--gutter) var(--space-xl);
}
.footer__inner {
    max-width: var(--container);
    margin-inline: auto;
}
.footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}
.footer__logo { width: clamp(70px, 7vw, 100px); height: auto; }
.footer__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.3rem, 2.6vw, 1.9375rem);
    line-height: 1.2;
}
.footer__tagline {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(1.05rem, 2.2vw, 1.6rem);
    line-height: 1.2;
    color: var(--c-muted-light);
    margin-top: var(--space-2xs);
}
.footer__legal {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--fs-small);
    color: var(--c-muted-light);
}
.footer__legal a:hover { color: var(--c-white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .cards--3,
    .cards--2 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .lame__content { padding-block: var(--space-xl); }
    .card__title { min-height: 0; }   /* une seule colonne : plus besoin d'aligner */

    /* Lame 4 : image au-dessus du texte */
    .split { grid-template-columns: 1fr; gap: var(--space-lg); max-width: 560px; margin-inline: auto; }
}

@media (max-width: 640px) {
    /* Mobile : plus de gouttières grises, les bandes prennent toute la largeur */
    .topbar,
    .lame { padding-inline: 0; }

    /* Top bar : retour en flux normal, plus de débordement */
    .topbar__inner {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem var(--gutter) 1.25rem;
    }
    .lang-switch { position: static; order: -1; }
    .topbar__actions {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .topbar__actions .btn { flex: 1 1 auto; }

    .hero__actions { width: 100%; }
    .hero__actions .btn { flex: 1 1 auto; }

    /* Lame 7 : boutons pleine largeur */
    .cta__actions { width: 100%; }
    .cta__actions .btn { flex: 1 1 auto; }

    /* Lame 8 : logo au-dessus du texte, le tout centré */
    .footer__brand { flex-direction: column; text-align: center; gap: var(--space-md); }
}
