/* LEXTRANEO – identité : sarcelle et anthracite du logo, orange des visuels, police Alef */

@font-face {
    font-family: 'Alef';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/alef-400.woff2) format('woff2');
}
@font-face {
    font-family: 'Alef';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/alef-700.woff2) format('woff2');
}

:root {
    --teal: #2dc2af;
    --teal-dark: #157568;       /* sarcelle lisible sur fond blanc (AA) */
    --teal-soft: #e6f7f5;
    --orange: #ffa700;
    --orange-dark: #e87019;
    --link: #b5530c;            /* orange lisible sur fond blanc (AA) */
    --orange-soft: #fff4e0;
    --ink: #2d2c2c;             /* anthracite du logo */
    --navy: #292b45;            /* logotype */
    --text: #3d3f4f;
    --muted: #6b6e7f;
    --line: #e6e4df;
    --bg: #ffffff;
    --bg-tint: #f7f5f1;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(41, 43, 69, .06), 0 8px 24px rgba(41, 43, 69, .07);
    --shadow-hover: 0 2px 4px rgba(41, 43, 69, .08), 0 16px 40px rgba(41, 43, 69, .12);
    --container: 1170px;
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Alef', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { padding-top: 0; }
.section-tint + .section { padding-top: clamp(48px, 7vw, 88px); }
.section-tint { background: var(--bg-tint); padding: 40px 0 !important; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0; }

.eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin: 0 0 12px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; }
.small { font-size: .9rem; color: var(--muted); }

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

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 2px solid var(--orange);
    border-radius: 999px;
    background: var(--orange);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.button:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.button-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.button-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-small { padding: 8px 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- En-tête ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(41, 43, 69, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; }
.brand-x { color: var(--teal); }
.brand-tag { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    position: relative;
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    font-size: .98rem;
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform .25s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.nav-cta { margin-left: 8px; padding: 10px 20px; background: var(--ink); color: #fff; font-weight: 700; }
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta.is-active { background: var(--orange); color: var(--ink); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-toggle .bar { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* --- Bandeau des pages intérieures --------------------------------------- */

.page-hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(41, 43, 69, .94) 0%, rgba(41, 43, 69, .82) 45%, rgba(41, 43, 69, .45) 100%),
        url(/img/banner.webp) center / cover no-repeat,
        var(--navy);
    padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.page-hero::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0 50%, var(--orange) 50% 100%);
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { color: rgba(255, 255, 255, .85); margin: 0; }
.page-hero .eyebrow { color: var(--teal); }
.page-hero .eyebrow a { color: inherit; }
.page-hero .eyebrow a:hover { color: #fff; }
.page-hero .eyebrow span { opacity: .6; margin: 0 4px; }

/* --- Accueil ------------------------------------------------------------ */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 96px) 0;
    background:
        radial-gradient(circle at 92% 10%, var(--orange-soft) 0, transparent 40%),
        radial-gradient(circle at 0% 100%, var(--teal-soft) 0, transparent 45%);
}
.home-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.home-hero-media { position: relative; margin: 0; }
.home-hero-media::before {
    content: '';
    position: absolute;
    inset: 24px -24px -24px 24px;
    border-radius: calc(var(--radius) * 1.6);
    background: var(--teal);
    z-index: -1;
}
.home-hero-media img { border-radius: calc(var(--radius) * 1.6); box-shadow: var(--shadow-hover); width: 100%; }
.home-hero-grid > * { position: relative; z-index: 1; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--muted);
}
.stats strong { display: block; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); line-height: 1.1; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.topics a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-top: 4px solid var(--teal);
    color: var(--text);
    background: #fff;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.topics li:nth-child(even) a { border-top-color: var(--orange); }
.topics a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--text); }
.topic-name { font-weight: 700; font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.topic-desc { font-size: .94rem; color: var(--muted); flex: 1; }
.topic-count { margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--teal-dark); }

/* --- Cartes ------------------------------------------------------------- */

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: var(--shadow);
}
.card h2 { font-size: 1.5rem; }
.card p:last-child { margin-bottom: 0; }

.card-link { display: flex; flex-direction: column; color: var(--text); transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--text); }
.card-icon {
    display: inline-grid; place-items: center;
    width: 56px; height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--teal-soft);
    color: var(--teal-dark);
}
.card-link:nth-child(2) .card-icon { background: var(--orange-soft); color: var(--link); }
.card-link p { flex: 1; }
.card-more { margin-top: 18px; font-weight: 700; color: var(--link); }
.card-link:hover .card-more span { display: inline-block; transform: translateX(4px); transition: transform .2s; }

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    margin-top: clamp(48px, 6vw, 72px);
    padding: clamp(28px, 4vw, 48px);
    border-radius: calc(var(--radius) * 1.4);
    background:
        radial-gradient(circle at 100% 0%, rgba(45, 194, 175, .35) 0, transparent 50%),
        var(--ink);
    color: rgba(255, 255, 255, .8);
}
.section > .container > .cta-band { margin-top: 0; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* --- Formations --------------------------------------------------------- */

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.info-strip p {
    margin: 0;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--bg-tint);
    font-size: .96rem;
}
.info-strip strong { display: block; color: var(--navy); }

