/*
 Theme Name:   One Tilt
 Theme URI:    https://onetilt.fr
 Description:  Thème enfant de Twenty Twenty-Four pour One Tilt - Cabinet de recrutement BTP
 Author:       One Tilt
 Author URI:   https://onetilt.fr
 Template:     twentytwentyfour
 Version:      1.0.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  onetilt
*/

/* =====================================================
   ONE TILT - CSS GLOBAL
   Chargé sur TOUTES les pages du site
   ===================================================== */

/* ========== POLICE ORKNEY ========== */
@font-face {
    font-family: 'Orkney';
    src: url('/wp-content/themes/onetilt/fonts/Orkney-Regular.woff2') format('woff2'),
         url('/wp-content/themes/onetilt/fonts/Orkney-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Orkney';
    src: url('/wp-content/themes/onetilt/fonts/Orkney-Bold.woff2') format('woff2'),
         url('/wp-content/themes/onetilt/fonts/Orkney-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========== VARIABLES & RESET ========== */
:root {
    /* Charte One Tilt */
    --bleu-petrole: #22577a;
    --bleu-petrole-dark: #1a4460;
    --bleu-petrole-light: #2d6a91;
    --bleu-petrole-pale: #e8f0f4;

    --jaune-cuivre: #ffd664;
    --jaune-cuivre-light: #ffe28a;
    --jaune-cuivre-dark: #e5be4d;

    --ivoire: #f7f4ed;
    --ivoire-light: #fcfaf6;
    --ivoire-dark: #efe9dc;

    --anthracite: #2c2c2c;
    --anthracite-light: #4a4a4a;
    --anthracite-muted: #6b6b6b;

    --blanc: #ffffff;

    /* Header height (pour pages internes) */
    --header-height: 110px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(34, 87, 122, 0.06);
    --shadow-md: 0 8px 24px rgba(34, 87, 122, 0.1);
    --shadow-lg: 0 16px 48px rgba(34, 87, 122, 0.12);
    --shadow-cuivre: 0 8px 24px rgba(255, 214, 100, 0.35);

    /* Gradients */
    --gradient-petrole: linear-gradient(135deg, var(--bleu-petrole-dark) 0%, var(--bleu-petrole) 100%);
    --gradient-cuivre: linear-gradient(135deg, var(--jaune-cuivre) 0%, var(--jaune-cuivre-light) 100%);

    /* Typography */
    --font-primary: 'Orkney', 'Nunito Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 100px;
}

@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
}
/* ========================================
   GLOBAL - Police Hero (toutes pages)
   ======================================== */
.hero-title,
[class*="hero"] h1,
[class*="hero-"] [class*="-title"] {
    font-family: 'Orkney', 'Nunito Sans', system-ui, sans-serif !important;
    font-style: normal !important;
    font-weight: 800 !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin-top: 0 !important;
}

body {
    font-family: var(--font-primary);
    background: var(--ivoire);
    color: var(--anthracite);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force Orkney sur TOUS les éléments — override Twenty Twenty-Four */
body *,
body *::before,
body *::after,
.wp-site-blocks,
.wp-site-blocks *,
.entry-content,
.entry-content *,
.wp-block-post-content,
.wp-block-post-content *,
.wp-block-group,
.wp-block-group *,
h1, h2, h3, h4, h5, h6,
p, span, a, li, button, input, select, textarea {
    font-family: var(--font-primary) !important;
}

body.admin-bar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* ==========================================================
   NAVIGATION - Structure de base
   ========================================================== */

.nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 9999 !important;
    padding: 1rem 2rem !important;
    background: transparent !important;
    transition: all 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

body.admin-bar .nav {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nav {
        top: 46px !important;
    }
}

.nav.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    padding: 0.8rem 2rem !important;
}


/* ==========================================================
   NAVIGATION - Logo
   ========================================================== */

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    margin-left: 60px;
}

.nav-logo-img {
    height: 60px;
    width: auto;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-cuivre);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--anthracite);
    transform: rotate(-3deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-sm);
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(0deg) scale(1.05);
}

.nav-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blanc);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* Gestion des logos (blanc / couleur) */
.nav-logo-white {
    display: block;
}

.nav-logo-color {
    display: none;
}

.nav.scrolled .nav-logo-white {
    display: none;
}

.nav.scrolled .nav-logo-color {
    display: block;
}


/* ==========================================================
   NAVIGATION - Liens
   ========================================================== */

.nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-left: auto;
    margin-right: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* États transparent vs scrolled */
.nav:not(.scrolled) .nav-link,
.nav:not(.scrolled) .nav-logo-text {
    color: #ffffff !important;
}

.nav.scrolled .nav-link,
.nav.scrolled .nav-logo-text {
    color: #22577a !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}


/* ==========================================================
   NAVIGATION - Mode Switch Candidat/Entreprise
   ========================================================== */

.mode-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav.scrolled .mode-switch {
    background: var(--ivoire-dark);
    border-color: rgba(34, 87, 122, 0.1);
}

.mode-switch-btn {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.nav.scrolled .mode-switch-btn {
    color: var(--anthracite-muted);
}

.mode-switch-btn.active {
    background: var(--jaune-cuivre);
    color: #2c2c2c !important;
    box-shadow: var(--shadow-sm);
}

.mode-switch-btn:not(.active):hover {
    color: var(--blanc);
    background: rgba(255, 255, 255, 0.1);
}

.nav.scrolled .mode-switch-btn:not(.active):hover {
    color: var(--bleu-petrole);
    background: rgba(34, 87, 122, 0.05);
}

.nav:not(.scrolled) .mode-switch-btn:not(.active):hover {
    text-decoration: underline !important;
}

/* Mode switch desktop/mobile */
.mode-switch--mobile {
    display: none;
}

.mode-switch--desktop {
    display: flex;
}


/* ==========================================================
   NAVIGATION - Bouton CTA
   ========================================================== */

.nav-cta {
    background: var(--gradient-cuivre);
    color: #2c2c2c !important;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-family: var(--font-primary);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cuivre);
}

.nav-cta-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-cta:hover .nav-cta-icon {
    transform: translateX(3px);
}

/* CTA Desktop - Afficher selon le mode */
.nav-cta--desktop[data-cta="candidat"] {
    display: inline-flex;
}

.nav-cta--desktop[data-cta="entreprise"] {
    display: none;
}

/* Mode entreprise : inverser les CTA */
body.mode-entreprise .nav-cta--desktop[data-cta="entreprise"] {
    display: inline-flex;
}

body.mode-entreprise .nav-cta--desktop[data-cta="candidat"] {
    display: none;
}

/* ==========================================================
   NAVIGATION - Dropdown Secteurs (Desktop)
   ========================================================== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
}

.nav-dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-arrow,
.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* Menu déroulant */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(34, 87, 122, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

/* Flèche du dropdown */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
}

/* Affichage au hover */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Items du dropdown */
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #2c2c2c;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: #e8f0f4;
    color: #22577a;
}

.nav-dropdown-icon {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f4ed;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
    background: #ffd664;
    transform: scale(1.1);
}

.nav-dropdown-text {
    flex: 1;
}

/* Dropdown trigger - états couleur */
.nav:not(.scrolled) .nav-dropdown-trigger {
    color: #ffffff !important;
}

.nav:not(.scrolled) .nav-dropdown-arrow {
    stroke: #ffffff;
}

.nav.scrolled .nav-dropdown-trigger {
    color: #22577a !important;
}

.nav.scrolled .nav-dropdown-arrow {
    stroke: #22577a;
}

/* Underline effet comme nav-link */
.nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown.active .nav-dropdown-trigger::after {
    width: calc(100% - 20px);
}


/* ==========================================================
   NAVIGATION - Hamburger Menu
   ========================================================== */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    z-index: 1001;
}

.nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-hamburger-line {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animé quand ouvert */
.nav-hamburger.active .nav-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active .nav-hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active .nav-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hamburger scrollé */
.nav.scrolled .nav-hamburger {
    background: rgba(34, 87, 122, 0.1);
    border-color: rgba(34, 87, 122, 0.2);
}

.nav.scrolled .nav-hamburger-line {
    background: #22577a;
}


/* ==========================================================
   NAVIGATION - Overlay
   ========================================================== */

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    touch-action: manipulation;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================
   BOUTONS GLOBAUX
   ========================================================== */

.btn {
    padding: 12px var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    border: none;
}

.btn-primary {
    background: var(--gradient-cuivre);
    color: var(--anthracite);
    box-shadow: 0 4px 20px rgba(255, 214, 100, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 214, 100, 0.45);
}

.btn-outline-light {
    background: transparent;
    color: var(--blanc);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: var(--blanc);
    color: var(--bleu-petrole);
    border-color: var(--blanc);
    transform: translateY(-3px);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}


/* ==========================================================
   COMPOSANTS - Cartes Secteurs
   ========================================================== */

.sectors,
.sectors * {
    font-family: 'Orkney', 'Nunito Sans', system-ui, sans-serif !important;
}

.sectors {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sectors-header {
    text-align: left;
    margin-bottom: 3rem;
}

.sectors-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #22577a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.sectors-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: #ffd664;
    border-radius: 2px;
}

.sectors-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.sectors-subtitle {
    font-size: 1.05rem;
    color: #6b6b6b;
    max-width: 500px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.sector-card {
    background: #ffffff;
    border: 2px solid #e8f0f4;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.sector-card:hover {
    border-color: #22577a;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(34, 87, 122, 0.12);
}

.sector-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8f0f4 0%, #f7f4ed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.sector-card:hover .sector-icon {
    background: #ffd664;
}

.sector-card:hover .sector-icon span {
    filter: brightness(0) invert(1);
}

.sector-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.sector-count {
    font-size: 0.85rem;
    color: #22577a;
    font-weight: 600;
}

.sector-card--green .sector-icon {
    background: linear-gradient(135deg, #e8f4e8 0%, #f0f7ed 100%);
}


/* ==========================================================
   COMPOSANTS - Cartes Offres d'emploi
   ========================================================== */

.job-card {
    background: #ffffff;
    border: 1px solid #e8f0f4;
    border-radius: 16px;
    padding: 1.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.job-card:hover {
    border-color: #22577a;
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(34, 87, 122, 0.1);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-card-badge {
    background: #e8f0f4;
    color: #22577a;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}


.job-card-new {
    background: #ffd664;
    color: #2c2c2c;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.job-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.job-card-company {
    font-size: 0.9rem;
    color: #22577a;
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.job-card-detail {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b6b6b;
}

.job-card-detail-icon {
    width: 16px;
    height: 16px;
    color: #22577a;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e8f0f4;
}

.job-card-date {
    font-size: 0.8rem;
    color: #6b6b6b;
}

.job-card-link {
    color: #22577a;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.3s ease;
}

.job-card:hover .job-card-link {
    gap: 0.6rem;
}

.job-card-link-icon {
    width: 16px;
    height: 16px;
}


/* ==========================================================
   COMPOSANTS - Cartes Articles
   ========================================================== */

.article-card {
    background: #ffffff;
    border: 1px solid #e8f0f4;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: #22577a;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(34, 87, 122, 0.12);
}

.article-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e8f0f4 0%, #f7f4ed 100%);
    overflow: hidden;
    position: relative;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--gradient-petrole);
}

.article-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--jaune-cuivre);
    color: var(--anthracite);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-card-title {
    color: #22577a;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e8f0f4;
}

.article-card-date {
    font-size: 0.8rem;
    color: #6b6b6b;
}

.article-card-read {
    color: #22577a;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-card:hover .article-card-read {
    gap: 0.6rem;
}

.article-card-read-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}


/* ==========================================================
   COMPOSANTS - FAQ
   ========================================================== */

.faq {
    padding: 50px 2rem;
    background: #f7f4ed;
    font-family: 'Orkney', 'Nunito Sans', system-ui, sans-serif;
}

.faq * {
    font-family: 'Orkney', 'Nunito Sans', system-ui, sans-serif;
    box-sizing: border-box;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    margin-bottom: 3rem;
}

.faq-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #22577a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.faq-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
}

.faq-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--anthracite);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.faq-title strong {
    color: var(--bleu-petrole);
}

.faq-subtitle {
    font-size: 1.05rem;
    color: #6b6b6b;
    margin: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 2px solid #e8f0f4;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #22577a;
}

.faq-item.active {
    border-color: #22577a;
    box-shadow: 0 8px 24px rgba(34, 87, 122, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    border-bottom: none;
    outline: none;
    box-shadow: none;
    text-decoration: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(34, 87, 122, 0.03);
}

.faq-question:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question-text,
.faq-item.active .faq-question-text {
    color: #22577a;
}

.faq-question-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #e8f0f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-question-icon svg {
    width: 14px;
    height: 14px;
    color: #22577a;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-question-icon {
    background: #ffd664;
}

.faq-item.active .faq-question-icon {
    background: #22577a;
}

.faq-item.active .faq-question-icon svg {
    color: #ffffff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-top: none;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    border-top: none;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: none;
}

/* Supprime tout trait sous les questions FAQ (toutes variantes) */
.faq-question,
.faq-question:hover,
.faq-question:focus,
.faq-question:active,
.faq-item button,
.faq-item.active button {
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.faq-answer-content p {
    font-size: 0.95rem;
    color: #6b6b6b;
    line-height: 1.7;
    margin: 0;
}

.faq-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e8f0f4;
}

.faq-cta-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 1rem 0;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd664 0%, #ffe28a 100%);
    color: #2c2c2c;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 214, 100, 0.3);
}

.faq-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 214, 100, 0.4);
}

.faq-cta-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.faq-cta-btn:hover .faq-cta-icon {
    transform: translateX(4px);
}


/* ==========================================================
   COMPOSANTS - Footer
   ========================================================== */

footer.footer,
section.footer,
div.footer,
.footer {
    background: #2c2c2c !important;
    background-color: #2c2c2c !important;
    padding: 60px 2rem 40px;
    font-family: 'Orkney', 'Nunito Sans', system-ui, sans-serif;
}

.footer * {
    font-family: 'Orkney', 'Nunito Sans', system-ui, sans-serif;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer brand header — logo + description | CTA + socials */
.footer-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand-left {
    max-width: 500px;
}

.footer-brand-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

/* Footer navigation — 4 colonnes */
.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 70px;
    width: auto;
}

.footer-brand-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #ffd664;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffd664;
    padding-left: 5px;
}

.footer-col--contact {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffd664;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.footer-cta-btn:hover {
    background: #22577a;
    transform: translateY(-2px);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social:hover {
    background: #ffd664;
    color: #2c2c2c;
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: #ffd664;
}

.footer-contact-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

/* Zone SEO — offres par secteur et département */
.footer-seo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 0;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 30px;
}

.footer-seo-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-seo-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.footer-seo-links li {
    margin: 0;
}

.footer-seo-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-seo-links a:hover {
    color: #ffd664;
}

.footer-bottom {
    text-align: center;
}

.footer-address {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px 0;
}

.footer-legal {
    margin-bottom: 12px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffd664;
}

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}


/* ==========================================================
   PAGES INTERNES (non-homepage)
   ========================================================== */

