/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (impecable, emil-kowalski, taste-skill)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@500;600;700&family=Manrope:wght@400;500;600&display=swap');

:root {
    /* Taste-skill Palette (Refined versions of mockup colors) */
    --color-navy: #0A1930;      /* Deep rich navy */
    --color-navy-light: #152C55;
    --color-navy-muted: #2E4572;
    --color-gold: #FCE303;      /* Jaune CAFPM (couleur de la marque) */
    --color-gold-hover: #E6CE00;
    /* Jaune "texte" : demandé identique au jaune de la marque (#FCE303),
       y compris sur fond clair. ATTENTION : sur fond blanc/gris le contraste
       n'est que de 1,3:1 (lisibilité réduite). Pour revenir à un jaune plus
       lisible sur fond clair : #7A6C00 (petit texte) et #9A8900 (grands titres). */
    --color-gold-text: #FCE303;
    --color-gold-text-grand: #FCE303;
    --color-white: #FFFFFF;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-800: #1E293B;
    --color-gray-500: #64748B;   /* Texte secondaire (4,7:1 sur blanc) */

    /* Retours utilisateur (messages de succès / d'erreur) */
    --color-succes: #16A34A;
    --color-erreur: #DC2626;
    --color-erreur-texte: #B91C1C;

    /* Rayons (même échelle partout : site, espace client, admin) */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Hauteur du header fixe (sert à décaler les ancres) */
    --header-h: 88px;

    /* Anneau de focus clavier : bleu marine sur fond clair,
       redéfini en jaune dans les zones sombres (voir ACCESSIBILITÉ) */
    --focus-ring: var(--color-navy);

    /* Impecable Spacing (Strict 8px scale) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;
    --space-16: 128px;
    
    /* Typography */
    --font-display: 'Epilogue', sans-serif; /* High-impact structural headers */
    --font-body: 'Manrope', sans-serif;     /* Clean, modern readability */
    
    /* Emil Kowalski Motion */
    /* Spring-like bezier curve for natural, snappy feel */
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.2s ease-out; /* < 300ms for standard interactions */
    
    /* Taste-skill Shadows & Effects */
    --shadow-sm: 0 4px 12px rgba(10, 25, 48, 0.05);
    --shadow-md: 0 12px 32px rgba(10, 25, 48, 0.08);
    --shadow-float: 0 24px 48px rgba(10, 25, 48, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    overflow-x: clip;   /* Mieux : coupe sans créer de zone de défilement (garde position: sticky) */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    max-width: 1360px; /* Wider for premium editorial feel */
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.text-max-width {
    max-width: 65ch; /* Emil Kowalski rule */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 4px; /* Slight radius for premium feel */
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(252, 227, 3, 0.25);
}

.btn-primary:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-gray-200);
}

.btn-secondary:hover {
    border-color: var(--color-navy);
}

.btn-ghost {
    background: transparent;
    color: var(--color-navy);
}

.btn-ghost:hover {
    background: rgba(10, 25, 48, 0.05);
}

/* Bouton blanc (sur fond bleu marine ou jaune : blocs Entreprise/Candidat, CAFPM Match) */
.btn-blanc,
.btn-primary.btn-blanc {
    background: var(--color-white);
    color: var(--color-navy);
    border: none;
}
.btn-blanc:hover,
.btn-primary.btn-blanc:hover {
    background: var(--color-gray-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Bouton désactivé / en cours d'envoi (voir main.js : état "chargement") */
.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}
.btn.is-loading {
    cursor: progress;
    opacity: 0.85;
}
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rotationSpinner 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes rotationSpinner {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   HEADER (Glassmorphism)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    height: var(--header-h); /* 88px, multiple of 8 */
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--color-navy);
}

.brand-suffix {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--color-navy-muted);
    letter-spacing: 0.1em;
}

.brand {
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: var(--space-4);
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap; /* Jamais de lien sur 2 lignes */
    padding: var(--space-1) 0;
}

.main-nav a:hover {
    color: var(--color-gold-text);
}

