/**
 * ERYX MAROC V1 - 2026
 * Réalisé Par : ERYX MAROC TEAM
 * Dernier Mise a jour : 03/09/2026 - 11:00 AM
 * Fichier : assets/css/site-overrides.css
 * Rôle : Correctifs CSS ciblés et règles responsives complémentaires du site public.
 */
/** Correctifs UI/UX validés. */

:root {
    --eryx-action: #244a92;
    --eryx-action-hover: #16366f;
    --eryx-action-soft: #eef4ff;
    --eryx-border: #d7e0eb;
    --eryx-text: #17243a;
    --eryx-muted: #5f6f84;
    --eryx-surface: #ffffff;
    --eryx-surface-soft: #f7f9fc;
    --eryx-danger: #a52820;
    --eryx-disabled-bg: #e8edf3;
    --eryx-disabled-text: #68778a;
    --eryx-focus-ring: 0 0 0 4px rgba(36, 74, 146, .18);
}

/* Contraste cohérent des éléments interactifs modifiés. */
.page-faq button,
.page-projets-immersive button,
.page-carrieres button,
.mv-card,
.value-filter-btn {
    -webkit-tap-highlight-color: transparent;
}

.page-faq :where(button,a):focus-visible,
.page-projets-immersive :where(button,a):focus-visible,
.page-carrieres :where(button,a):focus-visible,
.mv-card:focus-visible,
.value-filter-btn:focus-visible {
    outline: 3px solid rgba(36, 74, 146, .38);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Mission / Vision — flip card accessible au clic/clavier.
   Le recto reste volontairement synthétique ; le détail est au verso.
   -------------------------------------------------------------------------- */
.mv-section {
    overflow: clip;
}

.mv-grid {
    align-items: stretch;
}

.mv-card {
    min-width: 0;
    min-height: 390px;
    cursor: pointer;
    perspective: 1400px;
    border-radius: 20px;
    background: transparent;
}

.mv-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 390px;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.2,.72,.2,1);
}

.mv-card.is-flipped .mv-card-inner {
    transform: rotateY(180deg);
}

.mv-card-front,
.mv-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--eryx-border);
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(20, 38, 68, .10);
}

.mv-card-front {
    align-items: center;
    text-align: center;
    background: linear-gradient(160deg, #fff 0%, #f4f7fc 100%);
    color: var(--eryx-text);
}

.mv-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(155deg, #112a57 0%, #244a92 100%);
    color: #fff;
}

.mv-card-front h3,
.mv-card-back h4 {
    margin: 18px 0 10px;
}

.mv-card-back h4 {
    color: #fff;
}

.mv-card-back-summary {
    margin: 0 0 20px;
    color: rgba(255,255,255,.88);
    line-height: 1.65;
}

.mv-card-back ul {
    display: grid;
    gap: 12px;
}

.mv-card-back li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.45;
}

.mv-card-back li i {
    margin-top: .22em;
    color: #b9d4ff;
}

.mv-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--eryx-action-soft);
    color: var(--eryx-action);
    font-weight: 750;
    font-size: .85rem;
}

.mv-card-hint i {
    transition: transform .35s ease;
}

.mv-card:hover .mv-card-hint i,
.mv-card:focus-visible .mv-card-hint i {
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Valeurs — filtre horizontal, pas d'onglets latéraux.
   -------------------------------------------------------------------------- */
.values-carousel {
    display: block;
}

.values-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 12px;
    border: 1px solid var(--eryx-border);
    border-radius: 14px;
    background: var(--eryx-surface);
    box-shadow: 0 10px 28px rgba(20, 38, 68, .06);
}

.values-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 4px;
    color: var(--eryx-muted);
    font-size: .86rem;
    font-weight: 750;
}

.value-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--eryx-border);
    border-radius: 9px;
    background: #fff;
    color: var(--eryx-text);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.value-filter-btn:hover {
    border-color: #91a8cb;
    color: var(--eryx-action);
    transform: translateY(-1px);
}

