/* ==========================================================
   ITAD, feuille de style globale
   Bleu CRIC (logo) + couleurs des deux pôles :
   CS4SG = bleu, DS4SG = vert. Les projets mixtes portent les deux.
   ========================================================== */

:root {
    --paper:   #FFFFFF;
    --surface: #EEF2F7;
    --ink:     #142036;
    --muted:   #4A5770;
    --line:    #D5DCE8;
    --brand:   #1F4478;   /* bleu du logo CRIC / ITAD */
    --cs:      #1F55D6;   /* Computer Science for Social Good */
    --ds:      #0A7F62;   /* Data Science for Social Good */
    --cs-soft: #E7EEFD;
    --ds-soft: #E0F2EC;
    --on:      #FFFFFF;   /* texte sur aplat coloré */

    --font-display: "Bricolage Grotesque", "Source Sans 3", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1140px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius: 6px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper:   #0E1828;
        --surface: #16233A;
        --ink:     #E8EEF8;
        --muted:   #A9B6CC;
        --line:    #2B3B59;
        --brand:   #9DB8E8;
        --cs:      #7FA5FF;
        --ds:      #4FD1A5;
        --cs-soft: #1A2C52;
        --ds-soft: #123A33;
        --on:      #0E1828;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #0E1828; --surface: #16233A; --ink: #E8EEF8; --muted: #A9B6CC; --line: #2B3B59;
    --brand: #9DB8E8; --cs: #7FA5FF; --ds: #4FD1A5; --cs-soft: #1A2C52; --ds-soft: #123A33; --on: #0E1828;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.2rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 58ch; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem .8rem; border-radius: var(--radius); }
:focus-visible { outline: 3px solid var(--cs); outline-offset: 3px; border-radius: 2px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.25rem;
    border: 2px solid var(--ink); border-radius: var(--radius);
    background: var(--ink); color: var(--paper);
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Statut « à construire / à venir / à renseigner » ---------- */
.status {
    display: inline-block;
    padding: .05rem .55rem;
    border: 1px dashed currentColor; border-radius: 99px;
    color: var(--muted);
    font-size: .875rem; font-weight: 600; line-height: 1.6;
    white-space: nowrap;
}

/* ---------- Tuiles I T A D (reprises du logo) ---------- */
.tiles { display: inline-flex; gap: 3px; }
.tiles > span {
    display: grid; place-items: center;
    width: 1.9rem; height: 1.9rem;
    background: var(--brand); color: var(--paper);
    border-radius: 7px 0 7px 0;
    font: 700 1.05rem/1 Georgia, "Times New Roman", serif;
}
.tiles-sm > span { width: 1.6rem; height: 1.6rem; font-size: .9rem; }

/* ==========================================================
   En-tête
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.topbar { background: var(--surface); font-size: .9rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.25rem; }
.topbar p { margin: 0; }
.nav-secondary { display: flex; gap: 1.25rem; }
.nav-secondary a { text-decoration: none; color: var(--muted); }
.nav-secondary a:hover, .nav-secondary a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.mainbar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand-name { font-size: .8rem; line-height: 1.3; color: var(--muted); font-weight: 600; white-space: nowrap; }

.nav-main { display: flex; align-items: center; gap: .15rem; }
.nav-main a {
    padding: .45rem .7rem; border-radius: var(--radius);
    font-weight: 600; font-size: .98rem; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav-main a:hover { color: var(--ink); background: var(--surface); }
.nav-main a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }
.nav-main a[href="cs4sg.php"][aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cs); }
.nav-main a[href="ds4sg.php"][aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ds); }
.nav-main .nav-cta { margin-left: .5rem; background: var(--brand); color: var(--paper); border-radius: var(--radius); }
.nav-main .nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-main .nav-cta[aria-current="page"] { box-shadow: none; border-radius: var(--radius); background: var(--ink); color: var(--paper); }

/* Le filet bicolore : les deux pôles, côte à côte */
.pole-rule { height: 4px; background: linear-gradient(90deg, var(--cs) 50%, var(--ds) 50%); }

.nav-toggle {
    display: none; align-items: center; gap: .6rem;
    padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); color: var(--ink); font: 600 1rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 5rem); overflow-y: auto;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 32, 54, .35);
}
.nav-mobile .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; padding-block: .75rem 1.5rem; }
.nav-mobile a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.nav-mobile a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 1240px) { .brand-name { display: none; } }
@media (max-width: 1100px) {
    .brand-name { display: block; }
    .nav-main, .nav-secondary { display: none; }
    .nav-toggle { display: inline-flex; }
    .mainbar { min-height: 4rem; }
}
@media (max-width: 560px) {
    .topbar { display: none; }
    .brand-name { display: none; }
    .nav-mobile .wrap { grid-template-columns: 1fr; }
}

