/* =========================================
   FICHE SECTEUR - ONE TILT - CSS
   Layout : sommaire sticky gauche + contenu principal droite
   Variables globales (--bleu-petrole, etc.) viennent de style.css
   ========================================= */

:root {
    --tendance-hausse: #2ecc71;
    --tendance-stable: #ffd664;
    --tendance-baisse: #e74c3c;
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
}

.single-secteur, .single-secteur * { font-family: var(--font-primary); }
.single-secteur { width: 100%; max-width: none; padding: 0; margin: 0; }

/* =========================================
   HEADER / HERO
   ========================================= */
.secteur-header {
    width: 100vw; max-width: 100vw; margin-left: calc(-50vw + 50%);
    background: var(--bleu-petrole-dark); position: relative; overflow: hidden;
    padding: 150px 40px 50px; color: var(--blanc);
}
.secteur-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255,214,100,0.08) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(34,87,122,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.secteur-header-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }

.secteur-header-container::after {
    content: ''; position: absolute; top: -10%; 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; pointer-events: none;
}

/* Badge (eyebrow phrase) */
.secteur-badge {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9);
    letter-spacing: 0.08em; margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease forwards;
}
.secteur-badge::before { content: ''; width: 35px; height: 2px; background: var(--jaune-cuivre); }

/* Titre H1 */
.secteur-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1;
    margin: 0 0 20px 0; letter-spacing: -0.02em; color: var(--blanc);
    animation: fadeInUp 0.6s ease forwards 0.1s; opacity: 0;
}

/* Accent jaune souligné dans le H1 */
.secteur-title-accent {
    color: var(--jaune-cuivre);
    position: relative;
    display: inline-block;
}
.secteur-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;
}

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

/* Intro */
.secteur-intro {
    font-size: 1.05rem; color: rgba(255,255,255,0.85); margin: 0 0 30px 0;
    max-width: 650px; line-height: 1.65;
    animation: fadeInUp 0.6s ease forwards 0.2s; opacity: 0;
}
.secteur-intro p { margin: 0; }

/* Stats — cards égales, dynamiques, alignées */
.secteur-stats {
    display: flex; gap: 15px; flex-wrap: wrap;
    animation: fadeInUp 0.6s ease forwards 0.3s; opacity: 0;
}
.secteur-stat {
    flex: 1 1 0; min-width: 140px; max-width: 200px;
    background: rgba(255,214,100,0.1); border: 1px solid rgba(255,214,100,0.25);
    padding: 20px 16px; border-radius: var(--radius-md);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    transition: transform 0.3s ease, background 0.3s ease;
}
.secteur-stat:hover { transform: translateY(-2px); background: rgba(255,214,100,0.15); }
.secteur-stat-value {
    display: block; font-size: 1.6rem; font-weight: 800;
    color: var(--jaune-cuivre); margin-bottom: 8px; line-height: 1.1;
}
.secteur-stat-label {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: rgba(255,255,255,0.85); line-height: 1.35;
}
.secteur-stat-source {
    display: block; font-size: 0.62rem; font-style: italic;
    color: rgba(255,255,255,0.45); margin-top: auto; padding-top: 8px;
}

/* Meta (date + auteur E-E-A-T) — sous les stats */
.secteur-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 20px; margin-bottom: 0; font-size: 0.82rem; color: rgba(255,255,255,0.6);
    opacity: 0; animation: fadeInUp 0.6s ease forwards 0.4s;
}
.secteur-meta-separator { opacity: 0.4; }
.secteur-meta strong { color: rgba(255,255,255,0.85); }

@keyframes fadeInUp { 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; } }

/* =========================================
   BREADCRUMB BAR (après le hero)
   ========================================= */
.breadcrumb-bar {
    width: 100vw; max-width: 100vw; margin-left: calc(-50vw + 50%);
    background: var(--ivoire); border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px 40px; font-size: 0.85rem;
}
.breadcrumb-bar-inner { max-width: 1200px; margin: 0 auto; }

