:root {
    --primary-color: #ff8000;
    --secondary-color: #1e2a38;
    --accent-color: #667eea;
    --text-dark: #1a1f2e;
    --text-muted: #6b7280;
    --bg-light: #f8f9fc;
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--text-dark); line-height: 1.6; }
p { margin-bottom: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Navbar ---- */
.site-navbar { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(15,23,42,0.08); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; position: relative; }
.nav-logo img { height: 44px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--secondary-color); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--primary-color); }
.nav-actions { display: flex; gap: 10px; }
.nav-actions-mobile { display: none; }
.btn-devis, .btn-rdv { padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 700; white-space: nowrap; }
.btn-devis { background: var(--primary-color); color: #fff; }
.btn-rdv { border: 1.5px solid var(--secondary-color); color: var(--secondary-color); }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--secondary-color); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 98; opacity: 0; transition: opacity .25s; }
.nav-overlay.open { display: block; opacity: 1; }
body.nav-locked { overflow: hidden; }

/* ---- Hero ---- */
.hero { max-width: none; width: 100%; background: linear-gradient(135deg, #ff9a44 0%, #ff7a1a 45%, #7c5cd6 100%); background-size: cover; background-position: center; color: #fff; padding: 110px 24px; text-align: center; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 16px; opacity: 0.9; max-width: 600px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--primary-color); color: #fff; padding: 12px 28px; border-radius: var(--radius); font-weight: 700; }
.btn-secondary { border: 1.5px solid #fff; color: #fff; padding: 12px 28px; border-radius: var(--radius); font-weight: 700; }
.btn-outline { display: inline-block; margin-top: 20px; border: 1.5px solid var(--secondary-color); padding: 10px 24px; border-radius: var(--radius); font-weight: 700; }

/* Bouton générique — celui qui manquait (ancien design "reserver.html") */
.btn { background: var(--primary-color); color: #fff; padding: 13px 32px; border: none; border-radius: 30px; cursor: pointer; font-weight: 700; font-size: 15px; transition: all .25s ease; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.btn.btn-secondary { background: var(--secondary-color); color: #fff; }
.btn.btn-secondary:hover { background: var(--primary-color); }
.btn.btn-full { width: 100%; text-align: center; }

/* ---- Sections génériques ---- */
section { max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
section h2 { font-size: 26px; font-weight: 800; margin-bottom: 28px; color: var(--secondary-color); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; justify-content: center; }
.empty-hint { color: var(--text-muted); font-style: italic; grid-column: 1/-1; }

.programme-card, .formation-card { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: transform .15s; }
.programme-card:hover, .formation-card:hover { transform: translateY(-3px); }
.programme-card img, .formation-card img { height: 160px; object-fit: cover; width: 100%; }
.programme-card h3, .formation-card h3 { padding: 14px 16px 4px; font-size: 16px; }
.formation-card p { padding: 0 16px; font-size: 13px; color: var(--text-muted); }
.prix, .tarif { display: block; padding: 10px 16px 16px; font-weight: 700; color: var(--primary-color); }

.avis-card { background: var(--bg-light); border-radius: var(--radius); padding: 20px; }
.avis-note { color: var(--primary-color); font-size: 16px; margin-bottom: 8px; }
.avis-auteur { display: block; margin-top: 10px; font-weight: 700; font-size: 13px; }

/* ---- Formulaires ---- */
#contactForm, #newsletterForm { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
#newsletterForm { flex-direction: row; max-width: 100%; }
input, textarea, select { padding: 10px 14px; border: 1px solid #d1d5db; border-radius: var(--radius); font-family: inherit; font-size: 14px; }
textarea { min-height: 100px; }

/* ---- Fiche formation ---- */
.formation-hero { max-width: none; width: 100%; background: linear-gradient(135deg, #ff9a44, #7c5cd6); background-size: cover; background-position: center; color: #fff; padding: 90px 24px; text-align: center; }
.badge-categorie { display: inline-block; background: var(--primary-color); padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.formation-hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero-meta { display: flex; gap: 20px; justify-content: center; margin: 20px 0; font-size: 14px; flex-wrap: wrap; }
.programme-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.programme-step { background: var(--bg-light); border-radius: var(--radius); padding: 20px; position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--primary-color); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 10px; }
.competences-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px; }
.competences-list i { color: var(--primary-color); margin-right: 8px; }
/* Carrousel — remplace l'ancienne grille (tailles différentes, pas alignées) */
.galerie-carousel { overflow: hidden; margin-top: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.galerie-track { display: flex; gap: 18px; width: max-content; animation: scroll-galerie 26s linear infinite; }
.galerie-carousel:hover .galerie-track { animation-play-state: paused; }
.formation-galerie figure { flex-shrink: 0; width: 240px; }
.formation-galerie figure img { width: 240px; height: 180px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.formation-galerie figcaption { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: center; }
@keyframes scroll-galerie { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
    .formation-galerie figure, .formation-galerie figure img { width: 180px; }
    .formation-galerie figure img { height: 135px; }
}
.tarif-box { background: var(--bg-light); border-radius: var(--radius); padding: 24px; display: flex; gap: 30px; flex-wrap: wrap; }
.tarif-box .montant { display: block; font-size: 24px; font-weight: 800; color: var(--primary-color); }
.faq-accordion details { border-bottom: 1px solid #e5e7eb; padding: 14px 0; }
.faq-accordion summary { font-weight: 700; cursor: pointer; }
.formation-cta-final { background: var(--secondary-color); color: #fff; text-align: center; padding: 60px 24px; }

/* ---- Footer ---- */
.site-footer { background: var(--secondary-color); color: #fff; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; padding: 50px 24px; }
.footer-logo { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-col h4 { margin-bottom: 12px; }
.footer-col p { font-size: 13px; opacity: 0.85; margin-bottom: 6px; }
#newsletterForm input { flex: 1; }
.footer-bottom { text-align: center; padding: 16px; font-size: 12px; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.1); }

/* ---- Flash ---- */
.flash { max-width: 1200px; margin: 12px auto; padding: 12px 20px; border-radius: var(--radius); }
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }

@media (max-width: 1080px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 82vw);
        background: var(--secondary-color); flex-direction: column; align-items: flex-start;
        gap: 4px; padding: 90px 28px 28px; z-index: 99;
        transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
    }
    .nav-links.open { transform: translateX(0); box-shadow: -8px 0 30px rgba(0,0,0,0.25); }
    .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 15px; color: #fff; }
    .nav-actions { display: none; }
    .nav-actions-mobile { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 20px; }
    .nav-actions-mobile a { text-align: center; padding: 12px; border-bottom: none; }
}

/* ============================================================
   PAGE DEVIS — Wizard 4 étapes
   ============================================================ */
.devis-page { max-width: 800px; }
.form-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); overflow: hidden; }
.form-card-header { display: flex; align-items: center; gap: 16px; padding: 28px 32px 0; }
.form-card-header-icon { font-size: 32px; }
.form-card-header h1 { font-size: 22px; margin-bottom: 4px; }
.form-card-header p { color: var(--text-muted); font-size: 14px; }
.progress-bar-wrap { padding: 20px 32px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.progress-bar-bg { background: #e5e7eb; border-radius: 20px; height: 6px; }
.progress-bar-fill { background: var(--primary-color); height: 100%; border-radius: 20px; transition: width .3s; }
.form-steps { padding: 28px 32px 32px; }
.step-panel { display: none; }
.step-panel.visible { display: block; }
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.step-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin-bottom: 16px; }
.service-tile { border: 2px solid #e5e7eb; border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .15s; }
.service-tile:hover { border-color: var(--primary-color); }
.service-tile.selected { border-color: var(--primary-color); background: rgba(255,128,0,0.06); }
.st-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.st-label { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.st-price { font-size: 11px; color: var(--text-muted); }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field label span { color: #ef4444; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.budget-display { text-align: center; background: var(--bg-light); border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.budget-display .amount { font-size: 24px; font-weight: 800; color: var(--primary-color); }
.budget-display .label { font-size: 11px; color: var(--text-muted); }
input[type="range"] { width: 100%; }

.urgency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; }
.urgency-tile { border: 2px solid #e5e7eb; border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; }
.urgency-tile.selected { border-color: var(--primary-color); background: rgba(255,128,0,0.06); }
.u-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.u-label { font-weight: 700; font-size: 13px; }
.u-delay { font-size: 11px; color: var(--text-muted); }

.check-group { display: flex; flex-wrap: wrap; gap: 10px; }
.check-item { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e5e7eb; border-radius: 20px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.check-item input { margin: 0; }

.summary-block { background: var(--bg-light); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.summary-block h4 { font-size: 14px; margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.s-label { color: var(--text-muted); }
.s-val { font-weight: 600; text-align: right; }

.form-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }
.btn-next, .btn-back, .btn-submit { padding: 11px 24px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.btn-next, .btn-submit { background: var(--primary-color); color: #fff; margin-left: auto; }
.btn-back { background: transparent; border: 1.5px solid #d1d5db; color: var(--text-dark); }
.error-msg { color: #ef4444; font-size: 13px; margin-top: 8px; }

.success-screen { text-align: center; padding: 60px 32px; }
.success-icon { font-size: 48px; margin-bottom: 16px; }
.success-screen h3 { font-size: 22px; margin-bottom: 10px; }

/* ============================================================
   PAGE RDV / RÉSERVATION — calendrier + créneaux
   (design fidèle à l'ancien site : fond crème, bordures colorées)
   ============================================================ */
.rdv-page, .reservation-page { max-width: 900px; margin: 40px auto; padding: 0 24px; }
.page-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 10px; color: var(--secondary-color); }
.page-subtitle { text-align: center; color: #666; font-size: 17px; margin-bottom: 36px; }

.mode-selection, .calendar-section, .time-slots-section, .payment-section,
.appointment-summary, .rdv-form-fields {
    background: #fff8f0; border-radius: 15px; padding: 28px; margin-bottom: 26px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.mode-title { font-size: 20px; margin-bottom: 18px; text-align: center; color: var(--secondary-color); }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode-option { background: #fff; border: 2px solid var(--primary-color); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; transition: all .25s ease; }
.mode-option:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255,128,0,0.22); }
.mode-option.selected { background: var(--primary-color); color: #fff; }
.mode-icon { font-size: 34px; margin-bottom: 10px; }
.mode-label { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.mode-description { font-size: 12.5px; opacity: .85; }

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.calendar-nav { display: flex; gap: 10px; }
.calendar-nav button { background: var(--primary-color); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: all .2s; }
.calendar-nav button:hover { background: var(--secondary-color); transform: scale(1.08); }
.calendar-title { font-size: 18px; font-weight: 800; color: var(--secondary-color); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-day-header { text-align: center; font-weight: 800; font-size: 11px; padding: 8px 0; color: var(--secondary-color); background: rgba(255,128,0,0.12); border-radius: 8px; }
.calendar-day { text-align: center; padding: 12px 0; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; background: #fff; border: 1.5px solid #f0e4d4; transition: all .2s; }
.calendar-day:hover { background: rgba(255,128,0,0.12); border-color: var(--primary-color); }
.calendar-day.selected { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.calendar-day.disabled { color: #ccc; cursor: not-allowed; background: transparent; border-color: transparent; }

.time-slots-title { font-size: 17px; margin-bottom: 16px; color: var(--secondary-color); }
.time-slots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 12px; }
.time-slot { background: #fff; border: 2px solid var(--primary-color); border-radius: 8px; padding: 12px; text-align: center; cursor: pointer; font-weight: 700; font-size: 13px; transition: all .2s; }
.time-slot:hover { background: var(--primary-color); color: #fff; }
.time-slot.selected { background: var(--primary-color); color: #fff; }

.summary-title, .form-title { font-size: 19px; color: var(--secondary-color); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }
.summary-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-label { font-weight: 700; color: var(--secondary-color); }
.summary-value { color: #666; }

.rdv-form-fields .field input, .rdv-form-fields .field select, .rdv-form-fields .field textarea,
.payment-section input, .payment-section select {
    border: 1.5px solid #e5d8c5; background: #fff;
}
.rdv-form-fields textarea { width: 100%; }
.btn-full { width: 100%; }

.payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 16px; margin-bottom: 26px; }
.payment-option { background: #fff; border: 2px solid #e5d8c5; border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; transition: all .25s ease; }
.payment-option:hover { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255,128,0,0.15); }
.payment-option.selected { border-color: var(--primary-color); background: rgba(255,128,0,0.06); }
.payment-icon { font-size: 30px; margin-bottom: 10px; }
.payment-title { font-weight: 800; margin-bottom: 6px; font-size: 15px; color: var(--secondary-color); }
.payment-description { font-size: 12.5px; color: #666; line-height: 1.5; }
.section-title { font-size: 19px; margin: 26px 0 16px; color: var(--secondary-color); }
.formation-title { text-align: center; font-size: 26px; margin-bottom: 24px; color: var(--secondary-color); }
.confirmation-title { font-size: 24px; text-align: center; color: var(--secondary-color); }

@media (max-width: 640px) {
    .rdv-page, .reservation-page { margin: 20px auto; padding: 0 16px; }
    .mode-options { grid-template-columns: 1fr; }
}

/* ============================================================
   CATALOGUE / MODULES EXPRESS / SERVICES / PROGRAMME / À PROPOS
   ============================================================ */
.filtres-categories { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.filtre-tag { padding: 8px 18px; border-radius: 20px; border: 1.5px solid #e5e7eb; font-size: 13px; font-weight: 600; }
.filtre-tag.active { background: var(--secondary-color); color: #fff; border-color: var(--secondary-color); }
.badge-categorie-small { display: inline-block; background: var(--bg-light); color: var(--text-muted); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin: 10px 16px 0; }

.module-express-card, .pack-card, .formule-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; text-align: center; display: flex; flex-direction: column; height: 100%; }
.module-express-card .btn-outline, .module-express-card .prix { margin-top: auto; }
.module-express-card h3, .module-express-card .me-inclus { flex-shrink: 0; }
.me-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.me-inclus { font-size: 12px; color: var(--text-muted); margin: 8px 0; }
.prix-barre { text-decoration: line-through; color: var(--text-muted); font-size: 13px; margin-right: 8px; }
.section-subtitle { font-size: 22px; font-weight: 800; margin: 40px 0 20px; text-align: center; }

.formule-card { text-align: left; }
.formule-card a.btn-primary { margin-top: auto; align-self: flex-start; }
.formule-card ul { flex-grow: 1; }
.formule-duree { display: inline-block; background: var(--bg-light); border-radius: 12px; padding: 3px 12px; font-size: 11px; font-weight: 700; margin: 8px 0; }
.formule-prix { font-size: 24px; font-weight: 800; color: var(--primary-color); margin-bottom: 10px; }
.formule-prix small { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.formule-card ul { margin: 12px 0; padding-left: 18px; font-size: 13px; }
.formule-card li { margin-bottom: 6px; }

.services-cta { text-align: center; background: var(--secondary-color); color: #fff; border-radius: 16px; padding: 50px 24px; margin-top: 40px; }
.services-cta h2 { color: #fff; margin-bottom: 12px; }
.services-cta p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }

.programme-hero { background: var(--secondary-color); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 70px 24px; border-radius: 16px; }
.tarif-badge { display: inline-block; background: var(--primary-color); padding: 6px 18px; border-radius: 20px; font-weight: 700; margin-top: 12px; }
.programme-description { max-width: 700px; margin: 30px auto; text-align: center; }

.apropos-intro { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.mission { font-style: italic; color: var(--primary-color); font-weight: 700; margin-top: 16px; }
.apropos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.apropos-card { background: var(--bg-light); border-radius: 14px; padding: 28px; }
.apropos-card h3 { margin-bottom: 10px; color: var(--secondary-color); }
.apropos-contact { text-align: center; }
.apropos-contact p { margin-bottom: 8px; }

@media (max-width: 700px) {
    .field-row, .apropos-grid, .mode-options { grid-template-columns: 1fr; }
}

/* ============================================================
   DEVIS — bannière contexte + upload fichiers
   ============================================================ */
.devis-context-banner { background: rgba(16,185,129,0.08); border: 1.5px solid #10b981; color: #065f46; border-radius: 10px; padding: 12px 18px; margin-bottom: 22px; font-size: 14px; }
.devis-context-banner i { margin-right: 8px; }
.ref-tag { display: inline-block; background: #065f46; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 10px; margin-left: 10px; }
.hint-inline { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.fichiers-liste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fichier-tag { background: var(--bg-light); border: 1px solid #e5e7eb; border-radius: 8px; padding: 5px 12px; font-size: 12px; }

/* ============================================================
   SERVICES — cartes génériques (fabrication, additionnels...)
   ============================================================ */
.service-item-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; height: 100%; }
.service-item-card h3 { font-size: 15px; margin-bottom: 8px; }
.service-item-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; flex-grow: 1; }
.service-delai { display: inline-block; font-size: 11px; color: var(--text-muted); margin-right: 10px; margin-bottom: 10px; }
.service-item-card .btn-outline { display: inline-block; padding: 8px 18px; font-size: 13px; margin-top: auto; align-self: flex-start; }

/* ============================================================
   BOUTON WHATSAPP FLOTTANT
   ============================================================ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 4px 16px rgba(37,211,102,0.5);
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 600px) {
    .whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 16px; right: 16px; }
}

/* ============================================================
   FORMATION — intro avec image + matériel fourni
   ============================================================ */
.formation-intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.formation-intro-image { position: relative; }
.formation-intro-glow {
    position: absolute; inset: -14px; background-size: cover; background-position: center;
    filter: blur(22px) saturate(1.3); opacity: .55; transform: scale(1.03); z-index: 0; border-radius: 20px;
}
.formation-intro-image img { position: relative; z-index: 1; border-radius: 14px; width: 100%; object-fit: cover; max-height: 320px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.formation-intro-video iframe { width: 100%; aspect-ratio: 16/9; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.materiel-fourni-box { background: var(--bg-light); border-left: 3px solid var(--primary-color); border-radius: 8px; padding: 14px 18px; margin-top: 18px; }
.materiel-fourni-box h4 { font-size: 14px; margin-bottom: 6px; color: var(--secondary-color); }
.materiel-fourni-box p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ============================================================
   DEVIS FORMATION — page simple
   ============================================================ */
.devis-formation-page select { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-family: inherit; font-size: 14px; }

/* ============================================================
   POURQUOI SE FORMER CHEZ NOUS
   ============================================================ */
.section-pourquoi { background: var(--bg-light); max-width: none; width: 100%; }
.pourquoi-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 20px 24px; }
.pourquoi-video iframe { border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.pourquoi-text h2 { margin-bottom: 18px; }
.pourquoi-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.pourquoi-list li { padding-left: 28px; position: relative; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.pourquoi-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary-color); font-weight: 800; font-size: 16px; }
.pourquoi-list strong { color: var(--text-dark); }

/* ============================================================
   NOS ÉQUIPEMENTS
   ============================================================ */
.section-equipements { text-align: center; }
.section-subtitle { color: var(--text-muted); margin: -18px 0 30px; font-size: 14px; }
.equipement-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px 20px; text-align: center; }
.equipement-card i { font-size: 32px; color: var(--primary-color); margin-bottom: 14px; }
.equipement-card h3 { font-size: 15px; margin-bottom: 8px; }
.equipement-card p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   AVIS / TÉMOIGNAGES — carte "Google Reviews"
   ============================================================ */
.reviews-card { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.reviews-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.reviews-brand { display: flex; align-items: center; gap: 14px; }
.reviews-brand i { font-size: 30px; color: #4285F4; }
.reviews-brand h3 { font-size: 16px; margin-bottom: 2px; }
.reviews-brand p { font-size: 12px; color: var(--text-muted); max-width: 360px; }
.reviews-score { text-align: center; }
.reviews-score-number { font-size: 28px; font-weight: 800; color: var(--secondary-color); display: block; }
.reviews-score .stars { color: var(--primary-color); font-size: 15px; }
.reviews-footer { text-align: center; margin-top: 24px; }

/* ============================================================
   INDICATEURS DE RÉSULTATS
   ============================================================ */
.section-indicateurs { max-width: none; width: 100%; background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); color: #fff; text-align: center; }
.section-indicateurs h2 { color: #fff; }
.section-subtitle-contrast { color: rgba(255,255,255,0.8); margin: -18px 0 30px; font-size: 14px; }
.indicateurs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.indicateur-card i { font-size: 26px; margin-bottom: 10px; opacity: .9; }
.indicateur-number { font-size: 34px; font-weight: 800; }
.indicateur-label { font-size: 13px; opacity: .85; }
.indicateurs-note { margin-top: 24px; font-size: 11px; opacity: .6; }

/* ============================================================
   PARTENAIRES
   ============================================================ */
.section-partenaires { text-align: center; }
.partenaires-badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 36px; }
.partenaire-badge { background: var(--bg-light); border: 1.5px solid #e5e7eb; padding: 12px 26px; border-radius: 30px; font-weight: 700; font-size: 14px; color: var(--secondary-color); }
.partenaires-cta { background: var(--bg-light); border-radius: 16px; padding: 40px 24px; max-width: 560px; margin: 0 auto; }
.partenaires-cta h3 { margin-bottom: 10px; }
.partenaires-cta p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ============================================================
   PAGE DEVENEZ PARTENAIRE
   ============================================================ */
.partenaire-page { max-width: 1100px; margin: 0 auto; padding: 50px 24px; }
.partenaire-intro > p { max-width: 720px; margin: 0 auto 34px; text-align: center; color: var(--text-muted); }
.partenaire-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.partenaire-type-card { background: var(--bg-light); border-radius: 14px; padding: 26px; text-align: center; }
.partenaire-type-card i { font-size: 28px; color: var(--primary-color); margin-bottom: 12px; }
.partenaire-type-card h3 { font-size: 15px; margin-bottom: 8px; }
.partenaire-type-card p { font-size: 13px; color: var(--text-muted); }

@media (max-width: 800px) {
    .pourquoi-grid { grid-template-columns: 1fr; }
    .reviews-header { flex-direction: column; align-items: flex-start; }
    .formation-intro-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER — liens rapides + réseaux sociaux
   ============================================================ */
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; transition: background .15s; }
.footer-socials a:hover { background: var(--primary-color); }
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a { font-size: 13px; opacity: .85; display: flex; align-items: center; gap: 8px; }
.footer-links-list a:hover { opacity: 1; color: var(--primary-color); }
.footer-links-list i { font-size: 10px; }

/* ============================================================
   FORMATIONS EN VEDETTE — grille fixe 4 colonnes (4+4)
   ============================================================ */
.section-formations .cards-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .section-formations .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .section-formations .cards-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CARROUSEL PARTENAIRES — défilement continu
   ============================================================ */
.partenaires-carousel { overflow: hidden; margin: 24px 0 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partenaires-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: scroll-partenaires 30s linear infinite; }
.partenaires-carousel:hover .partenaires-track { animation-play-state: paused; }
.partenaire-logo-item { flex-shrink: 0; height: 60px; display: flex; align-items: center; filter: grayscale(100%); opacity: .6; transition: all .2s; }
.partenaire-logo-item:hover { filter: grayscale(0%); opacity: 1; }
.partenaire-logo-item img { height: 100%; max-width: 160px; object-fit: contain; }
@keyframes scroll-partenaires { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CTA CONTACT (remplace l'ancien formulaire de contact)
   ============================================================ */
.section-contact-cta { text-align: center; background: var(--bg-light); border-radius: 20px; max-width: 1200px; margin: 0 auto 60px; padding: 60px 24px; }
.section-contact-cta p { color: var(--text-muted); margin: -12px 0 26px; }
.btn-lg-cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; font-size: 16px; }

.tag-whatsapp { display: inline-block; background: #25D366; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }

/* ============================================================
   RESPONSIVE — PASSE MOBILE GÉNÉRALE
   ============================================================ */
@media (max-width: 768px) {
    section { padding: 44px 18px; }
    section h2 { font-size: 21px; margin-bottom: 20px; }
    .section-subtitle, .section-subtitle-contrast { margin-top: -10px; }

    /* Hero */
    .hero { padding: 60px 18px; }
    .hero h1 { font-size: 24px; line-height: 1.3; }
    .hero p { font-size: 14px; }
    .hero-cta, .formation-hero .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta a { text-align: center; }

    /* Fiche formation */
    .formation-hero { padding: 50px 18px; }
    .formation-hero h1 { font-size: 22px; }
    .formation-cta-final { padding: 40px 18px; }

    /* Cartes génériques */
    .cards-grid { grid-template-columns: 1fr !important; }

    /* Formulaires devis / RDV / partenaire */
    .form-card-header { padding: 20px 20px 0; flex-direction: column; text-align: center; gap: 10px; }
    .form-steps, #devisFormationForm, #partenaireForm { padding: 18px 20px 24px !important; }
    .field-row, .form-row-2, .form-row-3, .mode-options, .apropos-grid, .payment-options,
    .pourquoi-grid, .formation-intro-grid, .partenaire-types {
        grid-template-columns: 1fr !important;
    }
    .service-grid, .urgency-grid { grid-template-columns: repeat(2, 1fr); }

    /* Pourquoi se former : vidéo pleine largeur, hauteur réduite */
    .pourquoi-video iframe { height: 220px; }

    /* Calendrier réservation */
    .calendar-day { padding: 8px 0; font-size: 12px; }
    .calendar-nav button { width: 30px; height: 30px; }
    .time-slots-grid { grid-template-columns: repeat(3, 1fr); }

    /* Avis / reviews */
    .reviews-card { padding: 20px; }

    /* Footer */
    .footer-container { grid-template-columns: 1fr; text-align: left; padding: 36px 18px; gap: 26px; }
    #newsletterForm { flex-direction: column; align-items: stretch; }

    /* Formule / module cards : texte moins large */
    .formule-card, .module-express-card, .pack-card { padding: 18px; }

    /* Bannière contexte devis */
    .devis-context-banner { font-size: 13px; }

    /* Partenaires */
    .partenaires-track { gap: 34px; }
    .partenaire-logo-item { height: 46px; }
}

@media (max-width: 420px) {
    .nav-logo img { height: 36px; }
    .btn-primary, .btn-secondary { padding: 11px 20px; font-size: 14px; }
    .hero h1 { font-size: 21px; }
    .service-grid, .urgency-grid { grid-template-columns: 1fr; }
    .time-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BOUTON CATALOGUE + SECTION DEVENEZ PARTENAIRE (accueil)
   ============================================================ */
.formations-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.btn-catalogue { display: inline-flex; align-items: center; gap: 8px; }
.section-devenez-partenaire { text-align: center; padding-top: 0; }

@media (max-width: 768px) {
    .formations-cta-row { flex-direction: column; align-items: stretch; }
    .formations-cta-row a { text-align: center; }
}

/* ---- Masquer boutons flottants pendant le menu mobile ouvert ---- */
body.nav-locked .whatsapp-float,
body.nav-locked .chatbot-container {
    display: none;
}

/* ============================================================
   REFONTE VISUELLE — retours des collaborateurs (30/08)
   Boutons interactifs, cartes visibles, contrastes renforcés
   ============================================================ */

/* ---- Boutons : effets de survol/clic partout ---- */
.btn-primary, .btn-secondary, .btn-outline, .btn-devis, .btn-rdv,
.btn-catalogue, .btn-lg-cta, .service-item-card .btn-outline {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
    cursor: pointer;
}
.btn-primary { box-shadow: 0 3px 10px rgba(255,128,0,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,128,0,0.38); background: #ff8e14; }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(255,128,0,0.3); }

.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }

.btn-outline:hover { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

.btn-devis:hover { background: #ff8e14; box-shadow: 0 4px 14px rgba(255,128,0,0.4); transform: translateY(-1px); }
.btn-rdv:hover { background: var(--secondary-color); color: #fff; transform: translateY(-1px); }

.service-item-card .btn-outline:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

.footer-links-list a { transition: color .15s, transform .15s; }
.footer-links-list a:hover { transform: translateX(3px); }

.filtre-tag { transition: all .15s; }
.filtre-tag:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filtre-tag.active:hover { color: #fff; }

/* ---- Cartes cliquables : visibles par défaut, effet net au survol ---- */
.module-express-card, .pack-card, .formule-card, .equipement-card,
.service-item-card, .partenaire-type-card, .programme-card, .formation-card {
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.module-express-card:hover, .pack-card:hover, .formule-card:hover, .equipement-card:hover,
.service-item-card:hover, .partenaire-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.12);
    border-color: rgba(255,128,0,0.35);
}
.formation-card:hover, .programme-card:hover {
    box-shadow: 0 12px 28px rgba(15,23,42,0.14);
}

/* ---- Titres de catégorie — distincts des titres de cartes ---- */
.categorie-heading {
    font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--secondary-color); margin: 44px 0 20px; padding-left: 14px;
    border-left: 4px solid var(--primary-color);
}
.services-page .cards-grid:first-of-type + .categorie-heading,
.formules-grid + .categorie-heading { margin-top: 50px; }

/* ---- Tuiles sélectionnables (devis, RDV, paiement) : feedback plus riche ---- */
.service-tile, .urgency-tile, .mode-option, .payment-option, .time-slot, .check-item {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.service-tile:hover, .urgency-tile:hover, .mode-option:hover, .payment-option:hover, .time-slot:hover {
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,0.08); border-color: var(--primary-color);
}
.service-tile.selected, .urgency-tile.selected, .mode-option.selected, .payment-option.selected {
    box-shadow: 0 6px 16px rgba(255,128,0,0.18);
}
.check-item:hover { border-color: var(--primary-color); }
