/*
 * ═══════════════════════════════════════════════════
 * STYLES.CSS — Onça Pintada Life
 * Styles communs à toutes les pages
 * ═══════════════════════════════════════════════════
 */

/* ── VARIABLES ── */
:root {
  --void: #05030a;
  --abyssal: #0a0614;
  --violet-nuit: #1a0a2e;
  --violet-profond: #2d1a4a;
  --or-sacre: #c9a84c;
  --or-clair: #e2c97a;
  --or-pale: #f0e0a0;
  --argent: #c0b8d0;
  --creme: #f0eaf8;
  --blanc-lune: #faf7ff;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  overflow-x: hidden;
}
body {
  background-color: var(--void);
  color: var(--creme);
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  overflow-x: hidden;
  cursor: none;
  padding-top: 120px;
  max-width: 100vw;
}
*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}
img { max-width: 100%; height: auto; }
.opl-container, .opl-container-sm, .opl-container-xs, .opl-container-wide {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* ── ÉTOILES ── */
.stars {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.star {
  position: absolute; background: white; border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--min-op, 0.1); }
  50% { opacity: var(--max-op, 0.8); }
}

/* Cercles sacrés */
.sacred-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.07);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: sacred-pulse 8s ease-in-out infinite;
  pointer-events: none;
}
.sacred-ring:nth-child(1) { width: 400px; height: 400px; border-color: rgba(201,168,76,0.12); }
.sacred-ring:nth-child(2) { width: 650px; height: 650px; animation-delay: 2s; }
.sacred-ring:nth-child(3) { width: 900px; height: 900px; animation-delay: 4s; }
@keyframes sacred-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 0.3; transform: translate(-50%,-50%) scale(1.01); }
}

/* ── HERO — STYLES COMMUNS ── */
.opl-hero {
  min-height: 65vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 4rem 5rem;
  overflow: hidden;
}

.opl-hero.centered {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.opl-hero.tall { min-height: 80vh; }
.opl-hero.medium { min-height: 55vh; }

/* Fond dégradé par défaut */
.opl-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45,26,74,0.9) 0%, transparent 70%),
    linear-gradient(160deg, var(--void) 0%, var(--abyssal) 40%, var(--violet-nuit) 80%, var(--void) 100%);
  z-index: 0;
}

/* Image de fond hero */
.opl-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%) brightness(0.55);
  z-index: 0;
}

/* Overlay sur image */
.opl-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(5,3,10,0.92) 45%, rgba(5,3,10,0.3) 100%),
    linear-gradient(to top, rgba(5,3,10,0.95) 0%, transparent 55%);
}

.opl-hero-overlay.centered {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(45,26,74,0.8) 0%, transparent 70%),
    linear-gradient(160deg, rgba(5,3,10,0.9) 0%, rgba(10,6,20,0.7) 50%, rgba(26,10,46,0.8) 100%);
}

/* Contenu hero */
.opl-hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}

.opl-hero.centered .opl-hero-content { max-width: 800px; }

/* Fil d'Ariane */
.opl-breadcrumb {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--or-sacre); opacity: 0; margin-bottom: 1.2rem; display: block;
  animation: riseIn 1s 0.2s ease forwards;
}
.opl-breadcrumb a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.opl-breadcrumb a:hover { opacity: 0.8; }

/* Eyebrow */
.opl-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--or-sacre); margin-bottom: 1.5rem; display: block;
  opacity: 0; animation: riseIn 1s 0.3s ease forwards;
}

/* Titre hero */
.opl-hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: normal; line-height: 1.05;
  color: var(--blanc-lune); margin-bottom: 1.5rem;
  text-shadow: 0 0 80px rgba(201,168,76,0.2);
  opacity: 0; animation: riseIn 1s 0.5s ease forwards;
}
.opl-hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--or-sacre), var(--or-pale));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.opl-hero-title.small { font-size: clamp(2.5rem, 5vw, 4.5rem); }

/* Sous-titre hero */
.opl-hero-sub {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--argent); opacity: 0; animation: riseIn 1s 0.7s ease forwards;
  margin-bottom: 2rem;
}

/* Accroche hero */
.opl-hero-accroche {
  font-style: italic; font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.7; color: var(--creme);
  opacity: 0; animation: riseIn 1s 0.8s ease forwards;
  max-width: 600px; margin: 0 auto 2.5rem;
}

/* Tags hero */
.opl-hero-tags {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  opacity: 0; animation: riseIn 1s 0.7s ease forwards;
}
.opl-hero-tag {
  font-size: 0.62rem; padding: 0.25rem 0.8rem;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--argent); letter-spacing: 0.1em;
}

