/* =========================
   BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Georgia, Times, Arial, Montserrat, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: #fff;
    background: url("Chef de cuisine.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* Overlay lisibilité */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
}

/* Wrapper général */
.page-wrapper {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 10px;
}

/* =========================
   HEADER
========================= */
.header-pave {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 1px;
}

.logo-header {
    width: auto;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
}

.intro-text {
    flex: 1;
    text-align: justify;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

/* =========================
   PAVÉS PRINCIPAUX
========================= */
.pave-container {
    width: 60%;
    margin: 10px auto;
    position: relative; /* référence pour overlay */
}

.pave-link {
    display: block;
    text-decoration: none;
    text-align: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pave-link img {
    display: block;
    width: 100%;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* Texte sous l’image classique */
.pave-text {
    margin-top: 10px;
    font-size: 24px;
    color: #fff;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 3px #000;
    transition: color 0.3s ease;
}

/* Hover */
.pave-link:hover img {
    transform: scale(1.03);
}

.pave-link:hover .pave-text {
    color: #ffeb99;
}

/* =========================
   LIENS SOUS PAVÉ
========================= */
.links-under {
    text-align: center;
    margin: 10px 0;
}

.links-under a {
    display: block;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    margin: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: none;
    transition: color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.links-under a:hover {
    color: #ffeb99;
    transform: scale(1.05);
}

.links-under img {
    display: block;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    border-radius: 12px;
}

/* =========================
   GLOBAL LINKS
========================= */
.global-links a,
.global-links h3 a {
    display: block;
    text-align: center;
    font-size: 20px;
    margin: 6px 0;
    text-decoration: none;
    color: #fff !important;
    text-shadow: 1px 1px 2px #000;
    transition: 0.3s;
}

.global-links a:hover {
    color: #ffeb99 !important;
    transform: scale(1.04);
}

/* =========================
   PAVÉ DERNIÈRE RECETTE - OVERLAY
========================= */
.pave-overlay {
    display: block;
    position: relative;
    width: 100%;
    max-width: 350px;   /* taille desktop */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.pave-overlay img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.pave-overlay:hover img {
    transform: scale(1.04);
}

/* TEXTE DANS L’OVERLAY */
.pave-overlay-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    width: 100%;
    text-align: center;

    font-size: 18px;
    font-weight: bold;
    line-height: 1.25;
    color: #fff;

    text-shadow: 2px 2px 4px #000;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
    box-sizing: border-box;
}

.pave-overlay-text .label {
    display: block;
    font-size: 12px;
}

.pave-overlay-text .title {
    display: block;
    font-size: 18px;
}

/* =========================
   MOBILE SCROLL INDICATION
========================= */
.mobile-scroll {
    display: none;
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
    opacity: 0.8;
}

/* =========================
   MOBILE
   UNE SEULE RULE
========================= */
@media (max-width: 768px) {
    body {
        font-size: 18px;
        padding: 10px;
    }

    .header-pave {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .logo-header {
        width: 80px;
    }

    .intro-text {
        text-align: left;
    }

    .pave-container {
        width: 80%;
    }

    .pave-text {
        font-size: 20px;
    }

    .links-under a {
        font-size: 18px;
        padding: 6px 10px;
    }

    .pave-overlay-text {
        font-size: 15px;
    }

    .mobile-scroll {
        display: block;
    }
}
