/**
 * OPTIQUE HARKSEN - Desktop CSS
 * Styles desktop avec zoom global adaptatif selon résolution
 * ============================================
 */

/* ========================================
   SYSTÈME DE ZOOM GLOBAL ADAPTATIF
   Ajuste automatiquement selon la largeur d'écran
======================================== */

/* Base : écrans 1920px et plus */
html {
  font-size: 16px;
}

/* Écrans 4K et ultra-larges (2560px+) */
@media (min-width: 2560px) {
  html {
    font-size: 18px;
  }
}

/* Écrans très larges (3840px+ / 4K) */
@media (min-width: 3840px) {
  html {
    font-size: 22px;
  }
}

/* Écrans larges (1600-1919px) */
@media (max-width: 1919px) and (min-width: 1600px) {
  html {
    font-size: 15px;
  }
}

/* Écrans moyens (1440-1599px) */
@media (max-width: 1599px) and (min-width: 1440px) {
  html {
    font-size: 14.5px;
  }
}

/* Écrans standards (1280-1439px) */
@media (max-width: 1439px) and (min-width: 1280px) {
  html {
    font-size: 14px;
  }
}

/* Écrans compacts (1024-1279px) */
@media (max-width: 1279px) and (min-width: 1024px) {
  html {
    font-size: 13px;
  }
}

/* Petits écrans desktop / tablettes paysage (900-1023px) */
@media (max-width: 1023px) and (min-width: 900px) {
  html {
    font-size: 12px;
  }
}

/* ========================================
   BODY DESKTOP
======================================== */
body {
  font-size: 0.85rem;
}

/* ========================================
   HEADER DESKTOP
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background var(--duration-normal) ease, padding var(--duration-normal) ease;
}

.header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 1.8rem;
  width: auto;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.header.scrolled .header__logo img {
  opacity: 1;
}

.nav {
  display: flex;
  gap: 3rem;
}

.nav a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texte);
  transition: color var(--duration-normal) ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.nav__phone {
  display: none;
}

/* ========================================
   HERO DESKTOP
======================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 3rem;
  background: 
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(180, 195, 210, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(232, 210, 180, 0.6) 0%, transparent 60%),
    var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
}

/* Logo animé */
.hero__logo {
  width: clamp(180px, 28vw, 320px);
  aspect-ratio: 1;
  position: relative;
  margin-bottom: 1.5rem;
}

.hero__logo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: opacity, transform, filter;
}

/* Animations logo */
.hero__logo-img--1 {
  animation: eyeIn 1s var(--ease-out) 0.2s forwards,
             eyeOut 0.7s var(--ease-out) 1.5s forwards;
}

.hero__logo-img--2 {
  animation: glassesIn 0.8s var(--ease-out) 1.3s forwards,
             glassesOut 0.7s var(--ease-out) 2.5s forwards;
}

.hero__logo-img--3 {
  transform: scale(1.1);
  animation: logoIn 0.8s var(--ease-out) 2.8s forwards;
}

@keyframes eyeIn {
  0% { opacity: 0; transform: scale(0.92); filter: blur(10px); }
  100% { opacity: 0.7; transform: scale(1); filter: blur(0); }
}

@keyframes eyeOut {
  0% { opacity: 0.7; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.03); filter: blur(6px); }
}

@keyframes glassesIn {
  0% { opacity: 0; transform: scale(0.96); filter: blur(6px); }
  100% { opacity: 0.7; transform: scale(1); filter: blur(0); }
}

@keyframes glassesOut {
  0% { opacity: 0.7; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.02); filter: blur(4px); }
}

@keyframes logoIn {
  0% { opacity: 0; transform: scale(1.15); filter: blur(3px); }
  100% { opacity: 1; transform: scale(1.1); filter: blur(0); }
}

/* Brand */
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.3s forwards;
}

.hero__brand-optique {
  height: clamp(16px, 2vw, 24px);
  width: auto;
}

.hero__brand-harksen {
  height: clamp(40px, 6vw, 70px);
  width: auto;
}

/* Subtitle */
.hero__subtitle {
  font-size: 0.85rem;
  color: rgba(45, 52, 54, 0.75);
  margin-bottom: 3rem;
  white-space: nowrap;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.6s forwards;
}