/* Lien de la page active (aria-current="page", posé par partials/header.php) */
.main-nav a[aria-current="page"],
.mobile-nav-link[aria-current="page"] {
    color: var(--color-navy);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--color-gold);
}
.mobile-nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--color-gold);
    padding-left: var(--space-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.header-actions .btn {
    white-space: nowrap;
}

/* ==========================================================================
   HERO SECTION (Replication of Mockup layout with Taste-skill)
   ========================================================================== */
.hero {
    position: relative;
    /* padding-top increased to compensate for fixed header (88px) */
    padding-top: calc(var(--space-12) + 88px);
    padding-bottom: var(--space-16);
    background-color: var(--color-gray-50);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-content {
    /* Le texte reste dans la moitié gauche, sans passer sous la photo :
       50vw (bord de l'image) - marge gauche du container - 48px d'espace */
    max-width: min(700px, calc(50vw - max(32px, (100vw - 1360px) / 2 + 32px) - 48px));
}

.hero-tags {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-navy-muted);
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem); /* Rétrécit sur tablette pour ne pas toucher la photo */
    margin-bottom: var(--space-3);
    color: var(--color-navy);
}

.hero h1 span {
    color: var(--color-gold-text-grand); /* Lisible sur le fond clair du hero (desktop) */
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-gray-800);
    margin-bottom: var(--space-6);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap; /* Les cartes passent l'une sous l'autre si l'espace manque */
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-cta-card {
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    background: var(--color-white);
    padding: var(--space-3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    transition: transform var(--transition-spring), box-shadow var(--transition-fast);
    flex: 1;
    min-width: 260px;
}

.hero-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-cta-card.primary {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.hero-cta-card.secondary {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
}

.hero-cta-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

.hero-cta-card.secondary .hero-cta-icon {
    background: rgba(10, 25, 48, 0.1);
}

.hero-cta-text {
    flex: 1;
    text-align: left;
}

.hero-cta-text span {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-cta-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.25;
}

.hero-stats {
    display: flex;
    gap: var(--space-6);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.stat-icon {
    color: var(--color-navy-muted);
}

.stat-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-navy);
    display: block;
}

.stat-lbl {
    font-size: 0.875rem;
    color: var(--color-gray-800);
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Background Hero Image & Badge */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('assets/images/hero_cafpm_white.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    animation: kenBurns 20s alternate infinite ease-in-out;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

.hero-badge {
    position: absolute;
    top: var(--space-16);
    right: var(--space-8);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: var(--space-2) var(--space-4);
    border-radius: 8px;
    box-shadow: var(--shadow-float);
    transform: rotate(3deg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-navy);
    border: 1px solid rgba(255,255,255,0.4);
    z-index: 3;
    animation: floatBadge 6s ease-in-out infinite;
}

/* ==========================================================================
   SOLUTIONS SECTION
   ========================================================================== */
.solutions {
    padding: var(--space-12) 0;
    background: var(--color-white);
}

.section-head {
    margin-bottom: var(--space-8);
}

.section-eyebrow {
    color: var(--color-gold-text); /* Variante foncée : lisible sur fond clair */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-1);
}

/* Sur fond bleu marine, le surtitre garde le jaune clair de la charte */
.page-hero .section-eyebrow,
.testimonials-section .section-eyebrow {
    color: var(--color-gold);
}

.section-head h2,
.about-text h2 {
    font-size: 2.5rem;
}

.about-text h2 {
    margin-bottom: var(--space-3);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-3);
}

.solution-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;           /* Les liens "En savoir plus" s'alignent en bas des cartes */
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-white);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.sol-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-50);
    color: var(--color-navy);
    transition: all var(--transition-spring);
}

/* Solution mise en avant (clé mise_en_avant de config/contenu.php) */
.sol-icon-vedette {
    background: var(--color-gold);
    color: var(--color-navy);
}

.solution-card:hover .sol-icon-wrapper {
    background: var(--color-navy);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.solution-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.solution-card p {
    font-size: 0.875rem;
    color: var(--color-navy-muted);
    margin-bottom: var(--space-3);
    align-self: stretch;
}

.solution-card .link-arrow {
    margin-top: auto;
}

.solution-card:hover .link-arrow {
    gap: 8px;
    color: var(--color-gold-text);
}

.link-arrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-arrow:hover {
    gap: 8px;
    color: var(--color-gold-text);
}

/* ==========================================================================
   SEARCH & MATCH BANNER
   ========================================================================== */
.search-banner {
    display: flex;
    margin-top: var(--space-12);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.search-left {
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-6);
    flex: 2;
}

.search-left h3 {
    color: var(--color-white);
    font-size: 1.75rem;
    margin-bottom: var(--space-1);
}

.search-left p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-4);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.search-main-input {
    display: flex;
}

.search-main-input input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 var(--space-3);
    border: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-main-input button {
    height: 52px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
}

