/* -------------------- RESET & BASE -------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #000;
    color: #fff;
}

/* Utilitaire largeur max comme CG Wellington */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* -------------------- HEADER / NAV -------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    transition: background-color 0.25s ease, transform 0.5s ease, padding 0.25s ease;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}

.site-header .content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* État header après scroll (ajout de .scrolling en JS) */
.site-header.scrolling {
    background-color: #000;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* État header caché (si tu veux) */
.site-header.move {
    transform: translateY(-100%);
}

/* NAV LAYOUT */

.nav-split {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-left {
    flex: 1;
}

.nav-center {
    flex: 0 0 auto;
    text-align: center;
}

.nav-center img {
    display: block;
    max-height: 4rem;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
}

/* Liens nav */
.nav-logo,
.nav-right a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-logo {
    font-weight: 700;
}

.nav-right a.selected,
.nav-right a:hover {
    color: #7ac142;
}

/* Burger mobile */

.nav-toggle {
    display: none;
    position: relative;
    border: 0;
    background: none;
    width: 3rem;
    height: 3rem;
    margin-left: 2rem;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.2rem;
    background-color: #fff;
    transform-origin: center;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
    top: 0.7rem;
}

.nav-toggle span:nth-child(2) {
    top: 1.4rem;
}

.nav-toggle span:nth-child(3) {
    top: 2.1rem;
}

/* État ouvert (ajout classe .open sur header ou bouton) */
.site-header.open .nav-toggle span:nth-child(1) {
    top: 1.4rem;
    transform: rotate(45deg);
}

.site-header.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.open .nav-toggle span:nth-child(3) {
    top: 1.4rem;
    transform: rotate(-45deg);
}

/* -------------------- MENU MOBILE -------------------- */

.small-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    transform: translateY(-125%);
    transition: transform 0.5s ease;
    z-index: 2500;
}

.small-menu .scrolling {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding: 2.5rem;
}

.small-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.small-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    text-transform: uppercase;
}

.small-menu ul li a.selected,
.small-menu ul li a:hover {
    color: #7ac142;
}

/* Overlay */
.small-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    z-index: 2000;
}

/* États ouverts (JS ajoute .open) */
.small-menu.open {
    transform: translateY(7.3rem);
}

.small-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* -------------------- BANNIÈRE / HERO -------------------- */

.banner-eyecatch {
    position: relative;
    width: 100%;
    min-height: 64rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10rem; /* compense header fixe */
    overflow: hidden;
}

/* Image de fond indépendante (comme .banner sur CG) */
.banner-eyecatch .background-image {
    position: absolute;
    inset: 0;
    background-image: url("img/thermographe.PNG"); /* remplace par ta vraie image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: opacity 1.6s ease, transform 1.6s ease;
    z-index: 1;
}

/* Contenu au-dessus de l’image */
.banner-eyecatch .content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Effet: quand body a .scrolled (JS), la bannière disparait */
body.scrolled .banner-eyecatch .background-image {
    opacity: 0;
    transform: scale(1.1);
}

body.scrolled .banner-eyecatch .eyecatch {
    opacity: 0;
    transform: translateY(-2rem);
}

/* Style du texte eyecatch */

.eyecatch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;           /* animé via .animate */
    transform: translateY(2rem);
}

.eyecatch-label {
    display: inline-block;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffde00;
}

.eyecatch-subtitle {
    font-size: 2.6rem;
    font-weight: 400;
}

/* -------------------- SECTIONS GÉNÉRALES -------------------- */

.section-amplified {
    background-color: #0f503d;
}

.section-amplified:nth-of-type(even) {
    background-color: #041b1e;
}

/* Présentation Pascal */

.flex-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.flex-img {
    flex: 1 1 30rem;
}