/* Scroll indicator */
.opl-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 0.3; animation: float 3s ease-in-out infinite; z-index: 2;
}
.opl-scroll span { font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; }
.opl-scroll-line { width: 1px; height: 45px; background: linear-gradient(to bottom, var(--or-sacre), transparent); }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── ANIMATIONS ── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── SECTIONS ── */
.opl-section { padding: 7rem 2rem; }
.opl-section.compact { padding: 5rem 2rem; }
.opl-section.large { padding: 9rem 2rem; }

/* Fonds de section */
.bg-void { background-color: var(--void); }
.bg-abyssal { background-color: var(--abyssal); }
.bg-gradient-violet {
  background: linear-gradient(160deg, var(--void) 0%, var(--violet-nuit) 50%, var(--abyssal) 100%);
}
.bg-gradient-dark {
  background: linear-gradient(160deg, var(--abyssal) 0%, var(--violet-nuit) 50%, var(--abyssal) 100%);
}
.bg-gradient-cta {
  background: linear-gradient(160deg, var(--violet-nuit), var(--abyssal));
  position: relative; overflow: hidden;
}
.bg-gradient-cta::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── CONTENEURS ── */
.opl-container { max-width: 1080px; margin: 0 auto; }
.opl-container-sm { max-width: 820px; margin: 0 auto; }
.opl-container-xs { max-width: 650px; margin: 0 auto; }

/* ── TYPOGRAPHIE ── */
.opl-label {
  display: block; font-size: 0.62rem; letter-spacing: 0.55em;
  text-transform: uppercase; color: var(--or-sacre);
  margin-bottom: 1.5rem; opacity: 0.8;
}

.opl-h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: normal; line-height: 1.25;
  color: var(--blanc-lune); margin-bottom: 1.5rem;
}
.opl-h2 em { font-style: italic; color: var(--or-clair); }

.opl-h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: normal; line-height: 1.3;
  color: var(--blanc-lune); margin-bottom: 1rem;
}
.opl-h3 em { font-style: italic; color: var(--or-clair); }

.opl-text {
  font-size: 1rem; line-height: 1.95;
  opacity: 0.8; margin-bottom: 1.4rem;
}
.opl-text em { font-style: italic; color: var(--or-clair); }
.opl-text.large { font-size: 1.1rem; }
.opl-text.small { font-size: 0.9rem; opacity: 0.7; }

.opl-citation {
  margin: 2.5rem 0; padding: 1.5rem 2rem;
  border-left: 2px solid var(--or-sacre);
  background: rgba(201,168,76,0.05);
  font-style: italic; font-size: 1.05rem;
  line-height: 1.75; color: var(--or-pale);
}

/* ── DIVIDER ── */
.opl-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 0 4rem;
}
.opl-div-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.25), transparent);
}
.opl-div-glyph { color: var(--or-sacre); font-size: 1rem; opacity: 0.55; }

/* ── BOUTONS ── */
.btn-primary {
  display: inline-block; padding: 1.1rem 3rem;
  background: linear-gradient(135deg, var(--or-sacre), var(--or-clair));
  color: var(--void); font-family: inherit;
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(201,168,76,0.25); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  display: inline-block; padding: 1.1rem 3rem;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--or-sacre); font-family: inherit;
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: var(--or-sacre); color: var(--or-pale); }

.btn-ghost {
  display: inline-block; padding: 1.1rem 3rem;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--creme); font-family: inherit;
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: rgba(201,168,76,0.5); color: var(--or-sacre); }

.btn-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn-group.centered { justify-content: center; }

/* ── GRILLES ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(201,168,76,0.08); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(201,168,76,0.08); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(201,168,76,0.08); }
.grid-2-1 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5rem; align-items: center; }

/* Cellule de grille */
.grid-cell {
  background: var(--abyssal);
  padding: 2.5rem 2rem;
  transition: background 0.4s;
  position: relative; overflow: hidden;
}
.grid-cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--or-sacre), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.grid-cell:hover { background: rgba(45,26,74,0.5); }
.grid-cell:hover::before { opacity: 1; }

/* ── CARTES ── */
.opl-card {
  border: 1px solid rgba(201,168,76,0.15);
  padding: 2.5rem 2rem;
  background: rgba(201,168,76,0.03);
  transition: all 0.4s;
}
.opl-card:hover { border-color: rgba(201,168,76,0.35); background: rgba(201,168,76,0.07); }

.opl-card-icon { font-size: 1.8rem; margin-bottom: 1.2rem; display: block; }

.opl-card h3 {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--or-sacre); margin-bottom: 0.8rem;
}
.opl-card p { font-size: 0.9rem; line-height: 1.85; opacity: 0.68; font-style: italic; }

/* ── MÉTA TAGS (format · présentiel · durée) ── */
.opl-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0; }
.opl-meta-tag {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.04);
  font-size: 0.78rem; color: var(--argent);
}
.opl-meta-tag span:first-child { font-size: 0.9rem; }

