/* ====================================
   La Salamandre - Version 02 (Alternative)
   Maquette moderne avec effets spectaculaires
   ==================================== */

/* === VARIABLES === */
:root {
  /* Couleurs du client */
  --color-primary: #bd9b5e;
  --color-secondary: rgba(219, 183, 4, 0.80);
  --color-dark: #000000;
  --color-light: #FFFFFF;
  --color-cream: #F5F3EF;
  --color-brown-dark: #8b7346; /* Marron foncé pour sections alternées */
  --color-brown-darker: #2d2419; /* Marron très foncé pour pré-footer */
  
  /* Fonts */
  --font-serif: 'PT Serif', Georgia, serif;
  --font-sans: 'Montserrat', Arial, sans-serif;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  --glass-blur: 10px;
  
  /* Animations — durées réduites pour plus de fluidité */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-dark);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}


/* === LOADING SCREEN === */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  width: 150px;
  margin: 0 auto 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(189, 155, 94, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  width: 0;
  animation: loading 2s ease-out forwards;
}

@keyframes loading {
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* === CONTAINER === */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-light);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-smooth);
}

/* Toutes les variantes ont le même style */
.btn.glass,
.btn-primary,
.btn-outline {
  background-color: var(--color-primary);
  color: var(--color-light);
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(189, 155, 94, 0.4);
  background-color: var(--color-dark);
}