.search-filters select {
    width: 100%;
    min-width: 0;
    height: 44px;
    text-overflow: ellipsis;
    padding: 0 var(--space-2);
    background: var(--color-navy-light);
    border: 1px solid var(--color-navy-muted);
    color: var(--color-white);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.match-right {
    background: var(--color-gold);
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.match-right h4 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

.match-right p {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.match-right .btn {
    background: var(--color-white);
    color: var(--color-navy);
    border: none;
    align-self: flex-start;
    position: relative;
    z-index: 1; /* Au-dessus de l'image décorative (::after) */
}

.match-right h4,
.match-right p {
    position: relative;
    z-index: 1;
}

.match-right::after {
    content: '';
    pointer-events: none;
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background-image: url('assets/images/candidat.png');
    background-size: cover;
    border-radius: 50%;
    opacity: 0.4;
    mix-blend-mode: luminosity;
}

/* ==========================================================================
   TARGET SPLIT (Entreprise / Candidat)
   ========================================================================== */
.target-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.target-card {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-spring), box-shadow var(--transition-fast);
}

.target-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.tc-content {
    padding: var(--space-6);
    flex: 1;
}

.tc-entreprise { background: var(--color-navy); color: var(--color-white); }
.tc-entreprise h3 { color: var(--color-white); }
.tc-candidat { background: var(--color-gold); color: var(--color-navy); }

.tc-content h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.tc-content h3 svg,
.tc-list svg {
    flex-shrink: 0; /* Les icônes gardent leur taille quand le titre passe sur 2 lignes */
}

.tc-content p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: var(--space-4);
}

.tc-list {
    list-style: none;
    margin-bottom: var(--space-4);
}

.tc-list li {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-1);
}

.tc-image {
    width: 200px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s var(--transition-spring);
}

.tc-image-entreprise { background-image: url('assets/images/entreprise.png'); }
.tc-image-candidat { background-image: url('assets/images/candidat.png'); }

.target-card:hover .tc-image {
    transform: scale(1.05);
}

/* ==========================================================================
   SECTEURS SECTION
   ========================================================================== */
.secteurs {
    padding: var(--space-12) 0;
    background: var(--color-gray-50);
}

.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.secteur-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-spring);
}

.secteur-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.secteur-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.secteur-head svg {
    flex-shrink: 0;
    color: var(--color-navy);
    transition: all var(--transition-spring);
}

.secteur-card:hover .secteur-head svg {
    color: var(--color-gold-text);
    transform: scale(1.1);
}

.secteur-card h3 {
    font-size: 1.25rem;
}

.secteur-card p {
    font-size: 0.875rem;
    color: var(--color-navy-muted);
    margin-bottom: var(--space-3);
}

/* ==========================================================================
   FOOTER (Complex)
   ========================================================================== */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-12) 0 var(--space-4);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-navy-muted);
}

.footer-brand p {
    margin-top: var(--space-2);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.footer-col h4,
.footer-newsletter h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: var(--space-3);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-1);
}

.footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-newsletter p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-2);
}

.newsletter-form input {
    width: 100%;
    padding: var(--space-2);
    margin-bottom: var(--space-1);
    background: var(--color-navy-light);
    border: 1px solid var(--color-navy-muted);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
}
.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(252, 227, 3, 0.35);
}

.newsletter-form button {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    margin-left: var(--space-2);
}

.footer-bottom a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   INTERACTIVE ELEMENTS & ANIMATIONS (The Premium Polish)
   ========================================================================== */

/* 1. Film Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Scroll Reveal Animations */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal {
    transform: translateY(30px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal-scale {
    transform: scale(0.9);
}
.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Header Shrink on Scroll */
.site-header {
    transition: height 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}
.site-header.scrolled .header-inner {
    height: 72px; /* shrink */
}

/* 3. Overlay for Modals/Drawers */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 48, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 4. Modals (Center) */
.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    background: var(--color-white);
    width: calc(100% - var(--space-4));
    max-width: 440px;
    max-height: calc(100vh - var(--space-4));
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-float);
    transition: all var(--transition-spring);
}
.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
    padding-right: var(--space-4); /* Laisse la place au bouton Fermer */
}
.modal-header p {
    font-size: 0.875rem;
    color: var(--color-navy-muted);
    margin-bottom: var(--space-4);
}

.modal-close {
    position: absolute;
    top: var(--space-2); right: var(--space-2);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-navy-muted);
    cursor: pointer;
    width: 40px; height: 40px;
    border-radius: 50%;
    z-index: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.modal-close:hover {
    background: var(--color-gray-100);
    color: var(--color-navy);
}