.value-filter-btn.active,
.value-filter-btn[aria-pressed="true"] {
    border-color: var(--eryx-action);
    background: var(--eryx-action);
    color: #fff;
}

.value-filter-btn .value-nav-index {
    opacity: .75;
    font-size: .78rem;
}

.value-slide[hidden] {
    display: none !important;
}

.values-track {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   Mot du Directeur — photo, carte et citations alignées.
   -------------------------------------------------------------------------- */
.ceo-premium-grid {
    align-items: stretch;
}

.ceo-premium-visual,
.ceo-premium-quote {
    min-width: 0;
}

.ceo-photo-card {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--eryx-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 38, 68, .09);
}

.ceo-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #edf2f8;
}

.ceo-photo-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.ceo-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.ceo-photo-glow {
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    background: linear-gradient(180deg, transparent, rgba(10, 25, 55, .28));
    pointer-events: none;
}

.ceo-quote-mini {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 14px;
    background: rgba(16, 39, 82, .90);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.ceo-quote-mini .fa-quote-left {
    font-size: 1.15rem;
    line-height: 1;
}

.ceo-info-plate {
    padding: 18px 6px 4px;
}

.ceo-premium-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--eryx-border);
    border-radius: 20px;
    background: linear-gradient(150deg, #f9fbfe 0%, #f1f5fb 100%);
}

.ceo-quote-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--eryx-action);
    font-weight: 800;
}

.ceo-quote-kicker .fa-quote-left {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--eryx-action);
    color: #fff;
    font-size: .95rem;
}

.ceo-blockquote-modern {
    margin: 22px 0;
    color: var(--eryx-text);
}

.ceo-blockquote-modern p + p {
    margin-top: 16px;
}

/* --------------------------------------------------------------------------
   FAQ — respiration, textes et réponses sans débordement.
   -------------------------------------------------------------------------- */
