/* Fond animé avec dégradé rouge foncé et gris */
body {
    background: linear-gradient(-80deg, #f2efef, #000000, #000000, #f9f6f6);
    background-size: 400% 400%;

    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('/images/la.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
}

/* Animation du fond */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation d’entrée générale */
.fade-in {
    animation: fadeIn 1.2s ease-in-out both;
}

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

/* Boutons */
.btn-danger {
    background-color: #b3001b;
    border: none;
    transition: background 0.3s ease, transform 0.2s;
}

.btn-danger:hover {
    background-color: #990017;
    transform: scale(1.05);
}

.btn-outline-danger {
    color: #b3001b;
    border: 2px solid #b3001b;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #b3001b;
    color: #fff;
}

/* Cartes BD */
.card {
    background-color: #1e1e1e;
    color: #fff;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(179, 0, 27, 0.3);
}

/* Titres */
h1, h3 {
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

h1 {
    font-size: 2.8rem;
    color: #4b030f;
}

h3 {
    font-size: 2rem;
    color: #5d0210;
}

/* Sections */
section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgb(34, 34, 34);
    border-radius: 15px;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 10px rgba(239, 239, 239, 0.4);
}

/* Texte général */
p, li {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #141414;
    color: #f0f0f0;
    padding: 2rem 0;
    border-top: 4px solid #52030f;
    margin-top: 4rem;
}

footer h5 {
    color: #55010d;
    margin-bottom: 1rem;
    font-weight: 700;
}

footer a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer .social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #f8f9fa;
    transition: transform 0.3s, color 0.3s;
}

footer .social-icons a:hover {
    transform: scale(1.2);
    color: #cc001f;
}

footer hr {
    border-top: 1px solid #840014;
    opacity: 0.3;
}

footer .copyright {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 1rem;
    text-align: center;

}

header {

    color: #f0f0f0;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;

    transition: background-color 0.3s ease;
}


/* Header liens en boutons */
header nav a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    margin-left: 2rem !important;
    background-color: #cc001f; /* Rouge vif */
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700 !important;
    transition: background-color 0.3s ease, color 0.3s ease;

}

header nav a:first-child {
    margin-left: 0;
}



/* Footer centré + liens en boutons */
footer {
    background-color: #111;
    color: #f8f9fa;
    padding: 2rem 1rem;
    border-top: 10px solid #6c000b;
    text-align: center; /* Centre tout dans le footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Footer liens en boutons */
footer a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: #cc001f;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700 !important;
    transition: background-color 0.3s ease, color 0.3s ease;

}



.neon-fine {
  position: relative;
  border-radius: 15px;
  padding: 1rem;
  overflow: visible;
}

/* Néon fin animé */
.neon-fine::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 17px;
  background: linear-gradient(
    270deg,
    transparent,
    #760202,
    transparent
  );
  background-size: 200% 200%;
  animation: neon-move 2.5s linear infinite;

  z-index: -1;
  pointer-events: none;
}

/* Cache l’intérieur pour que le néon soit uniquement sur le contour */
.neon-fine::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  border-radius: 13px;
  background: #111;
  z-index: -1;
  pointer-events: none;
}

@keyframes neon-move {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
section {
  position: relative;
  border-radius: 15px;
  padding: 1rem;
  overflow: visible;
}

/* Néon fin animé sur toutes les sections */
section::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 17px;
  background: linear-gradient(
    270deg,
    transparent,
    #760202,
    transparent
  );
  background-size: 200% 200%;
  animation: neon-move 2.5s linear infinite;

  z-index: -1;
  pointer-events: none;
}

section::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  border-radius: 13px;
  background: inherit; /* Hérite du fond de la section */
  z-index: -1;
  pointer-events: none;
}

@keyframes neon-move {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Centrer icônes sociales dans footer */
footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.logo-animated {
    animation: slow-spin 20s linear infinite;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.logo-animated:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px red);
}
/* Conteneurs fluides */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Images responsives */
img, embed, iframe, video {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}



@media (max-width: 768px) {
    h1, .card-header {
        font-size: 1.25rem !important;
        text-align: center;
    }

    .logo-animated {
        height: 70px !important;
        margin: 0 auto;
        display: block;
    }

    .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
    }

    header .container {
        flex-direction: column !important;
        align-items: center !important;
    }

    nav ul.nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    footer nav a {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.7rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .scroll-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.partners-container {
    bottom: 40px;
    right: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Responsive pour écrans <= 768px */
@media (max-width: 768px) {
    .partners-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        align-items: center;
    }

    #partnersList {
        width: 100% !important;
        max-width: 100%;
    }
}
@media (max-width:400px){
  .btn.btn-danger{
    font-size:0.75rem!important;
    padding:0.3rem 0.6rem!important;
    width:100%!important;
    min-width:auto!important;
    box-sizing:border-box;
  }
}
/* Pour header et footer full largeur */
header, footer {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  left: 0;
  right: 0;
  position: relative; /* ou fixed si tu veux les fixer */
}

/* Container full width à l’intérieur */
header .container, footer .container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Images responsive partout */
img {
  max-width: 100%;
  height: auto;
  display: block; /* évite espace en dessous */
}

/* Empêche scroll horizontal au zoom */
html, body {
  overflow-x: hidden;
  width: 100vw;
}

/* Optionnel : pour éviter que certains éléments dépassent */
* {
  box-sizing: border-box;
}
#headerMenuMobile a {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#headerMenuMobile {
  transition: max-height 0.4s ease;
}
header {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.logo-animated {
  height: 80px;
  width: auto;
  max-width: 100%; /* Pour ne jamais dépasser le conteneur */
  transition: height 0.3s ease;
}

/* Sur petits écrans, agrandir un peu le logo */
@media (max-width: 576px) {
  .logo-animated {
    height: 120px; /* agrandir sur mobile */
  }
}

/* Sur très petits écrans (téléphones) */
@media (max-width: 360px) {
  .logo-animated {
    height: 100px;
  }
}
@media (max-width: 767px) {
  .btn.mx-auto.d-table {
    display: block !important;      /* for sure block */
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;  /* au cas où du texte */
    float: none !important;          /* désactive tout flottement */
  }
}

/* Messages d'erreur Laravel */
span.invalid-feedback,
div.invalid-feedback,
div.alert-danger,
div.error-messages {
    background-color: #0b0b0b !important; /* fond blanc */
    color: #f5f2f2 !important;            /* texte noir */
    padding: 10px;                        /* espacement interne */
    border-radius: 5px;                    /* coins arrondis */
    border: 1px solid #000000;            /* contour noir */
    margin-bottom: 15px;
}

/* Pour les listes d'erreurs dans les divs personnalisées */
div.error-messages ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
    color: #000000; /* texte noir */
}

/* Encadrer le trix editor */
trix-editor {
    min-height: 250px;          /* hauteur de départ */
    max-height: 500px;          /* limite max (scroll si dépasse) */
    overflow-y: auto;           /* active la barre de scroll interne */
    border: 1px solid #ccc;     /* joli contour */
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    word-wrap: break-word;      /* empêche les mots longs de casser la mise en page */
    white-space: pre-wrap;      /* garde les retours ligne */
    box-sizing: border-box;     /* évite les débordements */
}

/* Contenu généré (par ex : après publication) */
.trix-content {
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-width: 100%;            /* jamais plus large que son parent */
}

