/* Nouveau style pour Option Sécure */

/* Palette de couleurs et variables */
:root {
  --primary-color: #002a4e;        /* Bleu foncé élégant */
  --secondary-color: #004e7c;      /* Bleu moyen complémentaire */
  --accent-color: #e65100;         /* Orange vif */
  --light-bg: #f5f6fa;             /* Fond très léger */
  --text-color: #333333;           /* Texte foncé */
  --menu-bg: #004e7c;              /* Couleur pour le menu */
  --footer-bg: #001f3f;            /* Pied de page très foncé */
  --couleur-logo: #d87a1a;
}

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.accent{
  color: var(--accent-color);
}

.txtaccentlogo{
  color: var(--couleur-logo);
}

#tableajoutsoumission{
  width: 100%;
}

/* Formulaire de connexion et d'inscription */
#formulaireconnexion{
  max-width: 600px;
}

.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}
.form-container {
  max-width: 1200px;
  margin: 20px auto 20px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,42,78,0.08), 0 1.5px 6px rgba(230,81,0,0.06);
  padding: 15px 28px 15px 28px;
  border: 1px solid #e6e6e6;
}
.form-container table { width: 100%; table-layout: fixed; }
.form-container h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

.form-container label {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.form-container input[type="email"],
.form-container input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--secondary-color);
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 1rem;
  background: #f5f6fa;
  color: var(--text-color);
  transition: border-color 0.2s;
}

.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus {
  border-color: var(--accent-color);
  outline: none;
}

.form-container .btn-primary {
  width: 100%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s;
  margin-top: 8px;
  margin-bottom: 8px;
}

.form-container .btn-primary:hover {
  background: #c84300;
}

.form-container .alert-danger {
  background: #ffe5e0;
  color: var(--accent-color);
  border: 1px solid #ffc2b3;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: center;
}

.form-container .btn-secondary {
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 1rem;
  margin-top: 8px;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.form-container .btn-secondary:hover {
  background: var(--primary-color);
}

.form-container input,
.form-container select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--secondary-color);
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 1rem;
  background: #f5f6fa;
  color: var(--text-color);
  transition: border-color 0.2s;
}
.form-container input:focus,
.form-container select:focus {
  border-color: var(--accent-color);
  outline: none;
}
.form-container label {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* zone de passwords  */

.password-conditions {
  position: absolute;
  left: 0;
  bottom: calc(100% + 5px);
  min-width: 260px;
  max-width: 330px;
  background: #fff;
  border: 1.5px solid var(--accent-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(230,81,0,0.08);
  padding: 14px 18px;
  font-size: 0.97em;
  color: #333;
  z-index: 10;
  display: none;
}
.password-conditions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.password-conditions li {
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}
.password-conditions li.valid::before {
  content: "✔";
  color: green;
  position: absolute;
  left: 0;
}
.password-conditions li.invalid::before {
  content: "✖";
  color: #e65100;
  position: absolute;
  left: 0;
}

.password-conditions.all-valid {
  border-color: #2ecc40; /* Vert */
  box-shadow: 0 2px 10px rgba(46,204,64,0.12);
}

/* ///////////////////////////////////////////////////////////////////////////// */

/* Formulaire inscription en deux colonnes sur desktop */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px 24px;
  align-items: start;
}

.form-grid p {
  margin-bottom: 0;
}

.form-grid label {
  margin-bottom: 4px;
}

.form-grid input,
.form-grid select {
  width: 100%;
}

.form-grid button {
  grid-column: 1 / -1; /* Le bouton prend toute la largeur */
  margin-top: 18px;
}

/* ----------------------------------------------------------------------------------*/


/* Logo miniature dans le menu */
.mini-logo-menu {
  display: none;
}
/* //////////////////////////////////////////////////////////////////////////////// */


/* zone du header */
.header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* ou center si tu veux centrer verticalement */
  color: #fff;
  background-image: url("/static/images/clotureAccueil.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-top: 2vh;
  gap: 2vh; /* espace entre chaque bloc */
}


/* Optionnel : conserver l’overlay */
.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Le contenu du header reste pareil */
.header-content {
  z-index: 2;
  margin-top: 0;
}
/* /////////////////////////////////////////////////////////////////////////////////// */

/* Zone du menu */
/* Nouveau style pour le menu intégré au header */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  z-index: 100;
  background: rgba(0,0,0,0.5); /* même fond que .titre-cadre */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px 20px;
}