body:not(.home) .nav {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

body:not(.home) .nav .nav-link,
body:not(.home) .nav .nav-logo-text {
    color: #22577a !important;
}

body:not(.home) .nav .mode-switch {
    background: #efe9dc;
    border-color: rgba(34, 87, 122, 0.1);
}

body:not(.home) .nav .mode-switch-btn {
    color: #6b6b6b;
}

body:not(.home) .nav .nav-logo-white {
    display: none !important;
}

body:not(.home) .nav .nav-logo-color {
    display: block !important;
}

body:not(.home) .nav .nav-hamburger {
    background: rgba(34, 87, 122, 0.1);
    border-color: rgba(34, 87, 122, 0.2);
}

body:not(.home) .nav .nav-hamburger-line {
    background: #22577a;
}

body:not(.home) .nav .nav-dropdown-trigger {
    color: #22577a !important;
}

body:not(.home) .nav .nav-dropdown-arrow {
    stroke: #22577a;
}

/* Cacher titres des pages internes */
body:not(.home) .page-title,
body:not(.home) .entry-title,
body:not(.home) h1.title,
body:not(.home) .wp-block-post-title,
body:not(.home) .site-title,
body:not(.home) .wp-block-site-title {
    display: none !important;
}

#header h1,
#headerimg h1,
#page > #header h1 {
    display: none !important;
}

/* Espace pour header fixe — pages sans header transparent */
body:not(.nav-hero-transparent) main {
    margin-top: var(--header-height) !important;
}
body.nav-hero-transparent main {
    margin-top: 0 !important;
}
body:not(.nav-hero-transparent) .site-content,
body:not(.nav-hero-transparent) article:first-of-type {
    margin-top: 0 !important;
}

/* Reset WordPress wrapper — ne pas écraser margin-top */
.wp-site-blocks > main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.entry-content.wp-block-post-content.has-global-padding.is-layout-constrained {
    margin: 0 !important;
    gap: 0 !important;
}

.entry-content.is-layout-constrained > * + * {
    margin-top: 0 !important;
}

main > .wp-block-group.has-global-padding.is-layout-constrained,
.entry-content > .wp-block-group.has-global-padding,
main > div.wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
}

/* Supprimer l'espace entre la dernière section et le footer */
.entry-content > *:last-child,
.entry-content > .wp-block-group:last-child,
.entry-content > .wp-block-group:last-child > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* ==========================================================
   PAGES SECTEURS / MÉTIERS
   ========================================================== */

body:not(.home) .secteur-page,
body:not(.home) .metier-page {
    margin-top: 0 !important;
}

body:not(.home) .secteur-page main,
body:not(.home) .metier-page main {
    margin-top: 0 !important;
}

.secteur-page .wp-block-post-title,
.secteur-page .entry-title,
.secteur-page .page-title,
.metier-page .wp-block-post-title,
.metier-page .entry-title,
.metier-page .page-title {
    display: none !important;
}

.secteur-page .wp-site-blocks > header + *:not(.secteur-header):not(main),
.metier-page .wp-site-blocks > header + *:not(.metier-header):not(main),
.secteur-page .wp-site-blocks > .wp-block-template-part + *:not(main),
.metier-page .wp-site-blocks > .wp-block-template-part + *:not(main) {
    display: none !important;
}

.secteur-page.secteur-page,
.metier-page.metier-page {
    margin-top: 0 !important;
}

.secteur-header,
.metier-header {
    padding-top: 60px;
}


/* ==========================================================
   NAVBAR TRANSPARENTE — uniquement homepage + page entreprise
   (classe .nav-hero-transparent ajoutée par JS)
   ========================================================== */

body.nav-hero-transparent .nav:not(.scrolled) {
    background: transparent !important;
    box-shadow: none !important;
}

body.nav-hero-transparent .nav:not(.scrolled) .nav-link,
body.nav-hero-transparent .nav:not(.scrolled) .nav-logo-text,
body.nav-hero-transparent .nav:not(.scrolled) .nav-dropdown-trigger {
    color: #ffffff !important;
}

body.nav-hero-transparent .nav:not(.scrolled) .nav-dropdown-arrow {
    stroke: #ffffff;
}

