/* ================= FONTS ================= */
@font-face {
    font-family: 'AlmendraCustom';
    src: url('fonts/Almendra-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'ZalandoSans';
    src: url('fonts/ZalandoSansSemiExpanded-VariableFont_wght.ttf') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #01101a;
    --color-text: #e8e8e8;
    --color-accent: #38b9d0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background:
        radial-gradient(circle at 30% 20%, rgba(56,185,208,0.08), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(56,185,208,0.05), transparent 40%),
        #01101a;

    color: var(--color-text);
    font-family: 'ZalandoSans', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px 15px 13px;
    border-bottom: 1px solid #222;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
}

.logo span {
    font-family: 'AlmendraCustom', serif;
    font-size: 24px;
    color: var(--color-text);
}

nav a {
    margin-left: 25px;
    color: var(--color-text);
    display: inline-block;
    transition: color 0.3s, transform 0.3s ease;
}

nav a:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

/* ================= SECTIONS ================= */
.section.accueil {
    padding: 100px 50px 20px 50px;
}

.section:not(.accueil) {
    padding: 20px 50px;
    min-height: auto;
    scroll-margin-top: 80px;
}

h1, h2 {
    margin-bottom: 20px;
    color: var(--color-accent);
}

/* ================= ACCUEIL ================= */
.accueil-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.accueil-text {
    flex: 1;
    font-family: 'ZalandoSans', sans-serif;
    font-style: italic;
    text-align: justify;
    margin-right: 40px;
}

.accueil-text p {
    margin-bottom: 20px;
}

.accueil-image {
    width: clamp(300px, 40vw, 1000px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.accueil-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ================= GALERIE ================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.gallery-text1 h3 {
    flex: 1;
    font-family: 'ZalandoSans', sans-serif;
    font-style: normal;
    margin-bottom: 15px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-text1 h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #333;
}

.gallery-text h3 {
    flex: 1;
    font-family: 'ZalandoSans', sans-serif;
    font-style: normal;
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-text h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #333;
}

.gallery img {
    width: 100%;
    aspect-ratio:4 / 3;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery img:hover {
    opacity: 0.8;
}

/* ================= LIGHTBOX ================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
}

.lightbox-caption {
    color: var(--color-text);
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    max-width: 80%;
}

.close, .arrow {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.close {
    top: 52px;
    right: 0px;
}

.arrow {
    top: 50%;
    transform: translateY(-50%);
}

.left {
    left: 0px;
}

.right {
    right: 0px;
}

.close svg,
.arrow svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-text);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.close:hover svg,
.arrow:hover svg {
    stroke: var(--color-accent);
    transform: scale(1.2);
}

/* ================= CONTACT ================= */
.mail-link {
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.mail-link:hover {
    color: var(--color-accent);
}

#contacts {
    margin-bottom: 20px; /* ajoute 20px sous la section contacts */
}

.texte-contacts-italic {
    font-style: italic;
    justify-content: space-between;
    text-align: justify;
}

/* ================= FOOTER ================= */
.site-footer {
    text-align: center;
    padding: 20px 0;
    color: var(--color-text);
    font-size: 12px;
    background-color: var(--color-bg);
    border-top: 1px solid #222;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .accueil-container {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 2560px) {
    .accueil-container {
        gap: 3rem;
    }

    .gallery {
        gap: 10px;
    }

    header {
        padding: 2rem 5%;
    }
}