/**
 * formulaire-theme.css
 * Thème visuel commun aux 3 formulaires publics.
 * Inspiré de devis.defis-pirate.com
 * À charger en plus du default.css de chaque module formulaire.
 */

/* ============================================================
   VARIABLES
   (redéfinies ici pour être autonome si nécessaire)
   ============================================================ */
:root {
  --bg-color: #141618;
  --text-color: #fff;
  --or: #938372;
  --jaune: goldenrod;
  --white: #fff;
  --panel-light: #ccc;
  --panel-dark: #1e2022;
  --radius: 0.75rem;
}

/* ============================================================
   BASE
   ============================================================ */
:root {
  --rose-pale: #ffe4e1;
  --marron: #540404;
}

html {
  background-color: var(--bg-color);
  color: var(--text-color) !important;
}

/* ============================================================
   ENTÊTE / BANDEAU
   ============================================================ */
#accueil {
  position: relative;
  min-height: 100vh;
}
#logo-fixed-background {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}

#logo-fixed-background img {
  width: 50vw;
  max-width: 600px;
  height: auto;
}

main {
  background-color: rgba(245, 192, 203, 0.7);
  padding: 0px;
  position: relative;
  z-index: 1;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.1em;
}

/** ENTETE */
#bandeau-hero {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  margin-bottom: 2rem;
}

#bandeau-hero .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75vh;
  z-index: 1;
}

#bandeau-hero .hero-image img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  object-position: center;
}

#bandeau-hero .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#bandeau-hero .texte-intro {
  color: #000;
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  background-color: var(--rose-pale);
  border-radius: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#bandeau-hero .texte-intro h1 {
  color: #000;
  font-size: 2rem !important;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

@media screen and (max-width: 450px) {
  #bandeau-hero .texte-intro h1 {
    margin-top: 50px;
  }
}

#contact-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#contact-buttons .button {
  margin: 0.5rem;
}
#contact-buttons a:first-of-type {
  background-color: #420303;
  border-color: #420303;
  color: #fff;
}

@media screen and (max-width: 1125px) {
  #bandeau {
    display: block;
  }

  #bandeau > div {
    max-width: 100%;
  }

  #bandeau > div:last-of-type img {
    display: none;
  }

  #titre-logo {
    width: 100%;
  }

  #logo img {
    width: 10vh;
  }
}

/* ============================================================
TITRES DE SECTIONS
============================================================ */
.titre_formule {
  width: 100%;
  text-align: center;
  font-size: 1.75em;
  margin-top: 2rem;
  color: var(--marron);
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.1em;
  color: var(--white);
}

/* ============================================================
SECTIONS CLAIRES (coordonnées, activité)
============================================================ */
#societe,
#activite {
  padding: 1rem;
  margin: -0.75rem;
  color: var(--bg-color);
}

#societe .label,
#societe label,
#activite .label,
#activite label {
  color: var(--bg-color) !important;
}

/* ============================================================
SECTIONS OPTIONS / RESTAURATION
============================================================ */
#options,
#restauration {
  background-color: var(--panel-light);
  color: var(--bg-color);
}

#options label,
#restauration label {
  font-weight: bolder;
}

/* ============================================================
PAVÉS OPTIONS
============================================================ */
.pave_options {
  background-color: var(--marron);
  color: white;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: var(--radius);
}

.pave_options header {
  font-weight: bolder;
}

.pave_options li {
  margin-top: 0.75rem;
}

.pave_options table td {
  vertical-align: middle;
}

.pave_options .formule {
  color: var(--bg-color) !important;
}