body.nav-hero-transparent .nav:not(.scrolled) .mode-switch {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

body.nav-hero-transparent .nav:not(.scrolled) .mode-switch-btn:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

body.nav-hero-transparent .nav:not(.scrolled) .nav-hamburger {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

body.nav-hero-transparent .nav:not(.scrolled) .nav-hamburger-line {
    background: #ffffff;
}

body.nav-hero-transparent .nav:not(.scrolled) .nav-logo-white {
    display: block !important;
}

body.nav-hero-transparent .nav:not(.scrolled) .nav-logo-color {
    display: none !important;
}


/* ==========================================================
   RESPONSIVE - TABLETTE (max-width: 1024px)
   ========================================================== */

@media (max-width: 1024px) {

    /* Hamburger visible */
    .nav-hamburger {
        display: flex !important;
    }

    /* Cacher CTA et mode switch desktop */
    .nav-cta--desktop,
    .mode-switch--desktop {
        display: none !important;
    }

    /* Menu mobile slide-in */
    .nav-center {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 30px 40px;
        gap: 0;
        margin: 0;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .nav-center.active {
        right: 0;
    }

    /* Liens menu mobile */
    body .nav .nav-center .nav-link {
        color: #22577a !important;
        width: 100%;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #e8f0f4;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }

    .nav-center .nav-link:hover {
        color: #1a4460 !important;
        padding-left: 10px;
    }

    .nav-center .nav-link::after {
        display: none;
    }

    /* Hamburger sur homepage */
    body.home .nav:not(.scrolled) .nav-hamburger.active .nav-hamburger-line {
        background: #22577a !important;
    }

    body.home .nav .nav-hamburger {
        background: rgba(34, 87, 122, 0.1) !important;
        border-color: rgba(34, 87, 122, 0.2) !important;
    }

    body.home .nav:not(.scrolled) .nav-hamburger {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    body.home .nav:not(.scrolled) .nav-hamburger-line {
        background: #ffffff;
    }

    body.home .nav.scrolled .nav-hamburger {
        background: rgba(34, 87, 122, 0.1);
        border-color: rgba(34, 87, 122, 0.2);
    }

    body.home .nav.scrolled .nav-hamburger-line {
        background: #22577a;
    }

    /* Logos sur mobile - Homepage */
    body.home .nav:not(.scrolled) .nav-logo-white {
        display: block !important;
    }

    body.home .nav:not(.scrolled) .nav-logo-color {
        display: none !important;
    }

    body.home .nav.scrolled .nav-logo-white {
        display: none !important;
    }

    body.home .nav.scrolled .nav-logo-color {
        display: block !important;
    }

    /* Menu mobile ouvert : forcer texte foncé même sur nav transparente */
    body.nav-hero-transparent .nav:not(.scrolled) .nav-center.active .nav-link,
    body.nav-hero-transparent .nav:not(.scrolled) .nav-center.active .nav-dropdown-trigger {
        color: #22577a !important;
    }

    body.nav-hero-transparent .nav:not(.scrolled) .nav-center.active .nav-dropdown-arrow {
        stroke: #22577a !important;
    }

    /* Mode switch visible dans menu mobile ouvert */
    body.nav-hero-transparent .nav:not(.scrolled) .nav-center.active .mode-switch {
        background: #efe9dc;
        border-color: rgba(34, 87, 122, 0.1);
    }

    body.nav-hero-transparent .nav:not(.scrolled) .nav-center.active .mode-switch-btn:not(.active) {
        color: #6b6b6b;
    }

    /* Hamburger X en foncé quand menu ouvert */
    body.nav-hero-transparent .nav:not(.scrolled) .nav-hamburger.active {
        background: rgba(34, 87, 122, 0.1) !important;
        border-color: rgba(34, 87, 122, 0.2) !important;
    }

    body.nav-hero-transparent .nav:not(.scrolled) .nav-hamburger.active .nav-hamburger-line {
        background: #22577a !important;
    }

    /* CTA Mobile : visible uniquement quand menu ouvert */
    .nav-cta--mobile {
        display: none !important;
    }

    .nav-center.active .nav-cta.nav-cta--mobile {
        display: inline-flex !important;
        width: auto !important;
        align-self: center;
        padding: 10px 20px;
        font-size: 0.85rem;
        margin-top: 12px;
    }


    /* Dropdown mobile (accordéon) */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #e8f0f4;
        color: #22577a !important;
    }

    .nav-dropdown-trigger::after {
        display: none;
    }

    .nav-dropdown-arrow {
        width: 20px;
        height: 20px;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        background: transparent;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 400px;
        padding: 8px 0 16px 0;
    }

    .nav-dropdown-item {
        padding: 12px 16px;
        margin-left: 8px;
        border-left: 2px solid #e8f0f4;
        border-radius: 0 8px 8px 0;
    }

    .nav-dropdown-item:hover {
        border-left-color: #22577a;
    }

    /* Désactiver hover sur mobile */
    .nav-dropdown:hover .nav-dropdown-menu {
        max-height: 0;
        padding: 0;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 400px;
        padding: 8px 0 16px 0;
    }

    /* Logo mobile */
    .nav-logo {
        margin-left: -10px;
    }

    .nav-logo-img {
        height: 45px;
    }

    /* Grids responsive */
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand-left {
        max-width: 100%;
    }

    .footer-brand-right {
        align-items: center;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-seo {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }
}


/* ==========================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================== */

@media (max-width: 768px) {
    .nav-center {
        width: 85%;
        max-width: 320px;
        right: -100%;
    }

    .nav-center.active {
        right: 0;
    }

    .sectors {
        padding: 60px 1rem;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .sector-card {
        padding: 1.5rem 1rem;
    }

    .sector-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .sectors-title {
        font-size: 1.8rem;
    }

    .faq {
        padding: 60px 1rem;
    }

    .faq-title {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-answer-content p {
        font-size: 0.9rem;
    }

    .faq-cta {
        padding: 1.5rem;
    }

    .faq-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 50px 1rem 30px;
    }

    .footer-brand-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-brand-right {
        align-items: center;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-col-title {
        font-size: 0.95rem;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-legal-sep {
        display: none;
    }

    .footer-seo {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 15px;
    }

    .footer-seo-title {
        font-size: 0.8rem;
        text-align: center;
    }

    .footer-seo-links {
        text-align: center;
    }
}


/* ==========================================================
   RESPONSIVE - PETIT MOBILE (max-width: 480px)
   ========================================================== */

@media (max-width: 480px) {
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   FOOTER - Structure 4 colonnes
   ========================================================== */

.footer-logo-img {
    height: 75px;
    width: auto;
}

.footer-col-title--second {
    margin-top: 2rem;
}

.footer-links-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 12px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-subtitle:first-child {
    margin-top: 0;
}

.footer-link-all {
    color: #ffd664 !important;
    font-weight: 600;
    margin-top: 4px;
}

.footer-link-all:hover {
    color: #ffe28a !important;
    padding-left: 8px !important;
}

.footer-cta-btn {
    color: #2c2c2c;
}

.footer-cta-btn:hover {
    color: #ffffff;
}

.footer-spacer {
    height: 1rem;
    list-style: none;
}

/* Fil d'Ariane — aligné sur les conteneurs 1200px */
.breadcrumb {
    font-size: 0.9rem;
    padding: 1rem 2rem 0.5rem;
    max-width: 1264px;           /* 1200 + 2×32px padding = aligné sur .jobs-list-container */
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.breadcrumb a {
    color: var(--bleu-petrole, #22577a);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--jaune-cuivre-dark, #e5be4d);
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--anthracite-muted, #6b6b6b);
}

.breadcrumb-current {
    color: var(--anthracite-muted, #6b6b6b);
}

/* FAQ - Questions cachées */
.faq-item--hidden {
    display: none;
}

/* Bouton Voir plus */
.faq-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: transparent;
    border: none;
    font-family: 'Orkney', 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #22577a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-show-more:hover {
    color: #f5b942;
    text-decoration: underline;
}

.faq-show-more-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.faq-show-more.expanded .faq-show-more-icon {
    transform: rotate(180deg);
}

/* ==========================================================
   GESTION AFFICHAGE CANDIDAT / ENTREPRISE
   ========================================================== */

/* Mode entreprise */
body.mode-entreprise a.only-candidat,
body.mode-entreprise .only-candidat {
    display: none !important;
}

body.mode-entreprise a.only-entreprise,
body.mode-entreprise .only-entreprise {
    display: inline-flex !important;
}

/* Mode candidat (défaut) */
body:not(.mode-entreprise) a.only-entreprise,
body:not(.mode-entreprise) .only-entreprise {
    display: none !important;
}

body:not(.mode-entreprise) a.only-candidat,
body:not(.mode-entreprise) .only-candidat {
    display: inline-flex !important;
}

/* Mobile */
@media (max-width: 1024px) {
    body.mode-entreprise a.nav-link.only-entreprise {
        display: block !important;
    }

    /* --- SWITCH MOBILE (UNIQUE ET PROPRE) --- */
    .mode-switch--mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 20px auto;
        width: fit-content;
        min-width: 220px;
        background: #efe9dc;
        border: 1px solid rgba(34, 87, 122, 0.1);
        border-radius: 100px;
        padding: 3px;
    }

    .mode-switch--mobile .mode-switch-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.85rem;
        color: #6b6b6b;
        border-radius: 100px;
        display: flex;
        align-items: center;
    }

    .mode-switch--mobile .mode-switch-btn.active {
        background: #ffd664;
        color: #2c2c2c;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
}

/* ==========================================================
   CSS FINAL - CORRECTIF & STYLE
   ========================================================== */

/* 1. ESPACEMENT HEADER (Desktop) */
.nav-actions {
    gap: 24px !important;
}

/* 2. GESTION MOBILE : CTA caché par défaut, visible quand menu ouvert */
.nav-cta--mobile {
    display: none !important;
}

/* 3. COULEUR TEXTE MENU MOBILE */
@media (max-width: 1024px) {
    .nav-center .nav-link,
    .nav-dropdown-trigger {
        color: #1a1a1a !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .nav-center .nav-link:hover,
    .nav-dropdown-trigger:hover {
        color: #22577a !important;
        background-color: #f4f4f4;
    }

    .nav-dropdown-arrow { stroke: #1a1a1a !important; }
}

/* 4. ANTI-DOUBLON DESKTOP */
@media screen and (min-width: 1025px) {
    .nav-cta--mobile, .mode-switch--mobile {
        display: none !important;
    }
}

/* 5. LOGIQUE D'AFFICHAGE (Candidat vs Entreprise) */
body.mode-entreprise .only-candidat { display: none !important; }
body.mode-entreprise .only-entreprise { display: inline-flex !important; }

body:not(.mode-entreprise) .only-entreprise { display: none !important; }
body:not(.mode-entreprise) .only-candidat { display: inline-flex !important; }

@media (max-width: 1024px) {
    body.mode-entreprise .only-entreprise { display: flex !important; }
    body:not(.mode-entreprise) .only-candidat { display: flex !important; }

    /* CTA mobile : respecter le mode dans le menu ouvert */
    .nav-center.active .nav-cta.nav-cta--mobile.only-candidat {
        display: inline-flex !important;
    }
    body.mode-entreprise .nav-center.active .nav-cta.nav-cta--mobile.only-candidat {
        display: none !important;
    }
    body.mode-entreprise .nav-center.active .nav-cta.nav-cta--mobile.only-entreprise {
        display: inline-flex !important;
    }
    body:not(.mode-entreprise) .nav-center.active .nav-cta.nav-cta--mobile.only-entreprise {
        display: none !important;
    }
}

/* --- ANTI-BOUTON FANTÔME --- */
@media screen and (min-width: 1025px) {
    a.nav-cta--mobile,
    .nav-cta.nav-cta--mobile,
    a[class*="nav-cta--mobile"],
    .nav-center .nav-cta--mobile {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
        z-index: -9999 !important;
    }
}

@media (max-width: 1024px) {
    .nav-center.active .nav-cta.nav-cta--mobile {
        display: inline-flex !important;
        width: auto !important;
        align-self: center;
        padding: 10px 20px;
        font-size: 0.85rem;
        margin-top: 12px;
    }
}

/* ==========================================================
   MASQUER HEADER & FOOTER DU THÈME PARENT (Twenty Twenty-Four)
   ========================================================== */

/* Header bloc du thème parent */
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part:first-child,
header.wp-block-template-part,
.site-header,
#masthead {
    display: none !important;
}

/* Footer bloc du thème parent */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child,
footer.wp-block-template-part,
.site-footer,
#colophon {
    display: none !important;
}

/* Supprimer les contraintes de largeur du thème parent (contentSize/wideSize) */
.wp-site-blocks {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
}

.is-layout-constrained > .alignwide {
    max-width: none !important;
}

.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wp-block-post-content.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wp-block-group.alignwide {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.entry-content > .wp-block-group {
    max-width: 100% !important;
}


/* ==========================================================
   HOMEPAGE - Styles spécifiques à la page d'accueil
   (Un seul bloc, sans doublons)
   ========================================================== */

/* --- Espacement régulier entre les blocs homepage : TOUT à 50px --- */
body.home .sectors,
body.home .latest-jobs,
body.home .testimonials-carousel,
body.home .articles,
body.home .faq {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

body.home .sectors-scroll {
    padding: 50px 0 !important;
}

body.home .logos-marquee {
    padding: 50px 0 !important;
    margin-top: 50px !important;
}

/* Forcer l'espacement entre blocs WordPress (supprimer gap/margin par défaut du block editor) */
body.home .entry-content > * + * {
    margin-top: 0 !important;
}

body.home .wp-block-group + .wp-block-group {
    margin-top: 0 !important;
}

/* --- Style unifié titres de sections (eyebrow + H2 + subtitle) --- */

/* Eyebrow générique homepage (gauche) */
body.home .latest-jobs-eyebrow,
body.home .testimonials-carousel-eyebrow,
body.home .articles-eyebrow,
body.home .ressources-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--bleu-petrole);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

/* Testimonials eyebrow : override pour fond bleu */
body.home .testimonials-carousel-eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

body.home .testimonials-carousel-title {
    color: var(--blanc) !important;
}

body.home .latest-jobs-eyebrow::before,
body.home .testimonials-carousel-eyebrow::before,
body.home .articles-eyebrow::before,
body.home .ressources-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
}

/* H2 homepage : Orkney bold, gauche */
body.home .latest-jobs-title,
body.home .testimonials-carousel-title,
body.home .articles-title,
body.home .ressources-title {
    font-family: var(--font-primary) !important;
    font-weight: 800 !important;
    color: var(--anthracite) !important;
    letter-spacing: -0.02em !important;
    font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
    text-align: left !important;
    margin: 0 0 0.5rem 0 !important;
}

/* Subtitle gris */
body.home .latest-jobs-subtitle,
body.home .testimonials-carousel-subtitle,
body.home .articles-subtitle,
body.home .ressources-subtitle {
    font-size: 1.05rem;
    color: var(--anthracite-muted);
    margin: 0;
    font-family: var(--font-primary);
}

/* H2 generiques homepage */
body.home h2,
body.home .wp-block-heading {
    font-family: var(--font-primary) !important;
    font-weight: 800 !important;
    color: var(--anthracite) !important;
    letter-spacing: -0.02em !important;
    font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
    text-align: left !important;
}

/* Panneaux latéraux : forcer blanc sur toutes les pages */
#contactPanel h2,
#recruitPanel h2,
#cvPanel h2 {
    color: var(--blanc) !important;
    font-size: 1.35rem !important;
}

/* FAQ : titres à gauche */
body.home .faq h2,
body.home .faq .wp-block-heading,
body.home .faq-title {
    text-align: left !important;
}

body.home .faq-header {
    text-align: left !important;
}


/* ========== HERO VIDEO ========== */

.hero-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient unique : bleu-pétrole-dark → bleu-pétrole → anthracite */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bleu-petrole-dark) 0%, var(--bleu-petrole) 50%, var(--anthracite) 100%);
    opacity: 0.8;
    z-index: 1;
}

/* Pattern visible (pas de display:none) */
.hero-video-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 2;
    pointer-events: none;
}

.hero-video-accent {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 100, 0.1) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Layout unique : conteneur centré, pas de grille contradictoire */
.hero-video-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 80px;
    width: 100%;
}

/* max-width unique : 620px */
.hero-video-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--blanc);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fade-up 0.6s ease forwards 0.2s;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jaune-cuivre);
    animation: pulse 2s infinite;
}

/* @keyframes pulse — défini une seule fois */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

@keyframes underline-grow {
    to { transform: scaleX(1); }
}

/* Cercle décoratif animé */
.hero-video::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 214, 100, 0.1);
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--blanc);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-up 0.6s ease forwards 0.3s;
}

