/* ================================================================
   WE LOVE RIVIERA — Feuille de style principale
   Design : planches "WLR Denis Final" (rouge #EE1D23, crème #FEF6E1)
   Police : Poppins (substitut web de Campton)
   ================================================================ */

:root {
  --rouge:       #EE1D23;
  --rouge-fonce: #C41318;
  --creme:       #FEF6E1;
  --noir:        #231F20;
  --or:          #FFC845;
  --blanc:       #FFFFFF;
  --gris-texte:  #4A4543;
  --font:        'Poppins', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--noir);
  background: var(--blanc);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--rouge); text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ————————————————————————————————————————————————
   TYPOGRAPHIE
   ———————————————————————————————————————————————— */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--noir); }

.section-title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  margin-bottom: 24px;
}

.section-title .sur-titre {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
}

p.justify { text-align: justify; }

/* ————————————————————————————————————————————————
   HEADER / NAVIGATION
   ———————————————————————————————————————————————— */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 200;
  /* bande sombre fine, uniquement pour la lisibilité du menu */
  background: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0) 100%);
  padding: 12px 0 30px;
}

/* Logo à gauche du menu, tout sur une seule ligne */
.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.header-logo img { height: 54px; width: auto; }

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

.main-nav > .nav-item { position: relative; }

.main-nav a.nav-link {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 6px 2px;
  display: inline-block;
  transition: color 0.2s;
}

.main-nav a.nav-link:hover { color: var(--or); }

.main-nav a.nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid var(--or);
}

.nav-caret { font-size: 9px; margin-left: 4px; vertical-align: 2px; }

/* Sélecteur de langue FR / EN */
.nav-lang { display: flex; align-items: center; gap: 7px; margin-left: 4px; }
.nav-lang .nav-link { font-size: 13px; opacity: 0.75; padding: 6px 1px; }
.nav-lang .nav-link:hover { opacity: 1; }
.nav-lang .nav-link.lang-on { opacity: 1; font-weight: 700; border-bottom: 2px solid var(--or); }
.nav-lang .sep { color: rgba(255,255,255,0.4); font-size: 12px; }

/* Sous-menu Visites */
.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 320px;
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.22);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; }

.nav-dropdown a {
  display: block;
  padding: 8px 20px;
  color: var(--noir);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover { background: var(--creme); color: var(--rouge); }

/* Burger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  position: absolute;
  right: 20px; top: 18px;
}

/* ————————————————————————————————————————————————
   HERO
   ———————————————————————————————————————————————— */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 150px 20px 60px;
}

.hero-title {
  color: #fff;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  /* triple ombre douce : lisible sur photo claire, sans halo disgracieux */
  text-shadow: 0 1px 2px rgba(0,0,0,0.65), 0 3px 10px rgba(0,0,0,0.5), 0 12px 40px rgba(0,0,0,0.4);
  margin-bottom: 28px;
}

.hero-title .hero-sur-titre {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
}

/* Hero accueil : hauteur fixe 800-900 px sur desktop (choix de Thomas).
   Le rognage se fait par le bas (object-position top) pour garder le ciel. */
.hero--home { min-height: 560px; }

@media (min-width: 768px) {
  .hero--home { height: clamp(800px, 90vh, 900px); }
}

/* Cadrage ancré en haut : on garde le ciel, on coupe le bas de la photo */
.hero--home .hero-bg { object-position: center top; }

/* Pas de voile sombre sur les photos du slider : les couleurs restent intactes,
   la lisibilité du titre est assurée par son ombre portée */
.hero--home .hero-overlay { background: none; }

.hero--home .hero-content { padding: 150px 20px 90px; }

/* Slider du hero : fondu simple entre les photos */
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active { opacity: 1; }

/* Le bus détouré traverse le bord inférieur du hero en ~3 s à chaque
   changement de slide (déclenché par main.js via la classe is-driving) */
.hero-bus {
  position: absolute;
  bottom: -4px;
  left: 0;
  z-index: 2;
  width: clamp(200px, 30vw, 340px);
  transform: translateX(100vw);
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.hero-bus.is-driving {
  animation: bus-drive 3s linear forwards;
}

@keyframes bus-drive {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-110%); }
}


/* Hero des pages intérieures : même hauteur que celui de l'accueil */
.hero--page { min-height: 480px; }

