/*
Theme Name: Alsace Energies OnePage Modifiable v17
Theme URI: https://www.aeeg.fr
Author: ALSACE ENERGIES ET GRANULES & ChatGPT
Description: Thème WordPress pour ALSACE ENERGIES ET GRANULES avec page d'accueil, formulaires, réalisations, fournisseurs et catalogues téléchargeables.
Version: 2.4
License: GNU General Public License v2 or later
Text Domain: aeeg-theme
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #3b2516;
    color: #fbe1b6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER */

.site-header {
    background: rgba(59, 37, 22, 0.95);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.site-header .logo img {
    height: 40px;
}

.site-header nav {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.site-header nav li {
    list-style: none;
}

.site-header nav a {
    display: inline-block;
    color: #f8e2c4;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.site-header nav a:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* HERO */

.hero {
    background: radial-gradient(circle at top, #805336 0%, #3b2516 55%, #2a1a10 100%);
    color: #fbe1b6;
    text-align: center;
    padding: 90px 20px 80px;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    width: 520px;
    max-width: 70%;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.7));
}

.hero h1 {
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero p.lead {
    font-size: 18px;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 28px;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-primary {
    background: #2f6b34;
    color: #fff;
}

.btn-secondary {
    background: #f5c892;
    color: #5a3620;
}

/* Catalog buttons */

.hero-catalogs {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-secondary.small {
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 22px;
    border: 1px solid rgba(245, 200, 146, 0.9);
    background: rgba(59, 37, 22, 0.92);
    color: #fbe1b6;
}

/* Band icons */

.band-icons {
    background: #2b1b10;
    color: #fbe1b6;
    padding: 30px 20px;
}

.band-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    text-align: center;
}

.band-item {
    flex: 1 1 220px;
    max-width: 320px;
}

.band-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.band-item h3 {
    margin: 6px 0 6px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.band-item p {
    font-size: 14px;
    margin: 0;
}

/* SECTIONS */

.section {
    padding: 50px 20px;
    text-align: center;
    background: #f4f1ea;
    color: #3a2e2a;
}

.section.alt {
    background: #e8dccb;
}

.section h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.section p.lead {
    max-width: 800px;
    margin: 10px auto 30px;
    font-size: 16px;
}

/* Services cards */

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.cards-grid .card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    padding: 20px 22px;
    max-width: 320px;
    flex: 1 1 260px;
    text-align: left;
}

.cards-grid .card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    text-transform: none;
}

/* PAGES */

.page-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    color: #3a2e2a;
}

.page-wrapper h1 {
    text-align: center;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FORM */

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #b08a62;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.btn-primary-form {
    display: inline-block;
    padding: 12px 26px;
    background: #b47239;
    color: #fff;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.notice {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.notice-success {
    background: #e2f5e7;
    border: 1px solid #6fbf7f;
    color: #295b32;
}

.notice-error {
    background: #fbe3e4;
    border: 1px solid #f18c8f;
    color: #8a1f11;
}

/* GALLERY */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.gallery img {
    width: 30%;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    object-fit: cover;
    background:#ddd;
}

/* FOURNISSEURS */

.suppliers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.supplier-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    min-width: 180px;
    max-width: 230px;
    text-align: center;
}

.supplier-card img {
    max-width: 140px;
    max-height: 60px;
    display: block;
    margin: 0 auto 8px;
    object-fit: contain;
}

.supplier-card span {
    font-weight: bold;
    font-size: 14px;
}

/* FOOTER SPACER */

.footer-spacer {
    height: 30px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .page-wrapper {
        margin: 15px;
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-header nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 8px;
    }
    .hero h1 {
        font-size: 30px;
    }
    .gallery img {
        width: 100%;
    }
    .hero-catalogs {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-catalogs .btn-secondary.small {
        width: 100%;
        text-align: center;
    }
}

/* Switch Granulés & Bois / Photovoltaïque */
.mode-switch {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.mode-switch a {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    color: #f8e2c4;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mode-switch a.active,
.mode-switch a:hover {
    background: #ffffff;
    color: #1f487a;
}

/* Thème solaire (photovoltaïque) */
.theme-solaire .hero {
    background: linear-gradient(135deg, #0050a0 0%, #0091d5 60%, #00c4ff 100%);
}

.theme-solaire body {
    background: #f5f9ff;
    color: #123a66;
}

.theme-solaire .section {
    background: #f5f9ff;
    color: #123a66;
}

.theme-solaire .section.alt {
    background: #e3f0ff;
}

.theme-solaire .page-wrapper {
    background: #ffffff;
}

.theme-solaire .btn-primary {
    background: #0070d1;
    color: #ffffff;
}

.theme-solaire .btn-secondary,
.theme-solaire .btn-secondary.small {
    background: #ffffff;
    color: #0050a0;
    border-color: #ffffff;
}

/* PV pack section */
.pv-pack-content {
    max-width: 1100px;
    margin: 25px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.pv-pack-visual,
.pv-pack-video {
    flex: 1 1 320px;
}

.pv-pack-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
    .mode-switch {
        margin-top: 8px;
        margin-right: 0;
    }
}


/* Photovoltaic logo white background */
.theme-solaire .hero-logo {
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 50%;
}

/* Enlarge simulation button as wide block */
.pv-pack-video p a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px;
    font-size: 1.2rem;
    border-radius: 12px;
}


/* White background behind logo for BOIS mode as well */
.theme-bois .hero-logo {
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 50%;
}


/* Footer & social links */
.site-footer {
    background: #2b1b10;
    color: #fbe1b6;
    padding: 12px 20px;
    margin-top: 30px;
    font-size: 13px;
}

.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer a {
    color: #fbe1b6;
    text-decoration: none;
}

.social-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-footer span {
    margin-right: 4px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    background: #fbe1b6;
    color: #2b1b10;
}

.social-fb { background: #1877f2; color:#ffffff; }
.social-ig {
    background: radial-gradient(circle at 30% 30%, #feda75 0, #d62976 45%, #4f5bd5 100%);
    color:#ffffff;
}
.social-tt { background: #000000; color:#ffffff; }

@media (max-width: 700px) {
    .site-footer .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Cookie banner basic styling */
.cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.85);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.cookie-banner button {
    background: #f5c892;
    color: #2b1b10;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
}
@media (max-width: 700px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Masquer les liens légaux dans le menu du haut (si ajoutés automatiquement) */
.site-header nav a[href*="/cgv"],
.site-header nav a[href*="/mentions-legales"],
.site-header nav a[href*="/politique-de-confidentialite"] {
    display: none !important;
}


/* Reviews section on SEO page */
.reviews-section {
    margin: 25px 0 10px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.review-card {
    background: #fff7ec;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 14px;
}
.review-stars {
    color: #f5a623;
    font-size: 16px;
    margin-bottom: 6px;
}
.review-text {
    margin: 0 0 6px;
}
.review-author {
    margin: 0;
    font-size: 12px;
    color: #777;
}
.reviews-note {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

@media (max-width: 600px) {
    .review-card {
        font-size: 13px;
    }
}