.btn-arrow {
  transition: transform var(--duration-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  z-index: 0;
  will-change: transform;
}

@media (min-width: 1024px) {
  .hero-bg-slider {
    transform: translateY(calc(var(--scroll-y, 0) * 0.3px));
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content {
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInScale 1.2s var(--ease-smooth) 0.1s forwards;
  will-change: transform;
}

.hero-logo img {
  width: 200px;
  margin: 0 auto;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-light);
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title span:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-title--small {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem) !important;
  font-weight: 400;
  line-height: 1.4;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-subtitle strong {
  font-weight: 700;
}

.hero-cta {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.1s forwards;
  /* P2 — Boutons côte à côte, wrap sur mobile */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.5s forwards;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.scroll-hint:hover {
  transform: translateY(5px);
}

.scroll-arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  position: relative;
  animation: scrollDown 2s ease-in-out infinite;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.3;
  }
}

@keyframes scrollDot {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
  }
  51% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* === SECTIONS === */
section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
  z-index: 10;
  transition: background-color 0.3s ease;
}

/* Alternance des sections : clair / foncé */
section.section-light {
  background-color: var(--color-light);
  color: var(--color-dark);
}

section.section-dark {
  background-color: var(--color-brown-dark);
  color: var(--color-light);
}

section.section-darker {
  background-color: var(--color-brown-darker);
  color: var(--color-light);
}

section.section-light .section-title,
section.section-light h2,
section.section-light h3 {
  color: var(--color-dark);
}

section.section-dark .section-title,
section.section-dark h2,
section.section-dark h3 {
  color: var(--color-light);
}

section.section-light p,
section.section-light .section-subtitle {
  color: var(--color-dark);
}

section.section-dark p,
section.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

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

.section-badge {
  width: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
  transition: transform 0.6s var(--ease-smooth);
  will-change: transform;
}

.section-badge:hover {
  transform: rotate(360deg) scale(1.1);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.section-title.is-visible::before {
  left: 100%;
}

/* Couleur dorée statique (sans animation de dégradé) */
.text-primary {
  color: var(--color-primary) !important;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

/* Permettre au <strong> de s'afficher en bold dans les sous-titres */
.section-subtitle strong {
  font-weight: 700;
}

/* === NOUVELLE OUVERTURE === */
/* Background géré par section-light/section-dark */
/*.nouveau-section {
}
*/

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

.nouveau-text .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.nouveau-text p {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.floating-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease;
  will-change: transform;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.floating-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.floating-card:hover img {
  transform: scale(1.05);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.3;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(1deg);
  }
  66% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .nouveau-content {
    grid-template-columns: 1fr;
  }
}

/* === NEWSLETTER === */
.newsletter-section {
  /* Background géré par section-light/section-dark */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.glass-card {
  background: var(--color-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 4rem;
  border-radius: 0;
}

/* Glass card sur fond foncé - fond blanc avec ombre portée */
.section-dark .glass-card {
  background: var(--color-light);
  color: var(--color-dark);
}

.section-dark .glass-card .section-title,
.section-dark .glass-card h2,
.section-dark .glass-card h3,
.section-dark .glass-card p,
.section-dark .glass-card .section-subtitle {
  color: var(--color-dark);
}

/* Titre du formulaire en marron */
.section-dark .glass-card .section-title {
  color: var(--color-primary) !important;
}

/* Inputs du formulaire sur fond blanc */
.section-dark .glass-card .form-field input {
  border-bottom-color: rgba(0, 0, 0, 0.2);
  color: var(--color-dark);
}

.section-dark .glass-card .form-field input:focus {
  border-bottom-color: var(--color-primary);
}

.section-dark .glass-card .form-field label {
  color: rgba(0, 0, 0, 0.5);
}

.section-dark .glass-card .form-field input:focus + label,
.section-dark .glass-card .form-field input:not(:placeholder-shown) + label {
  color: var(--color-primary);
}

.section-dark .glass-card .error-message {
  color: var(--color-error);
}

.section-dark .glass-card .form-field input.error {
  border-bottom-color: var(--color-error);
}

.newsletter-form {
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-field {
  position: relative;
}

.form-field input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--color-light);
  font-size: 1rem;
  transition: border-color var(--duration-fast);
}

.form-field input:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
}

.form-field label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: all var(--duration-fast);
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  top: -1.5rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration-normal) var(--ease-smooth);
}

.form-field input:focus ~ .form-line {
  width: 100%;
}

.error-msg {
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-field input.error ~ .error-msg {
  display: block;
}

.form-submit {
  text-align: center;
  margin-top: 3rem;
}

.form-success {
  text-align: center;
  padding: 3rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: successPop 0.6s var(--ease-bounce);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.form-success p {
  color: var(--color-light);
  font-size: 1.3rem;
}

.newsletter-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-footer p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.link-fancy {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--duration-fast);
}

.link-fancy:hover {
  color: var(--color-secondary);
  transform: translateX(10px);
}

/* P4 — Espacement réduit entre titre et sous-titre du formulaire */
.section-header--tight .section-title {
  margin-bottom: 0.25rem;
}

/* P4 — Mention "(Facultatif)" discrète */
.label-optional {
  font-size: 0.8em;
  opacity: 0.6;
  font-weight: 400;
}

/* hCaptcha */
.captcha-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.captcha-error {
  display: none;
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.captcha-wrapper.has-error .captcha-error {
  display: block;
}

/* Error state for form fields */
.form-field.has-error input {
  border-color: #e74c3c;
}

.form-field.has-error .error-msg {
  display: block;
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

/* P4 — Image parallaxe CSS natif */
.parallax-divider {
  height: 55vh;
  min-height: 360px;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 10;
}

/* Fallback mobile : pas de parallaxe sur iOS/mobile */
@supports (-webkit-touch-callout: none) {
  .parallax-divider {
    background-attachment: scroll;
  }
}

@media (max-width: 1024px) {
  .parallax-divider {
    background-attachment: scroll;
    height: 42vh;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .glass-card {
    padding: 2rem;
  }
}

/* === CHEF SECTION === */
/* Background géré par section-light */
/*
.chef-section {
}
*/

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

.lead-text {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  /* Color géré par section-light/section-dark */
}

.chef-description {
  max-width: 900px;
  margin: 0 auto 6rem;
}

.text-block {
  margin-bottom: 3rem;
}

.text-block h3 {
  color: var(--color-primary);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  position: relative;
  display: inline-block;
}

.text-block h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.8s var(--ease-smooth);
}

.text-block.is-visible h3::after {
  width: 100%;
}

.text-block p {
  /* Color géré par section-light/section-dark */
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-smooth);
}

.text-block.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

.text-block.is-visible p:nth-of-type(1) {
  transition-delay: 0.2s;
}

.text-block.is-visible p:nth-of-type(2) {
  transition-delay: 0.4s;
}

/* === MENUS === */
/* Background et padding gérés par section-dark */
/*.menus-section {
}
*/

.menus-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-serif);
  color: var(--color-light);
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* P6 — Grid avec alignement stretch pour hauteurs égales */
.menus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.menu-card {
  position: relative;
  perspective: 1000px;
  height: 100%; /* Stretch to grid cell height */
}

/* P6 — Flex column, contenu aligné en haut pour que les descriptifs démarrent au même niveau */
.menu-card-inner {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 2px solid var(--color-primary);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all var(--duration-normal) var(--ease-smooth);
  transform-style: preserve-3d;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* P6 — Les listes démarrent au même niveau (alignement haut) */
.menu-items {
  margin-top: 0;
  width: 100%;
}

.menu-card:hover .menu-card-inner {
  transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 20px 60px rgba(189, 155, 94, 0.4);
}

.menu-icon-3d {
  margin: 0 auto 1.5rem;
  stroke: var(--color-primary);
  transition: transform var(--duration-normal);
}

.menu-card:hover .menu-icon-3d {
  transform: rotateY(360deg) scale(1.1);
}

.menu-card h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-light);
  margin-bottom: 1rem;
}

.menu-price {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 2rem;
}

.menu-items {
  list-style: none;
}

.menu-items li {
  color: var(--color-light);
  font-style: italic;
  padding: 0.5rem 0;
}

.menu-items .menu-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  font-style: normal;
}