.secteur-breadcrumb { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.secteur-breadcrumb a {
    color: var(--anthracite-muted); text-decoration: none;
    transition: color 0.2s ease;
}
.secteur-breadcrumb a:hover { color: var(--bleu-petrole); text-decoration: underline; }
.secteur-breadcrumb .separator { margin: 0 6px; opacity: 0.4; color: var(--anthracite-muted); }
.secteur-breadcrumb .current { color: var(--anthracite); font-weight: 600; }

/* =========================================
   BODY LAYOUT — Sommaire + Contenu
   ========================================= */
.secteur-body { padding: 0 40px; }
.secteur-container {
    max-width: 1200px; margin: 40px auto;
    display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start;
}

/* =========================================
   SOMMAIRE (colonne gauche sticky — card blanche)
   ========================================= */
.sommaire {
    position: sticky;
    top: calc(var(--header-height, 110px) + 30px);
    max-height: calc(100vh - var(--header-height, 110px) - 60px);
    overflow-y: auto;
    background: var(--blanc);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

body.admin-bar .sommaire {
    top: calc(var(--header-height, 110px) + 62px);
}

.sommaire-label {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--bleu-petrole-dark);
    margin: 0 0 16px 0; padding: 0 0 12px 0;
    border-bottom: 2px solid var(--jaune-cuivre);
}

.sommaire-list {
    list-style: none; padding: 0; margin: 0;
    border-left: 2px solid var(--bleu-petrole-pale);
}

.sommaire-list li { margin: 0; }

.sommaire-link {
    display: block; padding: 8px 0 8px 16px;
    color: var(--anthracite); text-decoration: none;
    font-size: 0.85rem; font-weight: 600; line-height: 1.35;
    border-left: 2px solid transparent; margin-left: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sommaire-link:hover { color: var(--bleu-petrole); }

.sommaire-link.active {
    color: var(--bleu-petrole-dark); font-weight: 700;
    border-left-color: var(--jaune-cuivre);
}

/* =========================================
   CONTENU PRINCIPAL
   ========================================= */
.secteur-main { min-width: 0; }
.secteur-section { margin-bottom: 65px; }

/* Animations d'entrée au scroll */
.secteur-section {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.secteur-section.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================
   TITRES DE SECTION — Plus gros, noir/blanc, hover
   ========================================= */
.secteur-section-title {
    font-size: 2rem; font-weight: 800; color: var(--anthracite);
    margin-bottom: 25px; padding-left: 18px;
    border-left: 4px solid var(--jaune-cuivre);
    line-height: 1.2; transition: color 0.3s ease;
}
.secteur-section-title:hover {
    color: var(--bleu-petrole);
}

/* Eyebrow + H2 pattern (sections CTA, FAQ, Tous secteurs) */
.secteur-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; font-weight: 700; color: var(--bleu-petrole);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.secteur-eyebrow::before {
    content: ''; width: 24px; height: 3px;
    background: var(--jaune-cuivre); border-radius: 2px;
}
.secteur-section--cta .secteur-eyebrow { color: rgba(255,255,255,0.7); }
.secteur-section--cta .secteur-eyebrow::before { background: var(--jaune-cuivre); }

.secteur-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
    color: var(--anthracite); margin-bottom: 1rem; line-height: 1.2;
    border: none; padding: 0;
}
.secteur-cta-title strong { color: var(--bleu-petrole); }
.secteur-section--cta .secteur-cta-title { color: var(--blanc); }
.secteur-section--cta .secteur-cta-title strong { color: var(--jaune-cuivre); }

/* Sommaire sub-items */
.sommaire-link--sub {
    font-size: 0.82rem; font-weight: 500;
    padding-left: 28px; color: var(--anthracite-muted);
}

/* Sous-titres H3 dans les sections */
.secteur-subsection-title {
    font-size: 1.3rem; font-weight: 700; color: var(--anthracite);
    margin: 30px 0 15px 0; line-height: 1.3;
}

/* =========================================
   CONTENU DES SECTIONS (texte libre, pas de card)
   ========================================= */
.secteur-section-content {
    line-height: 1.8; color: var(--anthracite); font-size: 0.98rem;
}

.secteur-section-content p { margin: 0 0 14px 0; }
.secteur-section-content p:last-child { margin-bottom: 0; }
.secteur-section-content strong { color: var(--bleu-petrole-dark); }
.secteur-section-content em { color: var(--anthracite-muted); font-size: 0.9rem; }
.secteur-section-content ul, .secteur-section-content ol { margin: 0 0 14px 20px; }
.secteur-section-content li { margin-bottom: 6px; }
.secteur-section-content h3 { color: var(--bleu-petrole-dark); margin: 25px 0 15px 0; }
.secteur-section-content a { color: var(--bleu-petrole); font-weight: 600; text-decoration: none; }
.secteur-section-content a:hover { text-decoration: underline; }

/* Premier paragraphe plus grand — uniquement sur le 1ᵉʳ bloc de contenu (pas sur chaque sous-section éditoriale) */
.secteur-section > .secteur-section-content:first-of-type > p:first-child { font-size: 1.05rem; }

/* =========================================
   TENDANCES — Card blanche
   ========================================= */
.secteur-tendances {
    background: var(--blanc); padding: 30px;
    border-radius: var(--radius-md); box-shadow: var(--shadow-card);
    line-height: 1.7; color: var(--anthracite); font-size: 0.96rem;
}
.secteur-tendances h3 { color: var(--bleu-petrole-dark); margin: 25px 0 15px 0; font-size: 1.15rem; }
.secteur-tendances h3:first-child { margin-top: 0; }
.secteur-tendances p { margin: 0 0 15px 0; }
.secteur-tendances p:last-child { margin-bottom: 0; }
.secteur-tendances ul { margin: 0 0 15px 20px; }
.secteur-tendances li { margin-bottom: 6px; }
.secteur-tendances strong { color: var(--bleu-petrole); font-weight: 700; }
.secteur-tendances b { color: var(--bleu-petrole); font-weight: 700; }
.secteur-tendances a { color: var(--bleu-petrole); font-weight: 600; text-decoration: none; }
.secteur-tendances a:hover { text-decoration: underline; }

/* =========================================
   MÉTIERS — Bullet points
   ========================================= */
.secteur-metiers-list {
    list-style: disc; padding-left: 24px; margin: 14px 0;
}
.secteur-metiers-list li {
    margin-bottom: 10px; line-height: 1.6; font-size: 0.98rem;
    color: var(--anthracite);
}
.secteur-metiers-list li a { color: var(--bleu-petrole); font-weight: 600; text-decoration: none; }
.secteur-metiers-list li a:hover { text-decoration: underline; }

/* =========================================
   LIEN "VOIR TOUTES LES FICHES"
   ========================================= */
.secteur-voir-tous {
    margin-top: 18px;
}
.secteur-voir-tous a {
    color: var(--bleu-petrole); font-weight: 700; font-size: 0.95rem;
    text-decoration: none; transition: color 0.2s ease;
}
.secteur-voir-tous a:hover {
    color: var(--bleu-petrole-dark); text-decoration: underline;
}

/* =========================================
   TABLEAUX — Certifications ACF + tables HTML du contenu éditorial
   Même design (navy header, rayures ivoire, hover bleu, coins arrondis, shadow)
   ========================================= */
.secteur-table-wrapper {
    overflow-x: auto; margin: 18px 0;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
}
.secteur-certifications-table,
.secteur-section-content table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--blanc);
    font-size: 0.92rem; line-height: 1.5;
    border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: var(--shadow-card);
    margin: 18px 0;
}
/* Le wrapper gère déjà le shadow/radius du tableau certifs */
.secteur-table-wrapper .secteur-certifications-table { box-shadow: none; margin: 0; border-radius: 0; }

