/* =============================================================================
   ANDA · andapub 2.0 — DESIGN DE LA VERSION COPILOT
   Partie 1 : copie conforme de C:\ms4wppsndassets\css\site.css (seuls les chemins
   d’images sont adaptés à l’arborescence andapub).
   Partie 2 (en fin de fichier) : composants propres à andapub, dessinés dans le même style.
   ========================================================================== */

:root {
    color-scheme: light;
    --navy: #103e49;
    --blue: #005784;
    --cyan: #43bbd1;
    --green: #00a492;
    --gold: #d7b77e;
    --ink: #1b333a;
    --muted: #63777c;
    --paper: #f5f8f7;
    --white: #fff;
    --content-width: 1160px;
    font-family: "Roboto", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
    font-synthesis: weight;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
}

body,
button,
input,
textarea {
    font-family: "Roboto", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    z-index: 10;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    transform: translateY(-150%);
    color: var(--white);
    background: var(--navy);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 2;
    background: var(--white);
    box-shadow: 0 4px 20px rgb(16 62 73 / 7%);
}

.header-inner {
    display: flex;
    width: min(var(--content-width), calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand img {
    display: block;
    width: min(230px, 48vw);
    height: auto;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.language-picker {
    position: relative;
    flex: 0 0 auto;
}

.language-picker-toggle {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #dce7e7;
    border-radius: 5px;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
}

.language-picker-toggle:hover,
.language-picker-toggle[aria-expanded="true"] {
    border-color: #a9cbcd;
    color: var(--blue);
    background: #f4f9f8;
}

.language-picker-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.language-picker-chevron {
    width: 7px;
    height: 7px;
    margin: -4px 0 0 2px;
    transform: rotate(45deg);
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.language-picker-toggle[aria-expanded="true"] .language-picker-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.language-picker-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 176px;
    padding: 6px;
    border: 1px solid #e1e9e9;
    border-radius: 7px;
    background: var(--white);
    box-shadow: 0 12px 28px rgb(16 62 73 / 15%);
}

.language-picker-menu[hidden] {
    display: none;
}

.language-picker-menu a {
    display: flex;
    min-height: 40px;
    padding: 7px 9px;
    border-radius: 4px;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: .85rem;
    text-decoration: none;
}

.language-picker-menu a:hover,
.language-picker-menu a[aria-current="page"] {
    color: var(--blue);
    background: #eaf4f5;
}

.language-code {
    min-width: 30px;
    color: var(--green);
    font-size: .76rem;
    font-weight: 700;
}

.nav-link {
    color: var(--blue);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgb(0 0 0 / 12%);
}

.button-small {
    min-height: 42px;
    padding: 9px 17px;
}

.button-green {
    color: var(--white);
    background: var(--green);
}

.button-light {
    color: var(--navy);
    background: var(--white);
}

.button-outline {
    color: var(--blue);
    border-color: #bed3d6;
    background: var(--white);
}

.header-action {
    flex: 0 0 auto;
    white-space: nowrap;
}

.button-arrow {
    font-size: 1.2rem;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgb(16 62 73 / 96%) 0%, rgb(7 92 113 / 88%) 58%, rgb(8 127 135 / 54%) 100%),
        url("../img/hero/copilot.jpg") center / cover no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--content-width), calc(100% - 48px));
    min-height: 460px;
    margin: 0 auto;
    padding: 85px 0 100px;
}