.hero-title-accent {
    color: var(--jaune-cuivre);
    position: relative;
    display: inline-block;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.12em;
    background: rgba(255, 214, 100, 0.3);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-grow 0.8s ease forwards 0.8s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    opacity: 0;
    animation: fade-up 0.6s ease forwards 0.4s;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fade-up 0.6s ease forwards 0.5s;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up 0.6s ease forwards 0.6s;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-trust-icon {
    width: 18px;
    height: 18px;
    color: var(--jaune-cuivre);
    flex-shrink: 0;
}


/* ========== SECTORS SCROLL ========== */

.sectors-scroll {
    padding: 50px 0;
    background: var(--ivoire);
    overflow: hidden;
}

.sectors-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sectors-scroll-row {
    overflow: hidden;
    padding: 8px 0;
    margin: -8px 0;
}

/* Pas d'animation CSS : le JS parallax contrôle le transform via style inline */
.sectors-scroll-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}

.sectors-scroll-group {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Override du style général .sector-card pour le contexte scroll */
.sectors-scroll .sector-card {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: var(--blanc, #ffffff);
    border: 2px solid var(--bleu-petrole-pale, #e8f0f4);
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem 0.6rem 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
    transform: none;
}

.sectors-scroll .sector-card:hover {
    border-color: var(--bleu-petrole, #22577a);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(34, 87, 122, 0.1));
    transform: translateY(-2px);
}

.sectors-scroll .sector-card:hover .sector-card-icon {
    background: var(--jaune-cuivre, #ffd664) !important;
}

.sectors-scroll .sector-card:hover .sector-card-icon span {
    filter: brightness(0) invert(1);
}

.sectors-scroll .sector-card:hover .sector-card-name {
    color: var(--bleu-petrole, #22577a);
}

/* Classes HTML : .sector-card-icon et .sector-card-name (différent du .sector-icon global) */
.sectors-scroll .sector-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sectors-scroll .sector-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--anthracite, #2c2c2c);
    transition: color 0.3s ease;
}

/* Hover pause géré par le JS (animation CSS supprimée) */


/* ========== JOB SEARCH ========== */

/* Job search : margin 0 auto */
.job-search {
    position: relative;
    z-index: 10;
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem 48px !important;
    box-shadow: var(--shadow-lg);
    max-width: 1060px;
    margin: 0px auto 0;
}

.job-search-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.job-search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--bleu-petrole);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.job-search-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
}

.job-search-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--anthracite);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.job-search-subtitle {
    font-size: 0.95rem;
    color: var(--anthracite-muted);
    text-align: left;
}

.job-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.job-search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--anthracite-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.job-search-field-wrapper {
    position: relative;
}

.job-search-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--bleu-petrole);
    pointer-events: none;
}

