/* Variables */
:root {
    --darkblue-color: #03031c;
    --primary-color: #334eae;
    --secondary-color: #395886; /* Bleu du logo */
    --light-color: #f8f9fa;

    --white-color: #ffffff;
    --dark-color: #1a1a1a;

    --title-color: #111191;
    --text-color: #4a4a6a;
    --shadow: 0 4px 6px #0000001a;
    --transition: all 0.3s ease;


    --typo-title: "Baskervville", serif;
    --typo-text: "Manrope", sans-serif;


    /* IMAGE DECO FOND */
    --deco-image: url('../img/ROOFTOP.png');
    --deco-size: clamp(480px, 36vw, 680px);
    --deco-opacity: 0.5;
    --deco-position-x: 84%;
    --deco-position-y: 52%;
}

   .deco-bg {
    position: fixed;            /* fixed = suit le scroll naturellement */
    inset: 0;                   /* équivaut à top/right/bottom/left: 0 */
    width: 100%;
    height: 100%;

    background-image: var(--deco-image);
    background-repeat: no-repeat;
    background-size: var(--deco-size);
    background-position: var(--deco-position-x) var(--deco-position-y);

    opacity: var(--deco-opacity);
    pointer-events: none;
    z-index: 0;
}

/* S'assurer que le contenu passe par-dessus */
header, main, footer {
    position: relative;
    z-index: 1;
}








* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--typo-text);
    line-height: 1.6;
    color: var(--dark-color);
}

main {
    padding: 80px 0 0 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;

    /*Partie qui fait beugg marge droite hero de syndic */
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(51, 78, 174, 0.08);
    z-index: 1000;
    padding: 18px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(51, 78, 174, 0.12);
}

.logo {
    display: flex;
    width: 220px;
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}
@media (max-width: 1024px) {
    .logo {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 160px;
    }
}

.logo:hover {
    opacity: 0.8;
}

/* Nav */
.header__nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.header__nav a {
    text-decoration: none;
    color: var(--darkblue-color);
    font-family: var(--typo-text);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 2px;
    position: relative;
    transition: color 0.3s ease;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header__nav a:hover {
    color: var(--primary-color);
}

.header__nav a:hover::after {
    transform: scaleX(1);
}

/* Mobile */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--typo-text);
    font-style: normal;
    padding: 8px 18px;

    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);

    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;

    cursor: pointer;

    position: relative;
    overflow: hidden;

    transition: all 0.4s ease;
}

.mobile-menu-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.mobile-menu-toggle:hover::after {
    opacity: 1;
}

.mobile-menu-toggle:hover {
    color: var(--white-color);
}

.mobile-menu-toggle .icon,
.mobile-menu-toggle .text {
    position: relative;
    z-index: 1;
}

.mobile-menu-toggle .icon {
    font-size: 16px;
    margin-top: -3px;
}

.icon-close {
    font-size: 14px !important;
    margin-top: -1px !important;
    margin-right: 2px !important;
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .header__nav {
        display: flex;
        position: fixed;
        inset: 0;
        background: var(--white-color);
        z-index: 998;
        visibility: hidden;
        justify-content: center;
        align-items: center;
        transition:
            opacity .35s ease,
            visibility .35s ease;
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
    }

    .header__nav ul {
        flex-direction: column;
        gap: 8px;
        background: var(--white-color);
    }

    .header__nav a {
        font-size: 1.15rem;
        font-weight: 500;
        letter-spacing: 0.15em;
    }

    .header__logo {
        position: relative;
        z-index: 1001;
    }

    .mobile-menu-toggle {
        position: relative;
        z-index: 1001;
    }
}


/* About Section*/
.about {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    background-color: transparent; /* POUR SCHEMA */
}