.flex-img img {
    display: block;
    width: 100%;
    border-radius: 1.6rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.flex-text {
    flex: 1 1 30rem;
}

.flex-text h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.flex-text p {
    font-size: 1.6rem;
    line-height: 1.6;
}

/* Section Thermographie */

.section-thermo h2 {
    font-size: 3rem;
    color: #7ac142;
    margin-bottom: 3rem;
    text-align: left;
}

.display-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.vertical-line {
    width: 0.2rem;
    height: 14rem;
    background-color: #0f4c75;
}

.display-flex p {
    font-size: 1.8rem;
    max-width: 40rem;
}

.hero-product {
    margin-top: 4rem;
}

.hero-product img {
    display: block;
    width: 100%;
    max-width: 60rem;
    border-radius: 1.6rem;
    box-shadow: 0 30px 60px rgba(15, 76, 117, 0.35);
}

/* Section HERO Pourquoi */

.hero {
    background-color: #000;
}

.hero .content {
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
}

.hero ul {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.hero ul li {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
}

/* Bouton (comme .button CG) */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    border: 0.2rem solid #7ac142;
    color: #7ac142;
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.button:hover {
    border-color: #fff;
    color: #fff;
}

/* Section Features */

.features {
    background-color: #0f503d;
}

.features h2 {
    font-size: 3rem;
    color: #c7ffb2;
    text-align: left;
    margin-bottom: 3rem;
}

.features .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.features .card {
    background-color: #041b1e;
    padding: 3rem;
    border-radius: 1.6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.features .card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #7ac142;
}

.features .card p {
    font-size: 1.5rem;
    line-height: 1.5;
}

/* -------------------- FOOTER -------------------- */

footer {
    background-color: #000;
}

footer .content {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
}

.footer-nav a:hover {
    color: #7ac142;
}

footer p {
    font-size: 1.2rem;
    color: #aaa;
}

/* -------------------- ANIMATIONS INSPI CG -------------------- */

/* Base */
.animate,
.scroll-cg {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Quand JS ajoute .in-view */
.animate.in-view,
.scroll-cg.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes vitesse */
.cg-speed-fast {
    transition-duration: 0.4s;
}

.cg-speed-normal {
    transition-duration: 0.6s;
}

/* Délais */
.cg-delay-0 { transition-delay: 0s; }
.cg-delay-1 { transition-delay: 0.15s; }
.cg-delay-2 { transition-delay: 0.3s; }
.cg-delay-3 { transition-delay: 0.45s; }

/* Ligne verticale animée (scaleY) */
.cg-line {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
}

.cg-line.in-view {
    transform: scaleY(1);
}

/* Image produit légère translation */
.cg-anim-product {
    transform: translateY(3rem);
}

.cg-anim-product.in-view {
    transform: translateY(0);
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 900px) {

    .site-header::before {
        background: rgba(0, 0, 0, 0.7);
    }

    .nav-right {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-center img {
        max-height: 3.2rem;
    }

    .banner-eyecatch {
        min-height: 50rem;
        padding-top: 8rem;
    }

    .flex-container {
        flex-direction: column;
    }

    .section-thermo h2 {
        text-align: center;
    }

    .display-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .vertical-line {
        height: 8rem;
    }

    .hero-product img {
        max-width: 100%;
    }

    .features .grid {
        grid-template-columns: 1fr;
    }

    .small-menu.open {
        transform: translateY(6rem);
    }
}

/* -------------------- FORMULAIRES -------------------- */

/* Styles génériques pour n'importe quel formulaire de téléchargement */
.download-form {
    max-width: 600px;
    margin-top: 3rem;
}

.download-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.download-form label {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #cfe8ff;
}

.download-form input {
    padding: 1rem 1.4rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.5rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.download-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.download-form input:focus {
    border-color: #7ac142;
    box-shadow: 0 0 0 1px #7ac142;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Utilise le bouton global .button déjà défini */
.download-form .button {
    margin-top: 1rem;
}

/* -------------------- SPÉCIFIQUE PAGE TÉLÉCHARGEMENT -------------------- */

/* Offset et mise en forme UNIQUEMENT sur la page de download */
body.download-page main {
    padding-top: 10rem; /* espace sous la nav */
}

body.download-page .download-form {
    max-width: 700px;
    width: 100%;
    margin: 3rem auto 5rem auto;
}

body.download-page .download-form .form-group {
    margin-bottom: 2rem;
}

body.download-page .download-form input {
    width: 100%;
    min-height: 4.4rem;
    font-size: 1.5rem;
}

/* Intro de la page téléchargement */
body.download-page .hero {
    padding-top: 2rem;      /* petit spacing interne, le main a déjà 10rem de padding-top */
    padding-bottom: 4rem;
}

body.download-page .hero .content {
    text-align: center;     /* centre h1 + p */
}

body.download-page .hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

body.download-page .hero p {
    font-size: 1.7rem;
    max-width: 60rem;
    margin: 0 auto;         /* centre le paragraphe sous le h1 */
}

/* Centrer le texte d'intro sur la page de téléchargement */
body.download-page .hero .content {
    text-align: center;
}

/* Centrer le titre "Formulaire de téléchargement" */
body.download-page .section-amplified .content h2 {
    text-align: center;
}
/* -------------------- BOUTON SUBMIT PAGE TÉLÉCHARGEMENT -------------------- */

body.download-page .download-form button.button,
body.download-page .download-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #7ac142, #4f9b27);
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(122, 193, 66, 0.35);
}

body.download-page .download-form button.button:hover,
body.download-page .download-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(122, 193, 66, 0.5);
    background: linear-gradient(135deg, #8ce14c, #5fb935);
}

body.download-page .download-form button.button:active,
body.download-page .download-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(122, 193, 66, 0.35);
}
/* -------------------- PAGE CONTACT -------------------- */

body.contact-page main {
    padding-top: 10rem; /* espace sous la nav fixe */
}

/* Intro contact (hero light) */
body.contact-page .hero {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

body.contact-page .hero .content {
    text-align: center;
}

body.contact-page .hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

body.contact-page .hero p {
    font-size: 1.7rem;
    max-width: 60rem;
    margin: 0 auto;
}

/* Cartes infos de contact */
body.contact-page .contact-infos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

body.contact-page .contact-card {
    background-color: #041b1e;
    padding: 2.5rem;
    border-radius: 1.6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.contact-page .contact-card h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: #7ac142;
}

body.contact-page .contact-card p {
    font-size: 1.5rem;
    line-height: 1.5;
}

body.contact-page .contact-card .contact-line a {
    color: #cfe8ff;
    text-decoration: none;
}

body.contact-page .contact-card .contact-line a:hover {
    color: #7ac142;
}

/* Formulaire de contact, réutilise la base .download-form */
body.contact-page .contact-form {
    max-width: 700px;
    width: 100%;
    margin: 3rem auto 5rem auto;
}

body.contact-page .contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

body.contact-page .contact-form label {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #cfe8ff;
}

body.contact-page .contact-form input,
body.contact-page .contact-form textarea {
    padding: 1rem 1.4rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.5rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

body.contact-page .contact-form textarea {
    resize: vertical;
}

body.contact-page .contact-form input::placeholder,
body.contact-page .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.contact-page .contact-form input:focus,
body.contact-page .contact-form textarea:focus {
    border-color: #7ac142;
    box-shadow: 0 0 0 1px #7ac142;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Bouton submit page contact (même style que download) */
body.contact-page .contact-form button.button,
body.contact-page .contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #7ac142, #4f9b27);
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(122, 193, 66, 0.35);
}

body.contact-page .contact-form button.button:hover,
body.contact-page .contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(122, 193, 66, 0.5);
    background: linear-gradient(135deg, #8ce14c, #5fb935);
}

body.contact-page .contact-form button.button:active,
body.contact-page .contact-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(122, 193, 66, 0.35);
}

/* Responsive cartes contact */
@media (max-width: 900px) {
    body.contact-page .contact-infos {
        grid-template-columns: 1fr;
    }
}
/* Section thermographe sur la home */
.section-thermo {
    text-align: center;
}

.section-thermo h2 {
    text-align: center;
    max-width: 80rem;
    margin: 0 auto 3rem auto;
}

/* Ligne + texte sous le titre */
.section-thermo .display-flex {
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.section-thermo .display-flex p {
    max-width: 40rem;
    margin: 0 0 0 2rem; /* petit espace à droite de la ligne */
}

/* Image produit centrée */
.section-thermo .hero-product {
    margin-top: 3rem;
    text-align: center;
}

.section-thermo .hero-product img {
    max-width: 40rem;
    margin: 0 auto;
}
/* Texte blanc dans la section thermographe */
.section-thermo h2,
.section-thermo p {
    color: #ffffff;
}

/* Image du thermographe sans outline par défaut */
.section-thermo .hero-product img {
    max-width: 40rem;
    margin: 0 auto;
    border-radius: 1.6rem;
    border: 2px solid transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Outline seulement au hover */
.section-thermo .hero-product img:hover {
    border-color: rgba(255, 255, 255, 0.6); /* ou #7ac142 pour vert */
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}


/* Masquer le bouton radio par défaut */
.radio-img input[type="radio"] {
    display: none;
}

/* Style du label (contient l’image) */
.radio-img label {
    display: inline-block;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 150px;
    transition: background 0.2s, border-color 0.2s;
}

/* Au survol */
.radio-img label:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* État sélectionné */
.radio-img input[type="radio"]:checked + label {
    background: #0f4c75;   /* couleur de votre thème */
    color: #fff;
    border-color: #0f4c75;
}

/* Image à l’intérieur du label – ajustez la taille si besoin */
.radio-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 5px;
}
