/* =========================================================
   LAYOUT GLOBAL – CABINET DENTAIRE
   Design premium – sobre – médical
   ========================================================= */

/* CONTAINERS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-light {
  background: #f6f8f8;
}

.section-accent {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav {
  display: flex;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .burger {
    display: block;
  }
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    linear-gradient(rgba(28,105,141,0.85), rgba(28,105,141,0.85)),
    url("/assets/img/hero.jpg") center / cover no-repeat;
  color: #ffffff;
  padding: 120px 20px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-surtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 15px 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero-phone {
  margin-top: 15px;
  font-size: 0.9rem;
}

/* =========================================================
   GRIDS
   ========================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: #ffffff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 0;
}

/* =========================================================
   TEXT
   ========================================================= */
.lead {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.contact-list li {
  margin-bottom: 10px;
}

/* =========================================================
   LINKS & BUTTONS
   ========================================================= */
.link {
  display: inline-block;
  margin-top: 10px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.btn-primary {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 34px;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-outline {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 34px;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
}

/* =========================================================
   MAP
   ========================================================= */
.map-wrapper iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 14px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #0f3d3e;
  color: #ffffff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.footer-hours li {
  margin-bottom: 4px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  .main-nav ul {
    gap: 20px;
  }
}

/* =========================================================
   MENU MOBILE
   ========================================================= */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: var(--primary);
  transition: 0.3s;
}

/* MOBILE */
@media (max-width: 900px) {

  .burger {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
}

/* =========================================================
   BOUTON APPELER FLOTTANT
   ========================================================= */

.call-float {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary);
  color: red;
  padding: 14px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* MOBILE UNIQUEMENT */
@media (max-width: 900px) {
  .call-float {
    display: block;
  }
}

/* =========================================================
   BANNIÈRE COOKIES RGPD – AVANCÉE
   ========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f3d3e;
  color: white;
  padding: 20px;
  z-index: 3000;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-actions button {
  background: white;
  color: #0f3d3e;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  margin-left: 10px;
}

.cookie-preferences {
  display: none;
  background: #ffffff;
  color: #333;
  padding: 20px;
  margin-top: 15px;
  border-radius: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-preferences label {
  display: block;
  margin-bottom: 10px;
}

.cookie-preferences button {
  margin-top: 10px;
  background: var(--secondary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 900px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions button {
    margin-left: 0;
  }
}


/* =========================================================
   ANIMATIONS DISCRÈTES
   ========================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