.secteur-certifications-table thead th,
.secteur-section-content table thead th {
    background: var(--bleu-petrole-dark); color: var(--blanc);
    padding: 12px 16px; text-align: left; font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em;
    border: none;
}
.secteur-certifications-table thead th:first-child,
.secteur-section-content table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}
.secteur-certifications-table thead th:last-child,
.secteur-section-content table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.secteur-certifications-table tbody tr,
.secteur-section-content table tbody tr {
    background: var(--blanc);
    transition: background 0.2s ease;
}
.secteur-certifications-table tbody tr:nth-child(even),
.secteur-section-content table tbody tr:nth-child(even) {
    background: var(--ivoire);
}
.secteur-certifications-table tbody tr:hover,
.secteur-section-content table tbody tr:hover {
    background: var(--bleu-petrole-pale);
}

.secteur-certifications-table tbody td,
.secteur-section-content table tbody td {
    padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--anthracite); vertical-align: top;
}
.secteur-certifications-table tbody tr:last-child td,
.secteur-section-content table tbody tr:last-child td {
    border-bottom: none;
}
.secteur-certifications-table tbody td strong,
.secteur-section-content table tbody td strong {
    color: var(--bleu-petrole-dark);
}

/* =========================================
   DOULEURS RECRUTEMENT — Cards blanches avec barre gradient
   ========================================= */
