/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #111; /* Fond sombre */
    color: #fff; /* Texte blanc */
    line-height: 1.6;
}

table {
    border: 1px;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.presentation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 40px auto;
}

.presentation-text {
    max-width: 500px;
    font-size: 22px;
    line-height: 1.6;
}

.presentation-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
}


.presentation-image {
    flex-shrink: 0;
}

.presentation-image img {
    width: 450px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search {
    margin: 20px auto;
    padding: 20px;
    background: white;
    text-align: center;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search h2 {
    color: black;
}

.search input {
    padding: 10px;
    width: 70%;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search button {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.latest-missions {
    text-align: center;
    padding: 20px;
}

/* GRID DES SERVICES */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

/* CARTE */
.card {
    background-color: #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    max-width: 100%;
    border-radius: 8px;
}

.card h3 {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #fff;
}

/* PAGE PRESENTATION */
.presentation-page {
    padding: 50px;
    text-align: center;
}

.presentation-page h1 {
    font-size: 2.5rem;
    color: #f4a261;
}

.presentation-page p {
    font-size: 1.2rem;
    margin: 15px 0;
}


/* HEADER */
header {
    background-color: #222; /* Légèrement plus clair que le fond */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f4a261; /* Couleur accentuée */
}

/* MAIN */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

/* TITRE PRINCIPAL */
main h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #f4a261;
}

/* GRID DES ÉLÉMENTS */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.mission-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 300px;
    text-align: left;
    padding: 15px;
}

.mission-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid #ddd;
}

.mission-card h3 {
    margin: 10px 0;
    color: #333;
}

.mission-card p {
    margin: 5px 0;
    color: #555;
}

.responsable {
    font-weight: bold;
    color: #007bff;
}





/* FOOTER */
footer {
    background-color: #222; /* Même couleur que le header */
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}

footer p {
    margin-bottom: 10px;
}

footer nav ul {
    list-style: none;
    padding: 0;
}

footer nav ul li {
    display: inline;
    margin: 0 10px;
}

footer nav ul li a {
    color: #f4a261; /* Accentuation */
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

footer nav ul li a:hover {
    opacity: 0.7;
}


.search-section {
    max-width: 600px;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.search-section h2 {
    color: black;
}

.search-section label {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.search-section input {
    padding: 10px;
    width: 80%;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Ajout d'un écart entre les boutons */
}

.btn {
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 16px;
    width: 48%; /* Chaque bouton prend 48% de la largeur du conteneur */
    box-sizing: border-box; /* Assure que le padding et la bordure sont inclus dans la largeur */
}

.retour-btn {
    background-color: #f44336; /* Rouge pour le bouton retour */
}

.rechercher-btn {
    background-color: #007bff; /* Bleu pour le bouton recherche */
}

.retour-btn:hover, .rechercher-btn:hover {
    opacity: 0.8;
}

.isolate {
  padding: 2rem 1.5rem;
}

.text-center {
  text-align: center;
}

.text-4xl {
  font-size: 2.25rem;
  font-weight: 600;
  color: #1a202c;
}

.text-lg {
  font-size: 1.125rem;
  color: #4a5568;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

input, textarea {
  width: 100%;
  padding: 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: 2px solid #6366f1;
}

button {
  background-color: black;
  color: white;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

button:hover {
  background-color: #1a1a1a;
}

.la-recherche {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.la-recherche h1 {
    font-size: 40px;
}

.la-recherche h2 {
    font-size: 30px;
}
  
  /* Fond principal : Une insulte au bon goût */
  .fond-psychédélique {

    background-size: 400% 400%;
    animation: fond-mouvant 10s infinite alternate;
    min-height: 100vh;
    padding: 50px 20px;
  }
  
  /* Animation fond qui bouge pour te rendre fou */
  @keyframes fond-mouvant {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
  }
  
  /* Conteneur principal */
  .boîte-à-chagrin {
    max-width: 800px;
    margin: auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0px 0px 30px rgba(255, 0, 255, 0.5);
    border: 3px dashed #ff00ff;

    transition: 0.3s ease-in-out;
  }

  /* Titre principal */
  .étoile-filante {
    text-align: center;
    font-size: 3rem;
    color: #ff0000;
    text-shadow: 2px 2px 5px yellow;
    animation: tremblement 0.1s infinite alternate;
  }
  
  @keyframes tremblement {
    0% { transform: rotate(1deg); }
    100% { transform: rotate(-1deg); }
  }
  
  /* Sous-titre */
  .ours-mal-léché {
    text-align: center;
    font-size: 1.3rem;
    color: #444;
    font-weight: bold;
    background: yellow;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 10px;
  }
  
  /* Formulaire */
  .courgette-angoissée {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  /* Labels */
  .girafe-bilingue {
    font-weight: bold;
    color: #444;
    display: block; 
  }
  
  /* Inputs */
  .kangourou-dissident {
    width: 100%;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    background: #ffcc00;
    color: #000;
    transition: 0.3s ease-in-out;
    outline: none;
  }
  
  .kangourou-dissident:focus {
    border-color: #ff0000;
    background: #00ffff;
    color: black;
    box-shadow: 0px 0px 10px #ff0000;
  }
  
  /* Textarea */
  .papillon-stressé {
    resize: none;
    height: 100px;
    font-size: 1.1rem;
  }
  
  /* Bouton */
  .pigeon-narquois {
    background-color: #ff00ff;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    text-shadow: 2px 2px 5px black;
    font-weight: bold;
  }
  .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Conteneur principal du catalogue */
.catalogue {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.link-box {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s;
}

.link-container {
    text-align: center;
}

/* Carte pour chaque mission */
.mission {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

/* Conteneur principal */
#missions-container {
    width: 90%;
    margin: 40px auto;
    text-align: center;
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Titre */
.title {
    font-size: 28px;
    color: black;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.bouton-admin {
    background-color: white;
    color: black;
    padding: 5px;
    margin: 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

/* Tableau */
.missions-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* En-têtes du tableau */
.table-header {
    background-color: black;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

/* Lignes du tableau */
.mission-row:nth-child(even) {
    background-color: #f9f9f9;
}

.mission-row:hover {
    background-color: #f1f1f1;
}

/* Cellules */
.mission-data {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 16px;
    color: black;
}

/* Image dans les cellules */
.mission-image {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

/* Actions (supprimer, modifier) */
.mission-actions {
    padding: 12px;
}

.delete-link,
.edit-link {
    font-weight: bold;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
}

.delete-link {
    color: #d9534f;
    margin-right: 10px;
}

.delete-link:hover {
    background-color: #d9534f;
    color: white;
}

.edit-link {
    color: #0275d8;
}

.edit-link:hover {
    background-color: #0275d8;
    color: white;
}


.mission:hover {
    transform: translateY(-5px);
}

.mission h3 {
    color: black;
    margin-bottom: 10px;
}

.mission p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

/* Style des images */
.mission img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

/* Style des sections */
.section-container {
    background: #fff; /* Fond blanc */
    padding: 30px;
    margin: 20px 0;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* Ombre légère pour délimiter */
    border: 1px solid #ddd; /* Légère bordure grise */
}

/* Titres des sections */
.section-title {
    color: #000; /* Texte noir */
    text-align: center;
    font-size: 26px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

/* Paragraphes */
.section-text {
    color: #333; /* Texte légèrement plus doux que le noir pur */
    line-height: 1.6;
    text-align: justify;
    font-size: 16px;
}

/* Listes stylisées */
.section-list {
    list-style-type: none;
    padding: 0;
}

.section-list-item {
    background: #f5f5f5; /* Gris très clair */
    color: #000; /* Texte noir */
    padding: 12px;
    margin: 8px 0;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ddd;
}

  .pigeon-narquois:hover {
    background: red;
    text-shadow: 0px 0px 10px yellow;
  }
  
  /* Message d'information */
  .poney-furieux {
    text-align: center;
    font-size: 1rem;
    color: #ff0000;
    font-weight: bold;
    background: black;
    padding: 10px;
    border-radius: 10px;
  }
  

/* RESPONSIVE - VERSION MOBILE (480px et moins) */
@media screen and (max-width: 576px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 10px;
    }

    /* Menu Hamburger */
    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #222;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

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

    /* GRID EN MODE MOBILE */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    main h1 {
        font-size: 2rem;
    }

    /* FOOTER */
    footer nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #222;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    nav ul li {
        padding: 10px 0;
    }
    .presentation-container {
        flex-direction: column; /* Empile les éléments en colonne sur très petits écrans */
        text-align: center; /* Centrer le texte */
    }

    .presentation-text {
        font-size: 18px;
        margin-left: 0;
        margin-top: 10px;
    }

    .presentation-image img {
        width: 100%; /* L'image prend toute la largeur sur très petits écrans */
    }

    .search form {
        flex-direction: column;
        gap: 10px;
    }

    .search input {
        width: 100%;
        max-width: none;
    }

    .search button {
        width: 100%;
    }
}
