/* ============================================
   CABINET LEMAIRE — Components
   ============================================ */

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__logo svg {
  height: 44px;
  width: auto;
  transition: var(--transition);
}

.navbar__logo .logo-text,
.navbar__logo .logo-sub {
  transition: fill var(--transition);
}

.navbar.scrolled .navbar__logo .logo-text {
  fill: var(--primary);
}

.navbar.scrolled .navbar__logo .logo-sub {
  fill: var(--secondary);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link:hover {
  color: var(--accent);
}

.navbar.scrolled .navbar__link {
  color: var(--text-primary);
}

.navbar.scrolled .navbar__link:hover {
  color: var(--accent);
}

.navbar__cta {
  margin-left: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--primary);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 20px;
  line-height: 1.7;
}

.footer__brand .logo-footer {
  height: 40px;
}

.footer__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item a:hover {
  color: var(--accent);
}

.footer__hours-table {
  font-size: 0.9rem;
}

.footer__hours-table div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.footer__hours-table span:first-child {
  color: rgba(255, 255, 255, 0.6);
}

.footer__hours-table span:last-child {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a:hover {
  color: var(--accent);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

/* --- Floating Buttons --- */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  color: var(--white);
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.floating-btn--rdv {
  background: var(--accent);
}

.floating-btn--phone {
  background: var(--secondary);
}

.floating-btn--top {
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.floating-btn--top.visible {
  opacity: 1;
  visibility: visible;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

/* --- Testimonial Slider --- */
.slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.slider__track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider__slide {
  min-width: 100%;
  padding: 0 16px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.testimonial-card__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-card__stars svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  fill: var(--accent);
}

.testimonial-card__text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-card__role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.slider__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slider__dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.slider__arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.slider__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--bg-alt);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--primary);
}

.slider__arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.slider__arrow svg {
  width: 20px;
  height: 20px;
}

/* --- Counter --- */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.counter-item {
  padding: 32px 16px;
}

.counter-item__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-item__label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Accordion/FAQ --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--bg-alt);
}

.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.accordion__header:hover {
  color: var(--primary);
}

.accordion__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--accent);
}

.accordion__item.open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__content {
  padding: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Maps --- */
.map-container {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* --- Table --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.table thead {
  background: var(--primary);
  color: var(--white);
}

.table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.95rem;
}

.table tbody tr:hover {
  background: var(--bg-alt);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group label .required {
  color: #e74c3c;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #e74c3c;
}

.form-error {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(122, 158, 126, 0.1);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-btn);
  color: var(--secondary);
  text-align: center;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

/* --- Gallery Masonry --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { height: 100%; }

/* --- Info Box --- */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.info-box__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 58, 92, 0.08);
  border-radius: 10px;
  color: var(--primary);
}

.info-box__icon svg {
  width: 22px;
  height: 22px;
}

.info-box__content h4 {
  margin-bottom: 4px;
}

.info-box__content p {
  font-size: 0.9rem;
  margin: 0;
}

/* --- Soin Alternating Sections --- */
.soin-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.soin-section--reverse .soin-section__image {
  order: 2;
}

.soin-section__image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.soin-section__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.soin-section__content {
  padding: 20px 0;
}

.soin-section__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  margin-bottom: 24px;
  color: var(--white);
}

.soin-section__icon svg {
  width: 32px;
  height: 32px;
}

.soin-section__list {
  margin: 20px 0;
}

.soin-section__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.soin-section__list li svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  flex-shrink: 0;
}

.soin-section__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
}

.soin-section__meta svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.soin-section__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

/* --- Team Card --- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-card__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-card__body {
  padding: 28px;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-card__title {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.team-card__bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.team-card__rpps {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* --- Équipement Grid --- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.equipment-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.equipment-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  color: var(--white);
}

.equipment-item__icon svg {
  width: 24px;
  height: 24px;
}

.equipment-item__text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.equipment-item__text p {
  font-size: 0.85rem;
  margin: 0;
}

/* --- Remboursement Flow --- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.flow__step {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 180px;
}

.flow__step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 12px;
}

.flow__step h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.flow__step p {
  font-size: 0.85rem;
  margin: 0;
}

.flow__arrow {
  color: var(--accent);
  flex-shrink: 0;
}

.flow__arrow svg {
  width: 24px;
  height: 24px;
}

/* --- Contact Info Box --- */
.contact-info {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 58, 92, 0.08);
  border-radius: 10px;
  color: var(--primary);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info__text p,
.contact-info__text a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-info__text a:hover {
  color: var(--accent);
}

/* --- Doctolib Button --- */
.btn--doctolib {
  background: #107ACA;
  color: var(--white);
  border-color: #107ACA;
  font-size: 1rem;
  padding: 16px 32px;
  width: 100%;
  justify-content: center;
}

.btn--doctolib:hover {
  background: #0d6ab8;
  border-color: #0d6ab8;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Hours Table (Contact) --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.9rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-secondary);
}

/* --- Legal Page --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-alt);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-content ul {
  margin: 12px 0 20px 20px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 6px;
}