.job-search-field input,
.job-search-field select,
.job-search-ms-trigger {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    border: 2px solid var(--bleu-petrole-pale);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--anthracite);
    background: var(--ivoire-light);
    transition: border-color 0.2s ease;
    appearance: none;
}

.job-search-ms-trigger {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    box-sizing: border-box;
}

.job-search-ms-trigger.ms-open {
    border-color: var(--bleu-petrole);
    background: var(--blanc);
}

.job-search-ms-trigger.ms-has-value {
    color: var(--anthracite);
    font-weight: 600;
}

.job-search-field input:focus,
.job-search-field select:focus {
    outline: none;
    border-color: var(--bleu-petrole);
    background: var(--blanc);
}

.job-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-cuivre);
    color: var(--anthracite);
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.job-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cuivre);
}

.job-search-btn-icon {
    width: 18px;
    height: 18px;
}

.job-search-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.job-search-tags-label {
    font-size: 0.85rem;
    color: var(--anthracite-muted);
    font-weight: 600;
    white-space: nowrap;
}

.job-search-tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-search-tag {
    background: var(--bleu-petrole-pale);
    color: var(--bleu-petrole);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.job-search-tag:hover {
    background: var(--bleu-petrole);
    color: var(--blanc);
}

.job-search-seo {
    border-top: 1px solid var(--bleu-petrole-pale);
    padding-top: 1.25rem;
}

.seo-dropdown-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5;
}

.seo-dropdown-overlay.active {
    display: block;
}

.seo-dropdown-container {
    position: relative;
}

.seo-dropdown-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seo-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--bleu-petrole-pale);
    color: var(--bleu-petrole);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seo-dropdown-btn:hover,
.seo-dropdown-btn.active {
    background: var(--bleu-petrole);
    border-color: var(--bleu-petrole);
    color: var(--blanc);
}

.seo-dropdown-btn .chevron {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
}

.seo-dropdown-btn .chevron svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.seo-dropdown-btn.active .chevron svg {
    transform: rotate(90deg);
}

.seo-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--blanc);
    border: 2px solid var(--bleu-petrole-pale);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* JS ajoute la classe "open" (pas "active") sur les panels */
.seo-dropdown-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.seo-keywords-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.seo-section-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bleu-petrole);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bleu-petrole-pale);
}

.seo-keywords-column {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-keywords-column li a {
    font-size: 0.88rem;
    color: var(--anthracite-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.seo-keywords-column li a:hover {
    color: var(--bleu-petrole);
}


/* ========== LOGOS MARQUEE ========== */

/* Padding 50px + marge pour séparer du job-search */
.logos-marquee {
    padding: 50px 0;
    margin-top: 50px;
    background: var(--blanc);
    overflow: hidden;
}

.logos-marquee-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logos-marquee-eyebrow {
    margin-bottom: 1.5rem;
}

.logos-marquee-eyebrow span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--anthracite-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logos-marquee-wrapper {
    position: relative;
    overflow: hidden;
}

.logos-marquee-shadow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logos-marquee-shadow--left {
    left: 0;
    background: linear-gradient(to right, var(--blanc), transparent);
}

.logos-marquee-shadow--right {
    right: 0;
    background: linear-gradient(to left, var(--blanc), transparent);
}

.logos-marquee-track {
    display: flex;
    animation: logoScroll 25s linear infinite;
    width: max-content;
}

@keyframes logoScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logos-marquee-group {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.logos-marquee-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.logos-marquee-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}


/* ========== LATEST JOBS ========== */

.latest-jobs {
    padding: 50px 2rem;
    background: var(--ivoire);
}

.latest-jobs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.latest-jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.latest-jobs-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bleu-petrole);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.4rem;
}

.latest-jobs-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--anthracite);
    letter-spacing: -0.02em;
    margin: 0;
}

.latest-jobs-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bleu-petrole);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
    white-space: nowrap;
}

.latest-jobs-cta:hover {
    gap: 12px;
}

.latest-jobs-cta-icon {
    width: 18px;
    height: 18px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}


/* ========== TESTIMONIALS CAROUSEL ========== */

/* Padding 50px + fond bleu pétrole */
.testimonials-carousel {
    padding: 50px 2rem;
    background: var(--bleu-petrole);
}

.testimonials-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.testimonials-carousel-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.4rem;
}

.testimonials-carousel-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blanc);
    letter-spacing: -0.02em;
    margin: 0;
}

/* Textes testimonials sur fond bleu */
.testimonials-carousel-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* H2 header-left en blanc */
.testimonials-carousel .testimonials-carousel-header-left h2 {
    color: var(--blanc) !important;
}

/* Widget TrustIndex : textes en blanc sur fond bleu */
.testimonials-carousel .ti-widget .ti-footer strong {
    color: var(--blanc) !important;
}

.testimonials-carousel .ti-widget .ti-footer span {
    color: var(--blanc) !important;
}


/* ========== ARTICLES ========== */

.articles {
    padding: 50px 2rem;
    background: var(--ivoire);
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}


/* ========== SECTION RESSOURCES (shortcode) ========== */

.ressources-section {
    padding: 50px 2rem;
    background: var(--ivoire);
}

.ressources-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ressources-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.ressources-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--bleu-petrole);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.ressources-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
}

.ressources-title {
    font-family: var(--font-primary) !important;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--anthracite);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0;
}

.ressources-subtitle {
    font-size: 1.05rem;
    color: var(--anthracite-muted);
    margin: 0;
    font-family: var(--font-primary);
}

.ressources-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bleu-petrole);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
    white-space: nowrap;
}

.ressources-cta:hover {
    gap: 12px;
}

.ressources-cta-icon {
    width: 18px;
    height: 18px;
}


/* ========== JOB CARDS - Police Orkney ========== */

.job-card,
.job-card * {
    font-family: var(--font-primary) !important;
}


/* ========== HOMEPAGE - RESPONSIVE ========== */