.faq-category {
    scroll-margin-top: 110px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.faq-category-header {
    gap: 16px;
    margin-bottom: 16px;
}

.faq-item {
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    min-height: 68px;
    gap: 14px;
    padding: 16px clamp(16px, 3vw, 24px);
}

.faq-question-text {
    min-width: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.faq-answer-content {
    padding: 8px clamp(18px, 4vw, 72px) 24px;
    color: #435269;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.faq-answer-content :where(p,ul,ol) + :where(p,ul,ol) {
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Carrières — candidature visible même pour une offre clôturée.
   -------------------------------------------------------------------------- */
.offre-col-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.offre-toggle-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
}





.offre-toggle-btn {
    display: grid;
    place-items: center;
    width: 42px;
    padding: 0;
    border: 1px solid var(--eryx-border);
    background: #fff;
    color: var(--eryx-text);
    cursor: pointer;
}

.offre-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.offre-toggle-btn i {
    transition: transform .2s ease;
}

@media (max-width: 980px) {
    .ceo-premium-grid {
        grid-template-columns: 1fr;
    }

    .ceo-photo-card {
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .mv-card,
    .mv-card-inner,
    .mv-card-front,
    .mv-card-back {
        min-height: 350px;
    }

    .values-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px;
        scrollbar-width: thin;
    }

    .values-filter-label {
        flex: 0 0 auto;
    }

    .value-filter-btn {
        flex: 0 0 auto;
    }

    .offre-col-action {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .values-filter-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }

    .ceo-photo-card {
        padding: 10px;
    }

    .faq-question {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-card-inner,
    .value-filter-btn,
    .offre-toggle-btn i {
        transition: none;
    }
}


/* Le flip Mission/Vision est déclenché volontairement au clic ou au clavier. */
.mv-card:hover .mv-card-inner,
.mv-card:focus-within .mv-card-inner {
    transform: none;
}
.mv-card.is-flipped .mv-card-inner,
.mv-card.is-flipped:hover .mv-card-inner,
.mv-card.is-flipped:focus-within .mv-card-inner {
    transform: rotateY(180deg);
}

/* Design system commun des filtres interactifs : contraste et états cohérents. */
.page-projets-immersive .btn-filtre,
.page-faq .faq-nav-btn,
.page-actualites .news-filter-btn,
.page-carrieres .carrieres-filter-toggle,
.page-filter-toggle {
    border: 1px solid var(--eryx-border);
    background: #fff;
    color: var(--eryx-text);
    border-radius: 9px;
    box-shadow: none;
}
.page-projets-immersive .btn-filtre:hover,
.page-faq .faq-nav-btn:hover,
.page-actualites .news-filter-btn:hover,
.page-carrieres .carrieres-filter-toggle:hover,
.page-filter-toggle:hover {
    border-color: #91a8cb;
    background: var(--eryx-action-soft);
    color: var(--eryx-action);
}
.page-projets-immersive .btn-filtre.active,
.page-faq .faq-nav-btn.active,
.page-faq .faq-nav-btn[aria-pressed="true"],
.page-actualites .news-filter-btn[aria-pressed="true"],
.page-filter-toggle[aria-expanded="true"],
.page-carrieres .carrieres-filter-toggle[aria-expanded="true"] {
    border-color: var(--eryx-action);
    background: var(--eryx-action);
    color: #fff;
}
.page-carrieres .filtre-select {
    border-color: var(--eryx-border);
    color: var(--eryx-text);
    background-color: #fff;
}
.page-carrieres .filtre-select:focus {
    border-color: var(--eryx-action);
    box-shadow: var(--eryx-focus-ring);
}


/* États fermés des candidatures : couleur neutre et interaction désactivée. */
.btn-postuler:disabled,
.btn-postuler.is-disabled {
    background: #e4e7ec !important;
    border-color: #cfd4dc !important;
    color: #475467 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
}


/**
 * Correctifs ciblés de présentation et de responsive.
 * Cette couche est chargée après le socle pour neutraliser
 * uniquement les conflits confirmés sans refondre le design global.
 */

:root {
    --eryx-ui-action: #244a92;
    --eryx-ui-action-hover: #17386f;
    --eryx-ui-border: #dbe4ef;
    --eryx-ui-surface: #ffffff;
    --eryx-ui-soft: #f6f9fd;
    --eryx-ui-text: #17243a;
    --eryx-ui-muted: #607086;
}

/* Accueil : aucun overlay critique ne dépend d'un pseudo-élément. */
.home .slider-container::before,
.home .slider-container::after,
.home .stats-section::before,
.home .news-section::before {
    content: none !important;
    display: none !important;
}

.home-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.stats-overlay {
    background: rgba(10, 20, 60, .87);
}

.news-overlay {
    background: linear-gradient(180deg, rgba(10, 20, 60, .88), rgba(10, 20, 60, .92));
}


/* Mission / Vision : deux cartes flip accessibles sans conflit de cascade. */
.mv-section .mv-connection-line,
.mv-section .mv-connector {
    display: none !important;
}

.mv-section .mv-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(18px, 3vw, 34px) !important;
    align-items: stretch !important;
    max-width: 1080px;
    margin-inline: auto;
}

.mv-section .mv-card {
    position: relative !important;
    height: auto !important;
    min-height: 390px !important;
    perspective: 1400px !important;
    isolation: isolate;
    cursor: pointer;
    border-radius: 20px !important;
    background: transparent !important;
}

.mv-section .mv-card-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 390px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: transparent !important;
    box-shadow: none !important;
    transform-style: preserve-3d !important;
    transition: transform .55s cubic-bezier(.2, .72, .2, 1) !important;
}

.mv-section .mv-card:hover .mv-card-inner,
.mv-section .mv-card:focus-within .mv-card-inner {
    transform: none !important;
}

.mv-section .mv-card.is-flipped .mv-card-inner,
.mv-section .mv-card.is-flipped:hover .mv-card-inner,
.mv-section .mv-card.is-flipped:focus-within .mv-card-inner {
    transform: rotateY(180deg) !important;
}

.mv-section .mv-card-front,
.mv-section .mv-card-back {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 390px !important;
    padding: clamp(26px, 4vw, 42px) !important;
    border: 1px solid var(--eryx-ui-border) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    box-shadow: 0 18px 50px rgba(20, 38, 68, .10) !important;
}

.mv-section .mv-card-front {
    align-items: center !important;
    text-align: center !important;
    background: linear-gradient(155deg, #fff 0%, #f3f7fc 100%) !important;
    color: var(--eryx-ui-text) !important;
    transform: rotateY(0deg) !important;
}

.mv-section .mv-card-back {
    align-items: stretch !important;
    text-align: left !important;
    background: linear-gradient(155deg, #112a57 0%, #244a92 100%) !important;
    color: #fff !important;
    transform: rotateY(180deg) !important;
}

.mv-section .mv-card-back h4,
.mv-section .mv-card-back p,
.mv-section .mv-card-back li {
    color: #fff !important;
}

.mv-section .mv-card-back ul {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.mv-section .mv-card-hint {
    display: inline-flex !important;
}

.mv-section .mv-icon-wrapper {
    margin: 0 auto 18px !important;
}

/* Valeurs : contrôle dans l'en-tête de la carte, filtre repliable sur mobile. */
.values-carousel-section .values-carousel {
    display: block !important;
}

.values-card-frame {
    overflow: hidden;
    border: 1px solid var(--eryx-ui-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.values-card-controls {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--eryx-ui-border) !important;
    border-radius: 0 !important;
    background: var(--eryx-ui-soft) !important;
    box-shadow: none !important;
}

.values-control-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--eryx-ui-text);
    font-weight: 800;
    white-space: nowrap;
}

.values-control-title i {
    color: var(--eryx-ui-action);
}

.values-control-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.values-card-controls .value-filter-btn {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--eryx-ui-border);
    border-radius: 9px;
    background: #fff;
    color: var(--eryx-ui-text);
    box-shadow: none;
}

.values-card-controls .value-filter-btn.active,
.values-card-controls .value-filter-btn[aria-pressed="true"] {
    border-color: var(--eryx-ui-action);
    background: var(--eryx-ui-action);
    color: #fff;
}

.values-card-frame .values-track {
    padding: clamp(14px, 2vw, 22px);
}

.values-card-frame .value-card-large {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.values-filter-toggle {
    display: none !important;
    margin: 0 !important;
}

/* Direction Générale : densité maîtrisée et alignement photo/citation. */
.ceo-magazine-section.ceo-premium-section {
    padding: clamp(64px, 7vw, 84px) 0 !important;
}

.ceo-magazine-section .ceo-section-header {
    margin-bottom: clamp(28px, 4vw, 42px) !important;
}

.ceo-magazine-section .ceo-premium-grid {
    gap: clamp(22px, 3vw, 34px) !important;
    align-items: stretch !important;
}

.ceo-magazine-section .ceo-photo-card,
.ceo-magazine-section .ceo-premium-quote {
    height: 100% !important;
}

.ceo-magazine-section .ceo-photo-card {
    padding: 12px !important;
}

.ceo-magazine-section .ceo-info-plate {
    padding: 14px 6px 2px !important;
}

.ceo-magazine-section .ceo-premium-quote {
    padding: clamp(24px, 3.4vw, 38px) !important;
}

.ceo-magazine-section .ceo-blockquote-modern {
    margin: 16px 0 !important;
}

.ceo-magazine-section .ceo-blockquote-modern p + p {
    margin-top: 12px !important;
}

.ceo-magazine-section .ceo-quote-mini {
    width: 46px !important;
    height: 46px !important;
    right: 14px !important;
    bottom: 14px !important;
}

.ceo-magazine-section .ceo-quote-kicker .fa-quote-left {
    width: 36px !important;
    height: 36px !important;
    font-size: .9rem !important;
}

/* Projets : exactement le même langage visuel que le filtre FAQ. */
.page-projets-immersive .project-filter-panel {
    margin-bottom: 32px !important;
}

.page-projets-immersive .project-filter-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid var(--eryx-ui-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06) !important;
}

.page-projets-immersive .project-filter-nav .faq-nav-btn {
    width: auto !important;
    min-height: 42px !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    white-space: normal !important;
}

/* Carrières : le bouton Postuler n'existe plus dans la ligne de synthèse. */
.page-carrieres .offre-col-action {
    min-width: 46px;
    justify-content: flex-end !important;
}

.page-carrieres .offre-details .offre-postuler {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .mv-section .mv-grid {
        grid-template-columns: 1fr !important;
    }

    .mv-section .mv-card,
    .mv-section .mv-card-inner,
    .mv-section .mv-card-front,
    .mv-section .mv-card-back {
        min-height: 350px !important;
    }

    .values-filter-toggle {
        display: inline-flex !important;
        width: calc(100% - 24px) !important;
        margin: 12px !important;
    }

    .values-card-controls.page-filter-panel {
        display: none !important;
        margin: 0 12px 12px !important;
        width: calc(100% - 24px) !important;
        padding: 12px !important;
        border: 1px solid var(--eryx-ui-border) !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    .values-card-controls.page-filter-panel.is-open {
        display: block !important;
    }

    .values-control-title {
        margin-bottom: 10px;
    }

    .values-control-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .values-card-controls .value-filter-btn {
        justify-content: flex-start;
        width: 100%;
    }

    .page-projets-immersive .project-filter-nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .page-projets-immersive .project-filter-nav .faq-nav-btn {
        width: 100% !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 480px) {
    .values-control-buttons,
    .page-projets-immersive .project-filter-nav {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-section .mv-card-inner {
        transition: none !important;
    }
}


/** Correctifs ciblés Projets et Candidature. */

/* Le filtre Projets doit toujours retirer physiquement les cartes non retenues. */
.page-projets-immersive .projet-card-immersive[hidden],
.page-projets-immersive .no-projets[hidden] {
    display: none !important;
}

/* État sans offre active dans l'étape Profil de la candidature. */
.active-offers-empty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid rgba(50, 89, 165, .16);
    border-radius: 12px;
    background: rgba(50, 89, 165, .055);
    color: #24324a;
}

.active-offers-empty[hidden] {
    display: none !important;
}

.active-offers-empty > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #3259a5;
    font-size: 1.05rem;
}

.active-offers-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #17233a;
}

.active-offers-empty p {
    margin: 0;
    color: #59657a;
    line-height: 1.55;
}

.candidature-form .radio-label.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.candidature-form .radio-label.is-disabled input {
    cursor: not-allowed;
}


/* ========================================================================== 
   Composants responsives et ajustements de présentation du site officiel
   ========================================================================== */

/* Projets : le panneau de filtres couvre aussi les tablettes, sans changer les autres pages. */
@media (max-width: 1024px) {
    .page-projets-immersive .page-filter-toggle {
        display: inline-flex !important;
    }
    .page-projets-immersive .project-filter-panel.page-filter-panel {
        display: none !important;
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 0 20px !important;
        padding: 12px !important;
        overflow: visible !important;
        transform: none !important;
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .06) !important;
    }
    .page-projets-immersive .project-filter-panel.page-filter-panel.is-open {
        display: block !important;
    }
    .page-projets-immersive .project-filter-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .page-projets-immersive .project-filter-nav .faq-nav-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
}

@media (max-width: 560px) {
    .page-projets-immersive .project-filter-nav {
        grid-template-columns: 1fr !important;
    }
}

/* Articles et projets : un seul composant de partage centré et cohérent. */
.page-article-detail .content-share-cta,
.page-projet-detail .content-share-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 3rem !important;
    padding: 1.5rem !important;
    background: #f8fafc !important;
    border: 1px solid #e8edf4 !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: none !important;
}
.page-article-detail .content-share-cta > span,
.page-projet-detail .content-share-cta > span {
    display: block !important;
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}
.page-article-detail .content-share-cta .share-links,
.page-projet-detail .content-share-cta .share-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: .75rem !important;
    width: 100% !important;
}
.page-article-detail .content-share-cta .share-link,
.page-projet-detail .content-share-cta .share-link {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--blue) !important;
    border: 1px solid #dfe7f2 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
}
.page-article-detail .content-share-cta .share-link:hover,
.page-article-detail .content-share-cta .share-link:focus-visible,
.page-projet-detail .content-share-cta .share-link:hover,
.page-projet-detail .content-share-cta .share-link:focus-visible {
    background: var(--blue) !important;
    color: #fff !important;
    border-color: var(--blue) !important;
    transform: translateY(-2px) !important;
    outline: 3px solid rgba(50, 89, 165, .20) !important;
    outline-offset: 2px !important;
}