.chips {
    position: sticky;
    top: var(--header-h);
    z-index: 10;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .95);
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: .92rem;
    background: #fff;
    transition: background .2s, border-color .2s;
}
.chip:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); }

.module-group { padding-top: 40px; }
.module-group-head { margin-bottom: 20px; padding-left: 16px; border-left: 4px solid var(--teal); }
.module-group:nth-of-type(even) .module-group-head { border-left-color: var(--orange); }
.module-group-head h2 { margin-bottom: 4px; }
.module-group-head p { margin: 0; color: var(--muted); }

.module h3 { margin-bottom: 10px; }
.module p { font-size: .97rem; }
.module-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-tint);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 700;
}
.badge-teal { background: var(--teal-soft); color: var(--teal-dark); }
.badge-orange { background: var(--orange-soft); color: #a94f0d; }

/* --- Assistance juridique ----------------------------------------------- */

.intro-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.lead-text { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--navy); margin: 0; }
.checklist { list-style: none; margin: 0; padding: 24px; border-radius: var(--radius); background: var(--teal-soft); }
.checklist li { position: relative; padding-left: 30px; margin: 6px 0; color: var(--navy); }
.checklist li::before {
    content: '';
    position: absolute; left: 4px; top: .45em;
    width: 12px; height: 7px;
    border-left: 2.5px solid var(--teal-dark);
    border-bottom: 2.5px solid var(--teal-dark);
    transform: rotate(-45deg);
}

.person { display: flex; gap: 22px; align-items: flex-start; }
.avatar {
    flex: none;
    display: grid; place-items: center;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.person:nth-child(2) .avatar { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: var(--ink); }
.person h3 { font-size: 1.4rem; margin-bottom: 2px; }
.person-role { color: var(--muted); font-size: .95rem; }
.person-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; color: #0a66c2; font-weight: 700; font-size: .95rem; }
.icon-link:hover { color: #004182; }

/* --- Contenu rédactionnel (mentions légales…) --------------------------- */

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose a { text-decoration: underline; text-decoration-color: rgba(232, 112, 25, .35); text-underline-offset: 3px; }

/* --- Contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.form-card h2 { margin-bottom: 20px; }
.contact-aside { display: grid; gap: 20px; }
.contact-aside .card h2 { font-size: 1.15rem; margin-bottom: 8px; }
address { font-style: normal; }

.contact-form p { margin-bottom: 18px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.req { color: var(--link); }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fcfcfb;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 194, 175, .18);
}
.contact-form [aria-invalid=true] { border-color: #c62828; }
.field-error { display: block; color: #c62828; font-size: .88rem; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin: 8px 0 20px; max-width: 320px; --altcha-border-radius: 8px; --altcha-color-border: var(--line); }

.notice { padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius-sm); border-left: 4px solid; }
.notice-success { border-color: var(--teal-dark); background: var(--teal-soft); color: #0f5a51; }
.notice-error { border-color: #c62828; background: #fdecea; color: #8e1c1c; }

/* --- Pied de page ------------------------------------------------------- */

.site-footer {
    margin-top: clamp(32px, 5vw, 64px);
    background: var(--ink);
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
    border-top: 4px solid var(--teal);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; color: #fff; margin-bottom: 10px; }
.footer-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 6px 0; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 18px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.contact-aside .footer-links a { color: var(--link); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
    .home-hero-grid, .intro-split, .contact-grid { grid-template-columns: 1fr; }
    .home-hero-media { margin-right: 24px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .info-strip { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    body { font-size: 16px; }
    .container { padding-left: 16px; padding-right: 16px; }
    .brand img { width: 38px; height: 38px; }
    .brand-name { font-size: 1.15rem; }
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(41, 43, 69, .08);
        display: none;
    }
    .menu-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
    .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
    .main-nav a::after { display: none; }
    .main-nav a.is-active { background: var(--bg-tint); }
    .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
    .menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .cards-2 { grid-template-columns: 1fr; }
    .person { flex-direction: column; gap: 14px; }
    .home-hero-media::before { inset: 14px -14px -14px 14px; }
    .home-hero-media { margin-right: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-band .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
