/* Styles principaux — Les Rituels de TOAV */

@import url('variables.css');

/* Reset de base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-corps);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--noir);
  background-color: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 var(--space-sm) 0;
  color: var(--anthracite);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

p {
  margin: 0 0 var(--space-sm) 0;
}

a {
  color: var(--vert-feuillage);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--or);
}

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

/* Logo bienvenue — responsive */
.logo-bienvenue {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  display: inline-block;
}

@media (min-width: 768px) {
  .logo-bienvenue {
    width: 320px;
    height: 320px;
  }
}

@media (min-width: 1024px) {
  .logo-bienvenue {
    width: 400px;
    height: 400px;
  }
}

/* Logo footer — responsive */
.logo-footer {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 1rem;
  display: inline-block;
}

@media (min-width: 768px) {
  .logo-footer {
    width: 80px;
    height: 80px;
  }
}

@media (min-width: 1024px) {
  .logo-footer {
    width: 100px;
    height: 100px;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: 800px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  padding: var(--space-sm) 0;
}

.header--scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img {
  height: 55px;
  width: auto;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-titre);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--blanc);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.header--scrolled .nav-link {
  color: var(--anthracite);
}

.nav-link:hover,
.nav-link.active {
  color: var(--or);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--blanc);
  transition: background var(--transition-fast);
}

.header--scrolled .menu-toggle span {
  background: var(--anthracite);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: -1;
}

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

.hero h1 {
  font-size: var(--text-4xl);
  color: var(--blanc);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: var(--text-xl);
  font-weight: 300;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Hero compact (pages secondaires) */
.hero--compact {
  height: 40vh;
  min-height: 250px;
}

.hero--compact h1 {
  font-size: var(--text-3xl);
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-titre);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-light {
  background: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}

.btn-light:hover {
  background: var(--blanc);
  color: var(--anthracite);
}

.btn-dark {
  background: var(--anthracite);
  color: var(--blanc);
  border-color: var(--anthracite);
}

.btn-dark:hover {
  background: transparent;
  color: var(--anthracite);
}

.btn-outline {
  background: transparent;
  color: var(--anthracite);
  border-color: var(--anthracite);
}

.btn-outline:hover {
  background: var(--anthracite);
  color: var(--blanc);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--rose-poudre);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  margin-bottom: var(--space-sm);
}

.section-title p {
  color: var(--gris);
  font-size: var(--text-lg);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: var(--gris-fonce);
  font-size: var(--text-lg);
}

/* Grille */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
  background: var(--blanc);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Features */
.feature {
  text-align: center;
  padding: var(--space-lg);
}

.feature h3 {
  color: var(--vert-feuillage);
  margin-bottom: var(--space-sm);
}

.feature p {
  color: var(--gris-fonce);
}

/* Prestations */
.prestation-card {
  padding: var(--space-lg);
}

.prestation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  gap: var(--space-sm);
}

.prestation-header h4 {
  color: var(--vert-feuillage);
  font-size: var(--text-lg);
}

.prestation-meta {
  font-family: var(--font-titre);
  font-size: var(--text-sm);
  color: var(--or);
  white-space: nowrap;
  font-weight: 500;
}

.prestation-card p {
  color: var(--gris-fonce);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Horaires */
.horaires-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
}

.horaire-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: var(--blanc);
  border-radius: 20px;
  font-size: var(--text-sm);
}

.jour {
  font-weight: 500;
  color: var(--anthracite);
}

.heures {
  color: var(--gris);
}

/* Planity */
.planity-container {
  min-height: 400px;
  background: var(--blanc);
  border-radius: 8px;
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--anthracite);
  color: var(--blanc);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer h3 {
  color: var(--blanc);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer p,
.footer a {
  color: #B8B8B8;
  font-size: var(--text-sm);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--gris);
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
  }
}

.social-icon {
  width: 28px;
  height: 28px;
  color: var(--gris);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
  color: var(--or);
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .social-icon {
    width: 32px;
    height: 32px;
  }
}

/* Mentions légales */
.legal-content h2 {
  color: var(--vert-feuillage);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
}

.legal-content p {
  margin-bottom: var(--space-sm);
  color: var(--gris-fonce);
}

/* Animations reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Focus visible — accessibilité */
*:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

/* Skip link — accessibilité */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--or);
  color: var(--blanc);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--creme);
    padding: var(--space-xl) var(--space-lg);
    transition: right var(--transition-base);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav--open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav-link {
    color: var(--anthracite);
    font-size: var(--text-lg);
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .hero .subtitle {
    font-size: var(--text-base);
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .prestation-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .horaires-list {
    flex-direction: column;
    align-items: center;
  }
}