/* 5. Drawers (Side Panels) */
.drawer {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--color-white);
    z-index: 2001;
    height: 100dvh;
    transform: translateX(100%);
    /* Fermé : invisible et hors de la navigation clavier ; l'ombre n'apparaît
       qu'à l'ouverture (sinon elle déborde sur le bord droit de la page) */
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s linear 0.5s, box-shadow 0.5s;
    display: flex;
    flex-direction: column;
}
.drawer.active {
    transform: translateX(0);
    visibility: visible;
    box-shadow: var(--shadow-float);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s, box-shadow 0.5s;
}

.drawer-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}
.drawer-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
    padding-right: var(--space-4);
}
.drawer-header p {
    font-size: 0.875rem;
    color: var(--color-navy-muted);
}
.drawer-content {
    padding: var(--space-4);
    overflow-y: auto;
    flex: 1;
}

/* Form Elements inside Modals/Drawers */
.interactive-form .input-group {
    margin-bottom: var(--space-3);
}
.interactive-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: var(--space-1);
}
.interactive-form input, .interactive-form select, .interactive-form textarea {
    width: 100%;
    padding: 12px var(--space-2);
    border: 1px solid #CBD5E1; /* Bordure visible (contraste des champs) */
    border-radius: var(--radius-sm);
    color: var(--color-gray-800);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-white);
    transition: border-color var(--transition-fast);
}
/* Focus des champs : bordure bleu marine (bien visible) + halo jaune */
.interactive-form input:focus, .interactive-form select:focus, .interactive-form textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(252, 227, 3, 0.6);
}
.interactive-form textarea {
    resize: vertical;
    min-height: 96px;
}

/* 6. Toasts (notifications après l'envoi d'un formulaire)
   - succès : bordure et icône vertes ; erreur (.toast-erreur) : rouge
   - en bas à droite, largeur limitée : ne masque pas le formulaire
   - invisible et non cliquable quand il est caché */
.toast {
    position: fixed;
    bottom: var(--space-3); right: var(--space-3);
    max-width: min(420px, calc(100vw - var(--space-4)));
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-succes);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 0.9375rem;
    line-height: 1.45;
    z-index: 9999;
    transform: translateY(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-spring), opacity var(--transition-fast), visibility 0s linear 0.4s;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--transition-spring), opacity var(--transition-fast), visibility 0s;
}
.toast svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.toast-message {
    flex: 1;
    overflow-wrap: anywhere;
}
/* Icône affichée selon l'état (voir main.js) */
.toast-icone-succes { color: #4ADE80; }
.toast-icone-erreur { color: #F87171; display: none; }
.toast.toast-erreur { border-left-color: var(--color-erreur); background: #7F1D1D; } /* Fond rouge foncé : erreur visible d'un coup d'œil */
.toast.toast-erreur .toast-icone-succes { display: none; }
.toast.toast-erreur .toast-icone-erreur { display: block; }
/* Toast de recherche : icône loupe jaune */
#toast-search { border-left-color: var(--color-gold); }
#toast-search .toast-icone-succes { color: var(--color-gold); }
/* Bouton pour fermer le toast avant la fin du délai */
.toast-fermer {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    margin: -4px -8px -4px 0;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}
.toast-fermer:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   ADDED SECTIONS (À Propos, Témoignages, Actualités)
   ========================================================================== */

/* À Propos */
.about-section {
    padding: var(--space-12) 0;
    background: var(--color-white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.about-lead {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}
.about-features {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.af-item {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}
.af-icon {
    width: 48px;
    height: 48px;
    background: var(--color-gray-50);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-gold-text);
    flex-shrink: 0;
}
.af-item strong { display: block; color: var(--color-navy); margin-bottom: 2px; }
.af-item span { color: var(--color-navy-muted); font-size: 0.875rem; }

.about-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
}

/* Témoignages & Preuve Sociale */
.testimonials-section {
    padding: var(--space-12) 0;
    background: var(--color-navy);
    color: var(--color-white);
    text-align: center;
}
.section-head-centre {
    text-align: center;
    margin-bottom: var(--space-12);
}
.testimonials-section h2 {
    color: var(--color-white); /* Titre lisible sur fond bleu marine */
}
.testimonials-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-12);
    /* Fade edges slightly */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.testimonials-marquee-track {
    display: flex;
    gap: var(--space-8);
    width: max-content;
    animation: scrollTestimonials 40s linear infinite;
}
.testimonials-marquee-track:hover {
    animation-play-state: paused;
}
@keyframes scrollTestimonials {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - (var(--space-8) / 2))); }
}
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: var(--space-8);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 350px; /* Fixed width so they don't squish */
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}
.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}
.quote-icon {
    color: var(--color-gold);
    margin-bottom: var(--space-4);
}
.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-200);
    margin-bottom: var(--space-8);
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: auto;
}
.ta-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.ta-avatar-vide {
    background-color: var(--color-gold);
}
.ta-info strong {
    display: block;
    color: var(--color-white);
    font-size: 0.875rem;
    margin-bottom: 2px;
}
.ta-info span {
    display: block;
    color: var(--color-gold);
    font-size: 0.75rem;
}

