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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-size: cover;
    background-position: top center;
}

/* Fond d'écran flou */
.background-image {
    background-size: cover;
    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;
    filter: blur(2px) brightness(0.8);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    color: #333;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

.menu:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Liens du menu */
.menu a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.menu a:hover {
    color: #2071C9;
}

/* Navbar */
.navbar .nav-link.active {
    color: #2071C9;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.navbar .nav-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #2B619B;
}

/* Responsive menu */
@media (max-width: 767.98px) {
    .menu nav ul {
        flex-direction: column;
        align-items: flex-end;
        padding-right: 15px;
    }

    .menu nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        text-align: right;
    }
}

/* Espacement sous le menu */
.spacer {
    height: 80px;
}

/* Contenu principal */
.contenu {
    padding: 20px;
}

/* Cartes */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 2rem;
}

.card-link {
    display: block;
    width: 18rem;
    text-decoration: none;
    color: inherit;
}

.cards-grid a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px 12px 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 2;
}

.card-header {
    background-color: #e9f2ff; /* fond bleu clair CHANTIERAMA */
    color: #2071C9;            /* texte bleu CHANTIERAMA */
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top: 1px solid #ccc;
}

/* Responsive mobile */
@media screen and (max-width: 600px) {
    .cards-grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 360px;
    }
}

/* Style général boutons */
button.btn {
    background-color: #2071C9;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.btn:hover {
    background-color: #2B619B;
}

/* Bouton danger */
button.btn.btn-danger {
    background-color: #C92020;
}

button.btn.btn-danger:hover {
    background-color: #9B1717;
}

/* Boutons outline */
button.btn-outline-primary {
    background-color: #ffffff;
    color: #2071C9;
    border: 2px solid #2071C9;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.btn-outline-primary:hover {
    background-color: #2071C9;
    color: white;
}

a.btn {
    background-color: #2071C9;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    display: inline-block;
}

a.btn:hover {
    background-color: #2B619B;
    color: white;
    text-decoration: none;
}

a.btn-outline-primary {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background-color: transparent;
    color: #2071C9;
    border: 2px solid #2071C9;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

a.btn-outline-primary:hover {
    background-color: #2071C9;
    color: white;
}

/* Dropdown */
.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px 5px 5px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1050;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
    color: #2071C9;
}

/* Modale Chantierama */
.modal-content {
    border-radius: 10px 10px 10px 0;
    border: 1px solid #2071C9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #e9f2ff;
    color: #2071C9;
    font-weight: 600;
    border-bottom: 1px solid #2071C9;
}

.modal-footer {
    border-top: 1px solid #e9f2ff;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal {
    z-index: 1060 !important;
    position: fixed !important;
    top: 0;
    left: 0;
}

ul.list-card {
    border: 1px solid #dee2e6;
    border-radius: 10px 10px 10px 0;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

ul.list-card li.list-group-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

ul.list-card li.list-group-item:last-child {
    border-bottom: none;
}

/* Suppression du soulignement de base */
a.underline-animation {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  position: relative;
  display: inline-block;
  color: inherit;
}

/* Ligne animée au survol */
a.underline-animation::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease-in-out;
}

a.underline-animation:hover::after {
  width: 100%;
}

/* Bouton calendrier style Chantierama */
.btn.btn-calendrier {
    background-color: #ffffff;
    border: 1px solid #2071C9;
    color: #2071C9;
    border-radius: 10px 10px 10px 0;
    padding: 6px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn.btn-calendrier:hover {
    background-color: #e8f0fe;
    color: #2071C9;
    border: 1px solid #2071C9;
    text-decoration: none;
}

/* Style Chantierama pour les boutons FullCalendar */
.fc .fc-button {
    background-color: #ffffff;
    color: #2071C9;
    border: 1px solid #2071C9;
    border-radius: 10px 10px 10px 0;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.fc .fc-button:hover,
.fc .fc-button:focus {
    background-color: #e8f0fe;
    color: #2071C9;
    outline: none;
    box-shadow: none;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #2071C9;
    color: #ffffff;
}

.fc .fc-button-primary:disabled {
    background-color: #f0f0f0;
    color: #aaa;
    border-color: #ddd;
}

/* Supprime les soulignements et la couleur bleue des jours du mois */
.fc-daygrid-day-number {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

/* Supprime le surlignement au hover des cases du mois */
.fc-daygrid-day:hover {
    background-color: transparent;
}

/* Supprime le lien bleu et soulignement sur les jours de semaine (lun, mar, mer...) */
.fc-col-header-cell-cushion {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

/* Calendrier */
/* Conteneur global de la frise */
.frise-calendrier-container {
    background: #fff;
    border: 1px solid #007bff;
    border-radius: 10px 10px 10px 0;
    overflow-x: auto;
    padding: 0;
    margin-top: 20px;
}

/* Bandeau supérieur style carte Chantierama */
.frise-bandeau {
    background-color: #e9f2ff;
    color: #007bff;
    padding: 15px;
    border-bottom: 1px solid #007bff;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    text-align: center;
    font-size: 1.2em;
}

