:root { --primary: #0d6efd; --gradient: linear-gradient(135deg, #0d6efd, #dc3545); --bg-color: #f8f9fa; --text-dark: #212529; --success: #28a745; --gray: #e9ecef; --agenda: #6f42c1; --carrot: #e67e22; }
body { margin: 0; font-family: 'Segoe UI', Roboto, sans-serif; background: linear-gradient(to bottom, #ffffff, #f4f7f6); color: var(--text-dark); padding-bottom: 100px; min-height: 100vh; }

/* Global (Header, App Frame) */
.app-frame { position: fixed; top: 0; left: 0; right: 0; bottom: 0; border: 4px solid var(--carrot); box-sizing: border-box; pointer-events: none; z-index: 9999; }
header { background: #fff; padding: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 10; }
header img { width: 100%; max-width: 350px; height: auto; display: block; margin: 0 auto; object-fit: contain; }
.container { padding: 20px; animation: pageLoad 0.5s ease-out forwards; }
@keyframes pageLoad { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
h2 { text-align: center; margin-bottom: 15px; color: #111; font-size: 22px; }
h2.slogan { text-align: center; margin-bottom: 20px; color: var(--primary); font-size: 18px; line-height: 1.4; }
p.subtitle { text-align: center; font-size: 14px; color: #666; margin-bottom: 25px; }

/* Boutons & Call To Action */
.cta-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; border-radius: 12px; font-weight: bold; font-size: 16px; text-decoration: none; box-sizing: border-box; transition: 0.2s; cursor: pointer; border: none; }
.btn:active { transform: scale(0.97); }
.btn-call { background: #28a745; color: white; box-shadow: 0 4px 15px rgba(40,167,69,0.3); }
.btn-mail { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(13,110,253,0.3); }
.btn-agenda { background: var(--agenda); color: white; box-shadow: 0 4px 15px rgba(111,66,193,0.3); }
.btn-diag { background: #111; color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: 2px solid #333; margin-bottom: 10px;}
.btn svg { width: 22px; height: 22px; fill: white; }

/* Encarts et Bannières */
.devis-banner { background: #e9f2ff; border: 2px solid var(--primary); border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 15px; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(13,110,253,0.1); }
.devis-banner svg { width: 40px; height: 40px; fill: var(--primary); flex-shrink: 0; }
.alert-rdv { background-color: #fff3cd; color: #856404; padding: 15px; border-radius: 12px; text-align: center; font-weight: bold; margin-bottom: 20px; border-left: 5px solid #ffeeba; }

/* Accueil & Localisation (Cartes info) */
.features-grid { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.feature-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; border-top: 4px solid var(--primary); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.feature-card svg { width: 35px; height: 35px; fill: var(--primary); margin-bottom: 10px; }
.feature-card h3 { color: var(--primary); font-size: 16px; margin: 0 0 10px 0; text-transform: uppercase; }
.feature-card p { font-size: 14px; color: #555; margin: 0; line-height: 1.6; }
.map-container { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 25px; }
.hours-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: 0.3s; }
.hours-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.hours-card h3 { margin-top: 0; text-align: center; color: var(--primary); }
.hours-card ul { list-style: none; padding: 0; margin: 0; }
.hours-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.hours-card li:last-child { border-bottom: none; padding-bottom: 0; }

/* Tarifs */
.category-title { font-size: 14px; color: var(--primary); font-weight: bold; text-transform: uppercase; margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid var(--primary); padding-bottom: 5px; }
.price-card { background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; justify-content: space-between; align-items: center; transition: 0.3s;}
.price-card:hover { transform: scale(1.02); }
.price-info h3 { margin: 0 0 5px 0; font-size: 15px; color: #333; }
.price-info p { margin: 0; font-size: 12px; color: #666; }
.price-amount { font-size: 18px; font-weight: bold; color: var(--primary); white-space: nowrap; margin-left: 15px; text-align: right;}
.price-amount span { display: block; font-size: 10px; font-weight: normal; color: #888; margin-top: 3px; }

/* Recyclage */
.recycle-hero { text-align: center; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 25px; transition: 0.3s;}
.recycle-hero:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.recycle-icon { font-size: 50px; margin-bottom: 10px; }
.recycle-hero p { font-size: 14px; color: #555; margin: 0; line-height: 1.5; }
.devices-grid { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.device-badge { background: var(--primary); color: white; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; display: flex; align-items: center; gap: 5px; }
.steps-container { background: #fff; border-radius: 12px; padding: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 25px; }
.steps-title { font-size: 16px; color: #111; font-weight: bold; text-align: center; margin-bottom: 15px; }
.step { display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.step:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.step-icon { width: 40px; height: 40px; border-radius: 50%; background: #e9f2ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; margin-right: 15px; flex-shrink: 0; }
.step-text h4 { margin: 0 0 4px 0; font-size: 15px; color: #333; }
.step-text p { margin: 0; font-size: 13px; color: #666; }
.step-success .step-icon { background: #e6f4ea; color: var(--success); }

/* Agenda (RDV) */
.booking-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 25px; }
label { font-weight: bold; font-size: 14px; display: block; margin-bottom: 8px; color: #333; }
input[type="date"] { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; margin-bottom: 20px; box-sizing: border-box; font-family: inherit; outline: none; transition: 0.3s;}
input[type="date"]:focus { border-color: var(--primary); }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.slot { padding: 12px 0; border-radius: 8px; text-align: center; font-size: 14px; font-weight: bold; transition: 0.2s; }
.slot.available { background: var(--success); color: white; cursor: pointer; box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3); }
.slot.available:hover { filter: brightness(1.1); transform: translateY(-2px); }
.slot.unavailable { background: var(--gray); color: #adb5bd; pointer-events: none; }
.slot.selected { background: var(--gradient); box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4); transform: scale(1.05); border: none; color: white;}
#contact-form { display: none; margin-top: 25px; border-top: 2px solid #eee; padding-top: 20px; animation: fadeIn 0.4s ease-in-out; }
.form-group { margin-bottom: 15px; }
.form-group input { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; font-family: inherit; outline: none; transition: 0.3s; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,253,0.1); }
.btn-submit { background: var(--primary); color: white; border: none; width: 100%; padding: 16px; border-radius: 12px; font-weight: bold; font-size: 16px; cursor: pointer; box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3); margin-top: 10px; transition: 0.2s;}
.btn-submit:active { transform: scale(0.98); }

/* Diagnostic */
.progress-bar { display: flex; justify-content: center; gap: 6px; margin-bottom: 25px; }
.progress-dot { width: 20%; max-width: 40px; height: 6px; border-radius: 3px; background: #e9ecef; transition: 0.3s; }
.progress-dot.active { background: var(--primary); }
.progress-dot.done { background: var(--success); }
.diag-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary);}
.diag-step { display: none; animation: fadeIn 0.4s ease-in-out; }
.diag-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.step-desc { text-align: center; font-size: 13px; color: #777; margin-bottom: 20px; }
.options-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.option-btn { background: #fff; border: 2px solid #eaeaea; padding: 12px 15px; border-radius: 10px; font-size: 14px; font-weight: bold; color: #444; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 15px; }
.option-btn:hover, .option-btn:active { border-color: var(--primary); background: #f0f6ff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(13,110,253,0.1); color: var(--primary); }
.option-icon { font-size: 22px; flex-shrink: 0;}
.result-box { text-align: center; }
.result-icon { font-size: 45px; margin-bottom: 10px; animation: bounce 1s infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.result-text { font-size: 14px; line-height: 1.6; color: #444; margin-bottom: 25px; background: #f8f9fa; padding: 15px; border-radius: 10px; border-left: 4px solid var(--primary); text-align: left; }
.highlight { color: var(--primary); font-weight: bold; }
.btn-back { display: block; text-align: center; color: #888; text-decoration: underline; margin-top: 20px; font-size: 13px; cursor: pointer; border: none; background: none; width: 100%; padding: 10px;}

/* Footer & Navigation Bottom injectés */
.social-footer { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.social-footer a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s; }
.social-footer a:hover { transform: scale(1.1); }
.social-footer svg { width: 24px; height: 24px; }
.legal-footer { text-align: center; margin-top: 35px; font-size: 11px; color: #888; padding-bottom: 10px; line-height: 1.8;}
.legal-footer a { color: #666; text-decoration: none; margin: 0 5px; font-weight: bold;}
.legal-footer a:hover { color: var(--primary); text-decoration: underline;}
.copyright { margin-top: 8px; font-weight: bold; color: #555; }
.bottom-nav { position: fixed; bottom: 0; width: 100%; height: 80px; background: #fff; border-top: 2px solid #eaeaea; display: flex; justify-content: space-around; align-items: center; z-index: 100; padding: 0 5px; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { text-decoration: none; color: #888; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; font-weight: bold; flex: 1; height: 65px; border-radius: 12px; transition: 0.3s; }
.nav-item svg { width: 20px; height: 20px; margin-bottom: 4px; fill: currentColor; }
.nav-item.active { background: var(--gradient); color: white; transform: translateY(-8px) scale(1.05); box-shadow: 0 5px 15px rgba(220,53,69,0.4); }