.menu-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(189, 155, 94, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}

.menu-card:hover .menu-glow {
  opacity: 1;
}

.menu-card.featured {
  transform: scale(1.05);
}

.menu-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-dark);
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
}

@media (max-width: 1024px) {
  .menus-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .menu-card.featured {
    transform: none;
  }
}

/* === CARROUSEL PHOTOS === */
.caroussel-section {
  overflow: hidden;
  padding: 0;
  background: var(--color-dark, #1a1a1a);
}

.caroussel-track {
  display: flex;
  width: max-content;
  animation: caroussel-scroll 60s linear infinite;
}

.caroussel-track:hover {
  animation-play-state: paused;
}

.caroussel-slide {
  flex-shrink: 0;
  width: 350px;
  height: 280px;
  overflow: hidden;
}

.caroussel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.caroussel-track:hover .caroussel-slide img {
  filter: brightness(0.7);
}

.caroussel-track:hover .caroussel-slide:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

@keyframes caroussel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .caroussel-slide {
    width: 260px;
    height: 200px;
  }
}

/* === CONTACT SECTION (PRE-FOOTER) === */
.contact-section {
  text-align: center;
  padding: clamp(5rem, 12vw, 10rem) 0;
}

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

.contact-section .section-title {
  margin-bottom: 3rem;
  color: var(--color-light);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-light);
  font-size: clamp(1rem, 2vw, 1.2rem);
  transition: all var(--duration-fast);
  padding: 0.5rem 1rem;
}

.contact-link svg {
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-link:hover {
  color: var(--color-primary);
  transform: scale(1.05);
}

.contact-signature {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 6rem;
}

/* P7 — Variante sans italique */
.contact-signature--plain {
  font-style: normal;
}

.contact-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.social-link svg {
  width: 35px;
  height: 35px;
}

.social-link:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.contact-logo img {
  width: 125px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .contact-link {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-logo img {
    width: 120px;
  }
}

/* === FOOTER === */
.footer {
  background: var(--color-dark);
  position: relative;
  padding: 2rem 0;
}

.footer-content {
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color var(--duration-fast);
}

.footer-bottom a:hover {
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === ANIMATIONS === */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-text {
  opacity: 0;
}

/* Durées de révélation raccourcies pour une apparition plus vive */
.reveal-up.is-visible {
  animation: revealUp 0.5s var(--ease-smooth) var(--reveal-delay, 0s) forwards;
}

.reveal-left.is-visible {
  animation: revealLeft 0.6s var(--ease-smooth) var(--reveal-delay, 0s) forwards;
}

.reveal-right.is-visible {
  animation: revealRight 0.6s var(--ease-smooth) var(--reveal-delay, 0s) forwards;
}

.reveal-scale.is-visible {
  animation: revealScale 0.45s var(--ease-bounce) var(--reveal-delay, 0s) forwards;
}

.reveal-text.is-visible {
  animation: revealText 0.5s var(--ease-smooth) var(--reveal-delay, 0s) forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-50px) rotateY(-5deg);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    filter: blur(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(50px) rotateY(5deg);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    filter: blur(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes revealText {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(15px);
    letter-spacing: 0.3em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: inherit;
  }
}

/* Stagger delay for children */
.reveal-text:nth-child(1) { animation-delay: 0.1s; }
.reveal-text:nth-child(2) { animation-delay: 0.3s; }
.reveal-text:nth-child(3) { animation-delay: 0.5s; }

.reveal-scale:nth-child(1) { animation-delay: 0s; }
.reveal-scale:nth-child(2) { animation-delay: 0.2s; }
.reveal-scale:nth-child(3) { animation-delay: 0.4s; }

/* Disable complex animations on mobile for performance */
@media (max-width: 1024px) {
  @keyframes revealUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes revealLeft {
    from {
      opacity: 0;
      transform: translateX(0);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes revealRight {
    from {
      opacity: 0;
      transform: translateX(0);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}