.hero__subtitle span:not(:last-child)::after {
  content: '  ·  ';
}

/* Tagline animé */
.hero__tagline {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero__tagline-fixed {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(45, 52, 54, 0.6);
  opacity: 0;
  animation: taglineAppear 0.8s ease-out 1.9s forwards;
}

.hero__tagline-animated {
  position: relative;
  height: 1.3em;
  width: 100%;
}

.hero__tagline-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(45, 52, 54, 0.6);
  white-space: nowrap;
  opacity: 0;
}

.hero__tagline-text--1 {
  animation: taglineFade 3s ease-in-out 2.5s forwards;
}

.hero__tagline-text--2 {
  animation: taglineFadeStay 3s ease-in-out 5.5s forwards;
}

@keyframes taglineAppear {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes taglineFade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes taglineFadeStay {
  0% { opacity: 0; }
  10% { opacity: 1; }
  100% { opacity: 1; }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 4rem;
  right: 3rem;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(45, 52, 54, 0.6);
}

/* Boule animée */
.hero__ball {
  position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #cccccc;
  border-radius: 50%;
  opacity: 0;
  animation: ballDrop 5s ease-out 3s forwards;
}

@keyframes ballDrop {
  0% {
    opacity: 1;
    bottom: 15vh;
    width: 6px;
    height: 6px;
  }
  90% {
    width: 6px;
    height: 6px;
  }
  100% {
    opacity: 1;
    bottom: -5px;
    width: 10px;
    height: 10px;
  }
}

/* Section ball (demi-boule en haut) */
.section-ball {
  position: relative;
}

.section-ball::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #cccccc;
  border-radius: 50%;
  z-index: 10;
}

/* ========================================
   SECTIONS COMMUNES
======================================== */
.section {
  padding: 10rem 3rem;
  border-top: 1px solid var(--gray-light);
}

.section--dark {
  background: var(--black);
  color: var(--white);
  border-color: #222;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__header .section-title {
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   CTA CONSEIL
======================================== */
.cta-conseil {
  padding: 2.5rem 2rem;
  margin: 5rem 0;
  text-align: center;
  background: var(--white);
}

.cta-conseil__text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(45, 52, 54, 0.5);
  margin-bottom: 1.2rem;
}

.cta-conseil__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.cta-conseil__btn {
  padding: 0.6rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--duration-normal) ease;
  border: 1px solid rgba(45, 52, 54, 0.2);
  color: rgba(45, 52, 54, 0.6);
  background: transparent;
}

.cta-conseil__btn:hover {
  border-color: rgba(45, 52, 54, 0.4);
  color: var(--texte);
}

.cta-conseil__btn--mobile {
  display: none;
}

/* ========================================
   EXPERTISES - Grille 2x2
======================================== */
.expertises {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 3rem;
  background: var(--fond);
  border-top: 1px solid var(--chaleur);
}

.expertises__wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 54%;
  max-width: 810px;
  aspect-ratio: 16/10;
}

.expertise {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--chaleur);
  overflow: hidden;
  transition: background var(--duration-slow) ease, border-color var(--duration-slow) ease;
  cursor: pointer;
}

.expertise:hover {
  border-color: var(--principal-light);
}

.expertise:nth-child(1) {
  border-right: none;
  border-bottom: none;
  border-top-left-radius: var(--radius-xl);
}

.expertise:nth-child(2) {
  border-bottom: none;
  border-top-right-radius: var(--radius-xl);
}

.expertise:nth-child(3) {
  border-right: none;
  border-bottom-left-radius: var(--radius-xl);
}

.expertise:nth-child(4) {
  border-bottom-right-radius: var(--radius-xl);
}

.expertise__content {
  position: relative;
  color: var(--black);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expertise__number {
  display: none;
}

.expertise__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--texte);
}

.expertise__desc {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.7;
  color: rgba(45, 52, 54, 0.75);
  margin-bottom: 2rem;
  max-width: 350px;
  flex: 1;
}

.expertise__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte);
  transition: gap var(--duration-normal) ease, color var(--duration-normal) ease;
  margin-top: auto;
}

