/* ========================================
   STYLES GLOBAUX - MAGIC LENA'S RANCH
   Version modernisée sans encadrés transparents
   ======================================== */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Salsa', cursive;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Image de fond avec flou subtil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.magiclenasranch.fr/autres_photos/magic_jeune.png') center center;
    background-size: cover;
    background-attachment: fixed;
    filter: blur(1px); /* Flou très léger */
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(213, 195, 214, 0.25) 0%, rgba(178, 242, 236, 0.2) 50%, rgba(240, 240, 240, 0.3) 100%);
    backdrop-filter: blur(1px); /* Flou très léger de l'overlay */
    z-index: -1;
}

#fond_page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HEADER ET NAVIGATION - SANS ENCADRÉS
   ======================================== */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px;
    padding: 20px;
    animation: slideInFromTop 0.8s ease-out;
    /* SUPPRESSION TOTALE DES ENCADRÉS */
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Logo avec animation douce */
#new_logo_mlr {
    height: 180px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    cursor: pointer;
}

#new_logo_mlr:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 12px 30px rgba(143, 12, 99, 0.3));
}

/* Navigation moderne sans encadrés */
nav.boutons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.bouton-nav {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(192, 204, 28, 0.8), rgba(220, 230, 50, 0.8));
    border: 2px solid rgb(55, 5, 26);
    border-radius: 25px;
    color: rgb(55, 5, 26);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.bouton-nav:hover,
.bouton-nav.active {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgb(220, 230, 50), rgb(240, 250, 70));
    box-shadow: 0 8px 20px rgba(143, 12, 99, 0.3);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    flex: 1;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   TYPOGRAPHIE GLOBALE - TOUT CENTRÉ
   ======================================== */

h1 {
    color: rgb(143, 12, 99);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 0 3px 10px rgba(143, 12, 99, 0.3);
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    text-align: center;
}

h2 {
    color: rgb(143, 12, 99);
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    margin: 30px 0 20px 0;
    text-align: center;
}

h3 {
    color: rgb(143, 12, 99);
    font-family: 'Marko One', cursive;
    font-size: 1.4rem;
    margin: 20px 0 15px 0;
    text-align: center;
}

h4 {
    color: rgb(143, 12, 99);
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    margin: 15px 0 10px 0;
    text-align: center;
}

p {
    color: rgb(55, 5, 26);
    font-size: 1.1rem;
    margin: 15px 0;
    text-align: center;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Paragraphes avec alignement justifié pour certaines sections */
.text-justify p {
    text-align: justify;
}

strong {
    color: rgb(143, 12, 99);
    font-weight: 700;
}

.couleur-audrey {
    background: linear-gradient(45deg, rgb(143, 12, 99), rgb(214, 16, 99));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ========================================
   SECTIONS COMMUNES - SANS ENCADRÉS
   ======================================== */

.section-container {
    /* SUPPRESSION TOTALE DES ENCADRÉS TRANSPARENTS */
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
    box-shadow: none;
    animation: none;
}

/* ========================================
   BOUTONS ET LIENS
   ======================================== */

a {
    color: rgb(143, 12, 99);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: rgb(214, 16, 99);
    text-shadow: 0 2px 5px rgba(143, 12, 99, 0.3);
}

.bouton-standard {
    background: linear-gradient(135deg, rgba(192, 204, 28, 0.9), rgba(220, 230, 50, 0.9));
    border: 2px solid rgb(55, 5, 26);
    border-radius: 20px;
    padding: 12px 25px;
    color: rgb(55, 5, 26);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 15px 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bouton-standard:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgb(220, 230, 50), rgb(240, 250, 70));
    box-shadow: 0 8px 20px rgba(143, 12, 99, 0.3);
}

/* ========================================
   IMAGES
   ======================================== */

img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(143, 12, 99, 0.2);
}

/* Images de taille contrôlée */
.image-medium {
    max-width: 500px;
    max-height: 350px;
    object-fit: cover;
    margin: 20px auto;
    display: block;
}

.image-small {
    max-width: 300px;
    max-height: 250px;
    object-fit: cover;
    margin: 15px auto;
    display: block;
}

/* ========================================
   TABLEAUX
   ======================================== */

table {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

table caption {
    background: linear-gradient(135deg, rgb(143, 12, 99), rgb(214, 16, 99));
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(143, 12, 99, 0.2);
}

th {
    background: rgba(192, 204, 28, 0.3);
    color: rgb(55, 5, 26);
    font-weight: bold;
    text-transform: uppercase;
}

tr:nth-child(even) {
    background: rgba(178, 242, 236, 0.1);
}

tr:hover {
    background: rgba(192, 204, 28, 0.2);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* ========================================
   FOOTER - SANS ENCADRÉS
   ======================================== */

footer {
    /* SUPPRESSION TOTALE DES ENCADRÉS */
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    margin: 40px auto 20px;
    padding: 20px;
    max-width: 800px;
    box-shadow: none;
    animation: slideInFromBottom 0.8s ease-out;
    text-align: center;
}

footer p {
    margin: 8px 0;
    color: rgb(83, 33, 33);
    font-weight: 500;
    text-align: center;
}

.nombre_visiteurs {
    font-size: 0.9rem;
    font-style: italic;
}

/* ========================================
   FULLSCREEN IMAGE VIEWER
   ======================================== */

.fullscreen-image-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

#fullscreen-img, #fullscreenImage {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation au chargement */
body.loaded #fond_page {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media screen and (max-width: 768px) {
    #fond_page {
        margin: 0 10px;
    }

    header {
        margin: 10px;
        gap: 15px;
        padding: 15px;
    }

    #new_logo_mlr {
        height: 150px;
    }

    nav.boutons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .bouton-nav {
        width: 90%;
        text-align: center;
        padding: 10px 15px;
        font-size: 12px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 8px 10px;
    }
}

@media screen and (max-width: 480px) {
    header {
        margin: 5px;
        gap: 10px;
        padding: 10px;
    }

    #new_logo_mlr {
        height: 120px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }

    .bouton-nav {
        width: 95%;
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 15px;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 6px 8px;
    }

    table caption {
        font-size: 1rem;
        padding: 12px 8px;
    }
}