/* Menu classique pour les autres pages (prend de la place) */
.menu.menu-classique {
  position: relative;
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-bottom: 2px solid #e6e6e6;
  z-index: 10;
}

.menu.menu-classique .nav-item a,
.menu.menu-classique .user-zone,
.menu.menu-classique .user-zone a {
  color: var(--primary-color) !important;
}

.menu.menu-classique .nav-item a:hover {
  color: var(--accent-color) !important;
}

.menu .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  width: 100%;
}

.menu .nav {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu .nav-item a {
  color: #fff; /* texte en blanc pour contraster avec l'image */
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 10px;
  transition: color 0.3s;
}

.menu .nav-item a:hover {
  color: var(--accent-color);
}

.menu .user-zone {
  display: flex;
  align-items: center;
  color: #fff;
  margin-left: auto;
  gap: 1.5em;
}

.menu .user-zone a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  font-size: 0.9rem;
}

.menu .user-zone a:hover {
  color: var(--accent-color);
}

.menu.menu-classique .user-zone a:hover {
    color: var(--accent-color) !important;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 0;
  /* margin-right: auto; */
}

.menu .container.menu-pr{
  margin-left: 0;
  max-width: 1920px;
}
/* /////////////////////////////////////////////////////////////////////////// */


/* zone des users */
.user-name {
    font-weight: 500;
    white-space: nowrap;
}

.user-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ou center si tu veux centrer sur l’axe vertical */
    gap: 0.15em;
}

.user-actions a {
    color: #fff;
    text-decoration: none;
    font-size: 0.96em;
    margin: 0;
    transition: color 0.2s;
}
.user-actions a:hover {
    color: var(--accent-color, orange);
}
/* ///////////////////////////////////////////////////////////////// */

/* Zone du header */
.header-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.header-content p.lead {
  font-size: 1.2rem;
}

/* //////////////////////////////////////////////////////////////// */

/* zone du menu Hamburger */
.hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
/* Hamburger noir sur menu classique */
.menu.menu-classique .hamburger span {
  background: #222 !important;
}

/* Animation en croix */
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ////////////////////////////////////////////////////////////////////////// */

/* Zone des logos */
.mini-logo-nav {
  height: 50px;
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}

.menu .nav-item.accueil-logo a {
  display: flex;
  align-items: center;
  gap: 8px; /* espace entre le logo et le texte */
  padding: 5px 10px;
}

.menu-classique .mini-logo-nav{
  padding: 5px;
  background: rgba(0,0,0,0.80);
  border-radius: 2px;
}
/* ////////////////////////////////////////////////////////////// */



/* User zone mobile */
.user-menu-mobile { display: none; position: relative; }

.user-icon-mobile {
    display: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    background: #f6f6f6;
    transition: background 0.2s;
}
/* //////////////////////////////////////////////////////////// */


/* Zone du user popup sur mobile */
.user-popup-mobile {
  position: fixed;
  top: 70px;
  right: 0;
  height: 100%;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  padding: 1em 1.3em;
  z-index: 100;

  /* état “fermé” */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.user-popup-mobile.open {
  /* état “ouvert” */
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.user-popup-name {
    margin: auto;
    margin-bottom: 3vh;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 0.8em;
    color: #333;
    width: 70%;
}
#userMobilePopup a {
    display: block;
    color: #154092;
    font-weight: 500;
    margin-bottom: 0.5em;
    text-decoration: none;
    padding: 0.3em 0;
    border-radius: 4px;
    transition: background .15s;
}
#userMobilePopup a:hover { 
  color: var(--accent-color);
  background: #f2f6ff; 
}

.user-icon-mobile{
  background-color: var(--accent-color);
}
/* //////////////////////////////////////////////////////////// */

/* Style du menu page  ////////////////////////////////////////////////////////  */
/* Ajout pour améliorer l'affichage de .ConteneurMenuPage */
.ConteneurMenuPage {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
  padding-left: 90px;
  gap: 12px;
  min-height: 48px;
}

.ConteneurMenuPage .btn,
.ConteneurMenuPage a.btn {
  min-width: 180px;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,42,78,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ConteneurMenuPage .btn-secondary {
  background: var(--secondary-color);
  color: #fff;
  border: none;
}

.ConteneurMenuPage .btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}
/* //////////////////////////////////////////////////////////////////////////// */

