/* === FONTS LOCALES === */
@font-face {
  font-family: 'Capriola';
  src: url("../fonts/Capriola-Regular-55937cb2d03d470429a614ff800bb801.woff2") format('woff2'),
       url("../fonts/Capriola-Regular-92082fce4130108fad5fa474db2d2688.woff") format('woff'),
       url("../fonts/Capriola-Regular-d3c11e58ed6154e6705294cb7ca87f75.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cookie';
  src: url("../fonts/Cookie-Regular-5b68e9b0bfa5bc5442130890fadf0619.woff2") format('woff2'),
       url("../fonts/Cookie-Regular-d369d188e3fb693b22051a7f0c668e38.woff") format('woff'),
       url("../fonts/Cookie-Regular-1c822e66e5d867a8be49e49a19d90382.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  background-color: #fff;
  color: #333;
  font-family: 'Capriola', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* === CONTAINERS === */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.container-fluid {
  width: 100%;
}

/* === GRID === */
.row {
  display: flex;
  flex-wrap: wrap;
  /*gap: 2rem;*/
}
.col-6 {
  flex: 0 0 50%;
}
@media (max-width: 768px) {
  .col-6 {
    flex: 0 0 100%;
  }
}

/* === TEXT & ALIGNMENT === */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-white { color: #fff; }
.lead { font-size: 1.5rem; font-weight: 400; }
.small { font-size: 0.875rem; }

/* === SPACING UTILITIES === */
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.pb-5 { padding-bottom: 3rem; }

/* === COLORS === */
:root {
  --color-primary: #DC9F00;
}
.bg-primary {
  background-color: var(--color-primary);
}

/* === IMAGES === */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* === TITRES & TYPO === */
.title-script {
  font-family: 'Cookie', cursive;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* === FOOTER === */
.footer {
  background-color: #F5F5F5;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/****************************
 * FORMULAIRE DE CONTACT
 ****************************/
.contact-form-wrapper {
  margin: 2rem auto;
  max-width: 600px;
  padding: 2rem;
  background-color: #111;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  color: #D4A135;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-control {
  background-color: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #D4A135;
  box-shadow: 0 0 8px rgba(212,161,53,0.6);
}

#contact_message {
    height: 9rem;
}
/* MESSAGE D’ERREUR */
.form-error-message {
  color: #ff4b4b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* BOUTON */
.btn-submit-white {
  /* background-color: #D4A135; */
  background-color: #fff;
  color: #000;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit-white:hover {
  background-color: #D4A135;
  color: #fff;
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ALIGNEMENT */
.text-center {
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  .btn-submit {
    width: 100%;
  }
}
/* === FORM ROW (2 colonnes) === */
.form-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.form-row > .form-floating {
  flex: 1 1 0;
  min-width: 0; /* important pour forcer le flex à utiliser toute la largeur disponible */
}

/* Responsive : repasse en colonne sur mobile */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

/* === RGPD CHECKBOX === */
.form-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #fff;
  margin-top: 1rem;
}

.form-rgpd input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #D4A135; /* couleur dorée personnalisée */
  cursor: pointer;
  flex-shrink: 0;
}

.form-rgpd-label {
  line-height: 1.4;
  cursor: pointer;
  color: #fff;
}

.form-error-message {
  color: #ff4b4b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
/****************************
 * FORM FLOATING LABELS
 ****************************/
.form-floating {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating .form-control {
  width: 100%;
  padding: 1.2rem 1rem 0.5rem;
  background-color: #000;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-floating .form-control::placeholder {
  color: transparent;
}

.form-floating label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #aaa;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Quand le champ est focus ou non vide */
.form-floating .form-control:focus + label,
.form-floating .form-control:not(:placeholder-shown) + label {
  top: 0.3rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: #D4A135;
  background-color: #000;
  padding: 0 0.25rem;
}

/* Focus style */
.form-floating .form-control:focus {
  outline: none;
  border-color: #D4A135;
  box-shadow: 0 0 8px rgba(212,161,53,0.5);
}
/****************************
 * FORMULAIRE D’INSCRIPTION (THÈME CLAIR)
 ****************************/
.registration-wrapper.light {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f7f7f7;
  padding: 2rem;
}

.registration-card.light {
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/****************************
 * FORM FLOATING LABELS
 ****************************/
.registration-form .form-floating {
  position: relative;
  margin-bottom: 1.5rem;
}

.registration-form .form-floating .form-control {
  width: 100%;
  padding: 1.2rem 1rem 0.5rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.registration-form .form-floating .form-control::placeholder {
  color: transparent;
}

.registration-form .form-floating label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #777;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* label flottant au focus / si champ non vide */
.registration-form .form-floating .form-control:focus + label,
.registration-form .form-floating .form-control:not(:placeholder-shown) + label {
  top: 0.3rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: #D4A135;
  background-color: #fff;
  padding: 0 0.25rem;
}

/* focus champ */
.registration-form .form-floating .form-control:focus {
  outline: none;
  border-color: #D4A135;
  box-shadow: 0 0 8px rgba(212,161,53,0.3);
}

/****************************
 * BOUTON
 ****************************/
.btn-submit {
  background-color: #D4A135;
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: #e0b855;
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/****************************
 * ERREURS
 ****************************/
.form-error-message {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.text-center {
  text-align: center;
}
/****************************
 * FORMULAIRE DE CONNEXION (THÈME DARK)
 ****************************/
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #000;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background-color: #111;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/****************************
 * FORM FLOATING LABELS
 ****************************/
.form-floating {
  position: relative;
}

.form-floating .form-control {
  width: 100%;
  padding: 1.2rem 1rem 0.5rem;
  background-color: #000;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-floating .form-control::placeholder {
  color: transparent;
}

.form-floating label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #aaa;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* label flottant au focus / si champ non vide */
.form-floating .form-control:focus + label,
.form-floating .form-control:not(:placeholder-shown) + label {
  top: 0.3rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: #D4A135;
  background-color: transparent;
  padding: 0 0.25rem;
}

/* focus champ */
.form-floating .form-control:focus {
  outline: none;
  border-color: #D4A135;
  box-shadow: 0 0 8px rgba(212,161,53,0.5);
}

/****************************
 * BOUTON
 ****************************/
.btn-submit {
  background-color: #D4A135;
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: #e0b855;
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/****************************
 * ERREURS / LIENS
 ****************************/
.form-error-message {
  color: #ff4b4b;
  font-size: 0.875rem;
  background-color: #2a0000;
  border: 1px solid #550000;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  text-align: center;
}

.logout-link {
  color: #D4A135;
  text-decoration: none;
  font-weight: 500;
}

.logout-link:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}
/****************************
 * NAVBAR BACKOFFICE (AVEC AVATAR)
 ****************************/
.back-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: 'Capriola', sans-serif;
}

.navbar-title {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
}

/* === DROPDOWN UTILISATEUR === */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid #333;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.user-toggle:hover,
.user-toggle:focus {
  border-color: #D4A135;
  color: #D4A135;
}

/* Avatar image */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #555;
}

/* Initiales (si pas d’avatar) */
.user-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #D4A135;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.user-name {
  font-weight: 500;
  font-size: 0.9rem;
}

/* === Menu déroulant === */
.user-menu {
  position: absolute;
  right: 0;
  top: 115%;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 180px;
  display: none;
  z-index: 10;
}

.user-dropdown:hover .user-menu,
.user-dropdown:focus-within .user-menu {
  display: block;
}

.user-menu li {
  margin: 0;
}

.user-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.user-menu a:hover {
  background-color: #D4A135;
  color: #000;
}

/* Responsive */
@media (max-width: 600px) {
  .navbar-title {
    font-size: 1rem;
  }

  .user-name {
    display: none;
  }
}
/****************************
 * BACKOFFICE CONTACTS
 ****************************/
.back-contacts {
  color: #fff;
  padding: 2rem;
}

.page-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #D4A135;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
}

.contact-row:hover {
  background-color: #1a1a1a;
}

.contact-date {
  width: 20%;
  font-size: 0.875rem;
  color: #aaa;
}

.contact-info {
  width: 60%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 0.95rem;
}

.contact-info a {
  color: #D4A135;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-actions {
  width: 20%;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/****************************
 * BOUTONS D’ACTION
 ****************************/
.btn-action {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

/* Bouton "Voir" */
.btn-view {
  background-color: #D4A135;
  color: #000;
}

.btn-view:hover {
  background-color: #e0b855;
  transform: translateY(-1px);
}

/* Bouton "Supprimer" */
.btn-delete {
  background-color: #550000;
  color: #fff;
}

.btn-delete:hover {
  background-color: #a10000;
  transform: translateY(-1px);
}

/****************************
 * ÉTAT VIDE
 ****************************/
.no-records {
  color: #999;
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
}

/****************************
 * RESPONSIVE
 ****************************/
@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-date,
  .contact-info,
  .contact-actions {
    width: 100%;
  }

  .contact-actions {
    justify-content: center;
  }
}
/****************************
 * BACKOFFICE CONTACTS — THÈME CLAIR
 ****************************/
.back-contacts.light {
  color: #222;
  background-color: transparent;
  padding: 2rem;
}

.page-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  font-weight: 600;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Chaque ligne de contact */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-row:hover {
  background-color: #fdfdfd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.contact-date {
  width: 20%;
  font-size: 0.85rem;
  color: #777;
}

.contact-info {
  width: 60%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 0.95rem;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-actions {
  width: 20%;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/****************************
 * BOUTONS LÉGERS
 ****************************/
.btn-light {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background-color: transparent;
}

/* Bouton "Voir" (gris doux) */
.btn-view {
  color: #333;
  border-color: #ccc;
  background-color: #f9f9f9;
}

.btn-view:hover {
  background-color: #eaeaea;
  border-color: #bbb;
}

/* Bouton "Supprimer" (minimal rouge) */
.btn-delete {
  color: #a10000;
  border-color: #f0c0c0;
  background-color: #fff5f5;
}

.btn-delete:hover {
  background-color: #ffe0e0;
  border-color: #d88;
}

/****************************
 * ÉTAT VIDE
 ****************************/
.no-records {
  color: #666;
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
}

/****************************
 * RESPONSIVE
 ****************************/
@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .contact-date,
  .contact-info,
  .contact-actions {
    width: 100%;
  }

  .contact-actions {
    justify-content: center;
  }
}
