/* ==================== VARIABLES GLOBALES ==================== */
:root {
  --primary-color: #2b6777;
  --primary-color-hover: #1e4f5e;
  --secondary-color: #c8d8e4;
  --tertiary-color: #f2f2f2;
  --text-color: #333;
  --hover-color: #b08e56;
  --white: #fff;
  --black: #000;
  --font-family: "Lora", serif;
}

/* ==================== BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: var(--white);
  line-height: 1.6;
}
h2,
h3 {
  color: var(--primary-color);
}
h2 {
  font-size: 2.4rem;
}
h3 {
  font-size: 1.6rem;
}
p {
  font-size: 1.2rem;
}

/* ==================== BOUTONS/CTA ==================== */
.cta-container {
  margin-left: 20px;
  padding-right: 40px;
}
.cta-button {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.cta-button:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== HEADER ==================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.logo {
  height: 80px;
}
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-links a {
  font-weight: 600;
  padding: 10px 15px;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--hover-color);
}
.header .cta-button {
  color: var(--white);
}
/* ==================== BURGER ==================== */
/* Burger menu – Hidden desktop */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.burger span {
  height: 3px;
  width: 25px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation du burger (croix) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
/* ==================== HERO ==================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--tertiary-color);
}
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-content {
  z-index: 2;
}
.hero-title {
  font-size: 4rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content .cta-button {
  margin-top: 1.5rem;
  display: inline-block;
}
.hero-content h3 {
  color: #031111;
}
/* ==================== SERVICES ==================== */
.services-section {
  text-align: center;
  padding: 60px 5%;
  background: #f8f8f8;
}
.services-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.service-card {
  background: white;
  padding: 20px;
  width: 260px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}
.service-card img {
  height: 60px;
  margin-bottom: 15px;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.service-text {
  max-height: 4.7em; /* ≈ 4 lignes */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.toggle-button {
  color: var(--hover-color);
  cursor: pointer;
  font-style: italic;
  margin-top: 0.5em;
  display: inline-block;
}
.service-text.expanded {
  max-height: 1000px;
}

/* ==================== SPECIALITES ==================== */
/* Section specialities */
.specialites-section {
  text-align: center;
  padding: 60px 5%;
  background: #f4f4f4;
}
.specialites-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.specialite-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 260px;
  transition: all 0.3s ease;
}
.specialite-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
/* ==================== ABOUT ==================== */
/* Section about */
.about-section {
  background: #f8f8f8;
  padding: 80px 10%;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center;
}
.about-text {
  flex: 1;
  min-width: 300px;
}
.about-image {
  flex: 1;
  text-align: center;
}
.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.about-image img:hover {
  transform: scale(1.05);
}
.about-content .cta-button {
  margin-top: 1.5rem;
  display: inline-block;
}
/* ==================== CONTACT ==================== */
/* Section contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
  padding: 2rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

/* ==================== INFOS PRATIQUES ==================== */
.horaires-tarifs {
  background-color: #f4f6f8;
  padding: 80px 5%;
  font-family: "Inter", sans-serif;
}

.horaires-tarifs .container {
  max-width: 1100px;
  margin: auto;
}

.horaires-tarifs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.bloc {
  flex: 1 1 48%;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.bloc:hover {
  transform: translateY(-3px);
}

.bloc h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2b6777;
}

.bloc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.bloc ul li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bloc p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.bloc em {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  .horaires-tarifs-grid {
    flex-direction: column;
  }

  .bloc {
    flex: 1 1 100%;
  }
}
/* ==================== FOOTER ==================== */
.site-footer {
  background-color: #1e1e1e;
  color: #eee;
  padding: 70px 5%;
  font-family: "Inter", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.footer-column address,
.footer-column p {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  color: #999;
}

.footer-bottom a {
  color: #76c5d6;
  text-decoration: none;
}
.footer-bottom p {
  font-size: 1rem;
}
.footer-bottom a:hover {
  color: #ffffff;
}
.phone-hidden,
.email-hidden {
  display: inline-block;
  cursor: pointer;
  color: #76c5d6;
  font-weight: 600;
  transition: color 0.3s ease;
}

.phone-hidden:hover,
.email-hidden:hover {
  color: #ffffff;
}
/* ==================== SCROLL TOP ==================== */
/* Scroll arrow */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: scale(1.1);
  background: var(--primary-color-hover);
}
/* ==================== DROPDOWN ==================== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  padding: 10px 20px;
}
.dropdown-menu a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
}
.dropdown-menu a:hover {
  color: var(--primary-color);
}

/* ==================== MEDIA QUERY ==================== */
/* ==================== RESPONSIVE - MOBILES ==================== */
@media (max-width: 768px) {
  /* HEADER - Menu Burger */
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 20px 0;
    gap: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Ne pas afficher le CTA dans le header direct */
  .header .cta-container {
    display: none;
  }

  /* Réactiver le CTA dans le menu */
  .nav-links .cta-container {
    display: block;
    margin-top: 10px;
  }

  .nav-links .cta-button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 0.95rem;
    width: auto;
    text-align: center;
  }

  /* HERO */
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-content h3 {
    font-size: 1.1rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content {
    padding: 0 20px;
  }

  /* CARDS FULL WIDTH */
  .service-card,
  .specialite-card {
    width: 100%;
  }

  /* ABOUT FLEX => COLUMN */
  .about-content {
    flex-direction: column;
  }

  /* FOOTER EN COLONNE */
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-column {
    width: 100%;
  }

  /* BOUTON SCROLL */
  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}
/* ====================  a reflechir ==================== */

.section {
  padding: 60px 20px;
  text-align: center;
  margin: 20px 0;
}

/* ==================== LEGAL PAGES ==================== */
.legal-wrapper {
  max-width: 900px;
  margin: 100px auto 60px;
  padding: 0 5%;
  font-family: var(--font-family, "Lora", serif);
  color: var(--text-color, #333);
  line-height: 1.8;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.legal-logo img {
  max-height: 70px;
}

.back-link {
  display: inline-block;
  background: var(--primary-color, #2b6777);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: var(--hover-color);
}

.legal-wrapper h1 {
  font-size: 2.2rem;
  color: var(--primary-color, #2b6777);
  margin-bottom: 1rem;
}

.legal-wrapper h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-wrapper p,
.legal-wrapper li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.legal-wrapper ul {
  padding-left: 20px;
  list-style-type: disc;
}

.legal-wrapper a {
  color: var(--hover-color, #b08e56);
  text-decoration: underline;
}

.legal-wrapper a:hover {
  color: var(--primary-color-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .legal-logo img {
    max-height: 60px;
  }

  .back-link {
    width: 100%;
    text-align: center;
  }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #000;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 9999;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #0077cc;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions button {
  padding: 0.5rem 1rem;
  border: none;
  background: #0077cc;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
}

.cookie-actions button:hover {
  background: #005fa3;
}

/* ==================== 404 ==================== */

.error-container {
  max-width: 600px;
  margin: auto;
}
.error-container h1 {
  font-size: 5rem;
  color: #e74c3c;
}
.error-container p {
  font-size: 1.2rem;
}
.error-container a {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}
.error-container a:hover {
  background-color: #c0392b;
}
