/* Polices du pied de page (déjà chargées sur la plupart des pages, utiles sur les autres) */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400&family=Montserrat:wght@400&family=Playfair+Display&display=swap");

/* ================================================================= */
/* --- BANNIÈRE + PIED DE PAGE COMMUNS (Agence ALHEIA) ---           */
/* Chargé APRÈS le <style> de chaque page : ces règles font foi.     */
/* ================================================================= */

/* ----------------------------------------------------------------- */
/* --- BANNIÈRE : fond marron toujours lisible, même sur fond blanc  */
/* ----------------------------------------------------------------- */
.site-nav::before {
  background-color: rgba(59, 42, 32, 0.9);
}

/* Liens du menu et bouton "Demander un devis" : même pilule,
   même hauteur, mêmes marges intérieures, même animation */
@media (min-width: 969px) {
  .site-nav .nav-links a,
  .site-nav .btn-rdv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 50px;
    font-family: "Lato", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.35s ease, color 0.35s ease,
      border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  }
  .site-nav .nav-links a {
    border: 1px solid rgba(250, 247, 242, 0.22);
    background-color: rgba(250, 247, 242, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
  }
  .site-nav .nav-links li.active a {
    border-color: rgba(250, 247, 242, 0.55);
    background-color: rgba(250, 247, 242, 0.16);
    color: #fff;
    font-weight: 700;
  }
  .site-nav .btn-rdv {
    margin-left: 6px;
    border: 1px solid #faf7f2;
    background: #faf7f2;
    color: #3e2723 !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  /* Survol commun : la pilule se remplit de crème et se soulève */
  .site-nav .nav-links a:hover,
  .site-nav .nav-links li.active a:hover,
  .site-nav .btn-rdv:hover {
    border-color: #faf7f2;
    background-color: #faf7f2;
    color: #3e2723 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  }
  .site-nav .nav-links a:focus-visible,
  .site-nav .btn-rdv:focus-visible {
    outline: 2px solid rgba(212, 190, 158, 0.9);
    outline-offset: 2px;
  }
}
/* Écrans intermédiaires : pilules plus compactes, toujours identiques */
@media (min-width: 969px) and (max-width: 1100px) {
  .site-nav .nav-links a,
  .site-nav .btn-rdv {
    padding: 0 13px;
  }
}

/* Menu déroulant mobile : même marron que la bannière */
@media (max-width: 968px) {
  .site-nav .nav-links {
    background: rgba(59, 42, 32, 0.96);
  }
}

/* ----------------------------------------------------------------- */
/* --- PIED DE PAGE (beige, accents marron chaud)                   */
/* ----------------------------------------------------------------- */
.site-footer {
  margin: 0;
  padding: 88px 0 0;
  background-color: #f7f5f0;
  color: #6b5d52;
  font-family: "Lato", sans-serif;
  border-top: 1px solid #e5e0da;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Témoignages --- */
.footer-testimonials {
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid #e5e0da;
  text-align: center;
}
.footer-kicker {
  margin: 0 0 12px;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8c7b6c;
}
.footer-testimonials-title {
  margin: 0 0 40px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.25;
  color: #3b2a20;
}
.footer-testimonials-title em {
  font-style: italic;
  color: #8c5a4a;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}
.testimonials-grid[hidden] {
  display: none;
}
.testimonial-card {
  position: relative;
  margin: 0;
  padding: 40px 30px 28px;
  background-color: #fdfcf9;
  border: 1px solid #e5e0da;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: "Playfair Display", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(140, 90, 74, 0.35);
}
.testimonial-card blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.55;
  color: #3b2a20;
}
.testimonial-card figcaption {
  padding-top: 16px;
  border-top: 1px solid #e5e0da;
  font-size: 0.82rem;
  color: #8a7d72;
}
.testimonial-card figcaption strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  color: #3b2a20;
}
.testimonials-empty {
  max-width: 520px;
  margin: -16px auto 30px;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #6b5d52;
}
.testimonial-cta {
  padding: 0 0 4px;
  border: none;
  border-bottom: 1px solid rgba(59, 42, 32, 0.35);
  background: none;
  color: #3b2a20;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.testimonial-cta:hover {
  color: #8c5a4a;
  border-color: #8c5a4a;
}

/* --- Colonnes --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-tagline {
  margin: 4px 0 22px;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #3b2a20;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(59, 42, 32, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b2a20;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, transform 0.35s ease;
}
.footer-socials a:hover {
  border-color: #3b2a20;
  background-color: #3b2a20;
  color: #fdfcf9;
  transform: translateY(-2px);
}
.footer-title {
  margin: 8px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e0da;
  font-family: "Montserrat", "Lato", sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8c7b6c;
}
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list li {
  margin-bottom: 11px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #6b5d52;
}
.footer-list li i {
  width: 18px;
  margin-right: 8px;
  color: #8c5a4a;
  font-size: 0.8rem;
}
.footer-list a {
  color: #3b2a20;
  text-decoration: none;
  background-image: linear-gradient(#8c5a4a, #8c5a4a);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.3s ease, background-size 0.35s ease;
}
.footer-list a:hover {
  color: #8c5a4a;
  background-size: 100% 1px;
}

/* --- Bas de page : légal · signature · retour en haut --- */
.footer-bottom {
  margin-top: 64px;
  padding: 26px 0 30px;
  border-top: 1px solid #e5e0da;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  font-size: 0.8rem;
  color: #8a7d72;
}
.footer-bottom > * {
  flex: 1 1 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal a {
  color: #6b5d52;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-legal a + a::before {
  content: "|";
  margin: 0 12px;
  color: #d6cfc6;
}
.footer-legal a:hover {
  color: #8c5a4a;
}
.footer-signature {
  margin: 0;
  text-align: center;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3b2a20;
  white-space: nowrap;
}
.footer-signature span {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #8c5a4a;
}
.back-to-top-wrap {
  display: flex;
  justify-content: flex-end;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid #e5e0da;
  background-color: #fdfcf9;
  color: #3b2a20;
  font-family: "Lato", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, transform 0.35s ease;
}
.back-to-top:hover {
  border-color: #3b2a20;
  background-color: #3b2a20;
  color: #fdfcf9;
  transform: translateY(-2px);
}
.back-to-top:focus-visible,
.testimonial-cta:focus-visible,
.testimonial-submit:focus-visible,
.testimonial-close:focus-visible {
  outline: 2px solid #8c5a4a;
  outline-offset: 3px;
}

/* --- Fenêtre "Laisser votre témoignage" --- */
.testimonial-dialog {
  /* Centrage explicite : styles.css remet les marges à zéro */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 44px 40px 36px;
  box-sizing: border-box;
  border: 1px solid #e5e0da;
  border-radius: 20px;
  background-color: #fdfcf9;
  color: #3b2a20;
  font-family: "Lato", sans-serif;
  box-shadow: 0 30px 70px rgba(59, 42, 32, 0.3);
}
.testimonial-dialog::backdrop {
  background-color: rgba(43, 30, 25, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.testimonial-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e0da;
  background: #fdfcf9;
  color: #3b2a20;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.testimonial-close:hover {
  background-color: #3b2a20;
  color: #fdfcf9;
}
.testimonial-dialog-title {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 1.8rem;
}
.testimonial-dialog-title em {
  font-style: italic;
  color: #8c5a4a;
}
.testimonial-dialog-intro {
  margin: 0 0 24px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b5d52;
}
.testimonial-dialog form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.testimonial-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c7b6c;
}
.testimonial-dialog label small {
  text-transform: none;
  letter-spacing: 0;
}
.testimonial-dialog input[type="text"],
.testimonial-dialog input[type="email"],
.testimonial-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #e5e0da;
  border-radius: 10px;
  background-color: #f7f5f0;
  color: #3b2a20;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.testimonial-dialog textarea {
  resize: vertical;
}
.testimonial-dialog input:focus,
.testimonial-dialog textarea:focus {
  outline: none;
  border-color: #8c5a4a;
  background-color: #fff;
}
.testimonial-dialog .testimonial-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  color: #6b5d52;
}
.testimonial-consent input {
  margin-top: 3px;
  accent-color: #3b2a20;
}
.testimonial-submit {
  align-self: flex-start;
  margin-top: 6px;
  padding: 14px 30px;
  border: 1px solid #3b2a20;
  border-radius: 50px;
  background-color: #3b2a20;
  color: #fdfcf9;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s ease, transform 0.35s ease;
}
.testimonial-submit:hover {
  background-color: #5d4037;
  transform: translateY(-2px);
}
.testimonial-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.testimonial-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: #f1ede6;
  font-size: 0.88rem;
  color: #3b2a20;
}
.testimonial-status.is-error {
  color: #8a3b2a;
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  /* Témoignages : défilement horizontal (slider) sur tablette et mobile */
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
  }
  .testimonial-card {
    flex: 0 0 min(320px, 85%);
    scroll-snap-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom > * {
    flex: none;
  }
  .footer-legal {
    justify-content: center;
  }
  .footer-signature {
    order: -1;
  }
}
@media (max-width: 560px) {
  .site-footer {
    padding-top: 60px;
  }
  .footer-inner {
    padding: 0 20px;
  }
  .footer-testimonials {
    margin-bottom: 52px;
    padding-bottom: 52px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-list li i {
    margin-right: 6px;
  }
  .footer-signature {
    white-space: normal;
  }
  .footer-bottom {
    margin-top: 48px;
  }
  .testimonial-dialog {
    padding: 40px 22px 28px;
  }
  .testimonial-row {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------- */
/* --- PIED DE PAGE MARRON (toutes les pages) : textes clairs        */
/* ----------------------------------------------------------------- */
.site-footer--dark {
  background-color: #3b2a20 !important;
  color: #fdfcf9 !important;
  border-top: 1px solid rgba(212, 190, 158, 0.45);
}
.site-footer--dark .footer-brand-name,
.site-footer--dark .footer-list li,
.site-footer--dark .footer-list a,
.site-footer--dark .footer-legal a,
.site-footer--dark .footer-socials a {
  color: #fdfcf9 !important;
}
.site-footer--dark .footer-tagline,
.site-footer--dark .footer-title,
.site-footer--dark .footer-bottom,
.site-footer--dark .footer-bottom p {
  color: #e5e0da !important;
}
.site-footer--dark .footer-list li i {
  color: #d4be9e;
}
.site-footer--dark .footer-list a {
  background-image: linear-gradient(#e5e0da, #e5e0da);
}
.site-footer--dark .footer-list a:hover,
.site-footer--dark .footer-legal a:hover {
  color: #e5e0da !important;
}
.site-footer--dark .footer-title,
.site-footer--dark .footer-bottom {
  border-color: rgba(229, 224, 218, 0.22);
}
.site-footer--dark .footer-legal a + a::before {
  color: rgba(229, 224, 218, 0.4);
}
.site-footer--dark .footer-socials a {
  border-color: rgba(253, 252, 249, 0.3);
}
.site-footer--dark .footer-socials a:hover {
  border-color: #fdfcf9;
  background-color: #fdfcf9;
  color: #3b2a20 !important;
}

/* Nom de l'agence en tête de la première colonne */
.footer-brand-name {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
/* Bas de page : copyright à gauche, liens légaux à droite */
.site-footer--dark .footer-bottom > * {
  flex: none;
}
@media (max-width: 560px) {
  .site-footer--dark .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Version compacte : footer plus fin et discret --- */
.site-footer--dark {
  padding: 30px 0 0;
}
.site-footer--dark .footer-grid {
  gap: 32px;
}
.site-footer--dark .footer-brand-name {
  margin-bottom: 2px;
  font-size: 1.2rem;
}
.site-footer--dark .footer-tagline {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.35;
}
.site-footer--dark .footer-socials {
  gap: 8px;
}
.site-footer--dark .footer-socials a {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}
.site-footer--dark .footer-title {
  margin: 4px 0 10px;
  padding-bottom: 6px;
}
.site-footer--dark .footer-list li {
  margin-bottom: 4px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.site-footer--dark .footer-bottom {
  margin-top: 24px;
  padding: 12px 0 14px;
  font-size: 0.75rem;
}
@media (max-width: 968px) {
  .site-footer--dark .footer-grid {
    gap: 22px 28px;
  }
}
@media (max-width: 560px) {
  .site-footer--dark {
    padding-top: 26px;
  }
  .site-footer--dark .footer-bottom {
    margin-top: 20px;
    gap: 6px;
  }
}
/* ----------------------------------------------------------------- */
/* --- TÉMOIGNAGES : section autonome de la page d'accueil,          */
/* --- placée juste au-dessus du pied de page                        */
/* ----------------------------------------------------------------- */
.home-testimonials {
  padding: 110px 0 100px;
  background: linear-gradient(to bottom, #ffffff 0%, #fdfcf9 100%);
  border-top: 1px solid #e5e0da;
}
.home-testimonials .footer-testimonials {
  margin: 0;
  padding: 0;
  border: none;
}
.home-testimonials .footer-testimonials-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
}
.home-testimonials-divider {
  display: block;
  width: 50px;
  height: 1px;
  margin: 26px auto 36px;
  background-color: #c9b59a;
}
.home-testimonials .testimonials-empty {
  margin: 0 auto 34px;
  font-size: 1.3rem;
}
.home-testimonials .testimonials-grid {
  margin-bottom: 44px;
}
.home-testimonials .testimonial-card {
  background-color: #ffffff;
  box-shadow: 0 14px 34px rgba(59, 42, 32, 0.06);
}
/* Bouton : pilule marron fine, remplie au survol */
.home-testimonials .testimonial-cta {
  padding: 14px 32px;
  border: 1px solid #3b2a20;
  border-radius: 50px;
  font-size: 0.76rem;
  transition: background-color 0.4s ease, color 0.4s ease,
    transform 0.4s ease, box-shadow 0.4s ease;
}
.home-testimonials .testimonial-cta:hover {
  background-color: #3b2a20;
  color: #fdfcf9;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(59, 42, 32, 0.18);
}
@media (max-width: 560px) {
  .home-testimonials {
    padding: 80px 0 70px;
  }
}