.secteur-douleurs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px; margin: 20px 0;
}
.secteur-douleur-card {
    background: var(--blanc); padding: 24px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--bleu-petrole-pale);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.secteur-douleur-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-top-color: var(--jaune-cuivre);
}
.secteur-douleur-label {
    display: inline-block; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 3px 8px; border-radius: 4px; margin-bottom: 8px;
}
.secteur-douleur-label--defi {
    background: rgba(231,76,60,0.1); color: #c0392b;
}
.secteur-douleur-label--solution {
    background: rgba(46,204,113,0.1); color: #27ae60;
    margin-top: 14px;
}
.secteur-douleur-title {
    font-size: 0.95rem; font-weight: 700; color: var(--anthracite);
    margin: 0 0 4px 0; line-height: 1.3;
}
.secteur-douleur-solution {
    font-size: 0.88rem; color: var(--anthracite-muted);
    margin: 0; line-height: 1.6;
}

/* =========================================
   OFFRES TALEEZ PREVIEW — Encadré bleu
   ========================================= */
.secteur-offres-encadre {
    background: var(--bleu-petrole);
    border-radius: var(--radius-lg, 12px);
    padding: 32px 34px !important;
}
.secteur-offres-encadre-title {
    font-size: 1.25rem; font-weight: 700; color: var(--blanc);
    margin: 0 0 18px 0; line-height: 1.3;
}
.secteur-offres-preview {
    margin-top: 0;
}
.secteur-offres-loading {
    color: rgba(255,255,255,0.7); font-style: italic; font-size: 0.9rem;
}
.secteur-offres-empty {
    background: rgba(255,255,255,0.1); padding: 20px; border-radius: var(--radius-md);
    text-align: center;
}
.secteur-offres-empty p {
    margin: 0 0 10px 0; font-size: 0.95rem; color: rgba(255,255,255,0.8);
}
.secteur-offres-cta-link {
    color: var(--jaune-cuivre); font-weight: 700; text-decoration: none;
    font-size: 0.92rem;
}
.secteur-offres-cta-link:hover { text-decoration: underline; }

.secteur-offres-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.secteur-offre-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 20px;
    background: var(--blanc); border: 1px solid rgba(34,87,122,0.12);
    border-radius: var(--radius-md); text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.secteur-offre-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.secteur-offre-title {
    font-size: 0.95rem; font-weight: 700; color: var(--anthracite);
    line-height: 1.3;
}
.secteur-offre-meta {
    font-size: 0.82rem; color: var(--anthracite-muted);
}
.secteur-offre-date {
    font-size: 0.78rem; color: var(--anthracite-muted); font-style: italic;
}
.secteur-offre-link {
    font-size: 0.85rem; font-weight: 600; color: var(--bleu-petrole);
    margin-top: auto;
}

.secteur-offres-voir-tout {
    margin-top: 18px;
    text-align: center;
}
.secteur-offres-voir-tout-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gradient-cuivre);
    color: var(--anthracite) !important;
    font-weight: 700; font-size: 0.92rem;
    padding: 12px var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 214, 100, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.secteur-offres-voir-tout-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 214, 100, 0.45);
    text-decoration: none;
}

/* =========================================
   SECTION CTA — Encadré bleu pétrole
   ========================================= */
.secteur-section--cta {
    background: var(--bleu-petrole); padding: 35px;
    border-radius: var(--radius-lg); color: var(--blanc);
}
/* CTA section no longer uses .secteur-section-title */
.secteur-section--cta p { color: rgba(255,255,255,0.85); }

.secteur-cta-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 20px; }

.secteur-cta-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; background: var(--jaune-cuivre); color: var(--bleu-petrole-dark);
    font-weight: 700; font-size: 0.95rem; border-radius: var(--radius-md);
    text-decoration: none; transition: all 0.3s ease;
}
.secteur-cta-primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,214,100,0.35);
}

.secteur-cta-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; background: transparent; color: var(--blanc);
    font-weight: 600; font-size: 0.95rem; border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md); text-decoration: none; transition: all 0.3s ease;
}
.secteur-cta-secondary:hover {
    background: var(--blanc); color: var(--bleu-petrole-dark);
    border-color: var(--blanc);
}

/* =========================================
   FAQ — Accordéon (utilise les styles globaux .faq-item de style.css)
   ========================================= */
.secteur-faq-accordion {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 20px;
}

/* =========================================
   NAVIGATION SECTEURS (pills)
   ========================================= */
.secteur-nav-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
}

.secteur-nav-pill {
    display: inline-block; padding: 8px 18px;
    background: var(--blanc); border: 1px solid var(--bleu-petrole-pale);
    border-radius: 20px; color: var(--anthracite);
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s ease;
}