.expertise__link:hover {
  gap: 1rem;
  color: var(--accent);
}

.expertise__link::after {
  content: '→';
  transition: transform var(--duration-normal) ease;
}

.expertise__link:hover::after {
  transform: translateX(4px);
}

/* Ajustements taille expertise selon écran */
@media (max-width: 1280px) {
  .expertise__title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  }
  .expertise__desc {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
  }
}

@media (max-width: 1024px) {
  .expertises__wrapper {
    width: 80%;
    max-width: none;
  }
}

/* ========================================
   OFFRES - Tuiles vidéo
======================================== */
.offres {
  padding: 4rem 3rem;
  background: var(--fond);
}

.offres--single {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offres__titre {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--texte);
}

.offres__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.offres__grid--single {
  grid-template-columns: 1fr;
  max-width: 220px;
}

.offres__grid--trois {
  grid-template-columns: repeat(3, 224px);
  justify-content: center;
  max-width: 100%;
  gap: 1.5rem;
}

.offre-tile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 224px;
}

.offre-tile-wrapper__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--texte);
  margin-bottom: 0.75rem;
  text-align: center;
}

.offre-tile {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background: var(--texte);
  cursor: pointer;
  width: 100%;
}

.offre-tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  z-index: 1;
  display: block;
  background: var(--texte);
}

.offre-tile:hover .offre-tile__video {
  transform: scale(1.05);
}

.offre-tile--static:hover .offre-tile__video {
  transform: none;
}

.offres__legal {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(45, 52, 54, 0.7);
  margin-top: 1.5rem;
  font-style: italic;
}

.offres__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(45, 52, 54, 0.6);
  text-decoration: none;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--white);
  border: 1px solid rgba(45, 52, 54, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) ease;
}

.offres__link:hover {
  color: var(--texte);
  border-color: rgba(45, 52, 54, 0.3);
}

.offres__link-arrow {
  display: inline-block;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ========================================
   POURQUOI SECTION
======================================== */
.pourquoi {
  padding: 5rem 3rem;
  padding-top: 6rem;
  background: var(--chaleur);
  clip-path: ellipse(160% 100% at 50% 100%);
}

.pourquoi__content {
  max-width: 800px;
  margin: 0 auto;
}

.pourquoi__citation {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  text-align: center;
  color: var(--texte);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.pourquoi__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.pourquoi__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--texte);
}

.pourquoi__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--texte);
  font-weight: 600;
}

.pourquoi__reviews {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.review-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--chaleur);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-normal) ease;
}

.review-badge:hover {
  border-color: var(--texte);
}

.review-badge__icon {
  width: 20px;
  height: 20px;
}

.review-badge__stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: -0.05em;
}

.review-badge__stars .half-star {
  background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-badge__score {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--texte);
}

/* ========================================
   GALERIE MARQUES
======================================== */
.galerie {
  padding: 5rem 3rem;
  background: var(--fond);
}

.galerie__grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 880px;
  margin: 0 auto;
}

.galerie__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.galerie__row.visible {
  opacity: 1;
  transform: translateY(0);
}

.galerie__item {
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--off-white);
}

.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie__tagline {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texte);
  margin-top: 3rem;
}

.galerie__contact {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  font-style: italic;
  color: rgba(45, 52, 54, 0.7);
}

/* ========================================
   CHIFFRES
======================================== */
.numbers {
  display: flex;
  justify-content: center;
  gap: 8rem;
  padding: 6rem 3rem;
  border-top: 1px solid var(--principal-light);
  border-bottom: 1px solid var(--principal-light);
  background: rgba(227, 232, 237, 0.4);
}

.number {
  text-align: center;
}

.number__value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--principal);
}

.number__label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.6);
}

/* ========================================
   TÉMOIGNAGE
======================================== */
.testimonial {
  padding: 10rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--fond);
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 3rem;
  color: var(--texte);
}

.testimonial__author {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(45, 52, 54, 0.7);
}

/* ========================================
   STATEMENT
======================================== */
.statement {
  padding: 12rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--white);
}

.statement__text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  line-height: 1.5;
  max-width: 800px;
  color: var(--black);
}