@media (min-width: 768px) {
  .hero--page { height: clamp(800px, 90vh, 900px); }
}

/* Frise de 4 images (pages visites) : colonnes côte à côte sur desktop,
   les mêmes images défilent en slider plein cadre sur tablette/mobile */
.hero--frise .frise {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  overflow: hidden;
}

.hero--frise .frise img {
  flex: 1 1 0;
  min-width: 0;
  width: 25%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .hero--frise .frise img {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
  }
  .hero--frise .frise img.is-active { opacity: 1; }
}

/* Variante plus basse (Qui sommes-nous, Photos & Vidéos, Contact) */
.hero--court { min-height: 420px; }

@media (min-width: 768px) {
  .hero--court { height: 600px; }
}

.btn-hero {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  background: var(--rouge);
  padding: 12px 38px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-hero:hover { background: #fff; color: var(--rouge); transform: translateY(-2px); }

/* Pages sans hero : espace sous le header en dégradé */
.page-top-pad { padding-top: 200px; }

@media (max-width: 991px) {
  .page-top-pad { padding-top: 130px; }
}

/* ————————————————————————————————————————————————
   BOUTONS
   ———————————————————————————————————————————————— */
.btn-rouge {
  display: inline-block;
  background: var(--rouge);
  color: #fff;
  padding: 13px 34px;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-rouge:hover { background: var(--rouge-fonce); color: #fff; }

/* ————————————————————————————————————————————————
   SECTIONS
   ———————————————————————————————————————————————— */
.section { padding: 72px 0; }

.section--creme { background: var(--creme); }

.section--rouge { background: var(--rouge); }

/* Rangée texte + image, façon planches (alternance) */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.split-row .split-txt {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-row .split-txt p { text-align: justify; color: var(--gris-texte); }

.split-row .split-txt p + p { margin-top: 14px; }

.split-row .split-img {
  min-height: 380px;
  background-size: cover;
  background-position: center;
}

.split-row--creme { background: var(--creme); }

.split-row--rouge { background: var(--rouge); }

.split-row--rouge .split-txt h2,
.split-row--rouge .split-txt p { color: #fff; }

/* ————————————————————————————————————————————————
   CARTES "NOS VISITES"
   ———————————————————————————————————————————————— */
.visites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.visite-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transition: transform 0.25s, box-shadow 0.25s;
  background: #fff;
}

.visite-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.visite-card .card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.visite-card .card-label {
  background: var(--rouge);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  padding: 18px 14px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ————————————————————————————————————————————————
   AVANTAGES (pictos rouges)
   ———————————————————————————————————————————————— */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 48px;
  text-align: center;
}

.avantage img {
  height: 96px;
  width: auto;
  margin: 0 auto 22px;
}

.avantage h3 { font-size: 17px; margin-bottom: 10px; }

.avantage p { font-size: 13.5px; color: var(--gris-texte); text-align: justify; }

/* ————————————————————————————————————————————————
   DÉTAILS PRATIQUES (pages visites)
   ———————————————————————————————————————————————— */
.details-pratiques h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.detail-box {
  background: var(--rouge);
  color: #fff;
  padding: 14px 10px 16px;
  text-align: center;
  border-radius: 4px;
}

.detail-box img { height: 34px; width: auto; margin: 0 auto 8px; }

.detail-box .d-titre {
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  padding-bottom: 6px;
  margin-bottom: 7px;
}

.detail-box .d-val { font-size: 12px; line-height: 1.45; }

/* ————————————————————————————————————————————————
   PAGE VISITE — mise en page
   ———————————————————————————————————————————————— */
.visite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}

.visite-intro h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }

.visite-intro .avant-titre {
  font-weight: 700;
  font-size: 14px;
  margin: 26px 0 4px;
}

.visite-intro p { text-align: justify; color: var(--gris-texte); }

.booking-sticky { position: sticky; top: 24px; }

/* Sections d'étapes (Nice / Villefranche / Monaco…) alternées */
.etape-titre { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }

.etape-liste { margin: 12px 0 0 18px; color: var(--gris-texte); }

.etape-liste li { margin-bottom: 8px; text-align: justify; }

.etape-liste li strong { color: var(--noir); }

/* ————————————————————————————————————————————————
   GALERIE PHOTOS & VIDÉOS
   ———————————————————————————————————————————————— */
.pv-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pv-col-titre { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photos-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
}

.photos-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photos-grid a:hover img { transform: scale(1.06); }

.videos-col { display: flex; flex-direction: column; gap: 14px; }

.video-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  overflow: hidden;
  display: block;
}

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

.video-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='rgba(35,31,32,0.72)'/%3E%3Cpath d='M19 15l16 9-16 9z' fill='%23fff'/%3E%3C/svg%3E") center / 52px no-repeat;
  transition: background-color 0.2s;
}

.video-tile:hover::after { background-color: rgba(0,0,0,0.4); }

/* ————————————————————————————————————————————————
   PAGE CONTACT
   ———————————————————————————————————————————————— */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-radius: 3px;
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  color: var(--noir);
  padding: 14px 16px;
  margin-bottom: 16px;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.contact-form input:focus,
.contact-form textarea:focus { box-shadow: 0 0 0 2px var(--rouge); }

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

.contact-coords { padding-top: 6px; }

.contact-coords .ligne {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}

.contact-coords .ligne img { height: 20px; width: 20px; object-fit: contain; margin-top: 3px; }

.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-feedback.ok { display: block; background: #E8F5E9; color: #2E7D32; }

.form-feedback.ko { display: block; background: #FDECEA; color: #C62828; }

/* ————————————————————————————————————————————————
   FOOTER
   ———————————————————————————————————————————————— */
.site-footer { background: var(--rouge); color: #fff; padding: 44px 0 36px; }

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 48px;
  align-items: center;
}

.footer-logo img { height: 72px; width: auto; }

.footer-contact { font-size: 13px; font-weight: 500; }

.footer-contact .ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-contact .ligne .ico { font-size: 15px; }

.footer-contact a { color: #fff; }

.footer-liens { font-size: 13px; }

.footer-liens a {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 6px;
  transition: opacity 0.2s;
}

.footer-liens a:hover { opacity: 0.75; }

.footer-visites { font-size: 12.5px; }

.footer-visites .titre {
  color: var(--or);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.footer-visites a {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  transition: opacity 0.2s;
}

.footer-visites a:hover { opacity: 0.75; }

.footer-visites a::before { content: '> '; color: var(--or); font-weight: 700; }

.footer-bottom { background: #fff; padding: 14px 0; }

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom .copyright {
  font-size: 12px;
  color: var(--gris-texte);
}

.footer-bottom .copyright a { color: var(--gris-texte); text-decoration: underline; }

.footer-socials { display: flex; gap: 14px; align-items: center; }

.footer-socials img { height: 22px; width: 22px; }

.footer-socials a { transition: opacity 0.2s; }

.footer-socials a:hover { opacity: 0.7; }

/* ————————————————————————————————————————————————
   RESPONSIVE
   ———————————————————————————————————————————————— */
@media (max-width: 991px) {
  .split-row { grid-template-columns: 1fr; }
  /* Sur mobile : toujours le texte d'abord, l'image ensuite */
  .split-row .split-txt { order: 1; padding: 40px 24px; }
  .split-row .split-img { order: 2; min-height: 280px; }
  .visites-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .avantages-grid { grid-template-columns: 1fr; gap: 36px; max-width: 460px; margin-left: auto; margin-right: auto; }
  .visite-layout { grid-template-columns: 1fr; }
  .booking-sticky { position: static; }
  .pv-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }

  /* Nav mobile */
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(0,0,0,0.94);
    width: 100%;
    padding: 14px 0 20px;
  }
  .main-nav.open { display: flex; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 4px;
    display: none;
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown a { color: rgba(255,255,255,0.85); text-align: center; }
  .nav-dropdown a:hover { background: transparent; color: var(--or); }
  .site-header { padding-bottom: 14px; background: linear-gradient(to bottom, rgba(0,0,0,0.92), rgba(0,0,0,0.65)); }
  .header-logo img { height: 42px; }
}

@media (max-width: 600px) {
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* Mobile : hero d'accueil un peu plus compact */
@media (max-width: 767px) {
  .hero--home { min-height: 460px; }
  .hero--home .hero-content { padding: 120px 20px 70px; }
}
