/* --- CORE VARIABLES --- */
:root { --primary-dark: #132a41; --primary-light: #1e4060; --bg-dark: #222222; --bg-card: #ffffff; --accent-copper: #a65e2e; --accent-copper-hover: #8a4a22; --success: #27ae60; --whatsapp: #25D366; --text-white: #ffffff; --text-dark: #333333; --text-grey: #ffffff; --bg-list-row: #f4f4f4; }

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-dark); color: var(--text-white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* --- HEADER --- */
header { background: rgba(19, 42, 65, 0.95); backdrop-filter: blur(10px); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); overflow: visible; gap: 20px; }
.logo img { height: 140px; width: auto; transform: translateY(30%); filter: drop-shadow(0 15px 20px rgba(0,0,0,0.5)); position: relative; z-index: 1002; transition: 0.3s; }
.logo img:hover { transform: translateY(30%) scale(1.05); }
.header-contact-info { margin-left: auto; margin-right: 30px; display: flex; align-items: center; }
.phone-link { display: flex; align-items: center; gap: 15px; color: var(--text-white); }
.phone-link i { font-size: 1.8rem; color: var(--accent-copper); animation: smallShake 3s infinite; }
.phone-link div { display: flex; flex-direction: column; line-height: 1.2; }
.phone-link span { font-size: 0.8rem; color: var(--accent-copper); text-transform: uppercase; font-weight: 700; }
.phone-link strong { font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; }
@keyframes smallShake { 0%, 90% { transform: rotate(0); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-10deg); } 100% { transform: rotate(0); } }
nav ul { display: flex; gap: 30px; align-items: center; }
.nav-link { color: var(--text-grey); font-weight: 600; font-size: 0.95rem; position: relative; padding: 5px 0; }
.nav-link:hover, .nav-link.active { color: var(--text-white); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--accent-copper); transform: scaleX(0); transition: 0.3s; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.btn-nav-cta { background-color: var(--accent-copper); color: var(--text-white) !important; padding: 10px 25px; border-radius: 50px; font-weight: 700; text-transform: uppercase; box-shadow: 0 5px 15px rgba(201, 124, 93, 0.3); transition: 0.3s; }
.btn-nav-cta:hover { background-color: var(--accent-copper-hover); transform: translateY(-3px); }
.burger-menu { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-white); }

/* --- BUTTONS FLOTTANTS --- */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 15px; }
.float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: transform 0.3s; }
.float-btn:hover { transform: scale(1.1); }
.whatsapp-btn { background-color: var(--whatsapp); }
.phone-btn { background-color: var(--accent-copper); display: none; }

