:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --secondary: #3498db;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #95a5a6;
    --accent: #f1c40f;
    --text: #333333;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Évite le débordement horizontal */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    position: relative;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a:active,
a:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

button,
.btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

button:active,
button:focus,
.btn:active,
.btn:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Utilities */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* S'assure qu'aucune section ne dépasse */
section {
    max-width: 100vw;
    overflow-x: hidden;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.text-dark {
    color: var(--dark);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo .highlight {
    color: var(--primary);
}

.highlight {
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hamburger:active,
.hamburger:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.burger-piece {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    position: absolute;
    left: 0;
    transform-origin: center;
}

.burger-piece.top {
    top: 7px;
}

.burger-piece.middle {
    top: 14px;
}

.burger-piece.bottom {
    top: 21px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../assets/images/hero_pc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto;
    border-radius: 2px;
}

/* PV Section */
.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pv-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.pv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.pv-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: center;
}

.pv-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pv-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.carousel-slides-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
    flex: 1;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.carousel-btn {
    background-color: rgba(46, 204, 113, 0.9);
    color: var(--white);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-prev {
    order: -1;
}

.carousel-next {
    order: 1;
}


.pv-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pv-text h3 {
    margin-top: 30px;
}

.pv-text ul {
    margin: 20px 0;
    display: inline-block;
    text-align: left;
}

.pv-text li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-text li i {
    color: var(--primary);
}

.pv-text p {
    margin-bottom: 0;
}

/* Elec Section */
.elec-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.elec-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.elec-item .lottie-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
}

.elec-item span {
    font-weight: 600;
    color: var(--dark);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-item .lottie-icon-contact {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-hint {
    display: none;
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: 5px;
    font-style: italic;
}

.form-hint.show-error {
    display: block;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    margin-top: 10px;
}

/* Checkbox styling */
.checkbox-group {
    display: inline-flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    user-select: none;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #1a252f;
    color: #7f8c8d;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Hero avec image mobile */
    .hero {
        background-image: url('../assets/images/hero_mobile.jpg');
    }

    .hero-btns {
        flex-direction: column;
    }

    /* Afficher le bouton d'appel flottant sur mobile */
    .floating-call-btn {
        display: flex !important;
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background-color: var(--primary);
        color: var(--white);
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        z-index: 1500;
        transition: var(--transition);
        text-decoration: none;
    }

    .floating-call-btn:hover {
        background-color: var(--primary-dark);
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .floating-call-btn i {
        animation: pulse 2s infinite;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: calc(100vh - 60px);
        background-color: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        transform: translateX(-100%);
        z-index: 999;
        box-sizing: border-box;
        margin: 0;
    }

    .nav-links a {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
        border-radius: 50px;
        background-color: var(--dark);
        color: var(--white) !important;
        font-weight: 600;
        opacity: 0;
        transform: translateY(25px);
        border: 2px solid var(--primary);
    }

    .nav-links a:hover {
        background-color: transparent;
        color: var(--white) !important;
        transform: translateY(-2px);
    }

    .nav-links .btn-nav {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    .nav-links .btn-nav:hover {
        background-color: transparent;
        color: var(--primary) !important;
    }

    .hamburger {
        display: block;
    }

    .pv-details {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pv-image {
        order: -1;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 0;
    z-index: 2000;
    transition: bottom 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text p:first-child {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: var(--transition);
}

.cookie-text a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.btn-refuse {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-refuse:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-accept {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-accept:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}
/* ajustements*/

.pv-grid{
    margin-bottom: 20px;
}

/* Legal Page */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* Lien retour navbar */
.back-link-mobile {
    display: none;
    align-items: center;
    gap: 6px;
    color: var(--white);
    background-color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.back-link-mobile:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.back-link-mobile i {
    font-size: 0.8rem;
}

.back-link-desktop {
    display: inline-block;
}

/* Responsive Legal */
@media (max-width: 768px) {
    /* Lien retour responsive - affiché en haut à droite de la navbar */
    .back-link-mobile {
        display: flex;
    }

    .back-link-desktop {
        display: none;
    }

    /* Ajuste le nav-container pour les pages légales sur mobile */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Cookie banner responsive */
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .cookie-text p:first-child {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-buttons {
        width: 100%;
        gap: 10px;
    }

    .btn-cookie {
        flex: 1;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Cache le badge reCAPTCHA (conforme aux règles Google car texte présent dans le formulaire) */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Bouton d'appel flottant mobile */
.floating-call-btn {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}