:root{
  --lav:#6A5ACD;
  --ink:#1F1B2E;
  --gray:#8A8FA3;
  --shadow:0 1px 6px rgba(0,0,0,.05);
  --radius:16px;
  --container: 1200px;
  --gutter: 24px;
}

/* ====== CONTENEUR PRINCIPAL – 1200px max ====== */
.site-container {
  max-width: var(--container);
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop large : padding fixe, plus aéré */
@media (min-width: 1280px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Typo globale */
body{ font-family:"Inter",sans-serif; color:var(--ink); }
h1,h2,h3{
  font-family:"Poppins",sans-serif;
  font-weight:600;
  letter-spacing:-0.3px;
}
.text-gray,.muted{ color:var(--gray); }

/* ====== HEADER – MOBILE + DESKTOP ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #6A5ACD 0%, #5A4BB8 100%);
  color: #fff;
  backdrop-filter: saturate(130%) blur(12px);
  -webkit-backdrop-filter: saturate(130%) blur(12px);
}

/* MOBILE – PREMIUM + LOCAL */
@media (max-width: 1023px) {
  .site-header {
    padding: 0.4rem 1.25rem;
    gap: 1rem;
  }

  .header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .header-brand img {
    height: 2.5rem !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
  }

  .mobile-logo {
    height: 3.25rem; 
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
  }

  .header-brand span {
    font-size: 0.875rem;
    line-height: 1.1;
  }

  .header-cta {
    background: #fff !important;
    color: #6A5ACD !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(106,90,205,.25);
    transition: all .2s ease;
  }

  .header-cta:hover,
  .header-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(106,90,205,.35);
  }
}

/* Ultra-mobile */
@media (max-width: 375px) {
  .header-brand span { display: none; }
  .header-cta { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
}

/* DESKTOP – TOP TIER */
@media (min-width: 1024px) {
  /* Bloc 1 : Variables et règles générales */
  :root { --header-h: 76px; }

  .site-header {
    height: var(--header-h);
    box-shadow: 0 1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(0,0,0,.08);
    transition: all .3s ease;
  }

  .site-header:hover {
    box-shadow: 0 1px 0 rgba(255,255,255,.15), 0 8px 20px rgba(0,0,0,.12);
  }

  /* RÈGLE AJOUTÉE : Définition de la taille du logo sur desktop */
  .mobile-logo {
    height: 2.5rem; /* Rétablit la taille standard (40px) sur grand écran */
  }

  /* Bloc 2 : Intégré – Mise en page du conteneur */
  .site-header .site-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem !important; /* ← padding large écran */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
  }
  
  /* Le reste des règles (header-brand, header-cta, etc.) */
  .header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform .2s ease;
  }
  .header-brand:hover { transform: translateY(-1px); }

  .header-brand img {
    /* Cette règle devient redondante mais peut rester pour la compatibilité */
    height: 2.5rem !important; 
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
  }

  .header-cta {
    background: #fff !important;
    color: #6A5ACD !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(106,90,205,.25);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
  }

  .header-cta::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transition: left .6s;
  }

  .header-cta:hover::before { left: 100%; }
  .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106,90,205,.35);
  }
}

/* --- HERO --- */
.hero{ position:relative; isolation:isolate; }
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:radial-gradient(60% 60% at 80% 10%, rgba(106,90,205,.08), transparent 60%);
}

.h1{ font-size:clamp(2rem,4vw,3.25rem); line-height:1.15; }
.h2{ font-size:clamp(1.75rem,3vw,2.25rem); line-height:1.2; }
.lede{ font-size:clamp(1rem,2.2vw,1.125rem); color:var(--gray); }

.btn-primary{
  display:inline-flex; justify-content:center; align-items:center;
  padding:.75rem 1.25rem; font-weight:600; font-size:.95rem;
  color:#fff; background:var(--lav); border-radius:12px;
  box-shadow:var(--shadow); text-decoration:none;
}
.btn-primary:hover{ opacity:.92; }
.btn-primary:focus-visible{ outline:2px solid var(--lav); outline-offset:2px; }

.btn-ghost{
  display:inline-flex; justify-content:center; align-items:center;
  padding:.75rem 1.25rem; font-weight:600; font-size:.95rem;
  border:1px solid rgba(0,0,0,.1); border-radius:12px; text-decoration:none; color:var(--ink);
}
.btn-ghost:hover{ background:rgba(0,0,0,.04); }