/* boutons d'actions //////////////////////////////////////////////////////////////////////////////// */

.btnActions {
  padding-left: 110px;
  margin-bottom: 15px;
}


/* Boutons */
.btn-solid-lg, .btn-solid-reg {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background-color 0.3s;
}
.btn-solid-lg:hover, .btn-solid-reg:hover {
  background-color: #c84300;
}
/* ///////////////////////////////////////////////////////////////////////// */

/* Services Section */
.services .row {
  display: flex;
  flex-wrap: wrap;
}

.services .col-md-4 {
  display: flex;
  flex-direction: column;
}
.services .card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s;
}
.services .card:hover {
  transform: translateY(-5px);
}
.card-img-top {
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 16px;
}
.card-title {
  color: var(--primary-color);
}

/* //////////////////////////////////////////////////////////////////// */

/* Style pour les items de clôtures en mode ligne */
.cloture-item {
  display: block;
  width: 100%;
  background-color: #fff;
  transition: background-color 0.3s;
}

.cloture-item:hover {
  background-color: #f8f8f8;
}
/* //////////////////////////////////////////////////////////// */


/* Footer */
footer.footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-flex {
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  text-align: center; 
}

.footer-infos {
  min-width: 180px;
  text-align: left;
  margin: 0 8px;
}

.footer-maps {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center; 
}

.footer-copyright {
  margin-top: 16px;
  font-size: 0.95em;
  text-align: center;
  width: 100%;
}

/* ////////////////////////////////////////////////////////////////////////// */

/* Accueil */

.header .logo-accueil {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: 10vh;
}
.header .logo-accueil img {
  max-width: 350px;
  width: 80vw;
  min-width: 120px;
  height: auto;
}


.titre-cadre {
  background: rgba(0,0,0,0.5); /* fond noir transparent */
  border-radius: 20px;
  padding: 2rem 1rem;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  /* margin-top: 2rem; */
}

#rotating-text {
  color: var(--couleur-logo);
  font-weight: bold;
  transition: opacity 0.5s;
  opacity: 1;
}

#lienRBQ{
  text-decoration: none;
  color: var(--couleur-logo);  
}

#lienRBQ:hover{
  text-decoration: none;
  color: var(--accent-color);  
}

@keyframes scrollbtn-slide-in {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scrollbtn-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

@keyframes scrollbtn-click {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.85); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
/* ///////////////////////////////////////////////////////// */

/* Zone du scrolltopBtn */
#scrollTopBtn {
  display: none;
  align-items: center;
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 999;
  /* background: rgba(200,67,0,0.70); */
  background:
    url("data:image/svg+xml;utf8,<svg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'><line x1='0' y1='0' x2='18' y2='18' stroke='%23e65100' stroke-width='2' stroke-opacity='0.25'/><line x1='18' y1='0' x2='0' y2='18' stroke='%23e65100' stroke-width='2' stroke-opacity='0.25'/></svg>") repeat,
    rgba(200,67,0,0.70);
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(200,67,0,0.18);
  transition: opacity 0.3s, transform 0.2s;
  opacity: 0.96;
  padding: 0 18px 0 0;
  font-size: 0.9em;
  backdrop-filter: blur(2px);
}

#scrollTopBtn:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Slide-in */
#scrollTopBtn.slide-in {
  display: flex;       /* on rend visible */
  animation: scrollbtn-slide-in 0.5s forwards;
}

/* Slide-out */
#scrollTopBtn.slide-out {
  animation: scrollbtn-slide-out 0.5s forwards;
}

#scrollTopBtn.clicked {
  animation: scrollbtn-click 0.35s cubic-bezier(.4,0,.2,1) forwards;
}

@media (min-width: 992px) {
  #scrollTopBtn { display: none !important; }
}

.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(200,67,0,0.10);
  margin-right: 0;
}

.scroll-text {
  color: #fff;
  background: transparent;
  border-radius: 24px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(200,67,0,0.08);
  display: none;
}
/* ////////////////////////////////////////////////////////////////////// */