.hero-inner > :not(.hero-decoration) {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.eyebrow {
    margin: 0 0 15px;
    color: #b7e8ec;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow-dark {
    color: var(--green);
}

.eyebrow-light {
    color: #abe6e2;
}

.hero h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(2.3rem, 5.2vw, 4.45rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.hero h1 span {
    display: block;
    color: #a8e5e4;
}

.hero-description {
    max-width: 520px;
    margin: 20px 0 30px;
    color: #e0f1f1;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-decoration {
    position: absolute;
    top: 30px;
    right: -35px;
    width: min(45vw, 500px);
    aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 50%;
}

.hero-orbit {
    position: absolute;
    display: block;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 50%;
}

.orbit-one {
    inset: 11%;
}

.orbit-two {
    inset: 24%;
}

.orbit-three {
    inset: 37%;
    background: radial-gradient(circle, rgb(67 187 209 / 27%), transparent 70%);
}

.hero-bottom {
    position: absolute;
    right: -4%;
    bottom: -100px;
    left: -4%;
    height: 150px;
    border-radius: 50% 50% 0 0;
    background: var(--white);
}

.subpage-hero {
    color: var(--white);
    background:
        linear-gradient(90deg, rgb(16 62 73 / 96%) 0%, rgb(7 92 113 / 88%) 58%, rgb(8 127 135 / 54%) 100%),
        url("../img/hero/copilot.jpg") center / cover no-repeat;
}

.subpage-hero-inner {
    width: min(var(--content-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 58px;
}

.subpage-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.15;
}

.subpage-hero p:last-child {
    max-width: 780px;
    margin: 14px 0 0;
    color: #e0f1f1;
}

.section {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 96px;
}

.section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.section-heading h2,
.contact-intro h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -.035em;
    line-height: 1.25;
}

.heading-rule {
    display: block;
    width: 58px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 2px;
    background: var(--gold);
}

.faq-list {
    border-top: 1px solid #e1e9e9;
}

.faq-item {
    border-bottom: 1px solid #e1e9e9;
}

.faq-item summary {
    display: grid;
    min-height: 82px;
    padding: 18px 5px;
    grid-template-columns: 42px 1fr 32px 24px;
    align-items: center;
    gap: 14px;
    color: var(--navy);
    cursor: pointer;
    font-size: .98rem;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-number {
    color: var(--green);
    font-size: .78rem;
    letter-spacing: .08em;
}

.faq-indicator {
    position: relative;
    width: 21px;
    height: 21px;
    border: 1px solid #bdd0d2;
    border-radius: 50%;
}

.faq-youtube-icon {
    display: inline-grid;
    width: 28px;
    height: 20px;
    border-radius: 5px;
    background: #e62117;
    place-items: center;
}

.faq-youtube-icon svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: var(--white);
}

.faq-indicator::before,
.faq-indicator::after {
    position: absolute;
    top: 9px;
    left: 5px;
    width: 9px;
    height: 1px;
    background: var(--blue);
    content: "";
}

.faq-indicator::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-indicator::after {
    transform: rotate(0);
}

.faq-answer {
    margin: -4px 42px 22px 61px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    white-space: pre-line;
}

.faq-answer-image {
    display: block;
    width: auto;
    max-width: min(100%, 560px);
    max-height: 340px;
    height: auto;
    margin: 10px auto;
    padding: 3px;
    border: 1px solid #e1e9e9;
    border-radius: 6px;
    background: var(--white);
    object-fit: contain;
}

.faq-answer-image.faq-answer-icon {
    display: inline-block;
    max-width: 100%;
    max-height: 22px;
    margin: 0 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    vertical-align: middle;
}

[dir="rtl"] .faq-answer {
    margin-right: 61px;
    margin-left: 42px;
}

.section-action {
    margin-top: 32px;
    text-align: center;
}

.faq-full {
    width: min(1000px, calc(100% - 48px));
    padding-top: 54px;
    padding-bottom: 80px;
}

.faq-category + .faq-category {
    margin-top: 56px;
}

.faq-category .section-heading {
    margin-bottom: 24px;
}

.faq-category .section-heading h2 {
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    letter-spacing: 0;
}

.faq-full .faq-item summary {
    min-height: 68px;
}

.faq-full .faq-answer {
    margin-bottom: 18px;
    line-height: 1.55;
}

.tutorials-section {
    width: min(var(--content-width), calc(100% - 48px));
    padding-top: 58px;
    padding-bottom: 84px;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.tutorial-filters {
    display: flex;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.tutorial-filter-title {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 1.1rem;
    text-align: center;
}

.tutorial-filter {
    padding: 9px 15px;
    border: 1px solid #d3e0e1;
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    font: inherit;
    font-size: .88rem;
}

.tutorial-filter[aria-pressed="true"] {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.tutorial-card[hidden] {
    display: none;
}

.tutorial-card {
    overflow: hidden;
    border: 1px solid #e1e9e9;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 12px 35px rgb(16 62 73 / 8%);
}

.tutorial-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #103e49;
    object-fit: cover;
}

.tutorial-card h2 {
    margin: 0;
    padding: 19px 22px 22px;
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.4;
}

.contact-section {
    color: var(--white);
    background: var(--navy);
}

.contact-inner {
    display: grid;
    width: min(var(--content-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 78px 0;
    grid-template-columns: 1fr .88fr;
    gap: clamp(40px, 8vw, 100px);
}

.contact-intro h2 {
    color: var(--white);
}

.contact-agency {
    margin: 27px 0 4px;
    font-size: 1.04rem;
}

.contact-address {
    margin: 0 0 23px;
    color: #c5d8d9;
    white-space: pre-line;
}

.contact-details {
    display: grid;
    gap: 10px;
}

.contact-details p {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.contact-details span,
.social-links > span {
    color: #a8c4c6;
}

.contact-details a {
    color: var(--white);
    text-decoration-color: rgb(255 255 255 / 40%);
    text-underline-offset: 3px;
}

.social-links {
    display: flex;
    margin-top: 28px;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.social-links > span {
    margin-inline-end: 6px;
}

.social-links a {
    display: inline-grid;
    width: 35px;
    height: 35px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 50%;
    place-items: center;
    color: var(--white);
    text-decoration: none;
}

.social-links a svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.contact-form-wrap {
    padding: 30px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 8px;
    background: rgb(255 255 255 / 6%);
}

.contact-form-wrap h3 {
    margin: 0 0 18px;
    font-size: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 13px;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-status {
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #a8d8c4;
    border-radius: 5px;
    color: #164b38;
    background: #eaf7f0;
    font-size: .9rem;
}

.form-status:not(.form-status-sent) {
    border-color: #e7c68f;
    color: #654711;
    background: #fff8e9;
}

.contact-form label {
    display: grid;
    gap: 5px;
    color: #d6e7e8;
    font-size: .78rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgb(255 255 255 / 23%);
    border-radius: 4px;
    color: var(--ink);
    background: var(--white);
    font-size: .9rem;
}

.contact-form textarea {
    resize: vertical;
}

.form-submit {
    justify-self: start;
    cursor: pointer;
}

.form-note {
    margin: 12px 0 0;
    color: #bdd5d6;
    font-size: .72rem;
}

.site-footer {
    display: flex;
    width: min(var(--content-width), calc(100% - 48px));
    min-height: 80px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: .75rem;
}

.site-footer p {
    margin: 14px 0;
}

.back-to-top {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

[dir="rtl"] .hero-decoration {
    right: auto;
    left: -35px;
}

[dir="rtl"] .faq-item summary {
    grid-template-columns: 24px 1fr 42px;
}

[dir="rtl"] .faq-number {
    grid-column: 3;
    grid-row: 1;
}

[dir="rtl"] .faq-item summary > span:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

[dir="rtl"] .faq-indicator {
    grid-column: 1;
    grid-row: 1;
}

[dir="rtl"] .form-submit {
    justify-self: end;
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 76px;
    }

    .menu-toggle {
        display: inline-flex;
        min-height: 42px;
        padding: 8px 10px;
        border: 1px solid #dce7e7;
        border-radius: 5px;
        align-items: center;
        gap: 10px;
        color: var(--navy);
        background: var(--white);
        font-size: .82rem;
        font-weight: 700;
    }

    .menu-toggle-lines,
    .menu-toggle-lines::before,
    .menu-toggle-lines::after {
        display: block;
        width: 17px;
        height: 2px;
        border-radius: 2px;
        background: var(--navy);
    }

    .menu-toggle-lines {
        position: relative;
    }

    .menu-toggle-lines::before,
    .menu-toggle-lines::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .menu-toggle-lines::before {
        top: -5px;
    }

    .menu-toggle-lines::after {
        top: 5px;
    }

    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 18px 24px 22px;
        border-top: 1px solid #edf1f1;
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
        background: var(--white);
        box-shadow: 0 14px 22px rgb(16 62 73 / 10%);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .language-picker {
        align-self: flex-start;
    }

    .nav-link {
        padding: 8px 9px;
    }

    .header-action {
        align-self: flex-start;
    }

    .hero,
    .hero-inner {
        min-height: 420px;
    }

    .hero-inner {
        padding-top: 72px;
    }

    .subpage-hero-inner {
        padding-top: 42px;
        padding-bottom: 45px;
    }

    .faq-full,
    .tutorials-section {
        width: calc(100% - 36px);
        padding-top: 38px;
        padding-bottom: 58px;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-decoration {
        top: 135px;
        right: -145px;
        width: 340px;
        opacity: .65;
    }

    [dir="rtl"] .hero-decoration {
        right: auto;
        left: -145px;
    }

    .hero-bottom {
        bottom: -117px;
    }

    .section {
        padding-top: 28px;
        padding-bottom: 70px;
    }

    .contact-inner {
        padding: 62px 0;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .site-footer {
        min-height: 90px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }
}

@media (max-width: 420px) {
    .header-inner,
    .hero-inner,
    .contact-inner,
    .site-footer {
        width: calc(100% - 36px);
    }

    .hero-inner {
        padding-top: 58px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .faq-item summary {
        grid-template-columns: 30px 1fr 28px 22px;
        gap: 9px;
        font-size: .88rem;
    }

    .faq-answer {
        margin-right: 30px;
        margin-left: 39px;
    }

    [dir="rtl"] .faq-answer {
        margin-right: 39px;
        margin-left: 30px;
    }

    .contact-form-wrap {
        padding: 19px;
    }
}

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

/* =============================================================================
   Partie 2 — composants andapub (absents de la version Copilot), même style
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ico {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex: none;
    vertical-align: -.15em;
}

[dir="rtl"] .ico--dir {
    transform: scaleX(-1);
}

/* Variante d'image du bandeau (config/app.php → hero_image) */
.hero.hero--carte,
.subpage-hero.subpage-hero--carte {
    background:
        linear-gradient(90deg, rgb(16 62 73 / 96%) 0%, rgb(7 92 113 / 88%) 58%, rgb(8 127 135 / 54%) 100%),
        url("../img/hero/carte.jpg") 70% center / cover no-repeat;
}

.nav-link[aria-current="page"] {
    color: var(--green);
}

/* ---- Réponses FAQ enrichies (listes, pastilles, captures) -------------------- */
.faq-answer.prose {
    white-space: normal;
}

.prose p {
    margin: 0 0 .7em;
}

.prose ul,
.prose ol {
    margin: 0 0 .8em;
    padding-inline-start: 1.2rem;
}

.prose li {
    margin-bottom: .35em;
}

.prose li::marker {
    color: var(--green);
    font-weight: 700;
}

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

.chip {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 4px;
    align-items: center;
    gap: 4px;
    color: var(--white);
    background: var(--green);
    font-size: .78rem;
    font-weight: 700;
    vertical-align: middle;
}

.chip--icon {
    padding: 3px 5px;
}

.chip .ico {
    width: 14px;
    height: 14px;
}

.toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    vertical-align: middle;
}

.inline-img img {
    display: inline-block;
    max-height: 26px;
    width: auto;
    vertical-align: middle;
}

.shot {
    margin: 10px 0;
}

.shot img,
.faq-illustrations img {
    display: block;
    width: auto;
    max-width: min(100%, 560px);
    height: auto;
    margin: 10px auto;
    padding: 3px;
    border: 1px solid #e1e9e9;
    border-radius: 6px;
    background: var(--white);
}

.faq-illustrations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.faq-illustrations img {
    max-height: 120px;
    margin: 6px 0 0;
}

.faq-permalink {
    margin: 12px 0 0;
    font-size: .78rem;
}

.faq-permalink a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.faq-permalink a.is-copied {
    color: var(--green);
}

html:not(.js) .faq-permalink {
    display: none;
}

.faq-item:target {
    background: #f4f9f8;
}

/* ---- FAQ : recherche et accès aux rubriques ------------------------------------ */
.faq-tools {
    margin-bottom: 40px;
}

.faq-search {
    display: flex;
    min-height: 52px;
    margin: 0 auto 18px;
    padding: 0 14px;
    border: 1px solid #d3e0e1;
    border-radius: 5px;
    align-items: center;
    gap: 10px;
    background: var(--white);
    box-shadow: 0 12px 35px rgb(16 62 73 / 8%);
}

.faq-search:focus-within {
    border-color: var(--green);
}

.faq-search svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.faq-search input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: .95rem;
}

.faq-search input:focus {
    outline: none;
}

.faq-search output {
    flex: none;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.faq-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.faq-jump a {
    padding: 9px 15px;
    border: 1px solid #d3e0e1;
    border-radius: 999px;
    color: var(--navy);
    background: var(--white);
    font-size: .82rem;
    text-decoration: none;
}

.faq-jump a:hover {
    border-color: var(--green);
    color: var(--green);
}

.faq-empty {
    padding: 22px;
    border: 1px dashed #d3e0e1;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.faq-category[hidden],
.faq-item[hidden] {
    display: none;
}

/* ---- Formulaire : erreurs par champ et message de résultat -------------------- */
.field-error {
    margin: 2px 0 0;
    color: #ffd8cc;
    font-size: .76rem;
    font-weight: 500;
}

.contact-form [aria-invalid="true"] {
    border-color: #ff9c85;
    box-shadow: 0 0 0 2px rgb(255 156 133 / 35%);
}

.form-submit[disabled] {
    cursor: progress;
    opacity: .7;
}

/* ---- Tutoriels : complément des cartes Copilot ---------------------------------- */
.tutorial-card {
    display: flex;
    flex-direction: column;
}

.tutorial-card h2 {
    padding-bottom: 6px;
}

.tutorial-meta {
    display: flex;
    margin: 0;
    padding: 18px 22px 0;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--green);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tutorial-meta span + span {
    color: var(--muted);
}

.tutorial-card h2 + p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--muted);
    font-size: .9rem;
}

.tutorial-card.is-target {
    border-color: var(--green);
}

.tutorial-soon {
    display: flex;
    padding: 30px;
    border: 1px dashed #c9dadb;
    border-radius: 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    background: #f4f9f8;
}

.tutorial-soon h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.15rem;
}

.tutorial-soon p {
    margin: 0 0 8px;
    color: var(--muted);
}

/* ---- Page maintenance du géoportail ---------------------------------------------- */
.maintenance-box {
    max-width: 760px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

.maintenance-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---- Page contact : cartes de coordonnées ---------------------------------------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.contact-card {
    padding: 26px 24px;
    border: 1px solid #e1e9e9;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 12px 35px rgb(16 62 73 / 8%);
}

.contact-card .eyebrow {
    margin-bottom: 8px;
    color: var(--green);
}

.contact-card h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.15rem;
}

.contact-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: .92rem;
}

.contact-card a {
    color: var(--blue);
    font-weight: 700;
    text-decoration-color: rgb(0 87 132 / 35%);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.contact-faq {
    margin-top: 28px;
}

.contact-faq h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.contact-faq p {
    margin: 0 0 12px;
    color: #c5d8d9;
}

.contact-faq ul {
    display: grid;
    margin: 0 0 12px;
    padding: 0;
    gap: 8px;
    list-style: none;
}

.contact-faq a {
    color: var(--white);
    text-decoration-color: rgb(255 255 255 / 40%);
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media print {
    .site-header,
    .hero-decoration,
    .hero-bottom,
    .contact-form-wrap,
    .faq-tools,
    .faq-permalink {
        display: none !important;
    }

    .hero,
    .subpage-hero,
    .contact-section {
        color: var(--ink);
        background: none;
    }
}