.gris {
  background-color: var(--panel-light);
  color: var(--bg-color) !important;
  border: 1px solid var(--bg-color) !important;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.gris .checkbox,
.gris label {
  color: var(--bg-color) !important;
}

.checkbox:hover,
.radio:hover {
  color: var(--or) !important;
}
/* ============================================================
   SECTION PRIVATISATION
   ============================================================ */

.section-marron h2 {
  color: var(--marron);
  text-shadow:
    2px 2px 6px rgba(255, 255, 255, 0.9),
    -1px -1px 4px rgba(255, 255, 255, 0.7);
  font-weight: bold;
}

.section-marron .label {
  color: #fff !important;
  font-weight: bolder;
}

/* ============================================================
CARTES FORMULES (restauration, animations, goodies…)
============================================================ */
.type_de_formule {
  display: flex;
  flex-wrap: wrap;
}
/**==================
    RESTAURATION
===================*/
.titre_formule {
  width: 100%;
  text-align: center;
  font-size: 1.75em;
  margin-top: 2rem;
  color: var(--marron);
}

.type_de_formule {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.formule {
  margin: 0;
  box-sizing: border-box;
  width: calc(50% - 0.75rem);
}

/* Disposition horizontale pour les formules */
.formule-horizontal {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: transparent;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Formule normale : visuel à gauche, menu à droite */
.formule-normal {
  flex-direction: row;
}

/* Formule inverse : menu à gauche, visuel à droite */
.formule-inverse {
  flex-direction: row-reverse;
}

/* Visuel de la formule */
.formule-visuel {
  position: relative;
  width: 40%;
  background-color: transparent;
}

.formule-visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fondu entre le visuel et les détails */
.formule-visuel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--rose-pale));
  pointer-events: none;
  z-index: 1;
}

.formule-checkbox {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(20, 20, 20, 0.75);
  color: #fff !important;
  min-height: 8vh;
  width: 100%;
  text-align: center;
  padding: 1rem 2rem;
  margin: 0;
  z-index: 2;
}

.formule-checkbox strong {
  color: #fff !important;
  text-shadow: 1px 1px 5px #000;
}

/* Détails de la formule */
.formule-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
  padding: 2rem;
  padding-bottom: calc(8vh + 2rem);
  background-color: var(--rose-pale);
  position: relative;
}

/* Fondu du côté gauche du menu */
.formule-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--rose-pale));
  pointer-events: none;
  z-index: 0;
}

.formule-details ul {
  list-style: none;
  padding: 0;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.formule-details li {
  text-align: left;
  margin-bottom: 0.5rem;
  padding-left: 0;
  color: var(--bg-color);
}

/* Responsive pour tablettes */
@media screen and (max-width: 1024px) {
  .formule {
    width: 100%;
  }
}

/* Responsive pour mobile */
@media screen and (max-width: 769px) {
  .formule-horizontal {
    flex-direction: column !important;
  }

  .formule-visuel {
    width: 100% !important;
    min-height: 250px;
  }

  .formule-visuel::after {
    display: none;
  }

  .formule-details {
    width: 100% !important;
    padding: 1.5rem;
    padding-bottom: calc(8vh + 1.5rem);
  }

  .formule-details::before {
    display: none;
  }

  .formule-checkbox {
    padding: 0.75rem 1rem;
    min-height: 60px;
  }

  .type_de_formule {
    gap: 1rem;
  }

  .titre_formule {
    font-size: 1.5em;
    margin-top: 1.5rem;
  }
}

/** SALLE DE SEMINAIRE */
#section-salle-seminaire {
  position: relative;
  padding: 2rem;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--rose);
  z-index: 2;
}

#section-salle-seminaire h2 {
  color: var(--marron);
  text-shadow:
    2px 2px 6px rgba(255, 255, 255, 0.9),
    -1px -1px 4px rgba(255, 255, 255, 0.7);
  font-weight: bold;
}

#section-salle-seminaire::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../../assets/images/seminaire.png");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

#section-salle-seminaire > * {
  position: relative;
  z-index: 1;
}

#section-salle-seminaire .pave_options {
  background-color: var(--marron);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 0.5rem;
}

#section-salle-seminaire label,
#section-salle-seminaire .label,
#section-salle-seminaire li,
#section-salle-seminaire header,
#section-salle-seminaire i {
  color: white !important;
}

#section-salle-seminaire input[type="time"],
#section-salle-seminaire input[type="radio"],
#section-salle-seminaire input[type="text"],
#section-salle-seminaire input[type="number"],
#section-salle-seminaire select {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--marron);
}

#section-salle-seminaire input[type="radio"],
#section-salle-seminaire input[type="checkbox"] {
  cursor: pointer;
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  filter: brightness(1.2);
}