.secteur-nav-pill:hover {
    background: var(--bleu-petrole-pale); color: var(--bleu-petrole-dark);
}

.secteur-nav-back {
    display: inline-block; margin-top: 15px; color: var(--bleu-petrole);
    font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.secteur-nav-back:hover { text-decoration: underline; }

/* =========================================
   LIENS CONTEXTUELS (bridge) — Encadré blanc
   ========================================= */
.secteur-bridge {
    margin-top: 18px; font-size: 0.9rem; color: var(--anthracite-muted);
    font-style: italic; padding: 14px 18px;
    background: var(--blanc); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    border-left: 3px solid var(--jaune-cuivre);
}
.secteur-bridge a {
    color: var(--bleu-petrole); font-weight: 600; text-decoration: none;
    border-bottom: 1px solid var(--bleu-petrole-pale);
    transition: border-color 0.2s ease;
}
.secteur-bridge a:hover { border-bottom-color: var(--bleu-petrole); }

/* =========================================
   FORMULAIRE CV SPONTANÉ — Même fond que CTA
   ========================================= */
.secteur-section--cv-form { margin-bottom: 0; }

.cv-form-banner {
    background: var(--bleu-petrole);
    color: var(--blanc); padding: 40px; border-radius: var(--radius-lg);
    text-align: center; position: relative; overflow: hidden;
}
.cv-form-banner h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--blanc);
    margin: 0 0 10px 0; position: relative;
}
.cv-form-banner > p {
    color: rgba(255,255,255,0.85); margin: 0 0 25px 0; position: relative;
}

.cv-form {
    position: relative; max-width: 600px; margin: 0 auto; text-align: left;
}

.cv-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px;
}

.cv-form-field label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: rgba(255,255,255,0.9); margin-bottom: 5px;
}
.cv-form-field input {
    width: 100%; padding: 12px 14px;
    border: 2px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1); color: var(--blanc);
    font-size: 0.95rem; font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}
.cv-form-field input::placeholder { color: rgba(255,255,255,0.4); }
.cv-form-field input:focus {
    outline: none; border-color: var(--jaune-cuivre);
    background: rgba(255,255,255,0.15);
}

/* Zone upload fichier */
.cv-form-upload {
    position: relative; border: 2px dashed rgba(255,255,255,0.3);
    border-radius: var(--radius-md); padding: 24px; text-align: center;
    margin-bottom: 16px; cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.cv-form-upload:hover,
.cv-form-upload.dragover {
    border-color: var(--jaune-cuivre); background: rgba(255,214,100,0.05);
}
.cv-form-upload.has-file { border-color: rgba(255,255,255,0.5); border-style: solid; }
.cv-form-upload input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.cv-form-upload-icon { display: block; font-size: 2rem; margin-bottom: 8px; }
.cv-form-upload-text { display: block; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.cv-form-upload-text strong { color: var(--jaune-cuivre); text-decoration: underline; }
.cv-form-upload-hint { display: block; color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 4px; }

.cv-form-upload-filename {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; color: var(--jaune-cuivre); font-weight: 600; font-size: 0.9rem;
}
.cv-form-upload-remove {
    background: none; border: none; color: rgba(255,255,255,0.6);
    cursor: pointer; font-size: 1rem; padding: 2px 6px;
}
.cv-form-upload-remove:hover { color: var(--blanc); }

/* Bouton submit */
.cv-form-submit {
    display: block; width: 100%; padding: 16px;
    background: var(--jaune-cuivre); color: var(--bleu-petrole-dark);
    border: none; border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.3s ease;
}
.cv-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,214,100,0.35);
}
.cv-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Messages feedback */
.cv-form-message {
    margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600; text-align: center;
}
.cv-form-message--success {
    background: rgba(46,204,113,0.15); color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.3);
}
.cv-form-message--error {
    background: rgba(231,76,60,0.15); color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
}

/* =========================================
   SOMMAIRE MOBILE — Drawer slide-out gauche
   ========================================= */
.sommaire-mobile-trigger {
    display: none;
}

