/**
 * Footer — liens réels, section Partenaires, mentions légales
 */

.site-footer {
  --footer-bg: #f1f3f6;
  --footer-text: #0f172a;
  --footer-muted: #64748b;
  --footer-link: #475569;
  --footer-link-hover: #2563eb;
  --footer-accent: #fbbf24; /* “tournesol” */
  --footer-border: rgba(15, 23, 42, 0.12);

  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: auto;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top: brand + colonnes */
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 2rem;
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
  }
}

.site-footer__brand {
  max-width: 360px;
}

.site-footer__logo-link {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.site-footer__logo-img {
  height: 54px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--footer-muted);
  margin: 0;
}

.site-footer__rdv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-footer__rdv-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.site-footer__contact {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer__contact-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--footer-link);
}

.site-footer__contact-ico {
  width: 20px;
  height: 20px;
  color: var(--footer-link-hover);
  margin-top: 0.1rem;
}

.site-footer__contact-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.site-footer__contact a {
  color: inherit;
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.15fr 1fr 1.6fr 1.15fr;
  }
}

.site-footer__title {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--footer-text);
  margin: 0 0 1rem;
}

.site-footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 20px;
  height: 4px;
  background: var(--footer-accent);
  border-radius: 999px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 0.5rem;
}

.site-footer__list a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer__list a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

.site-footer__muted {
  margin: 0 0 0.75rem;
  color: var(--footer-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.site-footer__muted--small {
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

.site-footer__newsletter-row {
  display: flex;
  gap: 0.5rem;
}

.site-footer__newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--footer-border);
  border-radius: 10px;
  background: #fff;
  color: var(--footer-text);
  outline: none;
}

.site-footer__newsletter input[type="email"]:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.site-footer__newsletter button {
  height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.45);
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.site-footer__newsletter button:hover {
  background: #1d4ed8;
}

.site-footer__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Réseaux sociaux (ligne d’icônes) */
.site-footer__social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--footer-border);
}

.site-footer__social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--footer-border);
  background: #fff;
  color: var(--footer-link);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-footer__social-link:hover {
  color: var(--footer-link-hover);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.site-footer__social-link svg {
  width: 20px;
  height: 20px;
}

/* Partenaires */
.site-footer__partenaires {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--footer-border);
}

.site-footer__partenaires-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--footer-text);
  margin: 0 0 1rem;
  text-align: center;
}

.site-footer__partenaires-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.site-footer__partenaire {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--footer-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-footer__partenaire:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.site-footer__partenaire img {
  max-height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  vertical-align: middle;
}

@media (min-width: 640px) {
  .site-footer__partenaire img {
    max-height: 72px;
    max-width: 200px;
  }
}

/* Bottom: mentions + confidentialité */
.site-footer__bottom {
  padding: 1rem 0;
  border-top: 1px solid var(--footer-border);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}

.site-footer__bottom-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.site-footer__bottom-inner a {
  color: var(--footer-muted);
  text-decoration: none;
}

.site-footer__bottom-inner a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

.site-footer__sep {
  color: var(--footer-muted);
  user-select: none;
}

.site-footer__copyright {
  margin: 0;
  color: var(--footer-muted);
  text-align: center;
}

@media (max-width: 420px) {
  .site-footer__newsletter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__newsletter button {
    width: 100%;
  }
}

/* ===========================
   Modal “Prendre rendez-vous”
   =========================== */

.rdv-modal-open body {
  overflow: hidden;
}

.rdv-modal[hidden] {
  display: none !important;
}

.rdv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.rdv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
}

.rdv-modal__dialog {
  position: relative;
  margin: 4.5rem auto 2rem;
  width: min(980px, calc(100% - 2rem));
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  overflow: hidden;
}

.rdv-modal__close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rdv-modal__close i {
  font-size: 20px;
}

.rdv-modal__header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0));
}

.rdv-modal__title {
  margin: 0 3rem 0.35rem 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.rdv-modal__subtitle {
  margin: 0;
  color: #475569;
  line-height: 1.35;
  font-size: 0.95rem;
}

.rdv-modal__subtitle i {
  margin-right: 0.4rem;
  color: #2563eb;
}

.rdv-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.rdv-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .rdv-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.rdv-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.rdv-card__title {
  margin: 0 0 0.75rem;
  font-weight: 900;
  font-size: 1rem;
}

.rdv-card__title i {
  margin-right: 0.5rem;
  color: #2563eb;
}

.rdv-card__hint {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

.rdv-two {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 620px) {
  .rdv-two {
    grid-template-columns: 1fr 1fr;
  }
}

.rdv-field--tags .rdv-label {
  font-weight: 900;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.rdv-field--tags .rdv-label i {
  margin-right: 0.45rem;
  color: #2563eb;
}

.rdv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rdv-tag {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.rdv-tag i {
  color: #2563eb;
}

.rdv-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.rdv-tag--active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rdv-details {
  margin-top: 0.85rem;
  border: 1px dashed rgba(15, 23, 42, 0.22);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.02);
}

.rdv-details__summary {
  cursor: pointer;
  font-weight: 900;
  color: #334155;
  list-style: none;
}

.rdv-details__summary::-webkit-details-marker {
  display: none;
}

.rdv-details__summary i {
  margin-right: 0.45rem;
  color: #2563eb;
}

.rdv-details__body {
  margin-top: 0.75rem;
}

.rdv-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.rdv-date {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.rdv-date i {
  color: #2563eb;
}

.rdv-date--active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rdv-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.rdv-field label {
  font-weight: 800;
  font-size: 0.9rem;
  color: #334155;
}

.rdv-field input,
.rdv-field select,
.rdv-field textarea {
  height: 42px;
  padding: 0 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  outline: none;
  font-size: 0.95rem;
}

.rdv-field textarea {
  height: auto;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}

.rdv-field input:focus,
.rdv-field select:focus,
.rdv-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.rdv-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0.85rem;
}

.rdv-fieldset legend {
  font-weight: 900;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.rdv-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.8rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: #334155;
  font-size: 0.95rem;
}

.rdv-extras {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.rdv-extra {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #334155;
  font-size: 0.92rem;
}

.rdv-slots__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .rdv-slots__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rdv-slot {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: #334155;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rdv-slot i {
  margin-right: 0.5rem;
  color: #2563eb;
}

.rdv-slot:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.rdv-slot--active {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rdv-error {
  margin: 0.75rem 0 0;
  color: #b91c1c;
  font-weight: 800;
}

.rdv-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.rdv-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.45);
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.rdv-primary:hover {
  background: #1d4ed8;
}

.rdv-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #334155;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.rdv-secondary:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.rdv-confirm {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.2);
}

.rdv-confirm__title {
  margin: 0 0 0.35rem;
  font-weight: 900;
}

.rdv-confirm__text {
  margin: 0 0 0.75rem;
  color: #475569;
}

.rdv-confirm__buttons {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 520px) {
  .rdv-confirm__buttons {
    grid-template-columns: 1fr 1fr;
  }
}

.rdv-confirm__small {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}

.rdv-wa {
  display: inline-flex;
  font-weight: 900;
  color: #16a34a;
  text-decoration: none;
}

.rdv-wa:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .rdv-modal__dialog {
    margin-top: 2.75rem;
  }
}