/* --- HERO --- */
.hero { position: relative; height: 75vh; min-height: 550px; display: flex; align-items: center; padding: 0 5%; background: linear-gradient(135deg, rgba(19, 42, 65, 0.95) 0%, rgba(19, 42, 65, 0.6) 100%), url("../img/ald_concept_chauffage_sanitaire.webp"); background-size: cover; background-position: center; }
.hero-content { max-width: 700px; animation: fadeInUp 1s ease-out; }
.hero h1 { font-size: 2.8rem; line-height: 1.2; font-weight: 800; margin-bottom: 25px; }
.hero h1 span { color: var(--accent-copper); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; font-weight: 700; text-transform: uppercase; cursor: pointer; border: none; transition: 0.3s; }
.btn-copper { background-color: var(--accent-copper); color: var(--text-white); }
.btn-copper:hover { background-color: var(--accent-copper-hover); }
.btn-full { width: 100%; text-align: center; }
.btn-outline { border: 2px solid var(--text-grey); background: transparent; color: white; padding: 10px 30px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; width: 100%; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* --- SECTIONS --- */
.section { padding: 80px 5%; }
.section-bg-alt { background-color: #282828; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.section-subtitle { color: var(--accent-copper); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 700; }
.info-bar { background: var(--primary-light); padding: 12px 5%; text-align: center; font-size: 0.9rem; }
.info-badge { background: var(--accent-copper); padding: 2px 8px; border-radius: 4px; font-weight: bold; font-size: 0.75rem; margin-right: 10px; }

/* --- ABOUT --- */
.about-container { display: flex; align-items: center; gap: 50px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 300px; }
.about-text p { margin-bottom: 20px; font-size: 1rem; color: var(--text-grey); }
.about-text strong { color: var(--text-white); }
.about-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-white); }
.about-list li i { color: var(--success); font-size: 1.2rem; }
.about-image { flex: 1; min-width: 300px; position: relative; display: flex; justify-content: center; }
.about-image img { border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.1); width: 100%; height: auto; object-fit: cover; max-width: 500px; }
.exp-badge { position: absolute; bottom: 30px; left: -20px; background: var(--accent-copper); color: white; padding: 20px 25px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 2; width: auto; max-width: 180px; }
.exp-badge .years { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.exp-badge .text { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }

/* --- PACKS & TOOLTIPS --- */
.pricing-container { display: flex; justify-content: center; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.pricing-card { background: var(--bg-card); border-radius: 20px; width: 320px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); overflow: hidden; color: var(--text-dark); display: flex; flex-direction: column; }
.pricing-header { padding: 25px 20px; color: white; }
.pricing-header h3 { font-size: 1.4rem; font-weight: 700; text-transform: uppercase; }
.pricing-header .price { font-size: 2rem; font-weight: 800; display: block; }
.style-basic .pricing-header { background-color: var(--primary-light); }
.style-standard .pricing-header { background-color: var(--primary-dark); }
.style-premium .pricing-header { background-color: var(--accent-copper); }
.pricing-image { background: #fff; padding: 10px; height: 180px; display: flex; align-items: center; justify-content: center; }
.pricing-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pricing-body { padding: 0 20px 30px; background: white; flex-grow: 1; display: flex; flex-direction: column; }
.features-list { margin-bottom: 15px; text-align: left; }
.features-list li { background-color: var(--bg-list-row); margin-bottom: 8px; padding: 10px 15px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; color: #444; display: flex; align-items: center; gap: 12px; position: relative; cursor: help; transition: color 0.3s; }
.features-list li:hover { color: var(--accent-copper); }
.features-list li i.fa-check { color: var(--success); }
.features-list li.disabled { opacity: 0.6; }
.tooltip-text { visibility: hidden; width: 200px; background-color: var(--primary-dark); color: #fff; text-align: center; border-radius: 6px; padding: 10px; position: absolute; z-index: 100; bottom: 125%; left: 50%; margin-left: -100px; opacity: 0; transition: opacity 0.3s; font-size: 0.8rem; font-weight: 400; line-height: 1.4; box-shadow: 0 5px 15px rgba(0,0,0,0.2); pointer-events: none; }
.tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: var(--primary-dark) transparent transparent transparent; }
.features-list li:hover .tooltip-text { visibility: visible; opacity: 1; }
.btn-see-more { background: none; border: none; color: var(--primary-light); font-size: 0.85rem; font-weight: 700; cursor: pointer; margin-bottom: 15px; display: inline-flex; align-items: center; gap: 5px; }
.details-supp { display: none; border-top: 1px dashed #ccc; padding-top: 15px; margin-bottom: 15px; animation: fadeIn 0.4s; }
.details-supp.show { display: block; }
.small-list li { font-size: 0.8rem; background-color: #fff; border: 1px solid #eee; }
.btn-select { margin-top: auto; width: 100%; padding: 12px; border-radius: 50px; border: none; color: white; font-weight: 800; text-transform: uppercase; cursor: pointer; font-size: 1rem; }
.style-basic .btn-select { background-color: var(--primary-light); }
.style-standard .btn-select { background-color: var(--primary-dark); }
.style-premium .btn-select { background-color: var(--accent-copper); }
.pricing-card.featured { transform: scale(1.05); z-index: 10; box-shadow: 0 15px 50px rgba(0,0,0,0.5); border: 2px solid var(--primary-dark); }
.badge-populaire { background: var(--accent-copper); color: white; font-weight: bold; font-size: 0.75rem; padding: 5px; text-transform: uppercase; }

/* --- AVIS CLIENTS --- */
.rating-badge { margin-top: 15px; display: inline-block; background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 50px; border: 1px solid var(--accent-copper); }
.rating-score { font-size: 1.5rem; font-weight: 800; color: white; margin-right: 10px; }
.rating-badge .stars { color: #f1c40f; display: inline-block; }
.rating-count { display: block; font-size: 0.8rem; color: var(--text-grey); margin-top: 5px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; margin-top: 40px; }
.review-card { background: var(--bg-card); padding: 25px; border-radius: 15px; border-left: 4px solid var(--accent-copper); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.review-stars { color: #f1c40f; margin-bottom: 10px; font-size: 0.9rem; }
.review-text { font-style: italic; color: #555; font-size: 0.95rem; margin-bottom: 15px; }
.review-author { font-weight: 700; color: var(--primary-dark); text-align: right; font-size: 0.9rem; }

/* --- SIMULATEUR --- */
.simulator-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 50px; max-width: 1000px; margin: 0 auto; }
.simulator-text { flex: 1; min-width: 300px; }
.simulator-card { flex: 1; min-width: 320px; background: var(--bg-card); padding: 30px; border-radius: 20px; border: 1px solid var(--accent-copper); color: #333; }
.input-wrapper { position: relative; display: flex; align-items: center; margin-top: 10px; margin-bottom: 20px;  }
.input-wrapper input { width: 100%; padding: 15px; font-size: 1.2rem; font-weight: bold; background: #f4f4f4; border: 2px solid #ddd; margin: 0; color: #333333 !important; }
.currency { position: absolute; right: 20px; color: #888; font-weight: bold; }
.result-box { margin-top: 25px; background: #f9f9f9; border-radius: 10px; padding: 20px; border-left: 5px solid var(--success); }
.saving-amount { font-weight: 800; color: var(--success); }

/* --- FAQ & TIMELINE & PORTFOLIO --- */
.timeline-container { display: flex; justify-content: center; align-items: flex-start; max-width: 1000px; margin: 40px auto 0; position: relative; }
.timeline-step { flex: 1; text-align: center; padding: 0 15px; z-index: 2; }
.step-icon { width: 70px; height: 70px; background: var(--bg-card); border: 3px solid var(--accent-copper); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: var(--accent-copper); transition: 0.3s; }
.timeline-step:hover .step-icon { background: var(--accent-copper); color: white; transform: scale(1.1); }
.step-line { flex-grow: 1; height: 3px; background: #444; margin-top: 35px; position: relative; z-index: 1; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border-radius: 10px; margin-bottom: 15px; color: #333 !important; }
summary { padding: 20px; cursor: pointer; font-weight: 700; color: #333; }
.faq-content { padding: 20px; color: #555; background: #f9f9f9; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.portfolio-item { position: relative; border-radius: 15px; overflow: hidden; height: 350px; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(19, 42, 65, 0.95), rgba(19, 42, 65, 0.4)); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transition: 0.4s; transform: translateY(20px); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) { .header-contact-info { display: none; } }
@media (max-width: 900px) { .pricing-container { flex-direction: column; } .pricing-card { width: 100%; max-width: 350px; margin-bottom: 30px; } .phone-btn { display: flex; } .burger-menu { display: block; } nav ul { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--primary-dark); flex-direction: column; justify-content: center; padding: 40px; transition: 0.4s; gap: 40px; } nav ul.active { right: 0; } .about-container { flex-direction: column; text-align: center; } .about-image { margin-top: 30px; } .exp-badge { left: 50%; transform: translateX(-50%); bottom: -25px; width: max-content; } .timeline-container { flex-direction: column; align-items: center; } .step-line { width: 3px; height: 40px; margin: -20px 0 10px; flex-grow: 0; } .simulator-container { flex-direction: column; } }

/* --- MODAL CONFIGURATOR STYLE (FIXED WIDE & TRANSPARENT) --- */
/* Force une grande largeur et enlève les limites de hauteur */
.modal-large { width: 98% !important; max-width: 1400px !important; height: auto; max-height: none !important; display: flex; flex-direction: column; padding: 30px; overflow: visible !important; background-color: rgba(30, 30, 30, 0.95); backdrop-filter: blur(10px); }

/* Le conteneur des options s'étend */
.config-body { margin: 15px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow: visible !important; }

/* Grille 4 colonnes forcée */
.config-options-list { display: grid; grid-template-columns: repeat(4, 1fr) !important; gap: 15px; align-content: center; }

/* Style des options transparentes */
.config-item { background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 12px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.2s ease-in-out; height: 100%; }
.config-item:hover { border-color: var(--accent-copper); background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.config-info { flex: 1; text-align: left; padding-right: 15px; }
.config-name { font-weight: 700; color: white; display: block; font-size: 0.9rem; margin-bottom: 4px; }
.config-desc { font-size: 0.75rem; color: #ccc; line-height: 1.2; display: block; }
.config-price { color: var(--accent-copper); font-weight: 800; font-size: 0.95rem; white-space: nowrap; margin-right: 15px; }

/* Pied de page avec prix vert */
.config-summary { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; }
.config-summary span:first-child { font-size: 1.1rem; color: #ccc; font-weight: 500; }
.price-highlight { color: var(--success) !important; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.modal-content .btn-full { width: auto; min-width: 250px; margin-top: 0; padding: 15px 40px; font-size: 1.1rem; }

/* Responsive pour le configurateur */
@media (max-width: 1200px) { .config-options-list { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 900px) { .config-options-list { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .config-options-list { grid-template-columns: 1fr !important; } .config-summary { flex-direction: column; gap: 15px; text-align: center; } .modal-content .btn-full { width: 100%; } }

/* --- TOGGLE SWITCH & MODAL STANDARD --- */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-copper); }
input:checked + .slider:before { transform: translateX(22px); }
.lightbox { display: none; position: fixed; z-index: 2500; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; flex-direction: column; }
.lightbox-content { position: relative; max-width: 90%; max-height: 80vh; }
#lightbox-img { max-width: 100%; max-height: 80vh; border-radius: 5px; }
.lightbox-caption { text-align: center; color: #fff; padding-top: 15px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }
.lightbox-controls { display: flex; gap: 40px; margin-top: 50px; }
.lightbox-prev, .lightbox-next { cursor: pointer; color: white; font-size: 2rem; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 20px; }
.modal-content { background: #2e2e2e; padding: 40px; border-radius: 20px; width: 100%; max-width: 500px; position: relative; border: 1px solid var(--accent-copper); color: white;}
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-grey); }
input, select, textarea { width: 100%; padding: 15px; margin-bottom: 15px; background: #1a1a1a; border: 1px solid #444; border-radius: 8px; color: white; font-family: inherit; }
.legal-content { max-width: 800px; margin: 0 auto; background: #ffffff; padding: 40px; border-radius: 15px; text-align: left; color: #333333; }