/* FAQ : sous-titre centré et relation numéro/question stable à tous les breakpoints. */
.page-faq .faq-filter-subtitle {
    max-width: 760px;
    margin: 0 auto 18px !important;
    text-align: center !important;
    line-height: 1.6;
}
.page-faq .faq-question {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    column-gap: 12px !important;
    text-align: left !important;
}
.page-faq .faq-number {
    display: inline-flex !important;
    flex: 0 0 auto !important;
}
.page-faq .faq-question-text {
    min-width: 0 !important;
    text-align: left !important;
    padding-left: 2px !important;
    overflow-wrap: anywhere !important;
}
@media (max-width: 768px) {
    .page-faq .faq-filter-panel .faq-filter-subtitle {
        text-align: center !important;
        margin: 0 auto 14px !important;
    }
    .page-faq .faq-question {
        align-items: center !important;
        grid-template-columns: 30px minmax(0, 1fr) 30px !important;
        column-gap: 10px !important;
        padding: 14px 14px !important;
    }
    .page-faq .faq-number {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: .75rem !important;
    }
    .page-faq .faq-question-text {
        padding-left: 0 !important;
        font-size: .92rem !important;
        line-height: 1.45 !important;
    }
    .page-faq .faq-icon {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Candidature : résumé d'étape visible sans effacer les valeurs saisies. */
.step-validation-summary {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #f0c9c5;
    border-radius: 10px;
    background: #fff6f5;
    color: #8a2d26;
    font-size: .92rem;
    line-height: 1.55;
}
.step-validation-summary[hidden] { display: none !important; }

/* Aides de saisie accessibles et messages contextuels des formulaires publics. */
.form-group,
.newsletter-input-group,
.field {
    position: relative;
}

.form-error:not(:empty),
.eryx-input-tooltip:not(:empty) {
    display: block;
    margin-top: 0.45rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(170, 35, 35, 0.28);
    border-radius: 6px;
    background: #fff6f6;
    color: #8a1f1f;
    font-size: 0.82rem;
    line-height: 1.35;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #a62323 !important;
    box-shadow: 0 0 0 3px rgba(166, 35, 35, 0.1);
}

input[aria-invalid="false"]:focus,
select[aria-invalid="false"]:focus,
textarea[aria-invalid="false"]:focus {
    outline: 2px solid rgba(36, 74, 146, 0.25);
    outline-offset: 1px;
}

/* États de retour du formulaire Newsletter. */
.status-success,
.status-error {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-size: 0.84rem;
    line-height: 1.4;
}
.status-success {
    border: 1px solid #b8d7be;
    background: #eef8f0;
    color: #1f5f2c;
}
.status-error {
    border: 1px solid #e3b6b6;
    background: #fff3f3;
    color: #8a1f1f;
}