.sommaire-drawer {
    display: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablette + Mobile : drawer hamburger, pas de sommaire inline */
@media (max-width: 1024px) {
    .secteur-container { grid-template-columns: 1fr; gap: 0; }
    .sommaire { display: none; }

    /* Drawer trigger */
    .sommaire-mobile-trigger {
        display: block; padding: 16px 0 0;
    }
    .sommaire-mobile-trigger button {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 10px 16px; border: 1px solid rgba(0,0,0,0.12);
        border-radius: var(--radius-md); background: var(--blanc);
        font-size: 0.88rem; font-weight: 600; color: var(--anthracite);
        font-family: inherit; cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .sommaire-mobile-trigger button:hover {
        background: var(--ivoire); border-color: var(--bleu-petrole-pale);
    }

    /* Drawer panel */
    .sommaire-drawer { display: block; }
    .sommaire-drawer-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4); z-index: 9998;
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .sommaire-drawer.is-open .sommaire-drawer-overlay {
        opacity: 1; visibility: visible;
    }
    .sommaire-drawer-panel {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 320px; max-width: 85vw;
        background: var(--blanc); z-index: 9999;
        padding: 24px; overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .sommaire-drawer.is-open .sommaire-drawer-panel {
        transform: translateX(0);
    }
    .sommaire-drawer-header {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 16px; padding-bottom: 12px;
        border-bottom: 2px solid var(--jaune-cuivre);
    }
    .sommaire-drawer-header .sommaire-label {
        margin: 0; padding: 0; border-bottom: none;
    }
    .sommaire-drawer-close {
        background: none; border: none; cursor: pointer;
        color: var(--anthracite-muted); padding: 4px;
        transition: color 0.2s ease;
    }
    .sommaire-drawer-close:hover { color: var(--anthracite); }
    .sommaire-drawer-panel .sommaire-list {
        list-style: none; padding: 0; margin: 0;
        border-left: 2px solid var(--bleu-petrole-pale);
    }
    .sommaire-drawer-panel .sommaire-list li { margin: 0; }
    .sommaire-drawer-panel .sommaire-link {
        display: block; padding: 10px 0 10px 16px;
        color: var(--anthracite); text-decoration: none;
        font-size: 0.88rem; font-weight: 600; line-height: 1.35;
        border-left: 2px solid transparent; margin-left: -2px;
        transition: color 0.2s ease, border-color 0.2s ease;
        white-space: normal;
    }
    .sommaire-drawer-panel .sommaire-link:hover { color: var(--bleu-petrole); }
    .sommaire-drawer-panel .sommaire-link.active {
        color: var(--bleu-petrole-dark); font-weight: 700;
        border-left-color: var(--jaune-cuivre);
    }
    body.sommaire-drawer-open { overflow: hidden; }

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

/* Mobile */
@media (max-width: 768px) {
    .secteur-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .secteur-meta-separator { display: none; }
    .secteur-header { padding: 100px 20px 40px; }
    .secteur-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .secteur-subtitle { font-size: 0.95rem; }
    .secteur-body { padding: 0 20px; }
    .secteur-container { margin: 20px auto; }
    .secteur-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .secteur-stat { width: calc(50% - 8px); }
    .secteur-section-title { font-size: 1.5rem; }
    .secteur-section-content { font-size: 0.95rem; }
    .secteur-section--cta { padding: 25px 20px; }
    .secteur-cta-buttons { flex-direction: column; }
    .secteur-cta-primary, .secteur-cta-secondary { width: 100%; text-align: center; }
    .secteur-nav-pills { gap: 8px; flex-wrap: wrap; }
    .secteur-nav-pill { font-size: 0.85rem; padding: 6px 14px; }
    .cv-form-grid { grid-template-columns: 1fr; }
    .cv-form-banner { padding: 30px 20px; }
    .cv-form-upload-zone { padding: 18px; }
    .secteur-offres-grid { grid-template-columns: 1fr; }
    .secteur-faq-accordion .faq-question-text { font-size: 0.92rem; }
    .secteur-douleurs-grid { grid-template-columns: 1fr; }
    .breadcrumb-bar { padding: 10px 20px; font-size: 0.8rem; }
    .secteur-certifications-table,
    .secteur-section-content table { font-size: 0.85rem; }
    .secteur-certifications-table thead th,
    .secteur-certifications-table tbody td,
    .secteur-section-content table thead th,
    .secteur-section-content table tbody td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .secteur-header { padding: 100px 16px 30px; }
    .secteur-body { padding: 0 16px; }
    .secteur-stat { width: 100%; }
    .secteur-section--cta { padding: 20px 16px; }
    .cv-form-banner { padding: 24px 16px; }
    .secteur-section-title { font-size: 1.3rem; }
    .secteur-douleurs-card { padding: 1.2rem; }
}

/* WordPress fixes */
body:not(.home) article:first-of-type, .site-content { margin-top: 0 !important; }
.single-secteur .secteur-header { margin-top: 0 !important; }
