/* ==========================================================
   HappyLinking — styles partagés des pages prestations
   (prest-recrutement / prest-integration / prest-fidelisation / prest-formation)
   Base reprise à l'identique de prest-formation.php + composants SEO
   ========================================================== */
:root {
    --orange:    #f76d37;
    --orange-lt: #fff3ee;
    --dark:      #1a1a1a;
    --grey:      #6b7280;
    --grey-lt:   #f8f8f8;
    --radius:    12px;
    --shadow:    0 4px 24px rgba(0,0,0,.08);
}

/* ── HERO BANDEAU ── */
.form-hero {
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
    padding: 52px 0 64px;
    position: relative;
    overflow: hidden;
}
.form-hero::after {
    content:'';
    position:absolute; right:-60px; top:-60px;
    width:320px; height:320px; border-radius:50%;
    background:radial-gradient(circle,rgba(247,109,55,.2) 0%,transparent 70%);
    pointer-events:none;
}
.form-hero-inner {
    max-width:1100px; margin:0 auto; padding:0 24px;
    position:relative; z-index:1;
}
.form-hero-label {
    display:inline-flex; align-items:center; gap:8px;
    color:var(--orange); font-size:.78rem; font-weight:700;
    text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px;
}
.form-hero-label span {
    width:7px; height:7px; border-radius:50%; background:var(--orange);
}
.form-hero h1 {
    font-size:clamp(1.8rem,4vw,2.8rem); font-weight:800;
    color:#fff; margin:0 0 12px; line-height:1.2;
}
.form-hero h1 em { color:var(--orange); font-style:normal; }
.form-hero p { color:rgba(255,255,255,.55); font-size:.97rem; max-width:520px; margin:0; }

/* ── LAYOUT GÉNÉRAL ── */
.form-content { max-width:1100px; margin:0 auto; padding:52px 24px 60px; }

/* ── SECTION TITRE ── */
.section-eyebrow {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--orange-lt); color:var(--orange);
    border-radius:50px; padding:5px 14px;
    font-size:.75rem; font-weight:700;
    text-transform:uppercase; letter-spacing:.07em;
    margin-bottom:14px;
}
.section-title {
    font-size:1.55rem; font-weight:800; color:var(--dark);
    margin:0 0 8px; line-height:1.25;
}
.section-sub { color:var(--grey); font-size:.97rem; margin-bottom:32px; line-height:1.65; }

/* ── CARDS PRESTATIONS ── */
.presta-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap:22px;
    margin-bottom:56px;
}
.presta-card {
    background:#fff;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    border:1.5px solid #ebebeb;
    padding:28px 24px;
    transition:transform .22s, box-shadow .22s, border-color .22s;
}
.presta-card:hover {
    transform:translateY(-5px);
    box-shadow:0 12px 36px rgba(247,109,55,.14);
    border-color:rgba(247,109,55,.3);
}
.presta-icon {
    width:52px; height:52px; border-radius:12px;
    background:var(--orange-lt);
    display:flex; align-items:center; justify-content:center;
    font-size:1.4rem; margin-bottom:16px;
    color:var(--orange);
}
.presta-card h3 {
    font-size:1.05rem; font-weight:800; color:var(--dark);
    margin:0 0 12px; line-height:1.3;
}
.presta-item {
    display:flex; align-items:flex-start; gap:9px;
    font-size:.88rem; color:#555; line-height:1.55;
    margin-bottom:8px;
}
.presta-item:last-child { margin-bottom:0; }
.presta-dot {
    width:6px; height:6px; border-radius:50%;
    background:var(--orange); flex-shrink:0; margin-top:6px;
}

/* ── MÉTHODE STEPS ── */
.methode-wrap {
    background:var(--grey-lt);
    border-radius:var(--radius);
    padding:36px 32px;
    margin-bottom:56px;
    border:1.5px solid #eee;
}
.steps-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:20px;
    margin-top:24px;
}
.step {
    text-align:center;
    padding:20px 14px;
    background:#fff;
    border-radius:10px;
    border:1.5px solid #eee;
    position:relative;
}
.step-num {
    width:36px; height:36px; border-radius:50%;
    background:var(--orange); color:#fff;
    font-weight:800; font-size:.95rem;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 12px;
}
.step h4 { font-size:.88rem; font-weight:700; color:var(--dark); margin:0 0 6px; }
.step p  { font-size:.78rem; color:var(--grey); margin:0; line-height:1.5; }

