: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; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Navbar ---- */
.site-navbar { background: var(--secondary-color); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.nav-logo img { height: 44px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #fff; font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--primary-color); }
.nav-actions { display: flex; gap: 10px; }
.btn-devis, .btn-rdv { padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 700; }
.btn-devis { background: var(--primary-color); color: #fff; }
.btn-rdv { border: 1.5px solid #fff; color: #fff; }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); color: #fff; padding: 100px 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; }

/* ---- 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-fill, minmax(260px, 1fr)); gap: 20px; }
.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 { background: var(--secondary-color); 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-fill, 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-fill, minmax(220px,1fr)); gap: 10px; }
.competences-list i { color: var(--primary-color); margin-right: 8px; }
.galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.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: 860px) {
    .nav-links { display: 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-fill, 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-fill, 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
   ============================================================ */
.rdv-page, .reservation-page { max-width: 800px; margin: 0 auto; padding: 50px 24px; }
.page-title { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.page-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; }

.mode-selection { margin-bottom: 30px; }
.mode-title { font-size: 16px; margin-bottom: 14px; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-option { border: 2px solid #e5e7eb; border-radius: 14px; padding: 24px; text-align: center; cursor: pointer; transition: all .15s; }
.mode-option.selected { border-color: var(--primary-color); background: rgba(255,128,0,0.06); }
.mode-icon { font-size: 32px; margin-bottom: 10px; }
.mode-label { font-weight: 700; margin-bottom: 4px; }
.mode-description { font-size: 12px; color: var(--text-muted); }

.calendar-section, .payment-section { margin-bottom: 30px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.calendar-nav button { background: var(--bg-light); border: none; width: 34px; height: 34px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.calendar-title { font-weight: 700; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-day-header { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 6px 0; }
.calendar-day { text-align: center; padding: 10px 0; border-radius: 8px; cursor: pointer; font-size: 13px; background: var(--bg-light); }
.calendar-day:hover { background: #fde3c8; }
.calendar-day.selected { background: var(--primary-color); color: #fff; font-weight: 700; }
.calendar-day.disabled { color: #d1d5db; cursor: not-allowed; background: transparent; }

.time-slots-title { font-size: 14px; margin-bottom: 12px; }
.time-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); gap: 10px; }
.time-slot { text-align: center; padding: 10px; border: 1.5px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 13px; }
.time-slot.selected { border-color: var(--primary-color); background: rgba(255,128,0,0.06); font-weight: 700; }

.appointment-summary { background: var(--bg-light); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.summary-title { margin-bottom: 12px; }
.summary-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.summary-label { color: var(--text-muted); }
.summary-value { font-weight: 700; }

.rdv-form-fields textarea { width: 100%; }
.btn-full { width: 100%; }

.payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; margin-bottom: 26px; }
.payment-option { border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; }
.payment-option.selected { border-color: var(--primary-color); background: rgba(255,128,0,0.06); }
.payment-icon { font-size: 26px; margin-bottom: 8px; }
.payment-title { font-weight: 700; margin-bottom: 4px; }
.payment-description { font-size: 12px; color: var(--text-muted); }
.section-title { font-size: 16px; margin: 20px 0 14px; }
.formation-title { text-align: center; font-size: 22px; margin-bottom: 20px; }
.confirmation-title { font-size: 22px; text-align: center; }

/* ============================================================
   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; }
.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-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; }

.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; }
.service-item-card h3 { font-size: 15px; margin-bottom: 8px; }
.service-item-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.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: 6px; }
