/* =========================================================
   STYLE COMMUN - AFEVAG
   Utilisé par toutes les pages (navbar, footer, variables)
========================================================= */

/* ===== POLICES ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap');

/* Polices personnalisées - Glancyr et Ralewey */
@font-face {
  font-family: 'Glancyr';
  src: url('fonts/Glancyr.woff2') format('woff2'),
       url('fonts/Glancyr.woff') format('woff');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ralewey';
  src: url('fonts/Ralewey.woff2') format('woff2'),
       url('fonts/Ralewey.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Fallback si les polices ne chargent pas */
:root {
  --font-glancyr: 'Glancyr', 'Fredoka', system-ui, sans-serif;
  --font-ralewey: 'Ralewey', 'Nunito', system-ui, sans-serif;
  --font-main: 'Nunito', system-ui, sans-serif;
}

/* ===== VARIABLES ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #ffffff;
  --color-primary: #ff9200;
  --color-primary-dark: #c89633;
  --color-text: #1a1a1a;
  --color-text-muted: #3b3b3b;
  --color-card-bg: #ffffff;
  --color-border: rgba(3, 17, 43, 0.863);
  --color-kente-gold: #ffb703;
  --color-kente-red: #d7263d;
  --color-kente-green: #1b9c66;
  --color-gold: #ffd700;
  --color-accent: #f1c40f;
  --font-main: 'Nunito', system-ui, sans-serif;
  --font-heading: 'Glancyr', 'Fredoka', system-ui, sans-serif;
  --font-numbers: 'Ralewey', 'Nunito', system-ui, sans-serif;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 14px 28px rgba(0, 0, 0, 0.06);
  --container-width: 1120px;
  --kente-stripe: repeating-linear-gradient(
    90deg,
    #1b9c66 0 16px,
    #ffb703 16px 28px,
    #d7263d 28px 40px,
    #1b9c66 40px 48px
  );
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* =========================================================
   BODY BLANC AVEC LOGO EN FILIGRANE (WATERMARK)
   Opacité augmentée pour mieux voir le logo
========================================================= */
body {
  font-family: var(--font-main);
  background: #ffffff;
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* LOGO EN FILIGRANE - GRAND LOGO TRANSPARENT EN FOND */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vmin;
  height: 80vmin;
  background-image: url('image/log copie.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  animation: watermarkFloat 20s ease-in-out infinite;
}

/* Deuxième couche de motif décoratif */
body::after {
  content: "✦ ✧ ✦ ✧ ✦ ✧ ✦";
  position: fixed;
  top: 10%;
  left: 2%;
  font-size: 2rem;
  color: rgba(255, 146, 0, 0.04);
  pointer-events: none;
  animation: floatBg 25s ease-in-out infinite;
  z-index: 0;
  letter-spacing: 40px;
  white-space: nowrap;
  transform: rotate(-5deg);
}

@keyframes watermarkFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
  }
  66% {
    transform: translate(-50%, -50%) scale(0.95) rotate(-2deg);
  }
}

@keyframes floatBg {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, -20px) rotate(3deg) scale(1.05); }
  50% { transform: translate(-20px, 30px) rotate(-3deg) scale(0.95); }
  75% { transform: translate(15px, -15px) rotate(2deg) scale(1.02); }
}

/* ===== TYPOGRAPHIE - GLANCYR pour les titres ===== */
h1, h2, h3, h4, h5, h6,
.logo span,
.card-body h3,
.animated-title,
.hero-text h1,
.section-header h2,
.hero-tagline,
.menu a {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

/* ===== NUMEROS DE TELEPHONE - Ralewey ===== */
.footer-phone,
.contact-link,
.phone-number,
[class*="phone"],
[class*="Phone"],
a[href^="tel:"],
a[href^="https://wa.me"] {
  font-family: var(--font-numbers);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* =========================================================
   NAVBAR - Version SOMBRE
   Texte en BLANC, survol en ORANGE
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(0, 6, 27, 0.95), rgba(1, 6, 26, 0.85));
  border-bottom: 1px solid var(--color-border);
}

.navbar::after {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: var(--kente-stripe);
  background-size: 48px 100%;
  opacity: 0.85;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(255, 146, 0, 0.15));
  transition: filter 0.3s ease;
  border-radius: 10%;
}