/* ==========================================================
   Sections
   ========================================================== */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { max-width: 62ch; margin-bottom: 2rem; }
.section-intro p:last-child { margin-bottom: 0; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(2rem, 5vw, 4rem); }
.cols > * > :last-child { margin-bottom: 0; }
:where(.cols, .poles, .steps, .joint, .row, .footer-grid, .form .field-row, .news-item) > * { min-width: 0; }

/* ---------- Accueil : en-tête ---------- */
.home-hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); }
.home-hero h1 { max-width: 17ch; }
.home-hero .lead { margin-top: 1.5rem; }
.structuring {
    display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap;
    margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
    color: var(--muted); max-width: 68ch;
}
.structuring p { margin: 0; }

/* ---------- Accueil : les deux pôles (élément signature) ---------- */
.poles { display: grid; grid-template-columns: 1fr 1fr; }
.pole-panel {
    --a: var(--cs);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    min-height: clamp(20rem, 38vw, 28rem);
    padding: clamp(1.75rem, 4vw, 3.25rem);
    background: var(--a); color: var(--on);
    text-decoration: none;
}
.pole-panel.is-ds { --a: var(--ds); }
.pole-acronym {
    font: 800 clamp(3.5rem, 10vw, 8rem)/.85 var(--font-display);
    letter-spacing: -.045em;
    margin-bottom: auto;
}
.pole-panel h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 2rem 0 .5rem; max-width: 18ch; }
.pole-panel p { font-size: 1.15rem; max-width: 34ch; margin-bottom: 1.25rem; opacity: .95; }
.pole-panel .pole-link { font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.pole-panel:hover .pole-link { text-decoration-thickness: 3px; }
.pole-panel:focus-visible { outline: 4px solid var(--ink); outline-offset: -8px; }
@media (prefers-reduced-motion: no-preference) {
    .pole-acronym { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
    .pole-panel:hover .pole-acronym { transform: translateX(.4rem); }
}

/* ---------- Domaines d'action (couleurs officielles des ODD) ---------- */
.odd-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.odd-list li { display: flex; align-items: center; gap: .85rem; margin: 0; padding: .7rem .9rem .7rem .7rem; background: var(--surface); border-radius: var(--radius); font-weight: 600; line-height: 1.3; }
.odd-nums { flex: none; display: flex; gap: 3px; }
.odd-num {
    flex: none; display: grid; place-items: center;
    min-width: 2.6rem; height: 2.6rem; padding: 0 .35rem;
    border-radius: 4px; color: #fff;
    font: 800 .95rem/1 var(--font-display); letter-spacing: -.02em;
}

/* ---------- Étapes numérotées (vraies séquences uniquement) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; margin: 0; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps li::before {
    content: counter(step);
    display: block; margin-bottom: .6rem;
    font: 800 2.25rem/1 var(--font-display); color: var(--brand);
}
.steps strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.steps span { color: var(--muted); }

/* ---------- Projet mixte (bicolore) ---------- */
.joint {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: end;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--surface);
    border-left: 8px solid; border-image: linear-gradient(var(--cs) 50%, var(--ds) 50%) 1;
}
.joint h2 { margin-bottom: .4em; }
.joint p { margin-bottom: 0; }
.joint p + p { margin-top: .75rem; }
.joint .actions { margin-top: 0; justify-content: flex-end; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.tags li { margin: 0; padding: .1rem .6rem; border-radius: 4px; font-weight: 600; font-size: .9rem; color: var(--on); background: var(--cs); }
.tags li.is-ds { background: var(--ds); }
.tags a { color: inherit; text-decoration: none; }

/* ---------- Bandeau d'appel ---------- */
.band { background: var(--brand); color: var(--paper); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.band h2 { margin: 0 0 .35em; max-width: 24ch; }
.band p { margin: 0; opacity: .9; }
.band .btn { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.band .btn:hover { background: transparent; color: var(--paper); }

/* ==========================================================
   En-tête des pages intérieures
   ========================================================== */
.page-hero { padding-block: clamp(2.75rem, 7vw, 5rem); background: var(--surface); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 20ch; }
.page-hero .lead { margin-bottom: 0; }

/* Pages de pôle : aplat de couleur + sigle en grand */
.page-hero.is-pole { --a: var(--cs); background: var(--a); color: var(--on); position: relative; overflow: hidden; }
.page-hero.is-pole.is-ds { --a: var(--ds); }
.page-hero.is-pole .lead { color: inherit; opacity: .92; }
.page-hero .hero-acronym {
    display: block; margin-bottom: 1.25rem;
    font: 800 clamp(3rem, 9vw, 6.5rem)/.85 var(--font-display); letter-spacing: -.045em;
}
.page-hero.is-pole h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; max-width: 26ch; }

/* Page projet mixte : filet bicolore sous l'en-tête */
.page-hero.is-joint { border-bottom: 8px solid; border-image: linear-gradient(90deg, var(--cs) 50%, var(--ds) 50%) 1; }

/* Titres de section colorés sur les pages de pôle */
.pole-page { --a: var(--cs); }
.pole-page.is-ds { --a: var(--ds); }
.pole-page .section h2 { padding-left: .8rem; border-left: 6px solid var(--a); }
.pole-page .joint h2 { padding-left: 0; border-left: 0; }

.vision { font: 500 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--font-display); letter-spacing: -.01em; max-width: 34ch; margin: 0; }

/* ---------- Lignes (axes, offres, programmes…) ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: .5rem clamp(1.5rem, 4vw, 3rem);
    margin: 0; padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.row h3 { margin: 0; }
.pole-page .row h3 { color: var(--a); }
.row p { margin: 0 0 .5rem; }
.row > div > :last-child { margin-bottom: 0; }
.row ul { margin: 0; }
.row .examples { color: var(--muted); font-size: .97rem; }
.row .status { margin-top: .5rem; }

/* ---------- Pastilles ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { margin: 0; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; }
.pole-page .chips li { border-color: var(--a); }

/* Valeurs (À propos) */
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.values li { margin: 0; padding: 1.2rem 1rem 1.2rem 0; border-bottom: 1px solid var(--line); font: 700 1.2rem/1.25 var(--font-display); }

/* ---------- Encadré (aide, avertissement) ---------- */
.callout {
    padding: 1.25rem 1.5rem; border-radius: var(--radius);
    background: var(--ds-soft); border-left: 4px solid var(--ds);
    max-width: 72ch;
}
.callout p:last-child { margin-bottom: 0; }
.callout.is-warning { background: var(--cs-soft); border-left-color: var(--cs); }

/* ---------- État vide ---------- */
.empty { padding: clamp(1.75rem, 4vw, 2.5rem); border: 2px dashed var(--line); border-radius: var(--radius); max-width: 72ch; }
.empty h2 { margin-bottom: .4em; }

/* ==========================================================
   Formulaire
   ========================================================== */
.form { display: grid; gap: 1.1rem; }
.form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-weight: 600; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
    display: block; width: 100%; margin-top: .35rem;
    padding: .7rem .8rem;
    border: 1px solid var(--muted); border-radius: var(--radius);
    background: var(--paper); color: var(--ink); font: inherit;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 0; border-color: var(--cs); }
.form .btn { justify-self: start; }
.field-error { display: block; margin-top: .35rem; font-weight: 600; color: #B42318; }
.form [aria-invalid="true"] { border-color: #B42318; border-width: 2px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.form-message.is-ok { background: var(--ds-soft); border-left: 4px solid var(--ds); }
.form-message.is-error { background: #FDECEC; color: #8A1C1C; border-left: 4px solid #C62828; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .form-message.is-error { background: #3A1A1F; color: #FFB4B4; }
    :root:not([data-theme="light"]) .field-error { color: #FF9C9C; }
    :root:not([data-theme="light"]) .form [aria-invalid="true"] { border-color: #FF9C9C; }
}
.form-message p:last-child { margin-bottom: 0; }

.contact-info dl { margin: 0 0 1.5rem; }
.contact-info dt { font-weight: 600; }
.contact-info dd { margin: 0 0 .9rem; color: var(--muted); }

/* ==========================================================
   Pied de page
   ========================================================== */
.site-footer { margin-top: 0; background: var(--ink); color: var(--paper); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .tiles > span { background: var(--paper); color: var(--ink); }
.site-footer .muted { color: inherit; opacity: .7; }
.site-footer .status { color: inherit; opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand p { margin: 1rem 0 0; max-width: 32ch; }
.footer-title { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.site-footer li { margin-bottom: .55rem; opacity: .85; }
.site-footer .btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-footer .btn-light:hover { background: transparent; color: var(--paper); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; opacity: .7; }
.footer-bottom p { margin: 0; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site-footer { background: #08101D; color: var(--ink); }
    :root:not([data-theme="light"]) .site-footer .tiles > span { background: var(--ink); color: #08101D; }
    :root:not([data-theme="light"]) .site-footer .btn-light { background: var(--ink); color: #08101D; border-color: var(--ink); }
    :root:not([data-theme="light"]) .site-footer .btn-light:hover { background: transparent; color: var(--ink); }
}

/* ==========================================================
   Contenus gérés depuis l'administration
   ========================================================== */
.prose { max-width: 68ch; min-width: 0; overflow-wrap: anywhere; }
.prose :where(img, video, iframe, table) { max-width: 100%; }
.prose table { display: block; overflow-x: auto; }
.prose video { height: auto; }
.prose > :last-child { margin-bottom: 0; }

/* Actualités */
.news-list { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem; margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.news-item:not(:has(img)) { grid-template-columns: 1fr; }
.news-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.news-item h3 { margin: 0 0 .4rem; font-size: 1.4rem; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p:last-child { margin-bottom: 0; }
.news-meta { margin: 0 0 .4rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.news-meta a { color: inherit; }
.article-image { width: 100%; max-width: 900px; max-height: 480px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }

/* Partenaires */
.partner-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.partner { margin: 0; }
.partner-inner { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
a.partner-inner:hover { border-color: var(--ink); }
.partner-logo { display: grid; place-items: center; height: 5rem; margin-bottom: .75rem; padding: .5rem; background: #fff; border-radius: 4px; }
.partner-logo img { max-height: 100%; width: auto; object-fit: contain; }
.partner-desc { font-size: .95rem; color: var(--muted); }

/* Équipe */
.member-head { display: flex; align-items: center; gap: 1rem; }
.member-photo { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.member-name { margin: .2rem 0 0; font-weight: 600; }
@media (max-width: 720px) { .news-item { grid-template-columns: 1fr; } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps, .steps.steps-4 { grid-template-columns: 1fr 1fr; }
    .values { grid-template-columns: 1fr 1fr; }
    .joint { grid-template-columns: 1fr; }
    .joint .actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .poles, .cols, .row, .form .field-row { grid-template-columns: 1fr; }
    .pole-panel { min-height: 0; }
    .pole-panel h2 { margin-top: 1.5rem; }
    .steps, .steps.steps-4, .values { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