@media (max-width: 1024px) {
    .job-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .job-search-btn {
        grid-column: span 2;
        justify-content: center;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-keywords-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ressources-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-video-container {
        padding: 140px 1.5rem 60px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        gap: 1rem;
    }

    .sectors-scroll {
        padding: 50px 0 !important;
    }

    .job-search {
        margin: 0 1rem;
        padding: 1.25rem;
    }

    .job-search-form {
        grid-template-columns: 1fr;
    }

    .job-search-btn {
        grid-column: span 1;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    body.home .latest-jobs,
    body.home .testimonials-carousel,
    body.home .articles,
    body.home .faq {
        padding: 50px 1rem !important;
    }

    .latest-jobs-header,
    .testimonials-carousel-header,
    .ressources-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .latest-jobs-title,
    .testimonials-carousel-title,
    .ressources-title {
        font-size: 1.6rem !important;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .seo-keywords-grid {
        grid-template-columns: 1fr;
    }

    .ressources-section {
        padding: 50px 1rem;
    }

    /* Hero badge responsive */
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* FAQ responsive */
    .faq-title {
        font-size: 1.6rem !important;
    }

    .faq-eyebrow {
        font-size: 0.75rem;
    }
}


/* ========== MULTI-SELECT DROPDOWNS (global) ========== */

.ms-dropdown {
    position: fixed;
    background: var(--blanc, #ffffff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
    z-index: 10000;
    font-family: var(--font-primary, 'Orkney', 'Nunito Sans', system-ui, sans-serif);
}

.ms-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--anthracite, #2c2c2c);
    transition: background 0.15s ease;
    margin: 0;
}

.ms-option:hover {
    background: var(--ivoire, #f7f4ed);
}

.ms-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bleu-petrole, #22577a);
    cursor: pointer;
    flex-shrink: 0;
}

.ms-option-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-dropdown::-webkit-scrollbar {
    width: 6px;
}

.ms-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.ms-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

/* ========== PANNEAU CONTACT LATERAL ========== */

.contact-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: var(--blanc);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.contact-panel.open {
    transform: translateX(0);
}

/* Header */
.contact-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 2rem 1.25rem;
    background: var(--bleu-petrole);
    color: var(--blanc);
}

.contact-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blanc);
    margin-bottom: 0.35rem;
}

.contact-panel-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
}

.contact-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blanc);
    margin: 0;
    letter-spacing: -0.01em;
}

.contact-panel-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--blanc);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.contact-panel-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Formulaire */
.contact-panel-form {
    padding: 1.75rem 2rem 2rem;
    flex: 1;
}

.cpf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cpf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.cpf-row .cpf-field {
    margin-bottom: 0;
}

.cpf-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--anthracite);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.cpf-req {
    color: var(--jaune-cuivre-dark);
}

.cpf-field input,
.cpf-field select,
.cpf-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid var(--bleu-petrole-pale);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Orkney', sans-serif;
    color: var(--anthracite);
    background: var(--blanc);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    appearance: none;
}

.cpf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2rem;
    cursor: pointer;
}

.cpf-field textarea {
    resize: vertical;
    min-height: 110px;
}

.cpf-field input:focus,
.cpf-field select:focus,
.cpf-field textarea:focus {
    outline: none;
    border-color: var(--bleu-petrole);
}

.cpf-field input::placeholder,
.cpf-field textarea::placeholder {
    color: var(--anthracite-muted);
    opacity: 0.5;
}

/* Footer */
.cpf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cpf-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1.75rem;
    background: var(--jaune-cuivre);
    color: var(--anthracite);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Orkney', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cpf-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-cuivre);
}

.cpf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cpf-note {
    font-size: 0.75rem;
    color: var(--anthracite-muted);
}

/* Feedback */
.cpf-feedback {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cpf-feedback-success {
    background: rgba(34, 87, 122, 0.08);
    color: var(--bleu-petrole);
    border: 1px solid rgba(34, 87, 122, 0.15);
}

.cpf-feedback-error {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

/* Responsive */
@media (max-width: 520px) {
    .contact-panel {
        width: 100vw;
    }

    .contact-panel-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .contact-panel-form {
        padding: 1.25rem;
    }

    .cpf-row {
        grid-template-columns: 1fr;
    }

    .cpf-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cpf-submit {
        justify-content: center;
    }
}

/* ========== PANNEAU RECRUTEMENT LATERAL ========== */

.recruit-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.recruit-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.recruit-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 100vw;
    height: 100vh;
    background: var(--blanc);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.recruit-panel.open {
    transform: translateX(0);
}

.recruit-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 2rem 1.25rem;
    background: var(--bleu-petrole);
    color: var(--blanc);
}

.recruit-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blanc);
    margin-bottom: 0.35rem;
}

.recruit-panel-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
}

.recruit-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blanc);
    margin: 0;
}

.recruit-panel-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--blanc);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.recruit-panel-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.recruit-panel-intro {
    padding: 1.25rem 2rem 0;
    font-size: 0.9rem;
    color: var(--anthracite-muted);
    line-height: 1.5;
    margin: 0;
}

.recruit-panel-form {
    padding: 1.25rem 2rem 2rem;
    flex: 1;
}

.rpf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rpf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.rpf-row .rpf-field {
    margin-bottom: 0;
}

.rpf-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--anthracite);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.rpf-req {
    color: var(--jaune-cuivre-dark);
}

.rpf-field input,
.rpf-field select,
.rpf-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--bleu-petrole-pale);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: 'Orkney', sans-serif;
    color: var(--anthracite);
    background: var(--blanc);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    appearance: none;
}

.rpf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2rem;
    cursor: pointer;
}

.rpf-field textarea {
    resize: vertical;
    min-height: 90px;
}

.rpf-field input:focus,
.rpf-field select:focus,
.rpf-field textarea:focus {
    outline: none;
    border-color: var(--bleu-petrole);
}

.rpf-field input::placeholder,
.rpf-field textarea::placeholder {
    color: var(--anthracite-muted);
    opacity: 0.5;
}

.rpf-footer {
    margin-top: 0.5rem;
}

.rpf-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1.75rem;
    background: var(--jaune-cuivre);
    color: var(--anthracite);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Orkney', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rpf-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-cuivre);
}

.rpf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rpf-note {
    font-size: 0.72rem;
    color: var(--anthracite-muted);
    margin-top: 0.75rem;
    line-height: 1.4;
}

.rpf-feedback {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rpf-feedback-success {
    background: rgba(34, 87, 122, 0.08);
    color: var(--bleu-petrole);
    border: 1px solid rgba(34, 87, 122, 0.15);
}

.rpf-feedback-error {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

@media (max-width: 560px) {
    .recruit-panel {
        width: 100vw;
    }

    .recruit-panel-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .recruit-panel-intro {
        padding: 1rem 1.25rem 0;
    }

    .recruit-panel-form {
        padding: 1rem 1.25rem 1.5rem;
    }

    .rpf-row {
        grid-template-columns: 1fr;
    }

    .rpf-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ========== PANNEAU CV LATERAL ========== */

.cv-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cv-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cv-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    background: var(--blanc);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.cv-panel.open {
    transform: translateX(0);
}

.cv-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 2rem 1.25rem;
    background: var(--bleu-petrole);
    color: var(--blanc);
}

.cv-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blanc);
    margin-bottom: 0.35rem;
}

.cv-panel-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--jaune-cuivre);
    border-radius: 2px;
}

.cv-panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blanc);
    margin: 0;
}

.cv-panel-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--blanc);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.cv-panel-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cv-panel-intro {
    padding: 1.25rem 2rem 0;
    font-size: 0.9rem;
    color: var(--anthracite-muted);
    line-height: 1.5;
    margin: 0;
}

.cv-panel-form {
    padding: 1.25rem 2rem 2rem;
    flex: 1;
}

.cvf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cvf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.cvf-row .cvf-field {
    margin-bottom: 0;
}

.cvf-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--anthracite);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.cvf-req {
    color: var(--jaune-cuivre-dark);
}

.cvf-field input,
.cvf-field select,
.cvf-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--bleu-petrole-pale);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: 'Orkney', sans-serif;
    color: var(--anthracite);
    background: var(--blanc);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    appearance: none;
}

.cvf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 2rem;
    cursor: pointer;
}

.cvf-field textarea {
    resize: vertical;
    min-height: 80px;
}

.cvf-field input:focus,
.cvf-field select:focus,
.cvf-field textarea:focus {
    outline: none;
    border-color: var(--bleu-petrole);
}

.cvf-field input::placeholder,
.cvf-field textarea::placeholder {
    color: var(--anthracite-muted);
    opacity: 0.5;
}