/* Actualités */
.news-section {
    padding: var(--space-12) 0;
    background: var(--color-gray-50);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}
.news-card {
    position: relative; /* Toute la carte est cliquable (lien du titre étendu) */
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-spring);
    border-top: 3px solid transparent;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-top-color: var(--color-gold);
}
.news-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gold-text);
    margin-bottom: var(--space-3);
    font-weight: 600;
}
.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    line-height: 1.3;
}
/* Le lien du titre couvre toute la carte */
.news-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.news-card h3 a:focus-visible {
    outline: none;
}
.news-card:has(h3 a:focus-visible) {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

/* ==========================================================================
   HAMBURGER MENU
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    /* Hidden by default on ALL screen sizes */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    padding: var(--space-2) var(--space-4) var(--space-3);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    max-height: calc(100dvh - 72px); /* Défile si l'écran est petit (paysage) */
    overflow-y: auto;
}

/* Only show when JS adds .is-open class */
.mobile-nav.is-open {
    display: flex;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-gray-100);
    display: block;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--color-gold-text);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-3);
}

.mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

/* ==========================================================================
   BREAKPOINT 1360PX : header un peu plus compact (écrans 13-14 pouces)
   ========================================================================== */
@media (max-width: 1360px) {
    .main-nav {
        gap: var(--space-3);
    }
    .header-actions {
        gap: var(--space-1);
    }
    .header-actions .btn {
        padding: 12px var(--space-2);
    }
}

/* ==========================================================================
   BREAKPOINT 1200PX (petits portables et tablettes)
   Le menu principal (6 liens + 2 boutons) n'a plus la place : on passe au
   menu hamburger. Le bouton "Déposer un besoin" reste visible dans le
   header jusqu'à 768px ; "Espace client" est dans le menu déroulant.
   ========================================================================== */
@media (max-width: 1200px) {
    .main-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .header-actions .btn-secondary {
        display: none;
    }

    /* Accueil : 5 cartes solutions = 3 + 2 centrées (grille de 6 colonnes) */
    .solutions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .solution-card {
        grid-column: span 2;
    }
    .solution-card:nth-child(4):nth-last-child(2) {
        grid-column: 2 / 4;
    }
    .solution-card:nth-child(5):last-child {
        grid-column: 4 / 6;
    }
    .search-banner {
        flex-direction: column;
    }
    .target-split {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-brand,
    .footer-newsletter {
        grid-column: 1 / -1;
    }
    .footer-newsletter {
        max-width: 560px;
    }
}

@media (max-width: 1200px) {
    .news-grid {
        gap: var(--space-4);
    }
}

@media (max-width: 991px) {
    /* 3 actualités ou 3 secteurs = 2 + 1 centrée (grille de 4 colonnes) */
    .news-grid,
    .secteurs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-3);
    }
    .news-grid > .news-card,
    .secteurs-grid > .secteur-card {
        grid-column: span 2;
    }
    .news-grid > .news-card:nth-child(odd):last-child,
    .secteurs-grid > .secteur-card:nth-child(odd):last-child {
        grid-column: 2 / 4;
    }
    /* 5 cartes solutions = 2 + 2 + 1 centrée (grille de 4 colonnes) */
    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .solution-card:nth-child(4):nth-last-child(2) {
        grid-column: span 2;
    }
    .solution-card:nth-child(5):last-child {
        grid-column: 2 / 4;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .about-visual {
        aspect-ratio: 16/9;
    }
}