/* Erreurs formulaires */
.form-errors-modern {
  border-bottom: 1.5px solid red;
  color: red;
  padding: 14px 20px 2px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(230,81,0,0.06);
  font-size: 0.80em;
  font-weight: 500;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInError 0.5s;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

.form-errors-modern ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-errors-modern li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-errors-modern .error-label {
  font-weight: 600;
  color: #e65100;
  margin-right: 4px;
}

.form-errors-modern .error-msg {
  color: #c84300;
}

.btn-disabled,
button:disabled.btn-primary {
  background: #ccc !important;
  color: #888 !important;
  cursor: not-allowed !important;
  border: none !important;
  opacity: 0.7;
}

input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: #e60000 !important;
  background: #fff4f2 !important;
  box-shadow: 0 0 0 2px rgba(230,81,0,0.08);
}

/* ---------------------------------------------------------------*/

/* ------------------------ Notifications ---------------------------- */
#notif-container {
  position: fixed;
  top: 90px;
  right: 32px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.notif-success {
  background: linear-gradient(90deg, #2ecc40 0%, #e6ffe6 100%);
  color: #1a3d1a;
  border-left: 6px solid #2ecc40;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(46,204,64,0.13);
  padding: 18px 32px 18px 20px;
  margin-bottom: 12px;
  font-size: 1.08em;
  font-weight: 600;
  min-width: 260px;
  max-width: 340px;
  opacity: 0;
  transform: translateX(60px);
  animation: notif-slide-in 0.7s cubic-bezier(.4,0,.2,1) forwards;
  transition: opacity 0.5s, transform 0.5s;
  position: relative;
}

@keyframes notif-slide-in {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notif-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}




/* ----------- Amélioration page détail clôture ----------- */

/* Bloc principal de détail */
.detail-cloture-bloc {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,42,78,0.08), 0 1.5px 6px rgba(230,81,0,0.06);
  padding: 32px 28px;
  margin-bottom: 32px;
  transition: box-shadow 0.2s;
}

.detail-cloture-bloc:hover {
  box-shadow: 0 8px 32px rgba(0,42,78,0.12), 0 2px 8px rgba(230,81,0,0.10);
}

/* Titre */
.detail-cloture-bloc h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 18px;
}

/* Infos */
.detail-cloture-bloc p {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.detail-cloture-bloc strong {
  color: var(--secondary-color);
}

/* Image */
.detail-cloture-img {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,42,78,0.10);
  max-width: 100%;
  max-height: 340px;
  object-fit: cover;
  background: #f5f6fa;
  margin-bottom: 12px;
  border: 1px solid #e6e6e6;
  display: block;
}

/* Footer d'action */
.detail-cloture-bloc .card-footer {
  margin-top: 18px;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  gap: 10px;
}
/* --------------------------------------------------------------------------*/

/* Zone du titre des soumissions */
.titre-soumission {
  position: relative;
  margin-left: 10vw;
  margin-bottom: 5vh;
  display: inline-block; /* Pour que le ::after suive la largeur du texte */
}

.titre-soumission::after {
  content: "";
  display: block;
  height: 4px;
  width: calc(35% + 5%); 
  background: linear-gradient(90deg, var(--accent-color) 60%, var(--couleur-logo) 100%);
  position: absolute;
  left: 0;
  bottom: -8px;
  border-radius: 3px;
  box-shadow: 0 2px 8px #15409222;
}
/* /////////////////////////////////////////////////////// */


/* Zone du titre des clôtures */
.titre-cloture {
  position: relative;
  margin-left: 6vw;
  display: inline-block; /* Pour que le ::after suive la largeur du texte */
}

.titre-cloture::after{
  content: "";
  display: block;
  height: 4px;
  width: calc(100% + 15%); 
  background: linear-gradient(90deg, var(--accent-color) 60%, var(--couleur-logo) 100%);
  position: absolute;
  left: 0;
  bottom: -8px;
  border-radius: 3px;
  box-shadow: 0 2px 8px #15409222;
}
/* /////////////////////////////////////////////////////// */


/* Zone de la grille des photos */
.photo-grid {
  display: grid;
  /* grille responsive : autant de vignettes de min 120px que ça rentre */
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.photo-cell {
  position: relative;
  /* ratio 1:1 */
  padding-top: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: auto;
}
/* masque l’input file natif */
.photo-cell input[type="file"] {
  display: none;
}

.photo-thumb,
.photo-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #f0f0f0;
  border: 2px dashed var(--couleur-logo);   /* Pointillé orange */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

.photo-thumb:hover,
.photo-placeholder:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(230,81,0,0.12); /* optionnel, petit effet d’ombre */
}

