@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,600;1,9..40,400&display=swap');

/* =====================================================
   VARIABLES — COULEURS DRAPEAU VZ & CO
   ===================================================== */
:root {
  /* Venezuela */
  --vz-jaune:    #CF8A00;
  --vz-bleu:     #003087;
  --vz-rouge:    #CC0001;

  /* Colombie */
  --co-jaune:    #FCD116;
  --co-bleu:     #003893;
  --co-rouge:    #CE1126;

  /* Neutres */
  --blanc:       #FDFCF8;
  --creme:       #FBF6EC;
  --encre:       #14100D;
  --gris-doux:   #6B6560;

  /* Tokens UI */
  --accent-or:   var(--co-jaune);
  --accent-vif:  var(--co-rouge);
  --fond-nav:    var(--vz-bleu);
  --fond-body:   var(--creme);
  --card-bg:     rgba(253, 252, 248, 0.96);

  /* Typographie */
  --font-titre:  'Fraunces', Georgia, serif;
  --font-corps:  'DM Sans', system-ui, sans-serif;

  /* Rayons & ombres */
  --radius-carte: 20px;
  --ombre-douce:  0 8px 40px rgba(0,0,0,0.10);
  --ombre-forte:  0 20px 70px rgba(0,0,0,0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-corps);
  color: var(--encre);
  background-color: var(--fond-body);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(252,209,22,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 100% 110%, rgba(206,17,38,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(0,48,135,0.08) 0%, transparent 60%);
  padding-top: 80px;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.75;
}

/* Grain de texture subtil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   BARRE DE NAVIGATION
   ===================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--fond-nav);
  padding: 0;
  box-shadow: 0 4px 24px rgba(0,0,64,0.25);
}

/* Bandeau tricolore VZ en haut de la nav */
nav::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg,
    var(--co-jaune) 0%,    var(--co-jaune) 33.3%,
    var(--co-bleu)  33.3%, var(--co-bleu)  66.6%,
    var(--co-rouge) 66.6%, var(--co-rouge) 100%
  );
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--font-corps);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.2s;
  position: relative;
}

nav a.active {
  color: var(--encre);
  background: var(--co-jaune);
  border-color: var(--co-jaune);
  font-weight: 700;
}

nav a:hover:not(.active) {
  color: var(--co-jaune);
  border-color: rgba(252,209,22,0.4);
  transform: translateY(-2px);
}

/* =====================================================
   CONTENEUR
   ===================================================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

/* =====================================================
   TITRES h1 & h2
   ===================================================== */
h1 {
  font-family: var(--font-titre);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  text-align: center;
  margin: 60px 0 50px;
  letter-spacing: -0.02em;

  /* Effet texte tricolore animé */
  background: linear-gradient(
    120deg,
    var(--vz-rouge) 0%,
    var(--co-jaune) 30%,
    var(--vz-bleu)  60%,
    var(--co-rouge) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 6s linear infinite;

  /* Ombre portée dorée */
  filter: drop-shadow(0 4px 16px rgba(252,209,22,0.35));
}

h2 {
  font-family: var(--font-titre);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 60px 0 28px;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 22px;
  color: var(--vz-bleu);
}

/* Barre latérale dorée sur h2 */
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--co-jaune), var(--co-rouge));
}

/* Mot soulignage ondulé décoratif sous h2 */
h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--co-jaune), var(--co-rouge));
  border-radius: 99px;
  opacity: 0.7;
}

@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* =====================================================
   PARAGRAPHES — CARTES
   ===================================================== */
.container > p {
  background: var(--card-bg);
  padding: 36px 44px;
  margin-bottom: 32px;
  border-radius: var(--radius-carte);
  box-shadow: var(--ombre-douce);
  border-left: 5px solid var(--co-jaune);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--encre);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s;

  /* Entrée animée */
  opacity: 0;
  transform: translateY(28px);
  animation: cardReveal 0.65s cubic-bezier(.22,1,.36,1) forwards;
}

/* Délai de cascade sur les cartes */
.container > p:nth-child(1) { animation-delay: 0.05s; }
.container > p:nth-child(2) { animation-delay: 0.15s; }
.container > p:nth-child(3) { animation-delay: 0.25s; }
.container > p:nth-child(4) { animation-delay: 0.35s; }
.container > p:nth-child(5) { animation-delay: 0.45s; }
.container > p:nth-child(6) { animation-delay: 0.55s; }
.container > p:nth-child(7) { animation-delay: 0.65s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Reflet doré diagonal au hover */
.container > p::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(252,209,22,0.08) 50%,
    transparent 60%
  );
  transform: skewX(-15deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.container > p:hover::before {
  left: 130%;
}

.container > p:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-forte);
  border-left-color: var(--co-rouge);
}