.logo:hover img {
  filter: drop-shadow(0 0 30px rgba(255, 146, 0, 0.3));
}

.logo span {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
  max-width: 260px;
  color: #ffffff;
  font-family: var(--font-heading);
}

.logo span .highlight {
  color: var(--color-primary);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  font-family: var(--font-heading);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
}

/* SURVOL : couleur ORANGE */
.menu a:hover {
  color: var(--color-primary);
}

.menu a:hover::after {
  width: 60%;
}

/* ACTIF (page en cours) : couleur ORANGE */
.menu a.active {
  color: var(--color-primary);
}

.menu a.active::after {
  width: 60%;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9200, #f3d186);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 146, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 28px rgba(255, 146, 0, 0.45);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER BLANC AVEC LOGO
========================================================= */
.footer {
  border-top: 3px solid var(--color-primary);
  padding: 2rem 0 1.5rem;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--kente-stripe);
  background-size: 48px 100%;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: #333333;
  position: relative;
  z-index: 1;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border-radius: 10%;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #050814;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logo span .highlight {
  color: var(--color-primary);
}

.footer-center {
  text-align: center;
  color: #555555;
  font-family: var(--font-main);
}

.footer-center p {
  margin: 0;
  line-height: 1.6;
}

.footer-center .footer-phone {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-numbers);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-center .footer-phone:hover {
  color: var(--color-primary-dark);
}

.footer-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-right .footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-right .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333333;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-right .footer-social a:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 146, 0, 0.3);
}

/* =========================================================
   CONTACT LINK - NUMEROS EN Ralewey
========================================================= */
.contact-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  font-family: var(--font-numbers);
  letter-spacing: 0.02em;
}

