@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0a0a0a;
    color: #f0ece4;
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #222;
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.titre_header p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 400;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: clamp(180px, 30vw, 320px);
    overflow: hidden;
    background: #111;
    border-bottom: 1px solid #222;
}

.hero_image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

.hero_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.75;
    filter: none;
}

/* ===== SECTION PRINCIPALE ===== */
.principal {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== CARTE RÉSEAU ===== */
.reseaux {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #1e1e1e;
    transition: background 0.25s ease, padding-left 0.25s ease;
}

.reseaux:first-child {
    border-top: 1px solid #1e1e1e;
}

.reseaux:hover {
    background: #111;
    padding-left: 2rem;
}

/* ===== LOGO RÉSEAU ===== */
.logo_reseaux {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #161616;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.25s, background 0.25s;
}

.reseaux:hover .logo_reseaux {
    background: #fff;
    border-color: #fff;
}

.logo_reseaux img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(100%) invert(1);
    transition: filter 0.25s;
}

.reseaux:hover .logo_reseaux img {
    filter: grayscale(100%) invert(0);
}

/* ===== TITRE & LIEN ===== */
.titre {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.titre p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e0dbd0;
    letter-spacing: 0.02em;
}

.titre a {
    font-size: 0.78rem;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #2a2a2a;
    padding: 5px 14px;
    border-radius: 100px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.reseaux:hover .titre a {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid #1a1a1a;
    text-align: center;
    padding: 2rem 1rem;
    color: #444;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

footer .credit {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: #333;
    letter-spacing: 0.08em;
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .principal {
        padding: 2rem 1rem 3rem;
    }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 500px) {
    header {
        padding: 1rem 1.2rem;
    }

    .logo img {
        width: 46px;
        height: 46px;
    }

    .principal {
        padding: 1.5rem 0.6rem 2.5rem;
    }

    .reseaux {
        padding: 1rem;
        gap: 0.9rem;
    }

    .reseaux:hover {
        padding-left: 1.4rem;
    }

    .titre {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .titre a {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}