.photo-cell > br,
.photo-cell > a,
.photo-cell > input[type="file"]:not(.cloture-image-input),
.photo-cell > input[type="checkbox"] ~ *:not(.remove-btn):not(.photo-thumb):not(.cloture-image-input) {
  display: none !important;
}

.photo-cell {
  font-size: 0 !important;
}


.photo-thumb img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

/* /////////////////////////////////////////////////////// */

/* Zone du bouton remove */
.remove-btn {
  font-weight:700;
  position: absolute;
  top: 4px; right: 4px;
  background-color: transparent;
  color: #ff0000;
  border: none;
  width: 20px; height: 20px;
  font-size: 25px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  transition: 
    transform 0.18s cubic-bezier(.4,0,.2,1),
    text-decoration 0.1s,
    color 0.18s;
}

.remove-btn:hover {
  transform: scale(1.35);
  text-decoration: underline;
  /* color: #b30000; */
}
/* /////////////////////////////////////////////////////// */

/* Zone des placeholders des photos */ 
.photo-placeholder .plus {
  font-size: 2.5rem;
  color: var(--couleur-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.photo-placeholder:hover .plus {
  color: var(--accent-color);
  transform: scale(1.1);
  transition: color 0.2s, transform 0.2s;
}
/* /////////////////////////////////////////////////////// */

/* Zone des interactions avec les photos */
.photo-cell input[type="checkbox"],
.photo-cell a {
  display: none;
}

.formset-cloture-image input[type="file"] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
/* /////////////////////////////////////////////////////// */

/* Zone des tuiles pour l'ajout d'images */
.tuile-ajout-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #bbb;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s;
}
.tuile-ajout-image:hover {
    border-color: #007bff;
}
.tuile-plus {
    font-size: 2rem;
    color: #aaa;
    user-select: none;
}

/* /////////////////////////////////////////////////////// */

/* Zone pour les inputs des images des clôtures */
.remove-image-btn {
    display:none;
    position:absolute;
    top:6px;
    right:6px;
    background:#d87a1a;
    color:#fff;
    border:none;
    border-radius:50%;
    width:28px;
    height:28px;
    font-size:18px;
    line-height:26px;
    cursor:pointer;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.cloture-img-thumb {
    box-shadow: 0 2px 12px rgba(0,42,78,0.11);
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    margin-bottom: 6px;
}
.btn-delete-img {
    background: #fff !important;
    border: 1.5px solid #e65100 !important;
    color: #e65100 !important;
    font-size: 1.4em !important;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(230,81,0,0.12);
    transition: box-shadow 0.15s;
}
.btn-delete-img:hover {
    background: #ffece2 !important;
    border-color: #c84300 !important;
    color: #c84300 !important;
    box-shadow: 0 2px 10px rgba(230,81,0,0.15);
}
.formset-cloture-image input[type="checkbox"][name$="-DELETE"] {
    display: none !important;
}
/* /////////////////////////////////////////////////////// */

/* Bouton suppression multiple */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(60px);
  }
}
#bulk-delete-form {
  transition: opacity 0.3s;
}
#bulk-delete-form.anim-in {
  animation: slideUp 0.35s cubic-bezier(.42,0,.58,1) forwards;
  display: block !important;
}
#bulk-delete-form.anim-out {
  animation: slideDown 0.25s cubic-bezier(.42,0,.58,1) forwards;
}
/* /////////////////////////////////////////////////////// */

/* Fin Bouton suppression multiple */
.cell-wrap {
    position: relative;
    min-width: 280px;
    width: 100%;
}
.ajout-option-flottante {
    position: absolute;
    right: -80%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,42,78,0.07);
    z-index: 10;
    align-items: center;
    min-width: 220px;
    max-width: 90%;
}
/* /////////////////////////////////////////////////////// */

/* Zone boutons de retour */
.btn-retour {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    background-color: transparent;
    color: inherit;
    font-size: 1rem;
    gap: 0.4em;
    transition: color 0.15s;
    position: relative;         /* Pour le pseudo-élément ::after */
    border-width: 0;
}