.statement__text em {
  font-style: italic;
}

/* ========================================
   LOCALISATION
======================================== */
.localisation {
  display: flex;
  flex-direction: column;
  padding: 6rem 3rem;
  background: var(--fond);
}

.localisation > .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.localisation__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.localisation__content {
  padding-right: 2rem;
}

.localisation__address {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--texte);
  text-align: left;
  margin-bottom: 1rem;
}

.localisation__horaires {
  margin-top: 1.5rem;
}

.horaires__jour {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--texte);
}

.horaires__jour strong {
  color: var(--texte);
  font-weight: 500;
}

.horaires__ferme {
  opacity: 0.6;
}

.localisation__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 70%;
  margin-left: auto;
}

.localisation__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) ease;
}

.localisation__image:hover img {
  transform: scale(1.03);
}

.localisation__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-localiser {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--texte);
  border: 1px solid var(--chaleur);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  text-decoration: none;
}

.btn-localiser:hover {
  background: var(--texte);
  color: var(--white);
  border-color: var(--texte);
  transform: translateY(-2px);
}

.btn-localiser__icon {
  width: 18px;
  height: 18px;
}

/* Animation icône Street View */
button[data-modal="modal-streetview"] .btn-localiser__icon {
  animation: streetviewPulse 2s ease-in-out infinite;
}

@keyframes streetviewPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* ========================================
   RENDEZ-VOUS
======================================== */
.rdv {
  padding: 8rem 3rem;
  background: var(--fond);
}

.rdv__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.rdv-card {
  background: var(--white);
  border: 1px solid var(--chaleur);
  border-radius: var(--radius-xl);
  padding: 3rem;
  transition: all var(--duration-normal) ease;
}

.rdv-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.rdv-card__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
}

.rdv-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--texte);
}

.rdv-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--texte);
}

.rdv-card__desc {
  font-size: 0.95rem;
  color: rgba(45, 52, 54, 0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.rdv-card__list {
  list-style: none;
  margin-bottom: 2rem;
}

.rdv-card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: rgba(45, 52, 54, 0.75);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.rdv-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  background: var(--texte);
  border-radius: 50%;
}

.rdv-card__cta {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--principal);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.rdv-card__cta:hover {
  background: var(--principal-dark);
  transform: translateY(-2px);
}

.rdv-card--alt .rdv-card__cta {
  background: var(--texte);
}

/* ========================================
   HISTOIRE
======================================== */
.histoire {
  padding: 6rem 3rem;
  padding-top: 7rem;
  background: var(--chaleur);
  color: var(--texte);
  clip-path: ellipse(160% 100% at 50% 100%);
}

.histoire__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.histoire__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(45, 52, 54, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   CONTACT
======================================== */
.contact {
  padding: 10rem 3rem;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

.contact > .section-title {
  text-align: center;
  margin-bottom: 4rem;
}

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

.contact__block {
  margin-bottom: 2rem;
}

.contact__block-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(45, 52, 54, 0.6);
  margin-bottom: 0.5rem;
}

.contact__block-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--texte);
}

.contact__block-value a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form__submit {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--principal);
  border: none;
  cursor: pointer;
  transition: background var(--duration-normal) ease;
}

.form__submit:hover {
  background: var(--principal-dark);
}

/* ========================================
   FOOTER
======================================== */
.footer {
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fond);
  border-top: 1px solid var(--principal-light);
  font-size: 0.65rem;
  color: var(--texte);
}

.footer__logo {
  height: 16px;
  width: auto;
  opacity: 0.6;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--texte);
  opacity: 0.5;
  transition: opacity var(--duration-normal) ease;
}

.footer__links a:hover {
  opacity: 1;
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--principal);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
  z-index: var(--z-dropdown);
  box-shadow: 0 4px 20px rgba(42, 107, 184, 0.25);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--principal-dark);
  box-shadow: 0 6px 25px rgba(42, 107, 184, 0.35);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   MODALS DESKTOP
======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--duration-normal) ease;
}

.modal--specialite .modal__content {
  max-width: 800px;
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__header {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 1.5rem 3rem 1rem 3rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
}

.modal__body {
  padding: 0 3rem 3rem 3rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--texte);
}