.cvf-footer {
    margin-top: 0.5rem;
}

.cvf-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1.75rem;
    background: var(--jaune-cuivre);
    color: var(--anthracite);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Orkney', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cvf-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-cuivre);
}

.cvf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cvf-note {
    font-size: 0.72rem;
    color: var(--anthracite-muted);
    margin-top: 0.75rem;
    line-height: 1.4;
}

.cvf-feedback {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cvf-feedback-success {
    background: rgba(34, 87, 122, 0.08);
    color: var(--bleu-petrole);
    border: 1px solid rgba(34, 87, 122, 0.15);
}

.cvf-feedback-error {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.cvf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.cvf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--anthracite);
    cursor: pointer;
    font-weight: 400;
}

.cvf-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--jaune-cuivre);
}

.cvf-field select[multiple] {
    height: 120px;
}

.cvf-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--anthracite-muted);
    opacity: 0.6;
    margin-top: 0.3rem;
}

/* input[type="file"] is hidden, using custom .cvf-file-btn instead */

/* Custom multiselect dropdown */
.cvf-multiselect {
    position: relative;
}

.cvf-multiselect-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--blanc);
    border: 2px solid var(--bleu-petrole-pale);
    border-radius: 8px;
    color: var(--anthracite);
    font-size: 0.88rem;
    font-family: 'Orkney', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cvf-multiselect-trigger:hover,
.cvf-multiselect.open .cvf-multiselect-trigger {
    border-color: var(--bleu-petrole);
}

.cvf-multiselect-trigger svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: var(--anthracite-muted);
    transition: transform 0.2s;
}

.cvf-multiselect.open .cvf-multiselect-trigger svg {
    transform: rotate(180deg);
}

.cvf-multiselect-placeholder {
    color: var(--anthracite-muted);
    opacity: 0.5;
}

.cvf-multiselect-placeholder.has-value {
    color: var(--anthracite);
    opacity: 1;
}

.cvf-multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--blanc);
    border: 2px solid var(--bleu-petrole-pale);
    border-radius: 8px;
    z-index: 50;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cvf-multiselect.open .cvf-multiselect-dropdown {
    display: block;
}

.cvf-multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--anthracite);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 0;
}

.cvf-multiselect-option:hover {
    background: rgba(34, 87, 122, 0.06);
}

.cvf-multiselect-option input[type="checkbox"] {
    accent-color: var(--bleu-petrole);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* File upload */
.cvf-file-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cvf-file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--blanc);
    border: 2px dashed var(--bleu-petrole-pale);
    border-radius: 8px;
    color: var(--anthracite-muted);
    font-size: 0.88rem;
    font-family: 'Orkney', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cvf-file-btn:hover {
    border-color: var(--bleu-petrole);
    color: var(--bleu-petrole);
    background: rgba(34, 87, 122, 0.04);
}

.cvf-file-btn svg {
    flex-shrink: 0;
}

.cvf-file-info {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: rgba(34, 87, 122, 0.06);
    border: 1px solid rgba(34, 87, 122, 0.15);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--anthracite);
    box-sizing: border-box;
}

.cvf-file-info.visible {
    display: flex;
}

.cvf-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvf-file-size {
    color: var(--anthracite-muted);
    flex-shrink: 0;
}

.cvf-file-remove {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--anthracite-muted);
    transition: color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.cvf-file-remove:hover {
    color: #dc3545;
}

.cvf-file-error-msg {
    color: #dc3545;
    font-size: 0.8rem;
    display: none;
}

.cvf-file-error-msg.visible {
    display: block;
}

/* Message toggle */
.cvf-message-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bleu-petrole);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    margin-bottom: 8px;
    user-select: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cvf-message-toggle:hover {
    background: rgba(34, 87, 122, 0.08);
    color: var(--bleu-petrole);
}

.cvf-message-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.cvf-message-toggle--open svg {
    transform: rotate(45deg);
}

.cvf-message-wrapper {
    display: none;
}

.cvf-message-wrapper.visible {
    display: block;
}

@media (max-width: 540px) {
    .cv-panel {
        width: 100vw;
    }

    .cv-panel-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .cv-panel-intro {
        padding: 1rem 1.25rem 0;
    }

    .cv-panel-form {
        padding: 1rem 1.25rem 1.5rem;
    }

    .cvf-row {
        grid-template-columns: 1fr;
    }

    .cvf-submit {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================
   PAGE LÉGALE — Politique de confidentialité / Mentions légales
   ========================================================== */

/* Reset WordPress wrappers sur pages légales */
body:has(.legal-page) .wp-site-blocks > main,
body:has(.legal-page) .wp-site-blocks > main > .wp-block-group,
body:has(.legal-page) .wp-site-blocks > main > .wp-block-group > div,
body:has(.legal-page) .entry-content,
body:has(.legal-page) .wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    gap: 0 !important;
}

section.legal-page {
    background: var(--ivoire) !important;
    padding: 80px 2rem 60px !important;
    font-family: var(--font-primary) !important;
    color: var(--anthracite) !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.legal-page .legal-container {
    max-width: 820px;
    margin: 0 auto;
}

.legal-page .legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-page .legal-badge {
    display: inline-block;
    background: var(--bleu-petrole-pale);
    color: var(--bleu-petrole);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.legal-page .legal-title {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: var(--bleu-petrole) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    border: none !important;
}

.legal-page .legal-subtitle {
    font-size: 0.95rem;
    color: var(--anthracite-muted);
    margin: 0;
}

.legal-page .legal-content {
    background: var(--blanc);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-sm);
}

.legal-page .legal-content h2 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--bleu-petrole) !important;
    margin: 40px 0 16px 0 !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 2px solid var(--bleu-petrole-pale) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    line-height: 1.3 !important;
}

.legal-page .legal-content h2:first-child {
    margin-top: 0 !important;
}

.legal-page .legal-content h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--anthracite) !important;
    margin: 24px 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.legal-page .legal-content p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: var(--anthracite-light) !important;
    margin: 0 0 16px 0 !important;
}

.legal-page .legal-content ul {
    padding-left: 20px !important;
    margin: 0 0 20px 0 !important;
    list-style: disc !important;
}

.legal-page .legal-content li {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: var(--anthracite-light) !important;
    margin-bottom: 6px !important;
}

.legal-page .legal-content li strong {
    color: var(--anthracite) !important;
}

.legal-page .legal-content a {
    color: var(--bleu-petrole) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.legal-page .legal-content a:hover {
    color: var(--jaune-cuivre-dark) !important;
}

.legal-page .legal-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 16px 0 24px 0 !important;
    font-size: 0.9rem !important;
}

.legal-page .legal-table thead th {
    background: var(--bleu-petrole) !important;
    color: var(--blanc) !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 12px 16px !important;
    border: none !important;
}

.legal-page .legal-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.legal-page .legal-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.legal-page .legal-table tbody td {
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--ivoire-dark) !important;
    color: var(--anthracite-light) !important;
    line-height: 1.5 !important;
}

.legal-page .legal-table tbody tr:last-child td {
    border-bottom: none !important;
}

.legal-page .legal-table tbody tr:nth-child(even) {
    background: var(--ivoire-light) !important;
}

@media (max-width: 768px) {
    section.legal-page {
        padding: 60px 1rem 40px !important;
    }

    .legal-page .legal-title {
        font-size: 1.8rem !important;
    }

    .legal-page .legal-content {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }

    .legal-page .legal-content h2 {
        font-size: 1.15rem !important;
    }

    .legal-page .legal-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .legal-page .legal-title {
        font-size: 1.5rem !important;
    }

    .legal-page .legal-content {
        padding: 24px 16px;
    }
}
