/* ═══════════════════════════════════════════════════════════
   home.css — Page d'accueil Artois Énergies Renouvelables
   Thème vert/bleu aligné sur style.css
═══════════════════════════════════════════════════════════ */

.hm-gradient-text {
    background: linear-gradient(135deg, var(--green-500, #22c55e), var(--blue-600, #2563eb));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hm-section { padding: 80px 0; }
.hm-section.bg-light { background: var(--gray-50, #f9fafb); }

.hm-section-head { text-align: center; margin-bottom: 56px; }
.hm-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-600, #16a34a);
    background: rgba(22, 163, 74, 0.1);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.hm-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--gray-900, #111827);
    margin: 0 0 12px;
    line-height: 1.2;
}
.hm-section-sub {
    font-size: 1rem;
    color: var(--gray-500, #6b7280);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── 1. HERO ─────────────────────────────────────────────── */
.hm-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f2027 0%, #1a3a2a 50%, #0d2137 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}
.hm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(22,163,74,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hm-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hm-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #86efac;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hm-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
}

.hm-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hm-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hm-hero-video { display: flex; align-items: center; justify-content: center; }
.hm-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.hm-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hm-hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    animation: hmBounce 2s infinite;
}
@keyframes hmBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 2. SERVICES ─────────────────────────────────────────── */
.hm-services { background: #fff; }

.hm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.hm-svc-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 36px 28px;
    transition: var(--transition, 0.25s ease);
    position: relative;
    overflow: hidden;
}
.hm-svc-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-600, #16a34a), var(--blue-600, #2563eb));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.hm-svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.12)); }
.hm-svc-card:hover::after { transform: scaleX(1); }

.hm-svc-icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.hm-svc-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900, #111827); margin: 0 0 10px; }
.hm-svc-card p { font-size: 0.9rem; color: var(--gray-500, #6b7280); line-height: 1.6; margin: 0 0 16px; }

.hm-svc-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hm-svc-features li {
    font-size: 0.875rem;
    color: var(--gray-700, #374151);
    padding: 5px 0;
    padding-left: 14px;
    position: relative;
}
.hm-svc-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--green-600, #16a34a);
    border-radius: 50%;
}

.hm-guarantees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 28px 32px;
}
.hm-guarantee { display: flex; align-items: center; gap: 14px; }
.hm-guarantee-icon { font-size: 1.8rem; }
.hm-guarantee strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--gray-800, #1f2937); }
.hm-guarantee p { font-size: 0.8rem; color: var(--gray-500, #6b7280); margin: 2px 0 0; }

/* ── 3. MAGASIN ──────────────────────────────────────────── */
.hm-store-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hm-store-text .hm-section-title { text-align: left; margin-bottom: 20px; }
.hm-store-text p { color: var(--gray-600, #4b5563); line-height: 1.7; margin-bottom: 14px; }

.hm-store-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.hm-store-list li {
    font-size: 0.9rem;
    color: var(--gray-700, #374151);
    padding: 5px 0 5px 20px;
    position: relative;
}
.hm-store-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--green-600, #16a34a);
    border-radius: 50%;
}

.hm-store-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hm-gallery-main {
    border-radius: var(--radius, 12px);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16/10;
    background: var(--gray-100, #f3f4f6);
}
.hm-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hm-gallery-main:hover img { transform: scale(1.03); }

.hm-gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hm-thumb {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
    width: 100%;
}
.hm-thumb:hover { opacity: 1; }
.hm-thumb.active { border-color: var(--green-600, #16a34a); opacity: 1; }

/* ── 4. MAINTENANCE ──────────────────────────────────────── */
.hm-maintenance {
    background: linear-gradient(135deg, #0f1f0f 0%, #0d1a2e 100%);
}

.hm-maintenance .hm-section-title { color: #fff; }
.hm-maintenance .hm-section-sub { color: rgba(255,255,255,0.6); }

.hm-maintenance-divider {
    position: relative;
    text-align: center;
    margin-bottom: 48px;
}
.hm-maintenance-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.12);
}
.hm-maintenance-divider span {
    position: relative;
    background: transparent;
    padding: 8px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #86efac;
    border: 2px solid rgba(134,239,172,0.35);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
}

.hm-equipment-covered {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 8px;
}

.hm-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.hm-plan {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg, 20px);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition, 0.25s ease);
}
.hm-plan:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }

.hm-plan-popular {
    background: rgba(22,163,74,0.12);
    border-color: var(--green-500, #22c55e);
}

.hm-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--green-600, #16a34a), var(--blue-600, #2563eb));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.hm-plan-head { margin-bottom: 24px; text-align: center; }
.hm-plan-head h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 0 12px; }

.hm-plan-price { display: flex; align-items: baseline; gap: 4px; justify-content: center; margin-bottom: 6px; }
.hm-plan-amount { font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }
.hm-plan-period { font-size: 0.85rem; color: rgba(255,255,255,0.45); }

.hm-plan-equip { font-size: 0.875rem; font-weight: 700; color: #86efac; margin-bottom: 6px; }
.hm-plan-desc { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.hm-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}
.hm-plan-features li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    line-height: 1.4;
}
.hm-plan-features li:last-child { border-bottom: none; }

.hm-plan-btn { width: 100%; text-align: center; }

/* ── 5. À PROPOS ─────────────────────────────────────────── */
.hm-about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 72px;
    align-items: start;
}

.hm-about-text .hm-section-title { text-align: left; margin-top: 12px; }
.hm-about-text p { color: var(--gray-600, #4b5563); line-height: 1.75; margin-bottom: 16px; }

.hm-about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hm-value {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 20px;
    transition: var(--transition, 0.25s ease);
}
.hm-value:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06)); }
.hm-value-icon { font-size: 1.6rem; flex-shrink: 0; }
.hm-value strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--gray-800, #1f2937); margin-bottom: 4px; }
.hm-value p { font-size: 0.8rem; color: var(--gray-500, #6b7280); margin: 0; line-height: 1.4; }

/* ── 6. AVANTAGES ────────────────────────────────────────── */
.hm-advantages { background: #fff; }

.hm-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.hm-adv-card {
    background: #fff;
    border: 2px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition, 0.25s ease);
}
.hm-adv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.1));
    border-color: var(--green-300, #86efac);
}
.hm-adv-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.hm-adv-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900, #111827); margin: 0 0 10px; }
.hm-adv-card p { font-size: 0.875rem; color: var(--gray-500, #6b7280); line-height: 1.6; margin: 0; }

.hm-adv-cta {
    background: linear-gradient(135deg, var(--green-600, #16a34a), var(--blue-600, #2563eb));
    border-radius: var(--radius-lg, 20px);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
}
.hm-adv-cta h3 { font-size: 1.8rem; font-weight: 800; margin: 0 0 14px; }
.hm-adv-cta p { font-size: 1rem; opacity: 0.85; margin: 0 0 28px; }

/* ── 7. CONTACT ──────────────────────────────────────────── */
.hm-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.hm-contact-info { display: flex; flex-direction: column; gap: 16px; }

.hm-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 20px;
    transition: var(--transition, 0.25s ease);
}
.hm-contact-card:hover { border-color: var(--green-300, #86efac); transform: translateY(-2px); }
.hm-contact-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.hm-contact-card strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--gray-800, #1f2937); margin-bottom: 4px; }
.hm-contact-card p { font-size: 0.85rem; color: var(--gray-500, #6b7280); margin: 0; line-height: 1.5; }
.hm-contact-card a { color: var(--green-600, #16a34a); text-decoration: none; font-weight: 500; }
.hm-contact-card a:hover { text-decoration: underline; }

.hm-contact-cta-box {
    background: linear-gradient(135deg, var(--green-600, #16a34a), var(--blue-600, #2563eb));
    border-radius: var(--radius, 12px);
    padding: 28px;
    color: #fff;
}
.hm-contact-cta-box h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 10px; }
.hm-contact-cta-box p { font-size: 0.875rem; opacity: 0.85; margin: 0; line-height: 1.6; }

.hm-contact-form-wrap {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-lg, 20px);
    padding: 40px;
    box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,0.08));
}
.hm-contact-form .form-group { margin-bottom: 18px; }
.hm-submit-btn { width: 100%; margin-top: 8px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hm-hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hm-hero-video { order: -1; }
    .hm-hero-title { font-size: 2.2rem; }
    .hm-about-layout { grid-template-columns: 1fr; gap: 40px; }
    .hm-about-values { grid-template-columns: repeat(2, 1fr); }
    .hm-contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hm-section { padding: 56px 0; }
    .hm-services-grid { grid-template-columns: 1fr; }
    .hm-guarantees { grid-template-columns: 1fr; }
    .hm-store-layout { grid-template-columns: 1fr; gap: 36px; }
    .hm-plans-grid { grid-template-columns: 1fr; }
    .hm-adv-grid { grid-template-columns: 1fr 1fr; }
    .hm-adv-cta { padding: 36px 24px; }
    .hm-adv-cta h3 { font-size: 1.4rem; }
    .hm-about-values { grid-template-columns: 1fr; }
    .hm-contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
    .hm-hero { padding: 80px 0 48px; }
    .hm-hero-actions { flex-direction: column; }
    .hm-hero-actions .btn { width: 100%; text-align: center; }
    .hm-adv-grid { grid-template-columns: 1fr; }
    .hm-store-actions { flex-direction: column; }
    .hm-store-actions .btn { width: 100%; text-align: center; }
}