#section-salle-seminaire input[type="radio"]:hover,
#section-salle-seminaire input[type="checkbox"]:hover {
  transform: scale(1.15);
}

/* Bloc nombre de convives restauration */
#div-ajout-restauration .box-convives {
  display: inline-block;
  background-color: var(--marron);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
}

#div-ajout-restauration .box-convives,
#div-ajout-restauration .box-convives strong {
  color: white;
}

#div-ajout-restauration .box-convives p {
  margin-bottom: 0.75rem;
}

#div-ajout-restauration .box-convives .field-convives {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#div-ajout-restauration .box-convives input {
  width: 10rem;
  filter: brightness(1.5);
}

#section-salle-seminaire input[type="radio"]:checked,
#section-salle-seminaire input[type="checkbox"]:checked {
  border-color: white;
  filter: brightness(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

#section-salle-seminaire label.checkbox {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

#section-salle-seminaire label.checkbox:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#salle-seminaire {
  position: relative;
}

/* ============================================================
   ANIMATIONS & DIVERS
   ============================================================ */
.animation,
.divers_tva2 {
  display: inline-flex;
  justify-content: space-between;
}
.animation-item {
  display: flex;
  gap: 0;
  align-items: center;
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 32vh;
  background-color: var(--rose-pale);
}

.animation-visuel {
  position: relative;
  width: 40%;
  cursor: pointer;
}

.animation-details {
  display: flex;
  flex-direction: column;
  width: 60%;
  padding: 2rem;
}

.vignette_details {
  margin: 0 0 0 1rem;
  padding: 0 0.4rem 0 0;
  font-size: 0.9em;
  min-width: 75%;
}

.divers_tva2 {
  margin-right: 0.75rem;
  align-items: center;
}

.divers_tva2 .vignette_details {
  margin-left: 0;
}

@media screen and (max-width: 768px) {
  .animation,
  .divers_tva2 {
    flex-direction: column;
  }
}

/* ============================================================
   INPUTS
   ============================================================ */

.input {
  color: var(--bg-color) !important;
  border-radius: 0 !important;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--marron) !important;
  box-shadow: none;
  border-radius: 4px !important;
}

.input::placeholder {
  color: rgba(20, 22, 24, 0.7) !important;
}

input:focus:invalid {
  border: 1px solid #ff0000 !important;
}
button[name="saisies"] {
  background-color: var(--marron);
  color: #fff;
  font-weight: bolder;
  border: none;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

button[name="saisies"]:hover {
  background-color: #7a0606;
  color: #ffe4e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 4, 4, 0.4);
}

button[name="saisies"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(84, 4, 4, 0.3);
}

/**==================
      BOISSONS
===================*/
table.boissons {
  width: 100%;
  margin-top: 1rem;
}

table.boissons tr {
  background-color: rgba(255, 192, 203, 0.3);
}

table.boissons tr:nth-child(even) {
  background-color: rgba(255, 192, 203, 0.6);
}

table.boissons td {
  padding: 0.75rem;
  border: none;
}
table.boissons td label:first-of-type {
  color: #000;
}

table.boissons td:first-child {
  width: 70%;
}

table.boissons td:last-child {
  width: 30%;
  text-align: right;
}

table.boissons input {
  max-width: 80px;
}

/* ============================================================
   VICOPO (liste de villes)
   ============================================================ */
#liste_villes {
  position: absolute;
  display: block;
  z-index: 9;
  background-color: #eee;
  width: 100%;
  max-height: 25vh;
  overflow: auto;
  padding: 0 0.5vw;
  box-shadow: 0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.3);
}

#liste_villes a {
  display: block;
  padding: 2px;
  text-decoration: none;
  color: #334499;
}

#liste_villes a:hover {
  background: #ccd5f0;
}

/* ============================================================
   BOUTON ESTIMATIF
   ============================================================ */
button[name="saisies"] {
  background-color: var(--marron);
  color: #fff;
  font-weight: bolder;
  border: none;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

button[name="saisies"]:hover {
  background-color: #7a0606;
  color: #ffe4e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 4, 4, 0.4);
}