/* ── SÉPARATEUR ── */
.hl-divider {
    height:4px;
    background:linear-gradient(90deg, var(--orange) 0%, #ff9a56 60%, transparent 100%);
    border-radius:2px;
    margin:56px 0;
    width:120px;
}

/* ── SECTION ÉCOLES ── */
.ecoles-section {
    background:linear-gradient(135deg,#1c1c1c 0%,#2a2a2a 100%);
    border-radius:var(--radius);
    padding:40px 36px;
    margin-bottom:56px;
    position:relative; overflow:hidden;
}
.ecoles-section::before {
    content:'';
    position:absolute; left:-60px; bottom:-60px;
    width:280px; height:280px; border-radius:50%;
    background:radial-gradient(circle,rgba(247,109,55,.15) 0%,transparent 70%);
    pointer-events:none;
}
.ecoles-section .section-title { color:#fff; }
.ecoles-section .section-sub   { color:rgba(255,255,255,.55); }

/* BADGES DIPLÔMES */
.diplome-grid {
    display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px;
}
.diplome-badge {
    background:rgba(247,109,55,.15);
    border:1px solid rgba(247,109,55,.3);
    color:var(--orange);
    border-radius:8px;
    padding:9px 16px;
    font-size:.83rem; font-weight:700;
    display:inline-flex; align-items:center; gap:7px;
}
.diplome-badge i { font-size:.75rem; }

/* LOGOS ÉCOLES */
.logos-grid {
    display:flex; flex-wrap:wrap; gap:16px; align-items:center;
}
.logo-card {
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    padding:14px 22px;
    display:flex; align-items:center; justify-content:center;
    min-width:120px; min-height:64px;
    transition:background .2s, border-color .2s;
}
.logo-card:hover {
    background:rgba(255,255,255,.14);
    border-color:rgba(247,109,55,.4);
}
.logo-card img {
    max-height:38px; max-width:110px;
    object-fit:contain; filter:brightness(0) invert(1);
    opacity:.85; transition:opacity .2s;
}
.logo-card:hover img { opacity:1; }
/* Fallback texte si image indisponible */
.logo-text {
    font-weight:800; font-size:1rem;
    color:rgba(255,255,255,.85);
    letter-spacing:.04em;
    text-align:center;
    line-height:1.2;
}
.logo-text small {
    display:block; font-weight:400;
    font-size:.65rem; opacity:.6;
    text-transform:uppercase; letter-spacing:.06em; margin-top:2px;
}

/* ── CTA STRIP ── */
.form-cta {
    background:linear-gradient(135deg, var(--orange) 0%, #ff9a56 100%);
    border-radius:var(--radius);
    padding:40px 36px;
    text-align:center;
}
.form-cta h3 { font-size:1.5rem; font-weight:800; color:#fff; margin-bottom:8px; }
.form-cta p  { color:rgba(255,255,255,.85); margin-bottom:22px; }
.form-cta a {
    display:inline-flex; align-items:center; gap:8px;
    background:#fff; color:var(--orange) !important;
    border-radius:50px; padding:12px 28px;
    font-weight:800; font-size:.95rem;
    text-decoration:none; transition:transform .2s;
}
.form-cta a:hover { transform:scale(1.05); text-decoration:none; }

/* ── RESPONSIVE ── */
@media(max-width:640px) {
    .form-content { padding:32px 16px 40px; }
    .presta-grid  { grid-template-columns:1fr; gap:14px; }
    .steps-grid   { grid-template-columns:1fr 1fr; }
    .methode-wrap, .ecoles-section, .form-cta { padding:24px 18px; }
    .form-hero { padding:40px 0 56px; }
}

/* ==========================================================
   COMPOSANTS AJOUTÉS (harmonisation + SEO)
   ========================================================== */

/* Les titres de section passent en <h2> / <h3> sémantiques :
   on neutralise les styles globaux de style.css (padding-bottom 10px…) */
h2.section-title, h3.section-title { padding:0; }
.presta-card h3, .atout h3, .suivi-card h3, .autre-presta h3 { padding:0; }
.usesub_text { margin:0; }

/* Le bandeau .sub_title* est en float:left (style.css) : on le « clear »
   pour que le contenu démarre bien dessous (corrige un débordement mobile) */
.form-content { clear:both; }
/* style.css impose margin:20px aux <p> : on réaligne les sous-titres sur les titres */
.section-sub { margin:0 0 32px; }

/* Étapes et CTA en titres sémantiques (h3 / h2) */
.step h3 { font-size:.88rem; font-weight:700; color:var(--dark); margin:0 0 6px; padding:0; }
.form-cta h2 { font-size:1.5rem; font-weight:800; color:#fff; margin:0 0 8px; padding:0; }
.ecoles-label {
    color:rgba(255,255,255,.6); font-size:.88rem; margin-bottom:20px;
    font-weight:600; text-transform:uppercase; letter-spacing:.06em;
    position:relative; z-index:1;
}
.ecoles-label i { color:var(--orange); margin-right:6px; }

/* ── FIL D'ARIANE ── */
.hl-breadcrumb {
    font-size:.8rem; color:var(--grey);
    margin:0 0 28px; padding:0;
    display:flex; flex-wrap:wrap; align-items:center; gap:6px;
}
.hl-breadcrumb a { color:var(--grey); text-decoration:none; }
.hl-breadcrumb a:hover { color:var(--orange); }
.hl-breadcrumb .sep { opacity:.5; }
.hl-breadcrumb [aria-current] { color:var(--dark); font-weight:600; }

/* ── TEXTE ÉDITORIAL ── */
.presta-lead {
    font-size:1rem; color:#444; line-height:1.75;
    max-width:860px; margin:0 0 36px;
}
.presta-lead strong { color:var(--dark); }
.presta-lead a, .faq-item a, .presta-item a { color:var(--orange); font-weight:600; }

/* ── ATOUTS / ENJEUX ── */
.atouts-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:18px; margin-bottom:56px;
}
.atout {
    background:#fff; border:1.5px solid #ebebeb;
    border-radius:var(--radius); padding:22px 20px;
    transition:border-color .2s, box-shadow .2s;
}
.atout:hover { border-color:rgba(247,109,55,.3); box-shadow:0 8px 24px rgba(247,109,55,.10); }
.atout-icon {
    width:40px; height:40px; border-radius:10px;
    background:var(--orange-lt); color:var(--orange);
    display:flex; align-items:center; justify-content:center;
    font-size:1.05rem; margin-bottom:12px;
}
.atout h3 { font-size:.95rem; font-weight:800; color:var(--dark); margin:0 0 6px; line-height:1.3; }
.atout p  { font-size:.84rem; color:var(--grey); margin:0; line-height:1.55; }

/* ── CARTES SUR FOND SOMBRE ── */
.suivi-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:16px; margin-bottom:8px; position:relative; z-index:1;
}
.suivi-card {
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px; padding:20px 18px;
}
.suivi-card h3 {
    font-size:.95rem; font-weight:800; color:#fff; margin:0 0 8px;
    display:flex; align-items:center; gap:8px;
}
.suivi-card h3 i { color:var(--orange); }
.suivi-card p { font-size:.84rem; color:rgba(255,255,255,.6); margin:0; line-height:1.55; }
.suivi-card p a { color:var(--orange); font-weight:700; }
.ecoles-section .diplome-grid, .ecoles-section .logos-grid { position:relative; z-index:1; }
.ecoles-note {
    color:rgba(255,255,255,.45); font-size:.8rem;
    margin:20px 0 0; position:relative; z-index:1;
}
.ecoles-note a { color:var(--orange); font-weight:700; }

/* ── FAQ ── */
.faq-wrap { margin-bottom:56px; }
.faq-item {
    background:#fff; border:1.5px solid #ebebeb;
    border-radius:10px; margin-bottom:10px;
    transition:border-color .2s;
}
.faq-item[open] { border-color:rgba(247,109,55,.35); }
.faq-item summary {
    list-style:none; cursor:pointer;
    padding:16px 48px 16px 20px; position:relative;
    font-weight:700; font-size:.95rem; color:var(--dark); line-height:1.4;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after {
    content:'+'; position:absolute; right:18px; top:50%;
    transform:translateY(-50%);
    width:24px; height:24px; border-radius:50%;
    background:var(--orange-lt); color:var(--orange);
    font-weight:800; font-size:1rem; line-height:24px; text-align:center;
}
.faq-item[open] summary::after { content:'–'; }
.faq-answer { padding:0 20px 18px; font-size:.9rem; color:#555; line-height:1.7; }
.faq-answer p { margin:0; }

/* ── MAILLAGE INTERNE ── */
.liens-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:28px; margin-bottom:56px;
}
.liens-col h2 { font-size:1.1rem; font-weight:800; color:var(--dark); margin:0 0 16px; padding:0; }
.article-link {
    display:flex; align-items:flex-start; gap:12px;
    padding:14px 16px; margin-bottom:10px;
    background:var(--grey-lt); border:1.5px solid #eee; border-radius:10px;
    color:var(--dark) !important; text-decoration:none !important;
    transition:border-color .2s, background .2s;
}
.article-link:hover { border-color:rgba(247,109,55,.35); background:#fff; }
.article-link i { color:var(--orange); margin-top:3px; }
.article-link strong { display:block; font-size:.9rem; line-height:1.4; }
.article-link small  { display:block; color:var(--grey); font-size:.78rem; margin-top:3px; line-height:1.45; }
.autre-presta {
    display:flex; align-items:center; gap:14px;
    padding:14px 16px; margin-bottom:10px;
    background:#fff; border:1.5px solid #ebebeb; border-radius:10px;
    text-decoration:none !important;
    transition:transform .2s, border-color .2s, box-shadow .2s;
}
.autre-presta:hover { transform:translateX(4px); border-color:rgba(247,109,55,.35); box-shadow:0 6px 18px rgba(247,109,55,.10); }
.autre-presta .presta-icon { width:42px; height:42px; font-size:1.1rem; margin:0; flex-shrink:0; }
.autre-presta h3 { font-size:.95rem; font-weight:800; color:var(--dark); margin:0; }
.autre-presta p  { font-size:.8rem; color:var(--grey); margin:2px 0 0; line-height:1.45; }
.autre-presta .fa-arrow-right { margin-left:auto; color:var(--orange); }

/* ── CTA : 2 boutons ── */
.form-cta .cta-btns { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.form-cta a.cta-secondary {
    background:transparent; color:#fff !important;
    border:2px solid rgba(255,255,255,.8);
}

@media(max-width:768px) {
    .liens-grid { grid-template-columns:1fr; gap:8px; }
}
@media(max-width:640px) {
    .atouts-grid, .suivi-grid { grid-template-columns:1fr; gap:12px; }
    .faq-item summary { font-size:.9rem; }
    .usesub_text { font-size:28px; }
}
