/* --------------------------------------------------
   GLOBAL RESET & BASICS
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h1,
h2,
h3 {
    color: #111;
    margin-bottom: 0.5em;
}

section {
    padding: 60px 0;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

/* Hamburger button (mobile) */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 10px;
    /* matches button padding */
    right: 10px;
    /* matches button padding */
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 14px;
}

.menu-toggle span:nth-child(2) {
    top: 20px;
}

.menu-toggle span:nth-child(3) {
    top: 26px;
}

/* Open state = cross */
.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Header right side (Réalisations + CTA) */
.header-cta {
    display: flex;
    align-items: center;
    gap: 32px;
    /* space between Réalisations and the button */
}

.realisations-link,
.main-nav a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    padding: 8px 4px;
    display: block;
    transition: 0.25s;
}

.realisations-link:hover,
.main-nav a:hover {
    color: orange;
    text-decoration: none;
}

.btn-primary {
    display: inline-block;
    padding: 10px 18px;
    background: orange;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s;
}

.btn-primary:hover {
    background: #ff9800;
}

/* Secondary button */
.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid orange;
    color: orange;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.btn-secondary:hover {
    background: orange;
    color: #fff;
}

/* Boutons / CTA interactifs */
.btn,
.btn-primary,
.btn-secondary {
    cursor: pointer;
    border: none;
    outline: none;
}

/* MAIN NAV — base */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav li {
    position: relative;
}

/* SUBMENU */
.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: #fff;
    padding: 12px 0;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    min-width: 190px;
    display: none;
    z-index: 999;
    list-style: none;
    transform: translateX(-10%);
}

.main-nav .has-submenu .submenu {
    transform: none;
}

.has-submenu .submenu li {
    list-style: none;
}

.has-submenu .submenu li a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.has-submenu .submenu li a:hover {
    background: #f5f5f5;
    color: orange;
    text-decoration: none;
}

/* SHOW SUBMENU ON HOVER */
.has-submenu:hover .submenu {
    display: block;
}

/* --------------------------------------------------
   PAGE HERO + PAGE CONTENT (new pages)
-------------------------------------------------- */
.page-hero {
    background: #fff;
    padding: 60px 0 30px;
    border-bottom: 1px solid #eee;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #333;
    max-width: 900px;
}

.page-content {
    background: #fff;
    padding: 40px 0 70px;
}

.page-content h2 {
    margin-top: 26px;
}