.btn-retour::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.1em;        /* même décalage que .btn-ajout */
    width: 100%;
    height: 90%;          /* même hauteur que .btn-ajout */
    background: #c6002f;  /* rouge */
    opacity: 0.14;
    border-radius: 3px;
    z-index: 0;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.22s cubic-bezier(.73,.19,.4,.97), opacity 0.22s cubic-bezier(.73,.19,.4,.97);
    pointer-events: none;
}
.btn-retour:hover::before,
.btn-retour:focus::before {
    transform: scaleX(0);
    opacity: 0.14;
}

/* Soulignement personnalisé */
.btn-retour::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #c6002f;  /* Rouge comme la flèche */
    transform: scaleX(0);
    transition: transform 0.22s cubic-bezier(.73,.19,.4,.97);
    transform-origin: left;
    border-radius: 2px;
    pointer-events: none;
}

.btn-retour:hover::after,
.btn-retour:focus::after {
    transform: scaleX(1);
}

.btn-retour i {
    transition: color 0.2s, transform 0.2s;
    font-size: 1.2em;
}
.btn-retour:hover,
.btn-retour:focus {
    text-decoration: none;
}
.btn-retour:hover i,
.btn-retour:focus i {
    color: #c6002f;
    transform: scale(1.60);
}
/* /////////////////////////////////////////////////////// */

/* Zone de bouton d'ajout */
.btn-ajout {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    font-size: 1rem;
    gap: 0.4em;
    background: none;
    border: none;
    box-shadow: none;
    position: relative;
    transition: color 0.15s;
    padding: 2px 2px;
}

.btn-ajout::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.1em;
    width: 100%;
    height: 90%;
    background: var(--btn-ajout-couleur, #21a329);
    opacity: 0.17;
    border-radius: 3px;
    z-index: 0;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.22s cubic-bezier(.73,.19,.4,.97), opacity 0.22s cubic-bezier(.73,.19,.4,.97);
    pointer-events: none;
}

.btn-ajout:hover::before,
.btn-ajout:focus::before {
    transform: scaleX(0);
    opacity: 0.17;
}

/* + de base */
.btn-ajout i {
    transition: color 0.18s, transform 0.18s;
    font-size: 1.25em;
    z-index: 2;
    position: relative;
}

/* Soulignement personnalisé au hover */
.btn-ajout::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--boutonAjout-couleur, #21a329);
    transform: scaleX(0);
    transition: transform 0.22s cubic-bezier(.73,.19,.4,.97);
    transform-origin: left;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.22s cubic-bezier(.73,.19,.4,.97);
}

.btn-ajout:hover::after,
.btn-ajout:focus::after {
    transform: scaleX(1);
}

/* Effet sur le + au hover */
.btn-ajout:hover i,
.btn-ajout:focus i {
    color: #21a329;
    transform: scale(1.60);
}
.btn-ajout > * {
    position: relative;
    z-index: 2;
}
/* /////////////////////////////////////////////////////// */


/* image du carroussel */
#imgCarrouselb{
  display: none;
}
/* /////////////////////////////////////////////////////// */

/* Zone des containers des forms */ 
.form-container .choices {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0;
}

.form-container .choices__inner,
.form-container .choices__list--multiple {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0;
}

.form-container .choices__input,
.form-container .choices__input--cloned {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* /////////////////////////////////////////////////////// */


/* Zone des table réactives */
.table-responsive-custom {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Pour un scroll fluide sur mobile */
}

.table-responsive-custom table {
  min-width: 650px; /* Ou plus si tu veux forcer un scroll tôt */
}
/* /////////////////////////////////////////////////////// */


/* Zone des séparateurs */
.separateur-vertical {
  position: relative;
}

.separateur-vertical::after {
  content: "";
  position: absolute;
  right: 0;                   /* collé sur le bord droit de la col */
  top: 50%;                   /* centré verticalement */
  transform: translateY(-50%);
  width: 4px;                 
  height: 160px;               
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    rgba(230, 81,   0, 0.9) 0%,
    rgba(255, 152, 0, 0.9) 50%,
    rgba(230, 81,   0, 0.9) 100%
  );
}
/* ////////////////////////////////////////////////////// */


/* Zone des boutons de détails des soumissions */
.bouton-detail-soumission{
  border-color: var(--accent-color);
  color: var(--couleur-logo);
}

