:root {
    --color-yellow: rgb(255, 231, 14);
    /* #FFE70E */
    --color-light-grey: rgb(241, 242, 242);
    /* #F1F2F2 */
    --color-dark-grey: rgb(44, 52, 55);
    /* #2C3437 */
    --color-blue-grey: rgb(93, 115, 126);
    /* #5D737E */
    --color-medium-blue: rgb(13, 35, 60);
    /* #0D233C */
    --color-dark-blue: rgb(6, 16, 25);
    /* #061019 */
    --color-white: rgb(255, 255, 255);
    /* #FFFFFF */

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

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

html,
body {
    font-family: 'Roboto', sans-serif;
    color: #eaeaea;
    background-color: var(--color-dark-grey);
    line-height: 1.6;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--color-blue-grey);
}

h1 {
    font-size: 3.5rem;
}

h2.section-title {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.italic {
    font-style: italic;
}

.light {
    font-weight: 300;
}

.bold {
    font-weight: 700;
}

/* HEADER */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    box-shadow: 0 2px 4px rgba(23, 23, 23, 0.1);
    line-height: 1.4;
}

.logo-title {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.15rem;
}

.logo-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.var(--space-sm);
}

.logo-sub .word {
    color: var(--color-light-grey);
}

.logo-sub .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-blue-grey);
}

.logo-sub .icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lang-switch button {
    background: none;
    color: #888;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
}

.lang-switch button:hover {
    color: var(--color-light-grey);
    transition: color 0.3s ease;
}

/* HERO */
.hero {
    padding: 8rem var(--space-md) var(--space-lg);
    text-align: center;
}

.hero h1 {
    font-size: var(--space-xl);
    line-height: 1.1;
}

.hero-tag {
    margin-top: var(--space-sm);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ABOUT */
.about-section {
    padding: var(--space-xl) var(--space-md);
    font-family: 'Roboto', sans-serif;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.about-row.top {
    align-items: center;
    margin-bottom: var(--space-sm);
}

.about-title {
    flex: 1;
    min-width: 250px;
}

.about-title h2,
.contact-title h2 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
}

.about-short-text {
    flex: 1;
    min-width: 250px;
    font-size: var(--space-sm);
    line-height: 1.6;
    text-align: justify;
}

.about-row.bottom {
    align-items: center;
}

.about-main-text {
    flex: 1;
    position: relative;
    font-size: var(--space-sm);
    line-height: 1.8;
    max-width: 500px;
    padding: var(--space-sm);
    text-align: justify;
}

.bracket {
    position: absolute;
    border: 2px solid white;
    width: 20px;
    height: 20px;
}

.top-left {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.bottom-right {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.about-image {
    flex: 1;
    max-width: 500px;
    text-align: right;
}

.about-image img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}


/* ENGAGEMENT */

/* EVOLUTION */
.site-evolution {
    display: flex;
    gap: 0.5rem;
    text-transform: uppercase;
    margin: 0rem var(--space-lg);
}

.evolution-left {
    flex: 1;
    background-color: var(--color-dark-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-md);
    border-radius: 2px;
}

.site-evolution h2 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    padding: var(--space-md);
    color: var(--color-light-grey);
}

.evolution-left .evolution-main-text {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.evolution-left .evolution-main-text p {
    font-size: var(--space-sm);
    line-height: 1.6;
    max-width: 500px;
}

.evolution-left .evolution-main-text span {
    border-top: 2px solid var(--color-white);
    padding: var(--space-sm) 0;
}

.evolution-right {
    flex: 2;
}

.evolution-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTACT */
.contact-section {
    padding: var(--space-lg) var(--space-xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 4px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.person .name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.person .name:hover {
    color: var(--color-yellow);
}

.person .arrow {
    font-size: 1.5rem;
    color: var(--color-blue-grey);
}

.person .role {
    font-size: 0.9rem;
    color: var(--color-light-grey);
    opacity: 0.8;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    width: fit-content;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid var(--color-blue-grey);
    border-radius: 4px;
    color: var(--color-white);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--color-light-grey);
    color: var(--color-blue-grey);
    border-color: var(--color-light-grey);
}

.contact-btn i {
    font-size: 1.2rem;
}

.contact-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.contact-logo img {
    max-width: 80%;
    max-height: 400px;
    object-fit: contain;
}

/* FOOTER */
.site-footer {
    color: var(--color-light-grey);
    text-align: center;
    padding: 3rem var(--space-md);
    font-size: 0.9rem;
}

.footer-top-border {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-light-grey);
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-bottom p:hover {
    color: var(--color-yellow);
    opacity: 1;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-light-grey);
    text-align: center;
    line-height: 1.6;
}

.footer-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-info p:hover {
    opacity: 1;
    /* Augmente la visibilité au survol */
}

.footer-links a {
    color: var(--color-light-grey);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-blue-grey);
}


/* SIDE LINKS */
.header-nav {
    position: fixed;
    right: var(--space-sm);
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.header-nav a {
    position: relative;
    color: var(--color-light-grey);
    background-color: rgba(6, 16, 25, 0.3);
    margin: 0 var(--space-sm);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    text-align: right;
    padding: 0.5rem var(--space-sm);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-yellow);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: var(--color-yellow);
    transform: translateX(-5px) scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
    /* Change le fond au survol */
}

.header-nav a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 50px;
    height: 50px;
    background-color: var(--color-yellow);
    color: var(--color-dark-grey);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

#back-to-top:hover {
    background-color: var(--color-dark-grey);
    color: var(--color-yellow);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-row,
    .history-step,
    .site-evolution,
    .engagement-grid,
    .contact-grid {
        flex-direction: column;
    }

    /* Header */
    .site-header {
        flex-direction: column;
        align-items: center;
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .logo-block {
        text-align: center;
    }

    .lang-switch {
        margin-top: 0.5rem;
    }

    .lang-switch button {
        font-size: 0.8rem;
        padding: 0.2rem;
    }

    .header-nav {
        display: none;
    }

    /* Common section style */
    .about-title h2,
    .contact-title h2 {
        font-size: var(--space-md);
    }

    /* About section */
    .about-row.top {
        align-items: start;
        margin-bottom: 3rem;
    }

    .about-row.bottom {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }

    .about-main-text {
        order: 0;
    }

    /* Evolution section */
    .site-evolution {
        margin: 0rem var(--space-sm);
    }

    /* Contactsection */
    .contact-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .contact-info {
        align-items: center;
        /* Centre les éléments */
        text-align: center;
    }

    .contact-logo img {
        max-width: 60%;
    }
}