:root{
    color-scheme: light;
    --bghigh: #FFFFFF;
    --bg: #e7e4df;
    --text: #111111;
    --accent: #B5A642;
    --muted: rgba(17,17,17,.72);
    --card: rgba(255,255,255,.38);
    --card-border: rgba(17,17,17,.10);
    --shadow: 0 14px 40px rgba(0,0,0,.20);
    --focus: rgba(0,0,0,.18);
    --max-width: 1200px;
    --side-padding: 40px;
}

@media (max-width: 900px) {
    :root {
        --side-padding: 20px;
    }
}

@media (max-width: 640px) {
    :root {
        --side-padding: 10px;
    }
}

[data-theme="dark"]{
    color-scheme: dark;
    --bghigh: #111111;
    --bg: #0d0d0e;
    --text: #f5f5f7;
    --muted: rgba(245,245,247,.72);
    --card: rgba(255,255,255,.04);
    --card-border: rgba(255,255,255,.12);
    --shadow: 0 18px 60px rgba(0,0,0,.55);
    --focus: rgba(255,255,255,.22);
}

body {
    margin: 0 auto;
    max-width: var(--max-width);
    width: 100%;
    box-sizing: border-box;
    padding: 160px var(--side-padding) 40px;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(53, 53, 53, 0.45), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(0,0,0,.06), transparent 55%),
    var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color .35s ease, color .35s ease, background .35s ease;
    font-family: "Inter", sans-serif;
}

a {
    color: var(--text);
}

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

.image-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 80px; /* marge minimum au-dessus du logo */
    margin-bottom: 40px;
}

.hero-inner img {
    border-radius: 22px;
}

@media (min-width: 900px){
    .image-hero{
        max-width: 640px; /* largeur max du logo sur desktop */
    }
}

.intro {
    max-width: 900px;
    text-align: left;
}

/* Typo A — Manifeste minimal (Inter) */
.t-manifeste {
    font-family: "Inter", sans-serif;
    font-weight: 700;

    font-family: "highest-praise", sans-serif;
    font-weight: 400;
    font-style: normal;


    font-size: 3em;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 18px 0;
}