.contact-link::before {
  content: "◆";
  margin-right: 0.4rem;
  opacity: 0.4;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.contact-link:hover {
  color: var(--color-gold);
}

.contact-link:hover::before {
  opacity: 1;
  transform: rotate(90deg);
}

/* =========================================================
   SECTIONS
========================================================= */
.section {
  padding: 3rem 0;
  position: relative;
}

.section-alt {
  background: #f8f6f3;
}

.section-header {
  max-width: 540px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0 0 0.7rem;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.section-header h2::before {
  content: "◆";
  margin-right: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
  font-family: var(--font-main);
}

.section-header p {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-family: var(--font-main);
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: var(--kente-stripe);
  background-size: 40px 100%;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 146, 0, 0.15);
}

.card-image {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-body {
  padding: 1.2rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.card-body h3::before {
  content: "◆";
  margin-right: 0.4rem;
  color: var(--color-primary);
  font-size: 0.7rem;
  font-family: var(--font-main);
}

.card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-family: var(--font-main);
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-block {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.about-block:hover {
  border-color: rgba(255, 146, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.about-block h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.about-block h2::before {
  content: "◆";
  margin-right: 0.5rem;
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-main);
}

.about-block p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-family: var(--font-main);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 960px) {
  .nav-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .menu {
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-strip {
    grid-template-columns: 1fr;
  }

  .section-header {
    text-align: center;
    max-width: 100%;
  }

  .section-header h2::before {
    display: none;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-logo {
    flex-direction: column;
  }

  .footer-right {
    flex-direction: column;
  }

  body::before {
    width: 60vmin;
    height: 60vmin;
  }
}

@media (max-width: 640px) {
  .logo {
    flex-direction: column;
    text-align: center;
  }

  .logo span {
    max-width: 100%;
    font-size: 0.82rem;
  }

  .menu a {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer-logo img {
    width: 40px;
    height: 30px;
  }

  .footer-logo span {
    font-size: 0.8rem;
  }

  .footer-right .footer-social a {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .footer-center .footer-phone {
    font-size: 0.95rem;
  }

  .contact-link {
    font-size: 0.95rem;
  }

  body::before {
    width: 50vmin;
    height: 50vmin;
    opacity: 0.06;
  }
}

@media (max-width: 460px) {
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  body::before {
    width: 40vmin;
    height: 40vmin;
    opacity: 0.05;
  }
}

/* ===== ACCESSIBILITE ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 2vw, 5.5rem);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 0.8rem;
  text-shadow: 0 0 60px rgba(255, 146, 0, 0.08);
  animation: titlePulse 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
}
/* =========================================================
   ÉLÉMENTS ANIMÉS JOYEUX
========================================================= */
.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.hero-decorations span {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.25;
  animation: floatDecoration 6s ease-in-out infinite;
}

/* Étoiles */
.deco-star {
  color: #ffb703;
  animation-duration: 4s !important;
}

.star-1 { top: 5%; left: 3%; font-size: 2rem; animation-delay: 0s; }
.star-2 { top: 12%; right: 5%; font-size: 1.6rem; animation-delay: 1.2s; }
.star-3 { bottom: 25%; left: 2%; font-size: 1.8rem; animation-delay: 2.4s; }
.star-4 { bottom: 10%; right: 4%; font-size: 2.2rem; animation-delay: 3.6s; }

/* Diamants */
.deco-diamond {
  color: #d7263d;
  animation-duration: 5s !important;
}
.diamond-2 {
  top: 30%; right: 2%; font-size: 1.2rem;
  color: #1b9c66;
  animation-delay: 1s;
}

/* Cercles */
.deco-circle {
  color: #ff9200;
  animation-duration: 4.5s !important;
}
.circle-2 {
  bottom: 35%; left: 4%; font-size: 0.9rem;
  color: #ffb703;
  animation-delay: 2s;
}

/* Étincelles */
.deco-sparkle {
  color: #f1c40f;
  animation-duration: 3.5s !important;
}
.sparkle-2 {
  top: 45%; right: 6%; font-size: 1rem;
  color: #d7263d;
  animation-delay: 1.5s;
}

/* Cœurs */
.deco-heart {
  color: #ff6b6b;
  animation-duration: 5.5s !important;
}
.heart-2 {
  bottom: 15%; right: 3%; font-size: 1.1rem;
  color: #ffb703;
  animation-delay: 2.5s;
}

/* Triangles */
.deco-triangle {
  color: #1b9c66;
  animation-duration: 4.8s !important;
}
.triangle-2 {
  top: 55%; left: 1%; font-size: 1rem;
  color: #ff9200;
  animation-delay: 1.8s;
}

@keyframes floatDecoration {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.15;
  }
  25% {
    transform: translateY(-20px) rotate(15deg) scale(1.3);
    opacity: 0.4;
  }
  50% {
    transform: translateY(15px) rotate(-15deg) scale(0.8);
    opacity: 0.2;
  }
  75% {
    transform: translateY(-10px) rotate(8deg) scale(1.1);
    opacity: 0.35;
  }
}
/* =========================================================
   FOOTER - RÉSEAUX SOCIAUX
========================================================= */
.footer-right .footer-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-right .footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333333;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-right .footer-social .social-link svg {
  fill: #333333;
  transition: fill 0.3s ease;
}

/* Couleurs au survol */
.footer-right .footer-social .social-link.facebook:hover {
  background: #1877f2;
}
.footer-right .footer-social .social-link.facebook:hover svg {
  fill: #ffffff;
}

.footer-right .footer-social .social-link.instagram:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.footer-right .footer-social .social-link.instagram:hover svg {
  fill: #ffffff;
}

.footer-right .footer-social .social-link.tiktok:hover {
  background: #000000;
}
.footer-right .footer-social .social-link.tiktok:hover svg {
  fill: #ffffff;
}

.footer-right .footer-social .social-link.whatsapp:hover {
  background: #25D366;
}
.footer-right .footer-social .social-link.whatsapp:hover svg {
  fill: #ffffff;
}

.footer-right .footer-social .social-link.email:hover {
  background: #ff9200;
}
.footer-right .footer-social .social-link.email:hover svg {
  fill: #ffffff;
}

.footer-right .footer-social .social-link.location:hover {
  background: #ea4335;
}
.footer-right .footer-social .social-link.location:hover svg {
  fill: #ffffff;
}

.footer-right .footer-social .social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   RESPONSIVE FOOTER
========================================================= */
@media (max-width: 640px) {
  .footer-right .footer-social .social-link {
    width: 36px;
    height: 36px;
  }
  
  .footer-right .footer-social {
    gap: 0.6rem;
  }
}

@media (max-width: 460px) {
  .footer-right .footer-social .social-link {
    width: 32px;
    height: 32px;
  }
  
  .footer-right .footer-social .social-link svg {
    width: 16px;
    height: 16px;
  }
}