.bouton-detail-soumission:hover{
  background-color: var(--couleur-logo);
  border-color: var(--accent-color);
}

/* /////////////////////////////////////////////////////// */


/* Zone format téléphone */
@media (max-width: 768px) {
  .header .logo-accueil img {
    max-width: 300px;
    width: 60vw;
  }
  .header .logo-accueil {
    margin-top: 80px;
    margin-bottom: 18px;
  }
  .header {
    gap: 1.2rem;
    padding-top: 0;
  }
  .header-content {
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .password-conditions {
    position: static;
    width: 100%;
    margin-top: 8px;
    right: auto;
    box-shadow: none;
  }
  .hamburger {
    display: flex;
    margin-left: 0;
  }
  .mini-logo-menu {
    display: inline-block;
    height: 32px;
    width: auto;
    margin-right: 0;
    vertical-align: middle;
  }
  .menu .nav {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: fixed;
    height: 100%;
    top: 70px;
    left: 0;
    width: max-content;      /* Largeur selon le contenu */
    min-width: 180px;
    /* border-radius: 16px; */
    padding: 20px 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);

    /* Animation */
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  }
  .menu .container{
    gap: 0;
    padding: 0 10px;
  }

  .menu .nav.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-item {
    margin: 10px 0;
    text-align: center;
  }
  .user-zone {
    text-align: center;
    margin-top: 10px;
  }
  .menu-left {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .mini-logo-nav{
    display: none;
  }
  .menu.menu-classique .mini-logo-menu{
    padding: 2px;
    background: rgba(0,0,0,0.80);
    border-radius: 2px;
  }  

  .footer-flex {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer-infos {
    text-align: left;
  }
  .footer-maps {
    flex-direction: column;
    gap: 8px;
  }
  #scrollTopBtn {
    display: none;
  }
  .scroll-text {
    display: inline-block;
  }
  #notif-container {
    top: 85px;
    right: 8px;
  }
  .notif-success {
    min-width: 160px;
    max-width: 90vw;
    font-size: 0.70em;
    padding: 12px 16px 12px 12px;
  }
  footer.footer {
    font-size: 0.8rem;
  }
  .detail-cloture-bloc {
    padding: 18px 8px;
  }
  .detail-cloture-img {
    max-height: 220px;
  }
  .cell-wrap { min-width: 0; }
  .ajout-option-flottante {
      position: static !important;
      transform: none !important;
      margin-top: 8px;
      width: 100%;
      flex-direction: column;
      box-shadow: none;
      min-width: 0;
  }
  #imgCarrouselb{
    display: block;
  }
  #imgCarrouselh{
    display: none;
  }

  .form-container table {
    display: block;
    width: 100%;
  }
  .form-container tr {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 12px;
    width: 100%;
  }
  .form-container td,
  .form-container th {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
  .form-container label {
    margin-bottom: 6px;
    text-align: left;
  }

  .form-container #cell-photos-terrain {
    order: 99; /* pousse la cellule tout en bas */
    min-width: 0 !important;
    padding-left: 0 !important;
    margin-top: 18px;
    /* width: 100vw; */
    box-sizing: border-box;
    /* Optionnel pour mieux intégrer */
    background: none;
    border: none;
  }
  /* User zone mobile */
  .user-name, .user-actions, .user-zone > a:not(.user-icon-mobile) { display: none !important; }
    .user-menu-mobile { display: inline-block; }
    .user-icon-mobile { display: inline-block; }

  .table-responsive-custom table {
    font-size: 0.70em;
    min-width: 250px;
  }
  .table-responsive-custom th, 
  .table-responsive-custom td {
    white-space: nowrap;
    /* optionnel pour éviter le retour à la ligne */
  }

  .separateur-vertical::after {
    right: auto;
    top: auto;
    bottom: 0;               /* collé en bas de la col */
    left: 50%;               /* centré horizontalement */
    transform: translateX(-50%);
    width: 160px;             /* longueur du trait */
    height: 4px;             /* épaisseur */
  }
}
/* /////////////////////////////////////////////////////// */


/*  */
.menu.menu-classique .nav {
  background: rgba(255, 255, 255, 0.9);
}


.SoumissionNomClient {
  padding-left: 140px;
}