/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Layout pour coller le footer en bas */
html,
body {
  height: 100%;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  display: flex;
  flex-direction: column;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.bodyContainer {
  padding-top: 6rem;
  padding-bottom: 2rem;
  position: relative;
  flex: 1; /* occupe tout l'espace disponible pour pousser le footer en bas */
}

/*=============== SECTIONS ===============*/
.hero, .services, .local, .cta {
  padding: 2rem 1rem;
  margin: 1rem auto;
  max-width: 900px;
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h1, .services h2, .local h2, .cta h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.hero p, .services p, .local p, .cta p, .services li {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.services ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.services li {
  margin-bottom: 0.5rem;
}

.cta a.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--black-color);
  color: var(--white-color);
  border-radius: 0.5rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta a.btn:hover {
  background-color: var(--black-color-light);
}

.hero + .services,
.services + .local,
.local + .cta {
  margin-top: 2rem;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

.wrapper {
  position: fixed;
  top: 100px;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }

  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }

  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }

  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}

/*=============== LAURA DRAGUEUSE ===============*/

.mode-drague {
  background-color: #400;
  color: #fceaea;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px #f33 inset;
}

/* Réponses de Laura */
.mode-drague .bubble-laura {
  background-color: #611;
  border-left: 4px solid #f55;
  padding: 10px;
  color: #fff0f0;
}

/* Questions utilisateur */
.mode-drague .bubble-user {
  background-color: #711;
  border-left: 4px solid #f88;
  padding: 10px;
  color: #fff0f0;
}

/* Zone de saisie */
.mode-drague textarea {
  border: 1px solid #c44;
  background-color: #733;
  color: #fff;
}

/* Bouton envoyer - style de base */
.mode-drague button[type="submit"] {
  border: 1px solid #c44;
  background-color: #733;
  color: #fff;
  padding: 5px 10px;
  box-shadow: 0 0 5px #0000; /* nécessaire pour activer animation */
  transition: all 0.2s ease-in-out;
}

/* Effet glow rouge au survol */
@keyframes glow {
  0%   { box-shadow: 0 0 5px #f66; }
  50%  { box-shadow: 0 0 20px #f33; }
  100% { box-shadow: 0 0 5px #f66; }
}

.mode-drague button[type="submit"]:hover {
  animation: glow 1s infinite;
  background-color: #944;
  color: #fff;
  cursor: pointer;
}

/* Optionnel : bouton reset */
.mode-drague button[name="reset"]:hover {
  box-shadow: 0 0 10px #f88;
  background-color: #a55;
  color: #fff;
  cursor: pointer;
}

/*=============== FORMULAIRE DE CONTACT ===============*/

/* Conteneur global du formulaire de contact */
.bodyContainer form[action="/contact/send"] {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  background-color: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Titre “Formulaire de contact” au-dessus du formulaire */
.bodyContainer > p,
.bodyContainer > h1,
.bodyContainer > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Confirmation de message envoyé (si tu utilises $confirmation) */
.bodyContainer p strong {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  color: #1b7c2f;
}

/* Labels */
.bodyContainer form[action="/contact/send"] label {
  display: block;
  font-weight: var(--font-semi-bold);
  color: #333;
  margin-bottom: .35rem;
}

/* Champs texte + email */
.bodyContainer form[action="/contact/send"] input[type="text"],
.bodyContainer form[action="/contact/send"] input[type="email"],
.bodyContainer form[action="/contact/send"] textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
  margin-bottom: 1rem;
}

/* Focus */
.bodyContainer form[action="/contact/send"] input[type="text"]:focus,
.bodyContainer form[action="/contact/send"] input[type="email"]:focus,
.bodyContainer form[action="/contact/send"] textarea:focus {
  border-color: var(--black-color);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
  background-color: #ffffff;
}

/* Textarea */
.bodyContainer form[action="/contact/send"] textarea {
  resize: vertical;
  min-height: 140px;
}

/* Bouton Envoyer */
.bodyContainer form[action="/contact/send"] button[type="submit"] {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 0.5rem;
  border: none;
  background-color: var(--black-color);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* Hover bouton */
.bodyContainer form[action="/contact/send"] button[type="submit"]:hover {
  background-color: var(--black-color-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Petit ajustement sur mobile */
@media screen and (max-width: 480px) {
  .bodyContainer form[action="/contact/send"] {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
  }
}

/*=============== FOOTER ===============*/

.footer {
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 2rem 1.5rem 1rem;
  margin-top: auto; /* colle le footer en bas si peu de contenu */
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__brand h2 {
  font-size: 1.3rem;
  margin-bottom: .3rem;
}

.footer__brand p {
  font-size: .9rem;
  color: #ddd;
}

.footer__columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__column h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
}

.footer__column ul li {
  font-size: .9rem;
  color: #ddd;
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.footer__column a {
  color: #f1f1f1;
}

.footer__column a:hover {
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
  padding-top: .75rem;
  text-align: center;
  font-size: .8rem;
  color: #ccc;
}

@media screen and (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer__columns {
    flex-direction: row;
    gap: 3rem;
  }
}
.text-center {
    display: block;
    text-align: center;
}