/* =====================================================
   TEXTE FORT (strong, b)
   ===================================================== */
strong, b {
  font-weight: 700;
  color: var(--vz-bleu);
  position: relative;
}

/* Soulignage doré animé sur strong */
strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--co-jaune);
  border-radius: 99px;
  transition: width 0.4s ease;
}

strong:hover::after {
  width: 100%;
}

/* =====================================================
   IMAGES
   ===================================================== */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 48px auto;
  border-radius: 16px;
  box-shadow:
    0 0 0 4px var(--co-jaune),
    0 0 0 8px var(--co-bleu),
    var(--ombre-forte);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.45s;
}

img:hover {
  transform: scale(1.025) rotate(-0.5deg);
  box-shadow:
    0 0 0 4px var(--co-jaune),
    0 0 0 8px var(--co-rouge),
    0 32px 80px rgba(0,0,0,0.25);
}

/* =====================================================
   TABLEAUX .tableau-arepas
   ===================================================== */
.tableau-arepas {
  width: 100%;
  margin: 40px 0;
  border-radius: var(--radius-carte);
  overflow: hidden;
  box-shadow: var(--ombre-douce);
  background: var(--card-bg);
  font-family: var(--font-corps);
  border: 1.5px solid rgba(252,209,22,0.35);
  transition: transform 0.35s, box-shadow 0.35s;
}

.tableau-arepas:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-forte);
}

.tableau-arepas th {
  background: linear-gradient(90deg, var(--vz-bleu), var(--co-bleu));
  color: #fff;
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tableau-arepas td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(252,209,22,0.15);
  font-size: 1em;
  transition: background 0.2s, padding-left 0.2s;
}

.tableau-arepas tr:last-child td { border-bottom: none; }

.tableau-arepas tr:hover td {
  background: rgba(252,209,22,0.07);
  padding-left: 30px;
}

.tableau-arepas td:last-child {
  font-weight: 700;
  color: #1a7a2e;
}

/* =====================================================
   TÉMOIGNAGES .temoignage
   ===================================================== */
.temoignage {
  background: var(--card-bg);
  padding: 40px 44px;
  margin-bottom: 32px;
  border-radius: var(--radius-carte);
  box-shadow: var(--ombre-douce);
  border-top: 4px solid var(--co-jaune);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.85;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s;
  opacity: 0;
  transform: translateY(28px);
  animation: cardReveal 0.65s cubic-bezier(.22,1,.36,1) forwards;
}

/* Guillemet décoratif */
.temoignage::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 24px;
  font-family: var(--font-titre);
  font-size: 7rem;
  line-height: 1;
  color: var(--co-jaune);
  opacity: 0.18;
  pointer-events: none;
  font-style: normal;
}

.temoignage:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-forte);
}

.temoignage .etoiles {
  font-size: 1.5em;
  color: #F5C300;
  margin-bottom: 14px;
  font-style: normal;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(245,195,0,0.4);
  animation: starPulse 2.5s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.3) drop-shadow(0 0 6px rgba(245,195,0,0.6)); }
}

.temoignage .signature {
  margin-top: 24px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95em;
  text-align: right;
  letter-spacing: 0.03em;
  color: var(--co-rouge);
}

.temoignage-long {
  font-size: 1.02em;
}

/* =====================================================
   ANIMATIONS GLOBALES
   ===================================================== */

/* Flottement doux (décoratifs) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  body { padding-top: 70px; }

  nav ul { gap: 4px; padding: 12px 12px; }
  nav a  { font-size: 0.82rem; padding: 8px 14px; }

  .container { padding: 24px 16px 60px; }

  .container > p,
  .temoignage {
    padding: 28px 22px;
    font-size: 1rem;
  }

  h1 { margin: 40px 0 36px; }
  h2 { margin: 40px 0 20px; }

  .tableau-arepas thead { display: none; }
  .tableau-arepas tr    { display: block; margin-bottom: 16px; }
  .tableau-arepas td    {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 12px 16px;
  }
  .tableau-arepas td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--vz-bleu);
    margin-right: 12px;
  }
}