.card{
  border:1px solid rgba(106,90,205,.08);
  border-radius:var(--radius);
  background:linear-gradient(180deg,#fff 0%,#f8f7ff 100%);
  box-shadow:0 4px 10px rgba(31,27,46,.05);
  transition:transform .2s ease, box-shadow .3s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(106,90,205,.15);
}
.card-title{ font-weight:600; color:var(--ink); }
.card-text{ color:var(--gray); font-size:.95rem; margin-top:.25rem; }

/* IMAGES CORRIGÉES – PAS DE DÉFORMATION */
.thumb{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  display: block;
}

.footer{
  background:linear-gradient(180deg,#f6f4ff 0%, #efeafd 100%);
  text-align:center; padding:2.75rem 1rem;
  border-top:1px solid rgba(0,0,0,.06);
}
.footer p{ color:#6f6c86; font-size:.95rem; letter-spacing:.2px; }
.footer-link{ color:var(--lav); text-decoration:none; font-weight:600; }
.footer-link:hover{ text-decoration:underline; }

.bottom-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  display:flex; justify-content:space-around; gap:.5rem;
  padding:.6rem clamp(.75rem, 3vw, 1.25rem) calc(.6rem + env(safe-area-inset-bottom)) clamp(.75rem, 3vw, 1.25rem);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(0,0,0,.06);
  box-shadow:0 -6px 22px rgba(31,27,46,.08);
  border-top-left-radius:16px; border-top-right-radius:16px;
}
.bb-item{
  flex:1; min-width:0;
  display:flex; flex-direction:column; align-items:center; gap:.35rem;
  padding:.4rem .5rem; text-decoration:none;
  color:var(--lav); font-weight:600;
  opacity:.92; transition:opacity .2s ease, transform .12s ease;
}
.bb-item svg{
  width:22px; height:22px;
  fill:none;
  stroke:var(--lav);
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.98;
}

.bb-item span{ font-size:clamp(.65rem, 2.2vw, .75rem); }
.bb-item:hover{ opacity:1; }
.bb-item:active{ transform:translateY(1px); }
.bb-item[aria-current="page"],
.bb-item.is-active{
  color:#fff;
  background:linear-gradient(180deg,#7a6bf0,#6A5ACD);
  border-radius:14px;
  box-shadow:0 2px 10px rgba(106,90,205,.25);
}
.bb-item[aria-current="page"] svg,
.bb-item.is-active svg{ stroke:#fff; }

@media (min-width:1025px){ .bottom-bar{ display:none; } }
@media (max-width:1024px){ body{ padding-bottom:72px; } }

blockquote.card {
  box-shadow: 0 3px 10px rgba(106, 90, 205, 0.08);
  border: none;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}
blockquote.card em {
  color: var(--gray);
  font-style: normal;
  display: block;
  margin-top: 0.5rem;
}
@media (max-width: 640px) {
  blockquote.card {
    padding: 1.25rem 1rem;
    font-size: 0.92rem;
  }
}
@media (hover: hover) and (pointer: fine) {
  blockquote.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  blockquote.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.15);
  }
}
[aria-label="Atouts"] .card{
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover:hover) and (pointer:fine){
  [aria-label="Atouts"] .card:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.15);
  }
}
.h2{ margin-bottom:.35rem; }
.site-container > .muted:first-of-type{ margin-top:.5rem; }
.card p{ line-height:1.6; }
@media (max-width:640px){
  .site-container.py-12{ padding-top:2.5rem; padding-bottom:2.5rem; }
}
.divider{
  height:1px; border:0; margin:2.25rem 0;
  background:linear-gradient(90deg, transparent, rgba(106,90,205,.25), transparent);
}
.btn-ghost:focus-visible,
.footer-link:focus-visible{
  outline:2px solid var(--lav);
  outline-offset:2px;
  border-radius:6px;
}
@media (hover:hover) and (pointer:fine){
  .btn-primary{ transition: transform .15s ease, box-shadow .2s ease; }
  .btn-primary:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(106, 90, 205, 0.15);
  }
}
.gradient-text {
  background: linear-gradient(90deg, #6A5ACD, #9B84EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge-optimise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6A5ACD, #7C6FF4);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(106, 90, 205, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-optimise:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 90, 205, 0.35);
}

/* ====== Desktop base (CONTENU) ====== */
@media (min-width:1024px){
  .h1{ font-size: clamp(36px, 3.2vw, 48px); line-height: 1.1; }
  .h2{ font-size: clamp(26px, 2.2vw, 32px); line-height: 1.18; }
  .lede{ font-size: 18px; }
}
.grid-12{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.span-6{ grid-column: span 6 / span 6; }
.span-5{ grid-column: span 5 / span 5; }
.span-7{ grid-column: span 7 / span 7; }

/* Styles pour les cartes voyant sur tous les écrans (Mobile-first) */
.voyant-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.voyant-card .thumb{
  aspect-ratio: 4/3;
  object-fit: cover;
  width:100%;
}

@media (min-width:1024px){
  .footer .site-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
}
/* Conteneur cartes voyants (MOBILE-FIRST) */
#cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Message aucun voyant */
.no-voyants {
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  margin: 1rem 0;
}

/* Description : 3 lignes max */
.voyant-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1em * 1.4 * 3);
}

/* Effets visuels sur la photo selon le statut */
.voyant-photo.indisponible {
  filter: grayscale(100%);
  opacity: 0.5;
}

.voyant-photo.consultation-photo {
  border: 2px solid #3b82f6; /* bleu */
}

.voyant-photo.pause-photo {
  border: 2px solid #f97316; /* orange */
}
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* RÈGLE DESKTOP (CORRIGÉE) : Placé en dernier pour garantir la priorité sur grand écran */
@media (min-width:1024px){
  #cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ===== Correctif mobile checkout : éviter le chevauchement avec la barre fixe du bas ===== */
:root{
  --mobile-bottom-nav-h: 74px;
}

@media (max-width: 767px){
  body{
    padding-bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom));
  }

  #tarifs{
    padding-bottom: calc(var(--mobile-bottom-nav-h) + 12px);
  }

  #step3{
    padding-bottom: calc(var(--mobile-bottom-nav-h) + 12px);
  }

  #paypalOptionCard{
    margin-bottom: calc(var(--mobile-bottom-nav-h) + 8px);
  }

  #coPayPalBtn,
  #coPayPalBtn > div,
  #coPayPalBtn iframe{
    max-width: 100% !important;
  }
}
