/* ============================================================
   CANADA IMMIGRATION — TEMOIGNAGES.CSS
   Design : Luxe & Voyage | Bleu nuit + Or + Blanc crème
   ============================================================ */

/* ── OVERFLOW FIX ───────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }

/* ── ROOT VARIABLES (reprend le système du site) ────────── */
:root {
  --navy:       #0b1f3a;
  --navy-mid:   #132d52;
  --navy-light: #1e4175;
  --gold:       #c9a84c;
  --gold-light: #e2c170;
  --gold-pale:  #f7f0dd;
  --cream:      #faf8f3;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --text-light: #6b7280;
  --border:     rgba(201,168,76,0.2);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 12px rgba(11,31,58,0.08);
  --shadow-md:  0 8px 32px rgba(11,31,58,0.14);
  --shadow-lg:  0 20px 60px rgba(11,31,58,0.20);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  width: min(90%, 1240px);
  margin-inline: auto;
}

.section-pad { padding: 100px 0; }


/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem);        font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem);  font-weight: 600; }


/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: transparent; color: var(--gold); }

.btn-small { padding: 10px 22px; font-size: .82rem; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid #25d366;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: transparent; color: #25d366; }


/* ── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
  padding: 0 20px;
}
.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.section-label::before { right: 100%; margin-right: -20px; }
.section-label::after  { left:  100%; margin-left:  -20px; }

.section-title { margin-bottom: 16px; }

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
}


/* ══════════════════════════════════════════════════════════
   HERO TÉMOIGNAGES
══════════════════════════════════════════════════════════ */
.temo-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

/* Fond bleu nuit avec motif subtil */
.temo-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(30,65,117,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(11,31,58,0.9) 0%, transparent 70%),
    var(--navy);
}

/* Motif géométrique discret */
.temo-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 40px,
      rgba(201,168,76,0.03) 40px,
      rgba(201,168,76,0.03) 41px
    );
}

.temo-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 60%,
    rgba(11,31,58,0.6) 100%
  );
}

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

.temo-hero-content {
  max-width: 700px;
  animation: heroFadeUp .9s ease both;
}

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

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.temo-hero-content h1 {
  color: var(--white);
  font-weight: 300;
  margin-bottom: 20px;
}
.temo-hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 600;
}

.temo-hero-content > p {
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  margin-bottom: 40px;
}

/* Score bar dans le hero */
.temo-score-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.25);
  backdrop-filter: blur(10px);
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.temo-score-stars {
  display: flex;
  gap: 4px;
}
.temo-score-stars i {
  color: var(--gold);
  font-size: 1rem;
}

.temo-score-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.temo-score-count {
  color: rgba(255,255,255,0.55);
  font-size: .85rem;
  letter-spacing: .04em;
}

/* Feuilles d'érable décoratives */
.temo-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.deco-leaf {
  position: absolute;
  font-size: clamp(3rem, 8vw, 7rem);
  opacity: 0.04;
  animation: floatLeaf 12s ease-in-out infinite;
  filter: blur(1px);
  user-select: none;
}
.deco-leaf:nth-child(1) { top: 10%;  right: 8%;  animation-delay: 0s;   font-size: clamp(4rem, 10vw, 9rem); }
.deco-leaf:nth-child(2) { top: 55%;  right: 22%; animation-delay: -4s;  font-size: clamp(2rem, 5vw, 5rem); }
.deco-leaf:nth-child(3) { bottom: 8%; right: 5%; animation-delay: -8s;  font-size: clamp(3rem, 7vw, 6rem); }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-20px) rotate(8deg); }
}


/* ══════════════════════════════════════════════════════════
   CARROUSEL
══════════════════════════════════════════════════════════ */
.temo-carousel-section { background: var(--white); }

.temo-carousel {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

/* Track */
.temo-track {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Slides */
.temo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease, transform .7s ease;
  transform: translateX(40px);
}

.temo-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}

.temo-slide.exit {
  opacity: 0;
  transform: translateX(-40px);
  position: absolute;
}

.temo-slide-inner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(32px, 7vw, 88px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Fond subtil derrière la slide */
.temo-slide-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(30,65,117,0.4) 0%, transparent 60%);
  pointer-events: none;
}

