/*
Theme Name: Wattsun Innovations
Theme URI: https://wattsuninnovations.com
Author: Wattsun
Author URI: https://wattsuninnovations.com
Description: Thème WordPress personnalisé pour Wattsun Innovations.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wattsuninnovations
*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p, ul, ol, h1, h2, h3, h4, h5, h6 {
    margin: revert;
    padding: revert;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.post {
    margin-bottom: 40px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo img {
    max-height: 50px;
    width: auto;
}


/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.hero-content {
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f9fa;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    margin-top: 0;
    color: #666;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s;
    align-self: flex-start;
}

.btn:hover {
    background: #333;
}

.hero-image {
    background: url('/wp-content/uploads/2025/11/hero.png" ') center/cover;
    background-color: #e0e0e0;
    position: relative;
}

/* Divisions Section */
.divisions-intro {
    text-align: center;
    padding: 80px 60px;
    background: white;
}

.divisions-intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 300;
}

.divisions-intro p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Division Cards */
.division-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
}

.division-content {
    margin-bottom: 75px;
    padding: 0px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.division-tag {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.division-content h3 {
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 400;
}

.division-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.division-content ul {
    list-style: none;
    margin: 20px 0;
}

.division-content li {
    padding: 8px 0;
    color: #666;
    font-size: 15px;
}

.division-image {
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    height: 500px;
    position: relative;
}

@media (max-width: 968px) {
    .division-card {
        display: flex;
        flex-direction: column;
        margin-bottom: 0px;
    }

    /* L’image est toujours le premier élément en mobile */
    .division-image {
        order: -1;
        /* force l’image en haut */
        width: 100%;
        height: 400px;
    }

    /* Le contenu reste après */
    .division-content {
        order: 0;
        padding: 40px 30px;
    }

    /* Que ce soit reverse ou non, l'image reste en haut */
    .division-card.reverse {
        flex-direction: column;
    }
}



/* Stats Section */
.stats {
    background: #1a1a1a;
    color: white;
    padding: 80px 60px;
}

.stats h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.stat-label {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

/* Partenaires Section */
.partenaires {
    padding: 80px 60px;
    text-align: center;
    background: white;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.partenaires p {
    width: 50%;
}

.partenaires h3 {
    font-size: 28px;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Grille desktop = 3 colonnes */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 900px;
    margin-top: 50px;
    ;
    align-items: center;
}

/* Logo avec limite de largeur */
.partenaire-logo img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* MOBILE : 1 colonne */
@media (max-width: 768px) {
    .partenaires-grid {
        justify-items: center;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partenaires p {
        width: 100%;
    }
}


/* CTA Section */
.cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    background: #f8f9fa;
}

.cta-image {
    background: #d0d0d0;
    background-size: contain;
    background-position: center;
}

.cta-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 300;
}

.cta-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 35px;
}

/* Responsive */
@media (max-width: 968px) {

.hero{
        min-height: auto;
}

    .hero,
    .division-card,
    .cta {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        padding: 20px 30px;
    }

    .hero-content,
    .cta-content {
        padding: 60px 30px;
    }

    .hero h1 {
        font-size: 36px;
    }
        .hero {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-image, .cta-image {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        /* une seule colonne */
        gap: 30px;
        /* optionnel : réduire l’espace */
    }

}

/* Style de l'accordéon */
details {
    border-top: 1px solid #ccc;
    /* ligne au-dessus */
    padding: 10px 0;
}
/* Style de l'accordéon */
details {
    border-top: 1px solid #ccc; /* ligne au-dessus */
    padding: 10px 0;
}

/* Ligne en dessous du dernier élément */
details:last-of-type {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px; /* optionnel pour garder la même marge */
    margin-bottom: 10px;
}

.divisions-logo{
    max-width: 200px;
    max-height: 100px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    list-style: none;
    /* supprime la flèche par défaut dans certains navigateurs */
}

summary::-webkit-details-marker {
    display: none;
    /* supprime le triangle par défaut sur Chrome/Safari */
}
#solaire details[open],
#solar details[open] summary {
    color: #FF6B35;
}
#borne details[open],
#ev-charger details[open] summary {
    color: #ff0000;
}
#erp details[open] summary {
    color: #F3913D;
}

details p {
    margin: 10px 0 0 0;
    font-size: 14px;
}

.page_index {
    background: #f8f9fa;
}
/* Classes initiales */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Classe activée lorsqu'on est visible */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 500px) {
    .hero_logos {
        flex-wrap: wrap !important;
    }
}
.divisons-accordeon summary {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
}

.divisons-accordeon summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    transition: transform 0.2s ease, content 0.2s;
}

/* Quand l’accordéon est ouvert */
.divisons-accordeon details[open] summary::after {
    content: "−"; /* tiret long (moins) */
}
[id] {
  scroll-margin-top: var(--header-height, 240px); /* fallback si JS ne charge pas */
}