.about.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(198, 192, 252, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(51, 78, 174, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.about__content {
    display: flex;
    gap: 150px;
    padding: 4vh 0;
    position: relative;
    z-index: 1;
}

.about__text {
    flex: 1;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 750px;
}

/* Tag décoratif */
.about__text::before {
    content: "À propos";
    display: block;
    font-family: var(--typo-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 16px;
    opacity: 0.7;
}

.about__text h2 {
    font-family: var(--typo-title);
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--title-color);
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
    line-height: 1.2;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    text-shadow: none;
}

/* Ligne dégradée sous le titre */
.about__text h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about.is-visible h2::after {
    width: 220px;
}

/* .about__text h2:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
} */

.about__text h2:hover::after {
    width: 100%;
    transition: width 0.5s ease-out;
}

.about__text p {
    font-family: var(--typo-text);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.about__text p:hover {
    color: var(--darkblue-color);
    transform: translateX(5px);
}


/* .about__image {
    flex: 1;
    width: 350px;
    overflow: hidden;
}

.about__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about__image:hover img {
    transform: scale(1.01);
} */






/* Founder Section */
.founder {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--white-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.founder.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.founder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(198, 192, 252, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(51, 78, 174, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.founder__content {
    display: flex;
    gap: 60px;
    padding: 4vh 0;
    position: relative;
    z-index: 1;
    align-items: center;
}

/* Image */
.founder__image {
    flex: 1;
    /* border-radius: 12px; */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(51, 78, 174, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.founder__image:hover {
    box-shadow: 0 30px 80px rgba(51, 78, 174, 0.22);
}

.founder__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    transition: transform 0.5s ease;
}

.founder__image:hover img {
    transform: scale(1.01);
}

.founder__text {
    flex: 1;
}

.founder__title {
    font-family: var(--typo-title);
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--title-color);
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
    line-height: 1.2;
}

.founder__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* Ligne dégradée sous le titre */
.founder__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.5s ease-out; /* UNE SEULE transition */
}

.founder.is-visible .founder__title::after {
    width: 220px;
}

/* Spécificité égale → doit venir APRÈS dans le fichier */
.founder.is-visible .founder__title:hover::after {
    width: 100%;
}

.founder__title:hover::after {
    width: 100%;
    transition: width 0.5s ease-out;
}

.founder__description {
    font-family: var(--typo-text);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.founder__description:hover {
    color: var(--darkblue-color);
    transform: translateX(5px);
}











/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark-color);
    padding: 42px 0;
    font-family: var(--typo-text);
    position: relative;
    box-shadow: 0 -1px 0 rgba(51, 78, 174, 0.08);
    border-top: none;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(51, 78, 174, 0.16) 25%, rgba(51, 78, 174, 0.12) 50%, rgba(51, 78, 174, 0.16) 75%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer__main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
    align-items: flex-start;
    width: 100%;
}

.footer__column {
    min-width: 0;
}

.footer__title {
    font-family: var(--typo-text);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 1;
    display: inline-block;
    cursor: pointer;
}

.footer__contact .footer__title {
    margin-bottom: 28px;
}

.footer address {
    font-style: normal;
}

.footer__contact p,
.footer__address p,
.footer__certification p {
    color: var(--dark-color);
    line-height: 1.8;
    font-size: 0.95rem;
    font-family: var(--typo-text);
}

.footer__contact a,
.footer__address a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.footer__contact a::after,
.footer__address a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer__contact a:hover,
.footer__address a:hover,
.footer__link:hover {
    color: var(--primary-color);
}

.footer__contact a:hover::after,
.footer__address a:hover::after,
.footer__link:hover::after {
    transform: scaleX(1);
}footer__title

.footer__links {
    display: flex;
    flex-direction: column;
}

.footer__link-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-family: var(--typo-text);
    position: relative;
    transition: all 0.3s ease;
    width: fit-content;
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 28px;
    width: calc(100% - 28px);
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer__link:hover {
    transform: translateX(3px);
}

.footer__link.social-link {
    margin-left: -2px;
}

.link-icon {
    margin-right: 12px;
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}

.footer__link:hover .link-icon {
    opacity: 1;
}

.footer__certification {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.footer__certification img {
    max-height: 90px;
}

.footer__certification p {
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .footer__main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer__main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}




/* Button */
.btn, .btn__footer {
    font-family: var(--typo-text);
    font-style: normal;
    display: inline-block;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    text-transform: uppercase;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-top: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn__footer{
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 8px;
}

.btn::after, .btn__footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    /* background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -10;
}

.btn span, .btn, .btn__footer span, .btn__footer {
    position: relative;
    z-index: 1;
}

.btn:hover, .btn__footer:hover {
    color: var(--white-color);
    /* border-color: transparent; */
}

.btn:hover::after, .btn__footer:hover::after {
    opacity: 1;
}







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

    .hero__content,
    .contact__content,
    .about__content,
    .founder__content {
        flex-direction: column;
    }

    .hero__text,
    .contact__text,
    .about__text,
    .founder__text {
        margin-bottom: 30px;
    }

    .syndic__cards {
        gap: 20px;
    }

    .syndic__card {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .header__nav.active {
        display: block;
    }

    .header__nav ul {
        flex-direction: column;
        align-items: center;
    }

    .header__nav li {
        margin: 10px 0;
    }

    /*PARTIE A CHECK*/
    .hero {
        padding: 120px 0 60px;
    }

    .hero__subtitle {
        font-size: 1.5rem;
    }

    .contact__content {
        flex-direction: column;
    }

    .contact__form {
        padding: 30px;
    }

    .about__content,
    .founder__content {
        flex-direction: column;
    }

    .founder__content {
        flex-direction: column-reverse;
    }

    :root {
        --deco-size: clamp(180px, 36vw, 260px);
        --deco-position-x: 84%;
        --deco-position-y: 34%;
    }
}