/* ==========================================================================
   BREAKPOINT 768PX (Tablettes et mobiles)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-h: 72px;
    }

    /* Layout de base */
    .container {
        padding: 0 var(--space-2);
    }

    /* Header : seul le hamburger reste (les boutons sont dans le menu) */
    .header-actions .btn-primary {
        display: none;
    }
    .mobile-nav {
        padding: var(--space-1) var(--space-2) var(--space-3);
    }

    /* Typographie */
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.35rem;
    }
    .section-head h2 {
        font-size: 1.75rem;
    }

    /* Hero */
    .hero {
        /* padding-top increased to compensate for fixed header (72px on mobile) */
        padding: calc(88px + 72px) 0 48px;
        min-height: 100svh;
        display: block;
    }
    /* Mobile : la photo est en fond, le texte reprend toute la largeur */
    .hero-content {
        max-width: none;
    }
    .hero-bg {
        /* Full-screen background behind text on mobile */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        clip-path: none;
        display: block;
    }
    /* Dark overlay so text stays readable over the background image */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(10, 25, 48, 0.55);
        z-index: 1;
    }
    /* Light text on dark background — !important to override specificity */
    .hero h1,
    .hero h2,
    .hero h3,
    .hero .hero-content h1 {
        color: var(--color-white) !important;
    }
    .hero h1 span {
        color: var(--color-gold) !important;
    }
    .hero p,
    .hero .text-max-width {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1rem;
    }
    /* Le hero est sombre sur mobile : focus clavier en jaune */
    .hero {
        --focus-ring: var(--color-gold);
    }
    .hero-tags,
    .hero-tags span {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    .stat-val {
        color: var(--color-white) !important;
    }
    .stat-lbl {
        color: rgba(255, 255, 255, 0.75) !important;
    }
    .stat-icon {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    .hero-badge {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: var(--space-3);
    }
    .hero-cta-card {
        width: 100%;
        min-width: 0;
    }
    .hero-stats {
        flex-direction: column;
        gap: var(--space-3);
    }
    .hero-tags {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    /* Sections padding */
    .solutions,
    .secteurs,
    .about-section,
    .testimonials-section,
    .news-section {
        padding: var(--space-8) 0;
    }

    /* Solutions */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .solutions-grid .solution-card,
    .solutions-grid .solution-card:nth-child(n) {
        grid-column: auto;
    }
    .section-head {
        margin-bottom: var(--space-6);
    }
    .section-head h2,
    .about-text h2 {
        font-size: 1.75rem;
    }

    /* Secteurs : une carte par ligne (3 cartes : pas de carte orpheline) */
    .secteurs-grid {
        grid-template-columns: 1fr;
    }

    /* À Propos */
    .about-visual {
        aspect-ratio: 4/3;
        order: -1;
    }

    /* Testimonials */
    .testimonial-card {
        width: 280px;
        padding: var(--space-4);
    }

    /* Actualités */
    .news-grid > .news-card,
    .news-grid > .news-card:nth-child(odd):last-child,
    .secteurs-grid > .secteur-card,
    .secteurs-grid > .secteur-card:nth-child(odd):last-child {
        grid-column: auto;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-top: var(--space-6);
    }
    .news-card {
        padding: var(--space-4) var(--space-3);
    }

    /* Search Banner (déjà en colonne depuis 1200px) */
    .search-left,
    .match-right {
        padding: var(--space-4) var(--space-3);
    }
    .search-banner {
        margin-top: var(--space-8);
        margin-bottom: var(--space-8);
    }
    .search-filters {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }
    .search-main-input {
        flex-direction: column;
        gap: var(--space-2);
    }
    .search-main-input input {
        width: 100%;
        border-radius: 4px; /* Reset from desktop 4px 0 0 4px */
    }
    .search-main-input .btn {
        width: 100%;
        justify-content: center;
        border-radius: 4px; /* Reset from desktop 0 4px 4px 0 */
    }

    /* Target Split (Entreprise / Candidat) : image au-dessus */
    .target-split {
        margin-bottom: var(--space-8);
    }
    .tc-content {
        padding: var(--space-4) var(--space-3);
    }
    .target-card {
        flex-direction: column;
    }
    .tc-image {
        width: 100%;
        height: 200px;
        order: -1; /* Mettre l'image en haut de la carte */
    }

    /* Footer */
    .site-footer {
        padding-top: var(--space-8);
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-col ul li {
        justify-content: center;
    }
    .footer-brand,
    .footer-newsletter {
        grid-column: auto;
    }
    .footer-newsletter {
        max-width: none;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    /* Toasts : pleine largeur en bas de l'écran, lisibles au pouce */
    .toast {
        left: var(--space-2);
        right: var(--space-2);
        bottom: var(--space-2);
        max-width: none;
    }
}

/* ==========================================================================
   BREAKPOINT 480PX (Très petits téléphones)
   ========================================================================== */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-eyebrow {
        font-size: 0.75rem;
    }
    .testimonial-card {
        width: 260px;
    }
}

.news-card p {
    color: var(--color-navy-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    align-self: flex-start;
    position: relative;
    z-index: 1;
    transition: gap var(--transition-fast), color var(--transition-fast);
}
.news-card:hover .news-link {
    color: var(--color-gold-text);
    gap: 8px;
}
.news-card:hover h3 a {
    color: var(--color-gold-text);
}

/* ==========================================================================
   TEXTES JUSTIFIÉS (toutes les sections)
   ========================================================================== */
.bandeau-cta p,
.encart-newsletter p,
.form-mention,
.hero-content p,
.about-text p,
.search-left p,
.match-right p,
.tc-content p,
.secteurs p,
.news-card p,
.footer-brand p,
.footer-newsletter p,
.modal-header p,
.drawer-header p {
    text-align: justify;
    hyphens: auto;
}

/* Blocs centrés : texte justifié, dernière ligne centrée */
.solution-card p,
.testimonial-card blockquote {
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
}

/* ==========================================================================
   DÉLAIS D'APPARITION (remplacent les style="transition-delay" en ligne)
   Utilisés sur les éléments .reveal : delai-1 = 0,1 s ... delai-6 = 0,6 s
   ========================================================================== */
.delai-1 { transition-delay: 0.1s; }
.delai-2 { transition-delay: 0.2s; }
.delai-3 { transition-delay: 0.3s; }
.delai-4 { transition-delay: 0.4s; }
.delai-5 { transition-delay: 0.5s; }
.delai-6 { transition-delay: 0.6s; }

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

/* Texte réservé aux lecteurs d'écran (aussi dans pages.css pour l'admin) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lien d'évitement "Aller au contenu" : visible uniquement au clavier */
.lien-evitement {
    position: fixed;
    top: var(--space-1);
    left: var(--space-1);
    z-index: 10000;
    padding: 12px var(--space-2);
    background: var(--color-navy);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
    transition: transform var(--transition-fast);
}
.lien-evitement:focus {
    transform: translateY(0);
}

/* Focus clavier visible sur TOUS les éléments interactifs.
   :focus-visible = uniquement au clavier (pas au clic de souris). */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}
.btn:focus-visible,
.hero-cta-card:focus-visible,
.solution-card:focus-visible,
.secteur-card:focus-visible,
.carte-lien:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}
/* Zones sombres (fond bleu marine) : anneau jaune */
.site-footer,
.page-hero,
.testimonials-section,
.bandeau-cta,
.tc-entreprise,
.search-left,
.toast,
.admin-sidebar,
.espace-header,
.admin-body-connexion {
    --focus-ring: var(--color-gold);
}
/* Sur fond jaune : anneau bleu marine */
.match-right,
.tc-candidat,
.encart-newsletter {
    --focus-ring: var(--color-navy);
}
.lien-evitement:focus-visible {
    outline-color: var(--color-gold);
}

/* Header fixe : les ancres (#solutions, #secteurs...) ne passent pas dessous */
section[id],
footer[id],
main[id] {
    scroll-margin-top: calc(var(--header-h) + var(--space-2));
}

/* Réduction des animations (réglage "Réduire les animations" du système) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    /* Contenus affichés directement, sans glissement */
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
    .hero-bg,
    .hero-badge {
        animation: none;
    }
    /* Témoignages : plus de défilement automatique, la liste se parcourt à la main */
    .testimonials-marquee-track {
        animation: none;
    }
    .testimonials-marquee-container {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        padding-bottom: var(--space-2);
    }
    .testimonial-card[aria-hidden="true"] {
        display: none; /* Doublons utiles uniquement à la boucle animée */
    }
    .btn-spinner {
        animation-duration: 1.5s !important;
        animation-iteration-count: infinite !important;
    }
}

/* Fenêtres et cibles d'ancres recevant le focus par script : pas d'anneau
   sur le conteneur lui-même (le focus est ensuite mis sur un champ) */
.modal:focus,
.drawer:focus,
[tabindex="-1"]:focus {
    outline: none;
}

/* Les éléments .reveal-left / .reveal-right sont décalés de 40px avant leur
   apparition : on coupe ce débordement au niveau du contenu, pour que les
   mobiles n'élargissent jamais la page (pas de dézoom ni de défilement latéral) */
main,
.site-footer {
    overflow-x: clip;
}

/* ==========================================================================
   RÉSULTATS DE LA RECHERCHE DE PROFILS (cartes anonymes, remplies par main.js)
   ========================================================================== */
.resultats-recherche {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-h, 88px) + var(--space-2));
}
.resultats-recherche[hidden] {
    display: none;
}
.resultats-entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}
.resultats-entete h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
}
.resultats-note,
.resultats-plus {
    font-size: 0.9rem;
    color: var(--color-navy-muted);
}
.resultats-plus {
    margin-top: var(--space-3);
    text-align: center;
}
.resultats-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-3);
}
.profil-carte {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    border: 1px solid var(--color-gray-200);
    border-top: 4px solid var(--color-gold);
    border-radius: var(--radius-md, 8px);
    background: var(--color-gray-50);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.profil-carte:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.profil-numero {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gold-text);
}
.profil-metier {
    font-size: 1.15rem;
}
.profil-domaine {
    font-size: 0.9rem;
    color: var(--color-navy-muted);
}
.profil-infos {
    list-style: none;
    margin: var(--space-1) 0 var(--space-2);
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
}
.profil-infos li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    border-bottom: 1px dashed var(--color-gray-200);
    padding-bottom: 4px;
}
.profil-libelle {
    color: var(--color-navy-muted);
}
.profil-demander {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}
@media (max-width: 768px) {
    .resultats-recherche {
        padding: var(--space-3) var(--space-2);
    }
    .resultats-entete .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   BANDEAU DE COOKIES (partials/consentement.php, assets/js/consentement.js)
   Fixé en bas de l'écran, sous les fenêtres (z-index 2000) et les
   notifications. Les deux boutons ont exactement la même apparence :
   refuser est aussi simple qu'accepter. Pendant l'affichage, la page
   réserve en bas la hauteur du bandeau (classe .cookies-ouvert sur <body>,
   variable --cookies-hauteur calculée par le script) : rien n'est masqué.
   ========================================================================== */
.cookies-bandeau {
    --focus-ring: var(--color-gold);
    position: fixed;
    left: var(--space-2);
    right: var(--space-2);
    bottom: var(--space-2);
    z-index: 1900;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--color-navy);
    color: var(--color-white);
    border-top: 4px solid var(--color-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    max-height: calc(100vh - var(--space-4));
    overflow-y: auto;
}
.cookies-bandeau[hidden] { display: none; }
.cookies-bandeau:focus { outline: none; }
.cookies-bandeau:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.cookies-contenu { flex: 1; min-width: 0; }
.cookies-titre {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.cookies-texte,
.cookies-etat {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    hyphens: auto;
}
.cookies-texte a {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}
.cookies-etat { margin-top: 4px; color: var(--color-gold); font-weight: 600; }
.cookies-actions {
    display: flex;
    gap: var(--space-1);
    flex-shrink: 0;
}
.cookies-bouton {
    min-width: 120px;
    min-height: 44px; /* Cible tactile confortable */
    padding: 10px var(--space-3);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-navy);
    background: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.cookies-bouton:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}
/* Choix déjà fait (bandeau rouvert) : repère discret sur le bouton correspondant */
.cookies-bouton[aria-pressed="true"] {
    box-shadow: inset 0 -4px 0 var(--color-gold);
}
body.cookies-ouvert {
    padding-bottom: calc(var(--cookies-hauteur, 0px) + var(--space-3));
}

/* Lien « Gérer les cookies » du pied de page : un bouton présenté comme les liens voisins */
.lien-cookies {
    background: none;
    border: none;
    padding: 0;
    margin-left: var(--space-2);
    font: inherit;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
.lien-cookies:hover { color: var(--color-gold); }
/* Même bouton dans le texte d'une page (cookies.php) */
.prose .lien-cookies {
    margin-left: 0;
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookies-bandeau {
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        padding: var(--space-2);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        max-height: 70vh;
    }
    .cookies-actions .cookies-bouton { flex: 1; min-width: 0; }
    .footer-legal .lien-cookies { margin-left: 0; margin-right: var(--space-2); }
}

/* ==========================================================================
   CORRECTIONS DE RECETTE (tests du site public)
   ========================================================================== */
/* Mobile / tablette : le voile sombre passe AU-DESSUS de la photo du hero
   (texte blanc lisible), le texte au-dessus du voile */
@media (max-width: 768px) {
    .hero-bg { z-index: 0; }
    .hero::before { z-index: 1; }
    .hero-inner { z-index: 2; }
}

/* Liens "Lire la suite" / "En savoir plus" : zone de clic d'au moins 24 px (mobile) */
.news-link,
.link-arrow {
    display: inline-block;
    padding-block: 3px;
}