.page-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.page-content li {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 10px;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .page-hero {
        padding: 45px 0 25px;
        text-align: center;
    }

    .page-hero p {
        margin: 0 auto;
    }
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
    background: #fff;
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.hero-actions .btn-primary {
    margin-bottom: 15px;
}

.hero-badges {
    list-style: none;
    margin-top: 20px;
}

.hero-badges li {
    margin-bottom: 8px;
    font-weight: 600;
}

.page-hero-switch a {
    color: orange;
    /* choose your color */
    font-weight: 600;
    text-decoration: none;
}

.page-hero-switch a:hover {
    text-decoration: underline;
    color: #ff9800;
    /* hover color */
}

/* --------------------------------------------------
   AUDIENCES SECTION
-------------------------------------------------- */
.audiences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.card h3 {
    margin-bottom: 15px;
}

.card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.card-link {
    color: orange;
    font-weight: bold;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------
   SERVICES
-------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --------------------------------------------------
   PROCESS
-------------------------------------------------- */
.process-steps {
    list-style: none;
    margin-top: 30px;
}

.process-steps li {
    margin-bottom: 20px;
    padding-left: 0;
    font-size: 1.1rem;
}

/* PROCESS GRID */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.process-image img {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.contact-cta {
    text-align: center;
    padding: 100px 0;
}

.contact-cta .btn-primary {
    margin-top: 25px;
}

/* Réalisations – mise en page projets */
.project {
    padding: 60px 0;
    border-top: 1px solid #eee;
    background: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 25px;
    align-items: flex-start;
}

.project-content {
    max-width: 640px;
}

.project-content p,
.project-content li {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Space between text and button in project section */
.project-content .project-note {
    margin-bottom: 30px;
}

/* Bigger project button */
.project-content .btn-primary {
    padding: 14px 26px;
    font-size: 1.05rem;
    margin-top: 20px;
}

/* Thumbnails bigger: 2 per row */
.project-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-thumb {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.project-thumb img {
    width: 100%;
    height: 220px;
    /* bigger */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s, box-shadow 0.25s;
}

.project-thumb img:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Boutons / CTA interactifs */
.btn,
.btn-primary,
.btn-secondary {
    cursor: pointer;
}

/* Galerie modale */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.gallery-dialog {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    z-index: 2000;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    overflow: hidden;
}

.gallery-image-wrapper img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3000;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.gallery-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    text-align: center;
    color: #555;
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-thumbs {
        justify-content: flex-start;
    }

    .gallery-dialog {
        margin: 20px;
        padding: 15px;
    }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
    background: #111;
    color: #eee;
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: orange;
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .audiences-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* show hamburger */
    .menu-toggle {
        display: inline-flex;
    }

    /* header positioning for dropdown menu */
    .header-flex {
        position: relative;
    }

    /* mobile nav container */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 10px 0;
        display: none;
        /* closed by default */
        z-index: 1000;
    }

    /* open state (toggled via JS) */
    .main-nav.is-open {
        display: block;
    }

    /* vertical list */
    .main-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 6px 0;
        align-items: stretch;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        padding: 12px 16px;
    }

    /* submenu becomes stacked on mobile */
    .has-submenu .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: unset;
        transform: none;
        display: none;
        background: transparent;
    }

    .has-submenu.submenu-open .submenu {
        display: block;
    }

    .has-submenu .submenu li a {
        padding: 10px 24px;
        background: #fafafa;
        border-top: 1px solid #eee;
    }

    .process-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-image img {
        margin-top: 20px;
    }
}

/* --------------------------------------------------
   PAGE VIDEO (responsive)
-------------------------------------------------- */
.page-video {
    padding: 30px 0 10px;
    background: #fff;
}

.video-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.video {
    width: 100%;
    height: auto;
    display: block;
}

/* Keep a stable 16:9 box when supported */
@supports (aspect-ratio: 16 / 9) {
    .video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .video {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 900px) {
    .page-video {
        padding: 20px 0 0;
    }

    .video-wrapper {
        border-radius: 10px;
    }
}

/* ==================================================
   CONTACT PAGE + FORMSPREE FORM (paste at end)
================================================== */

/* Page spacing */
.contact-page {
    background: #fff;
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

/* Left column */
.contact-info h2,
.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.contact-info p {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 14px;
    line-height: 1.7;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0 10px;
}

.contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.contact-card p {
    margin: 0;
    color: #444;
}

.contact-card a {
    color: orange;
    font-weight: 700;
    text-decoration: none;
}

.contact-card a:hover {
    color: #ff9800;
    text-decoration: underline;
}

.contact-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fff7e8;
    border: 1px solid rgba(255, 165, 0, 0.25);
    border-radius: 10px;
    color: #333;
}

/* Right column form card */
.contact-form {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

/* Form layout */
.solar-form {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.solar-form fieldset {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    background: #fafafa;
}

.solar-form legend {
    font-weight: 800;
    padding: 0 8px;
    color: #111;
}

.solar-form label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 18px;
    margin-top: 10px;
    font-weight: 600;
    color: #333;
}

.solar-form input[type="radio"],
.solar-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Inputs */
.solar-form input[type="text"],
.solar-form input[type="email"],
.solar-form input[type="tel"],
.solar-form input[type="file"],
.solar-form select,
.solar-form textarea {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1rem;
    transition: 0.2s;
    outline: none;
}

.solar-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Focus state */
.solar-form input:focus,
.solar-form select:focus,
.solar-form textarea:focus {
    border-color: rgba(255, 165, 0, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.15);
}

/* Consent */
.solar-form .consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

/* Submit button bigger */
.solar-form button.btn-primary {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.05rem;
    border-radius: 8px;
}

/* Optional: nicer file input */
.solar-form input[type="file"] {
    padding: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form {
        padding: 18px;
    }
}

/* Conditional form sections */
.form-particulier,
.form-professionnel {
    display: none;
}