.modal__close {
  width: 40px;
  height: 40px;
  background: var(--fond);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  color: var(--texte);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) ease;
}

.modal__close:hover {
  background: var(--texte);
  color: var(--white);
}

.modal__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(45, 52, 54, 0.6);
}

.modal__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  margin: 0.75rem 0 1.5rem;
  color: var(--texte);
}

.modal__title em {
  font-style: italic;
  opacity: 0.7;
}

.modal__body p {
  margin-bottom: 1.25rem;
}

.modal__body ul {
  list-style: none;
  margin: 1.5rem 0;
}

.modal__body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Modal blocks */
.modal__block {
  background: var(--fond);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.modal__block h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--texte);
}

.modal__block--highlight {
  background: var(--texte);
  color: var(--white);
}

.modal__block--highlight h4 {
  color: var(--white);
}

.modal__block--highlight p,
.modal__block--highlight li {
  color: rgba(255, 255, 255, 0.85);
}

/* Cards dans block highlight - contraste inversé */
.modal__block--highlight .modal__card {
  background: var(--white);
  border: none;
}

.modal__block--highlight .modal__card h5 {
  color: var(--texte);
}

.modal__block--highlight .modal__card ul,
.modal__block--highlight .modal__card li {
  color: var(--texte);
}

/* Modal grid */
.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

/* Modal zones - 3 tuiles */
.modal__zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.modal__zone {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(45, 52, 54, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.modal__zone-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.modal__zone-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--texte);
}

.modal__zone-desc {
  font-size: 0.85rem;
  color: var(--texte);
  opacity: 0.85;
}

.modal__card {
  background: var(--fond);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(45, 52, 54, 0.1);
}

.modal__card h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--texte);
  margin-bottom: 0.75rem;
}

.modal__card ul {
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--texte);
}

.modal__card li {
  margin-bottom: 0.35rem;
}

/* Modal CTA */
.modal__cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--chaleur);
  margin-top: 1.5rem;
}

.modal__cta p {
  margin-bottom: 1rem;
}

.modal__btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--principal);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--duration-normal) ease;
}

.modal__btn:hover {
  background: var(--principal-dark);
}

/* Modal fullscreen */
.modal-fullscreen {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-fullscreen);
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.modal-fullscreen.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-fullscreen__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-normal) ease;
  z-index: 10;
}

.modal-fullscreen__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-fullscreen__close svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.modal-fullscreen__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-fullscreen__video,
.modal-fullscreen__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* Modal offres */
.modal-offres {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-offres);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.modal-offres.active {
  opacity: 1;
  visibility: visible;
}

.modal-offres__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-offres__content {
  position: relative;
  background: var(--white);
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  max-width: 850px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-offres__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: rgba(45, 52, 54, 0.5);
  cursor: pointer;
  line-height: 1;
  transition: color var(--duration-normal) ease;
}

.modal-offres__close:hover {
  color: var(--texte);
}

.modal-offres__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--texte);
}

.modal-offres__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.modal-offres__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9/16;
  background: var(--fond);
  transition: transform var(--duration-normal) ease;
  min-height: 280px;
}

.modal-offres__item:hover {
  transform: scale(1.02);
}

.modal-offres__label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.95);
  padding: 0.4rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
  z-index: 2;
  text-align: center;
  color: var(--texte);
}

.modal-offres__video,
.modal-offres__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-offres__legal {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(45, 52, 54, 0.5);
  margin-top: 1.5rem;
  font-style: italic;
}

/* Modal Fullscreen (pour offres enfants/unifocaux/progressifs) */
.modal-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.modal-fullscreen.active {
  opacity: 1;
  visibility: visible;
}

.modal-fullscreen__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-normal) ease;
  z-index: 10;
}

.modal-fullscreen__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-fullscreen__close svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: white;
}

.modal-fullscreen__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-fullscreen__video,
.modal-fullscreen__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* ========================================
   RESPONSIVE AJUSTEMENTS (tablettes)
======================================== */
@media (max-width: 900px) {
  .galerie__row--desktop {
    display: none;
  }
  
  .offres__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 600px;
  }
  
  .offres__grid--trois {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