/* Guillemet géant */
.temo-quote-icon {
  position: absolute;
  top: -20px;
  left: 32px;
  font-family: var(--font-display);
  font-size: clamp(10rem, 18vw, 18rem);
  color: rgba(201,168,76,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-weight: 700;
}

/* Message */
.temo-message {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
  max-width: 680px;
}

/* Étoiles dans le carrousel */
.temo-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.temo-stars i      { color: var(--gold); font-size: 1rem; }
.temo-stars .fa-star-o { color: rgba(201,168,76,0.3); }

/* Auteur */
.temo-author {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.temo-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.temo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.temo-avatar-initials {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.temo-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.temo-author-info strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.temo-author-info span {
  font-size: .82rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: .04em;
}

/* Badge visa (dans le carrousel) */
.temo-visa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 4px;
  width: fit-content;
}

/* Contrôles carrousel */
.temo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.temo-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--navy);
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.temo-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transform: scale(1.08);
}

.temo-dots {
  display: flex;
  gap: 8px;
}
.temo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11,31,58,0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.temo-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* Barre de progression */
.temo-progress {
  height: 3px;
  background: rgba(11,31,58,0.1);
  border-radius: 100px;
  margin-top: 20px;
  overflow: hidden;
}
.temo-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  transition: width 6s linear;
}


/* ══════════════════════════════════════════════════════════
   GRILLE DES TÉMOIGNAGES
══════════════════════════════════════════════════════════ */
.temo-grid-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

/* Fond décoratif */
.temo-grid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(201,168,76,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(11,31,58,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.temo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* Carte individuelle */
.temo-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease,
              opacity .55s ease;
  opacity: 0;
  transform: translateY(30px);
  cursor: default;
}
.temo-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.temo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

/* Guillemet BG décoratif */
.temo-card-deco {
  position: absolute;
  bottom: -30px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 9rem;
  color: rgba(201,168,76,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-weight: 700;
  transition: color var(--transition);
}
.temo-card:hover .temo-card-deco {
  color: rgba(201,168,76,0.11);
}

/* En-tête de la carte */
.temo-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.temo-avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.temo-avatar-sm .temo-avatar-initials {
  font-size: 1.1rem;
}
.temo-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.temo-card-info {
  flex: 1;
  min-width: 0;
}
.temo-card-info strong {
  display: block;
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.temo-card-info span {
  font-size: .78rem;
  color: var(--text-light);
}

.temo-card-stars {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.temo-card-stars i        { font-size: .8rem; color: var(--gold); }
.temo-card-stars .fa-star-o { color: rgba(201,168,76,0.3); }

/* Badge visa dans la carte */
.temo-visa-badge--card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.3);
  color: #8a6a1e;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* Message de la carte */
.temo-card-message {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,31,58,0.88) 0%, rgba(30,65,117,0.75) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 42px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Tablette 1024px */
@media (max-width: 1024px) {
  .temo-grid { grid-template-columns: 1fr 1fr; }
  .temo-hero { padding: 130px 0 80px; }
}

/* Mobile 768px */
@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }

  .temo-hero {
    min-height: auto;
    padding: 110px 0 70px;
    text-align: center;
  }

  .temo-score-bar {
    justify-content: center;
    gap: 10px;
  }

  .deco-leaf { display: none; }

  /* Carrousel */
  .temo-slide-inner {
    padding: 40px 28px;
    min-height: 320px;
  }

  .temo-message { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  .temo-author { flex-direction: column; text-align: center; gap: 12px; }

  .temo-author-info { align-items: center; }

  .temo-visa-badge { align-self: center; }

  /* Grid */
  .temo-grid { grid-template-columns: 1fr; gap: 20px; }

  .section-label::before,
  .section-label::after { display: none; }

  /* CTA */
  .cta-banner { background-attachment: scroll; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* Mobile 480px */
@media (max-width: 480px) {
  .temo-slide-inner { padding: 32px 20px; }

  .temo-quote-icon { font-size: 7rem; top: -10px; left: 16px; }

  .temo-card { padding: 24px 20px; }

  .temo-score-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
  }

  .temo-hero .container { text-align: center; }

  .hero-tag { font-size: .7rem; }
}
