/* Import des polices depuis fonts.css */
@import url('font/fonts.css');

/* Définition des couleurs */
:root {
    --bleu: #142469;
    --rouge: #ed4018;
    --creme: #faf7f4;
    --noir: #232323;
    --blanc: #fff;
}

/* Réinitialisation 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/
html, body {
    margin: 0;
    padding: 0;
    /*overflow-x: hidden;*/
    max-width: 100vw;
}

.site-header,
.header-content,
.home_main,
.liste-offre-container {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow-x: hidden;
}


* {
    /*outline: 1px solid red;*/
}

body {
    font-family: 'Futura Std', sans-serif;
    background-color: var(--creme);
    color: var(--noir);
    line-height: 1.6;
    min-height: 100vh !important;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: var(--bleu);
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0 0 30px 30px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
    
}


.header-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  color: #444;
  flex-wrap: wrap;
}

.header-logo img {
  height: 40px;
}
.header-menu {
  display: flex;
  gap: 40px;
  font-family: 'Futura Std', sans-serif;
  font-size: 18px;
  color: var(--bleu);
}

.header-menu a {
  text-decoration: none;
  color: var(--bleu);
}

.menu-toggle {
  display: none; /* Masqué pour desktop */
}

/* Logo */
.header-logo img {
    height: 50px;
    width: auto;
}

/* Titre centré */
.header-title {
    flex: 1;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    display: none; /* masqué car non présent sur le screen */
}

/* Menu principal */
.header-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu ul li a {
    text-decoration: none;
    color: var(--creme);
    font-size: 16px;
    transition: 0.3s;
}

.header-menu ul li a:hover {
    color: #7a7a7a; /* Rouge pour effet hover */
    border-bottom: 2px solid #7a7a7a;
    
}

/* Bouton burger (caché par défaut) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Responsive : Empilement sur mobile */
@media (max-width: 768px) {
    .site-header {
        /*flex-direction: column;*/
        align-items: center;
        position: fixed;
        width: 100%;
        top: 0;
    }
    .header-title {
        order: -1; /* Le titre passe au-dessus */
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .header-menu ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
        background: #142469;
        padding: 10px;
    }

    .header-menu ul.open {
        display: block;
        position: absolute;
        right: 0;
        top: 84px;
        width: 50%;
    }
    
    .header-title {
        display: none;
    }
}

/* Sections générales */
section.round_section{
    margin: 40px auto;
    width: 80%;
    padding: 30px;
    background: var(--blanc);
    border-radius: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.home_main {
    background-image: url('https://domino-rh.com/wp-content/uploads/2024/04/devanture-domino-rh-2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--creme) !important;
    display: flex;
    justify-content: center;
    align-items: center;  
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.home_main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 36, 105, 0.8), rgba(20, 36, 105, 0.5)); 
    z-index: 1;
}

.home_main div{
    z-index: 2;
}

.home_main h1, h2{
    color: var(--creme) ;
}

/* Titres */
h1, h2 {
    font-family: 'Juana', serif;
    color: var(--bleu);
    text-align: center;
    letter-spacing: 1px;
    font-weight: bold;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

li {
    list-style-image: url('img/Logo_accroche_i_bleu@24-24px.png');
    list-style-position: inside;
}

/* Formulaires */
input, select, button {
    font-family: 'Futura Std', sans-serif;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid var(--bleu);
    font-size: 1rem;
}

input[type="text"], select {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}

button {
    background-color: var(--rouge);
    color: var(--blanc);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    padding: 12px 20px;
    border-radius: 30px;
}

button:hover {
    background-color: #c73214;
}

/* Filtres */
.filtres {
    background: var(--blanc);
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.filtres h3 {
    color: var(--bleu);
    font-family: 'Juana', serif;
    margin-bottom: 15px;
}

.filtres label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.filtres select, .filtres button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 30px;
}

.filtres button {
    background: var(--rouge);
    color: var(--blanc);
    font-weight: bold;
    border: none;
    cursor: pointer;
}





/* Chiffres Clés */
.chiffres-cles {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 20px;
}

.chiffres-cles div {
    background: var(--blanc);
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 20%;
}

/* Footer */
footer {
    background-color: var(--bleu);
    color: var(--blanc);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-radius: 30px 30px 0 0;
    font-family: 'Juana', serif;
}


.header_title {
    color: var(--creme);
}

/* Section Dernières Offres */
.dernieres-offres {
    width: 80%;
    margin: 40px auto;
}

.dernieres-offre-container {
    display: grid;
    grid-template-columns: 4 1fr;
}

a.offre-card {
  text-decoration: none;

}

.dernieres-offres .offre-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    
}





/*ALERTES*/
/* 💡 Conteneur général des alertes */
.alert-title {
    text-align: center;
    color: #142469;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .alert-title {
    margin-top: 20%;
    font-size: 16pt;
}
}

/* 💡 Message d'erreur */
.error-message {
    text-align: center;
    color: red;
    font-weight: bold;
    margin-top: 20px;
}

/* 💡 Aucune alerte trouvée */
.no-alert {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 20px;
}

/* 💡 Conteneur des alertes */
.alertes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* 💡 Carte individuelle des alertes */
.alert-card {
    background-color: #fff;
    border: 2px solid #142469;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 💡 Boutons d'action */
.alert-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

/* 🔴 Bouton Supprimer */
.btn-red {
    background-color: #ed4018;
    color: white;
}

.btn-red:hover {
    background-color: #c13515;
}

/* 🟢 Bouton Prolonger */
.btn-green {
    background-color: #28a745;
    color: white;
}

.btn-green:hover {
    background-color: #218838;
}

/* 🔵 Bouton Gérer alertes */
.btn-blue {
    background-color: #142469;
    color: white;
}

.btn-blue:hover {
    background-color: #0e1a4a;
}

/* 📩 Formulaire d'email */
.alert-form {
    text-align: center;
    margin-top: 30px;
}

.alert-form input {
    padding: 10px;
    border: 2px solid #142469;
    border-radius: 30px;
    width: 250px;
    margin-right: 10px;
}

.alert-form button {
    padding: 10px 15px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
}
.alerte-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.alerte-title {
    font-size: 24px;
    color: #ed4018;
    font-weight: bold;
}

.alerte-message {
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
}

.alerte-message.success {
    background-color: #dff0d8;
    border-left: 5px solid #28a745;
    color: #155724;
}

.alerte-message.error {
    background-color: #f8d7da;
    border-left: 5px solid #dc3545;
    color: #721c24;
}

.alerte-details {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.alerte-details h3 {
    font-size: 18px;
    color: #142469;
    margin-bottom: 10px;
}

.alerte-details ul {
    list-style-type: none;
    padding: 0;
}

.alerte-details ul li {
    font-size: 16px;
    margin: 5px 0;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.alerte-form {
    margin-top: 20px;
}

.alerte-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    margin: 15px 0;
}

.alerte-btn {
    display: inline-block;
    background-color: #142469;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.alerte-btn:hover {
    background-color: #0e1a4a;
}

.alerte-btn.delete {
    background-color: #ed4018;
}

.alerte-btn.delete:hover {
    background-color: #c13515;
}

.alerte-section {
    display: flex;
    flex-direction: column;
    margin: 1% 10%;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.alertChangeMail {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2% 0%;
}

.bulkButtons {
    display: flex;
    margin: 5% 10%;
    gap: 1%;
    justify-content: center;
}

.legal-section {
    margin: 10% 10%;
}