/* ── TARIF ── */
.opl-tarif {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--or-sacre);
  background: rgba(201,168,76,0.05);
}
.opl-tarif-prix {
  font-size: 2.5rem; color: var(--or-clair);
  display: flex; align-items: baseline; gap: 0.3rem; line-height: 1;
}
.opl-tarif-prix sup { font-size: 1rem; vertical-align: super; }
.opl-tarif-label {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--or-sacre); opacity: 0.7; margin-top: 0.4rem;
}
.opl-tarif-note { font-size: 0.78rem; font-style: italic; opacity: 0.45; margin-top: 0.4rem; }
.opl-tarif-devis { font-size: 1.4rem; color: var(--or-clair); font-style: italic; }

/* ── FAQ ── */
.opl-faq { display: flex; flex-direction: column; gap: 1px; background: rgba(201,168,76,0.08); }
.opl-faq-item { background: var(--abyssal); overflow: hidden; }
.opl-faq-question {
  padding: 1.5rem 2rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background 0.3s; user-select: none;
}
.opl-faq-question:hover { background: rgba(45,26,74,0.5); }
.opl-faq-question h3 { font-size: 0.95rem; font-weight: normal; color: var(--blanc-lune); line-height: 1.4; }
.opl-faq-chevron { color: var(--or-sacre); font-size: 0.8rem; flex-shrink: 0; transition: transform 0.3s; opacity: 0.6; }
.opl-faq-item.open .opl-faq-chevron { transform: rotate(180deg); }
.opl-faq-reponse { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.opl-faq-item.open .opl-faq-reponse { max-height: 600px; }
.opl-faq-reponse-inner {
  padding: 1.2rem 2rem 1.5rem;
  font-size: 0.92rem; line-height: 1.9; opacity: 0.72;
  font-style: italic; border-top: 1px solid rgba(201,168,76,0.08);
}
.opl-faq-reponse-inner a { color: var(--or-sacre); text-decoration: underline; text-underline-offset: 2px; }

/* ── FORMULAIRES ── */
.opl-form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.opl-form-group label {
  font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--or-sacre); opacity: 0.8;
}
.opl-form-group input,
.opl-form-group textarea,
.opl-form-group select {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--creme); padding: 0.9rem 1.1rem;
  font-family: inherit; font-size: 0.92rem;
  outline: none; transition: border-color 0.3s, background 0.3s;
  resize: none;
}
.opl-form-group input::placeholder,
.opl-form-group textarea::placeholder { color: rgba(240,234,248,0.3); font-style: italic; }
.opl-form-group input:focus,
.opl-form-group textarea:focus,
.opl-form-group select:focus {
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.07);
}
.opl-form-group select option { background: var(--violet-nuit); }
.opl-form-group textarea { min-height: 140px; }

.opl-form-consent {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 1.2rem; border: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.03); margin-bottom: 2rem;
}
.opl-form-consent input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--or-sacre); margin-top: 0.15rem; cursor: pointer;
}
.opl-form-consent label { font-size: 0.78rem; line-height: 1.6; opacity: 0.65; cursor: pointer; }
.opl-form-consent a { color: var(--or-sacre); text-decoration: underline; text-underline-offset: 2px; }

/* ── SECTION CTA ── */
.opl-cta { text-align: center; position: relative; z-index: 2; }
.opl-cta .opl-label { justify-content: center; display: flex; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s 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; }

/* ── RÉSEAUX SOCIAUX ── */
.opl-social-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.opl-social-link {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--creme);
  padding: 1.3rem 1.5rem; border: 1px solid rgba(201,168,76,0.1);
  min-width: 110px; transition: all 0.3s; position: relative; overflow: hidden;
}
.opl-social-link::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(201,168,76,0.05); transform: translateY(101%); transition: transform 0.3s;
}
.opl-social-link:hover { border-color: rgba(201,168,76,0.35); }
.opl-social-link:hover::before { transform: translateY(0); }
.opl-social-icon { font-size: 1.6rem; position: relative; z-index: 1; }
.opl-social-name { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-sacre); opacity: 0.8; position: relative; z-index: 1; }
.opl-social-handle { font-size: 0.72rem; opacity: 0.45; font-style: italic; position: relative; z-index: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  body { padding-top: 65px; }
  .opl-hero { padding: 0 1.5rem 3rem; min-height: 55vh; }
  .opl-hero.tall { min-height: 65vh; }
  .opl-section { padding: 5rem 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group.centered { align-items: center; }
  .opl-divider { padding: 0 1.5rem; }
  .opl-social-grid { justify-content: center; }
}

@media (max-width: 480px) {
  .opl-hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .opl-meta { flex-direction: column; }
}
</style>