/* Typo B — Éditorial premium (Playfair Display) */
.t-editorial {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1.7em;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

/* Optionnel : rythme des paragraphes dans le bloc éditorial */
.t-editorial p {
    margin: 0 0 14px 0;
}

.topbar{
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.topbar .label{
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 12.5px;
    letter-spacing: .02em;
    color: var(--muted);
    user-select: none;
    white-space: nowrap;
}

/* iOS-style switch */
.theme-toggle{
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 16px;
    border-radius: 999px;
    background: rgba(120,120,128,.24);
    border: 1px solid rgba(0,0,0,.10);
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

[data-theme="dark"] .theme-toggle{
    border-color: rgba(255,255,255,.14);
    background: rgba(120,120,128,.28);
}

.theme-toggle::after{
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(#ffffff, #f2f2f7);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    transform: translateX(0);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.theme-toggle:checked{
    background: rgba(43, 43, 43, 0.85); /* iOS green vibe */
    border-color: rgba(0,0,0,.08);
}

.theme-toggle:checked::after{
    transform: translateX(16px);
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.theme-toggle:focus-visible{
    box-shadow: 0 0 0 4px var(--focus);
}

/* Make intro text follow theme */
.intro{ color: var(--text); }
.t-editorial{ color: var(--muted); }

/* Responsive padding (prevents cramped mobile) */
@media (max-width: 900px){
    body{ padding: 140px 18px 28px; }
    .topbar{ top: 12px; right: 12px; }
    .t-manifeste{ font-size: 2.4em; }
    .t-editorial{ font-size: 1.45em; }
}

footer{
    margin-top: 120px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-inner{
    max-width: 1100px;
    width: 100%;
    padding: 28px 24px 36px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
}

.footer-inner a{
    color: var(--muted);
}

.footer-brand{
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text);
}

.footer-meta{
    max-width: 720px;
    margin: 0 auto;
}

.footer-meta span{
    display: inline-block;
    margin: 0 8px;
}

@media (max-width: 900px){
    footer{ margin-top: 90px; }
    .footer-inner{ padding: 22px 18px 28px; }
}


/* Mentions légales — 2 colonnes pour les 2 premiers blocs */
.legal-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 64px;
}

.legal-grid .legal-section{
    max-width: none;
    margin: 0;
}

@media (max-width: 900px){
    .legal-grid{
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 48px;
    }
}

.legal-section{
    width: 100%;
    max-width: 720px;
    margin: 0 auto 48px;
}

.legal-section h2{
    margin-bottom: 14px;
}

.legal-section p{
    margin-bottom: 14px;
    line-height: 1.8;
}

.legal-section a{
    color: var(--text);
}

header{
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    width: calc(100% - 36px);
    max-width: 1100px;

    display: flex;
    flex-direction: column;

    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 22px;

    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);

    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-open {
    border-radius: 22px;
}

@media (max-width: 900px){
    header{
        top: 12px;
        width: calc(100% - 24px);
        border-radius: 18px;
    }
}

/* Conteneur interne */
.header-inner{
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 0 12px;
    flex-shrink: 0;
}

/* Navigation verticale intégrée */
.header-nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    padding: 0 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-header.is-open .header-nav {
    grid-template-rows: 1fr;
    padding-bottom: 24px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-links-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    overflow: hidden;
}

.header-nav .nav-link {
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    background: rgba(255,255,255,0.05);
}

.header-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.header-nav .nav-foot {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* Animation de l'icône hamburger */
.site-header.is-open .hamburger-lines {
    background: transparent;
}

.site-header.is-open .hamburger-lines::before {
    transform: rotate(45deg);
    top: 0;
}

.site-header.is-open .hamburger-lines::after {
    transform: rotate(-45deg);
    top: 0;
}

.hamburger-lines, .hamburger-lines::before, .hamburger-lines::after {
    transition: all 0.3s ease;
}

header .logo-img {
    width: 150px;
}

/* Bouton hamburger à gauche */
.hamburger{
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

/* Icône hamburger (3 traits) */
.hamburger-lines{
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--text, #000);
    border-radius: 2px;
}

.hamburger-lines::before,
.hamburger-lines::after{
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text, #000);
    border-radius: 2px;
}

.hamburger-lines::before{
    top: -6px;
}

.hamburger-lines::after{
    top: 6px;
}

/* Logo centré */
.header-logo{
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0; /* Ajustement car le hamburger est à gauche */
}

.logo-img{
    max-height: 36px;
    width: auto;
}

/* Spacer à droite (équilibre visuel) */
.header-spacer{
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* Team – photos en forme de cellule */
.team-card__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 999px; /* arrondi haut + bas façon cellule */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 22px rgba(0,0,0,.60);
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit; /* hérite de la forme cellule */
}

/* Team – grille responsive */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card h3 {
    font-family: "sofia-pro-condensed", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 1.8rem;
}

.team-card h3 {
    font-family: "playwrite-cc-au-sa", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
}

.team-card h3 {
    font-family: "highest-praise", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.2rem;
    padding: 0;
    margin: 0;
    margin-top: 2rem;
}

.team-card__role {
    font-family: "area-normal-light", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 0.8rem;
    margin: 0;
}


.btn {
    border: 2px solid var(--text);
    border-radius: 22px;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
}

.btn:hover {
    box-shadow: var(--shadow);
}

.croquis {
    width: 100%;
    aspect-ratio: 1920 / 1242;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Thème clair */
:root .croquis {
    background-image: url("/assets/images/fond-clair-croquis.avif");
}

/* Thème sombre */
[data-theme="dark"] .croquis {
    background-image: url("/assets/images/fond-sombre-croquis.avif");
}
