@import url('https://fonts.googleapis.com/css2?family=League+Spartan&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');

/* =====================
   STYLES GÉNÉRAUX
   ===================== */


   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League Spartan', sans-serif;
}

body {
    width: 100%;
    background-color: white;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Recoleta', serif;
    color: black;
    text-align: left;
    margin: 1em 0;
    font-weight: 900;
}

h1 {
    font-size: 2.2em;
    text-align: center;
}

h2 {
    font-size: 1.8em;
}

p {
    font-size: 1.2em;
    margin: 0.5em 5%;
}

.intro {
    font-size: 1.4em;
    text-align: center;
    padding: 20px;
    font-weight: 600;
}

a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #0F5E7F;
    text-decoration: underline;
}


footer {
    text-align: center;
    padding: 2em;
    background: white;
    font-size: 0.9em;
}

/* =====================
   FONTS SUR MOBILE
   ===================== */

@media (max-width: 768px) {
    body {
        font-family: 'Playfair Display', serif;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Playfair Display', serif;
        font-weight: bold;
    }

    p, a, strong {
        font-family: 'Playfair Display', serif;
    }
}

/* =====================
   HEADER + NAVIGATION
   ===================== */

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    position: relative;
    border: none;
}

.header-container a {
    display: block;
    max-width: 300px;
}

.header-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

nav ul.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1em;
    flex-wrap: wrap;
    border: none;
}

nav a {
    font-family: 'Recoleta', serif;
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}




/* BURGER BUTTON */
.burger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
}

/* Responsive nav */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .burger {
        display: block;
        margin-top: 1rem;
        align-self: center;
    }

    nav ul.nav-links {
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        display: none;
        border-top: 1px solid #ddd;
        position: static;
        margin-top: 1rem;
    }

    nav ul.nav-links.active {
        display: flex;
    }
}

/* =====================
   CONTAINER GÉNÉRAL
   ===================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* =====================
   SERVICES / BLOCS
   ===================== */

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.service-list li {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    justify-content: flex-start;
}

.service-list li h2 {
    font-family: 'Recoleta', serif;
    color: black;
    font-weight: 900;
    font-size: 1.5em;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.service-list li img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

@media (max-width: 700px) {
    .service-list {
        grid-template-columns: 1fr;
    }

    .service-list li {
        padding: 1rem 0.5rem;
    }
}

/* =====================
   LIENS SOCIAUX
   ===================== */

.social-links {
    margin-top: 20px;
}

.social-links p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    font-size: 1.2em;
    color: grey;
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    color: #0F5E7F;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Mode clair / sombre pour les icônes */

strong {
    font-weight: 800;
}

@media (prefers-color-scheme: light) {
    strong { color: #000; }
}

@media (prefers-color-scheme: dark) {
    strong { color: #fff; }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: white;
    }

    h1, h2, p {
        color: white;
    }

    a {
        color: #BB86FC;
    }

    a:hover {
        color: #3700B3;
    }

    footer {
        background-color: #121212;
        color: white;
    }

    footer a {
        color: #BB86FC;
    }

    footer a:hover {
        color: #3700B3;
    }

    .service-list li {
        background-color: #333;
        box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2);
    }

    .social-links a {
        color: white;
    }

    .header-container {
        background-color: #121212;
    }

    .burger {
        color: white;
        background-color: transparent;
        border: 2px solid white;
    }

    nav ul.nav-links {
        background-color: #121212;
        color: white;
        border-top: 1px solid #444;
    }

    nav a {
        color: white;
    }

    nav a:hover {
        color: #BB86FC;
    }

    .header-container img {
        content: url('logomange-dark.png');
    }
}

/* Supprime bordures/traces */
header, nav, .header-container, nav ul {
    border: none !important;
    box-shadow: none !important;
}

nav ul.nav-links {
    border: none !important;
    box-shadow: none !important;
}

.burger {
    border: none !important;
    box-shadow: none !important;
}

@media (prefers-color-scheme: dark) {
    .service-list li h2 {
        color: white !important;
    }
}
