/* ================================
   GLOBAL STYLES
   Cabinet Maître MESSAOUDI
   Luxe Institutionnel
   ================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHIE ===== */

/* Titres - Playfair Display */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.25;
  font-weight: 600;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 600;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
}

/* Paragraphes - Inter */
p {
  font-family: 'Inter', sans-serif;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 68ch;
  margin-bottom: 1.5rem;
}

/* Emphases */
strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

em {
  color: var(--color-accent-gold);
  font-style: normal;
}

/* Listes */
ul, ol {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

ul li::marker {
  color: var(--color-accent-gold);
}

/* ===== LIENS ===== */
a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

/* Liens avec soulignement animé */
a.underline-effect {
  position: relative;
}

a.underline-effect::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-accent-gold);
  transition: width var(--transition-base);
}

a.underline-effect:hover::after {
  width: 100%;
}

/* ===== LAYOUT ===== */

/* Container global */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  padding: var(--section-padding-desktop) 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.section:last-child {
  border-bottom: none;
}

/* Grids asymétriques */
.grid-asymetric-left {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

/* Images */
.image-constrained {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px; /* AJOUTER CETTE LIGNE */
}

/* ===== BOUTONS ===== */

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg-main);
  
  /* EFFET OR LUXE - Dégradé subtil */
  background: linear-gradient(135deg, #C2A878 0%, #D4BA88 50%, #C2A878 100%);
  background-size: 200% 100%;
  
  border: none;
  border-radius: 4px; /* COINS ARRONDIS */
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Effet brillance subtile sur hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 168, 120, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  background-color: transparent;
  border: 2px solid var(--color-accent-gold);
  border-radius: 4px; /* COINS ARRONDIS */
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Effet de remplissage au hover */
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #C2A878 0%, #D4BA88 50%, #C2A878 100%);
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--color-bg-main);
  border-color: var(--color-accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 168, 120, 0.3);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Groupe de boutons */
.btn-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1280px) {
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: var(--section-padding-tablet) 0;
  }
  
  .grid-asymetric-left,
  .grid-asymetric-right {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  p {
    font-size: 1rem;
  }
}

/* ===== UTILITIES ===== */

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

.text-gold {
  color: var(--color-accent-gold);
}

.separator {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #C2A878 0%, #D4BA88 50%, #C2A878 100%);
  margin: 2rem auto;
  border-radius: 2px; /* COINS ARRONDIS */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
