/* =========================================
   1. IMPORTS & FONTS
   ========================================= */
@import url('../../../../vendor/fontawesome-free/css/fontawesome.min.css');

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    src: url('../../../../vendor/fontawesome-free/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    src: url('../../../../vendor/fontawesome-free/webfonts/fa-brands-400.woff2') format('woff2');
}

/* =========================================
   2. STYLES GÉNÉRAUX & LEGACY
   ========================================= */
.link2 a {
    color: #ffcc00;
    text-decoration: none;
}

.rstpl-footer-position {
    background-color: #263238;
    color: #ffffff;
    font-size: .9rem;
    font-weight: 400;
    padding: .8rem 0;
}

/* =========================================
   3. CONTENEUR & TYPOGRAPHIE LOMELA
   ========================================= */
.lomela-container {
    font-family: sans-serif;
    max-width: 100%;
    margin: 0 auto;
    color: #333;
}

/* Titres */
.lomela-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.lomela-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #d9534f;
}

/* Texte courant */
.lomela-text, 
.lomela-text p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* =========================================
   4. SYSTÈME DE GRILLE (FLEXBOX)
   ========================================= */
.lomela-row {
    display: flex;
    flex-wrap: wrap;       /* Responsive : passe à la ligne sur mobile */
    gap: 30px;             /* Espace entre les colonnes */
    align-items: flex-start;
    margin-bottom: 20px;
    justify-content: center;
}

/* Définition commune pour toutes les colonnes */
.lomela-col,
.lomela-col-text,
.lomela-col-video {
    flex: 1;               /* Prend l'espace disponible équitablement */
    min-width: 300px;      /* Largeur minimum avant de passer à la ligne */
}

/* Spécificité pour la colonne simple (souvent utilisée pour les images) */
.lomela-col {
    text-align: center;
}

/* =========================================
   5. COMPOSANTS (Images, Vidéo, Poème)
   ========================================= */

/* Images */
.lomela-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;    /* Coins arrondis */
    display: block;
    margin: 0 auto;        /* Centrage */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Vidéo Responsive (YouTube 16:9) */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Boîte pour le poème MERCI */
.poeme-box {
    background-color: #f8f9fa;
    border-left: 5px solid #5bc0de;
    padding: 20px;
    font-family: monospace;
    white-space: pre-wrap;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

    /* --- Conteneur Principal --- */
    .gallery-container {
        max-width: 1200px;
        margin: 0 auto;
        font-family: sans-serif;
        padding: 20px 0;
    }

    /* --- La Grille (Grid) --- */
    .gallery-grid {
        display: grid;
        /* Crée des colonnes automatiques (min 300px de large) */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px; /* Espace entre les cartes */
    }

    /* --- La Carte (Image + Texte) --- */
    .gallery-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;       /* Coins arrondis */
        overflow: hidden;         /* Pour que l'image respecte les bords arrondis */
        box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Légère ombre */
        transition: transform 0.2s;
    }

    .gallery-card:hover {
        transform: translateY(-5px); /* Petit effet au survol */
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

    /* --- L'Image --- */
    .gallery-card img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 4/3; /* Force un ratio standard (optionnel, retirez si images trop différentes) */
        object-fit: cover; /* Remplit la case sans déformer */
    }

    /* --- Le Texte --- */
    .gallery-desc {
        padding: 15px;
        font-size: 0.95rem;
        color: #555;
        line-height: 1.5;
        text-align: center;
        border-top: 1px solid #f0f0f0;
    }

    /* --- Section PDF (Bas de page) --- */
    .gallery-footer {
        text-align: center;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 2px solid #eee;
    }

    .pdf-link {
        display: inline-block;
        margin: 10px;
        text-decoration: none;
        color: #333;
        font-weight: bold;
        background: #f9f9f9;
        padding: 10px 20px;
        border-radius: 5px;
        border: 1px solid #ddd;
    }
    
    .pdf-link:hover {
        background-color: #e9e9e9;
    }

    .pdf-icon {
        vertical-align: middle;
        margin-right: 8px;
        border: 0;
    }


    /* --- Conteneur Principal --- */
    .join-us-card {
        background-color: #f9f9f9; /* Fond très léger */
        border-radius: 15px;       /* Bords arrondis */
        padding: 40px 20px;        /* Espace intérieur */
        text-align: center;        /* Tout centrer */
        max-width: 600px;          /* Largeur max pour ne pas être trop large */
        margin: 40px auto;         /* Centré sur la page + marges haut/bas */
        box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Ombre douce élégante */
        border: 1px solid #eee;
    }

    /* --- Typographie --- */
    .join-us-text {
        font-family: sans-serif;
        color: #2c3e50;            /* Couleur foncée */
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }

    /* Mise en valeur de "Combat difficile" */
    .join-us-highlight {
        display: block;            /* Force le retour à la ligne */
        font-size: 2rem;           /* Plus gros */
        font-weight: 800;          /* Très gras */
        color: #d9534f;            /* Rouge brique (couleur d'urgence/action) */
        text-transform: uppercase; /* Majuscules */
        margin-top: 5px;
    }

    /* --- Image (Logo) --- */
    .join-us-logo {
        max-width: 280px;          /* Taille maîtrisée */
        width: 100%;               /* Responsive */
        height: auto;
        border-radius: 50%;        /* S'assure que c'est bien rond */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation fluide */
        cursor: pointer;
    }

    /* Effet au survol de l'image */
    .join-us-logo:hover {
        transform: scale(1.05);    /* Grossit légèrement */
        box-shadow: 0 10px 20px rgba(217, 83, 79, 0.2); /* Ombre colorée */
    }

  /* Conteneur principal de la carte */
  .loto-card {
    display: flex;
    flex-direction: column;
    max-width: 850px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    border: 1px solid #eaeaea;
  }

  /* Adaptation pour les écrans d'ordinateur (affichage côte à côte) */
  @media (min-width: 768px) {
    .loto-card {
      flex-direction: row;
    }
  }

  /* Section de l'image */
  .loto-image-container {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid #eaeaea;
  }

  .loto-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

  .loto-image-container img:hover {
    transform: scale(1.02);
  }

  /* Section du contenu texte */
  .loto-content {
    flex: 1.5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Titre principal */
  .loto-title {
    color: #d32f2f; /* Rouge festif */
    font-size: 1.6em;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.2;
  }

  /* Date et lieu */
  .loto-date-location {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
  }

  .loto-date-location strong {
    color: #2c3e50;
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .loto-doors {
    display: inline-block;
    background-color: #eee;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-top: 10px;
  }

  /* Tarifs */
  .loto-prices {
    text-align: center;
    background-color: #e3f2fd; /* Bleu clair */
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.05em;
    border: 1px solid #bbdefb;
  }

  /* Encart des lots */
  .loto-prizes-box {
    background-color: #f1f8e9; /* Vert clair (couleur argent) */
    border-left: 5px solid #689f38;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
  }

  .loto-prizes-box h3 {
    margin-top: 0;
    color: #33691e;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
  }

  .loto-prizes-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .loto-prizes-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #bcaaa4;
    padding: 6px 0;
    font-size: 1.05em;
  }

  .loto-prizes-list li:last-child {
    border-bottom: none;
  }

  /* Appel à l'action final */
  .loto-cta {
    background-color: #ffeb3b; /* Jaune vif */
    color: #000;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.4);
  }

