/* static/core/css/home.css */

/* ===== RESET & ROOT ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --color-primary: #2980b9;
  --color-secondary: #27ae60;
  --color-accent: #f1c40f;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-overlay: rgba(0, 0, 0, 0.5);
  --box-shadow-soft: 0 8px 24px rgba(52,152,219,0.12);
}

/* ===== BODY ===== */
body {
  background-color: #f4f4f9;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HOME CONTAINER ===== */
.home-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.background-overlay {
  position: relative;
  background-color: var(--bg-dark-overlay);
  padding: 40px 30px;
  border-radius: 15px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease-in-out forwards;
}

/* ===== TEXTES & TITRES ===== */
h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.4;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 20px auto 30px;
  max-width: 800px;
  line-height: 1.5;
}

/* ===== COULEURS ===== */
.highlight-white { color: #fff; }
.highlight-yellow { color: var(--color-accent); }
.highlight-primary { color: #00cec9; }
.highlight-secondary {
  color: #ffeaa7;
  background: #222;
  padding: 0 0.5em;
  border-radius: 5px;
}
.highlight-accent { color: #fab1a0; font-weight: 600; }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.25s, background-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.30);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-business {
  background-color: var(--color-primary);
  color: var(--text-light);
}

.btn-social {
  background-color: var(--color-secondary);
  color: var(--text-light);
}

/* (hover géré aussi dans l’arc pour garder translateY) */
.btn-social:hover,
.btn-social:focus,
.btn-business:hover,
.btn-business:focus {
  outline: none;
}

/* ===== LAYOUT PRINCIPAL ===== */
.main-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

/* ===== GLOBE ===== */
#globe-container {
  position: relative;
  width: 260px;
  height: 260px;
  z-index: 10;
}

#globe-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 11;
}

#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== ANIMATION GLOBE ===== */
.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin-left: -160px;
  margin-top: -160px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: pulse 2.5s infinite ease-in-out;
  z-index: 9;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* ===== DRAPEAU ===== */
.flag {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 78px;
  height: auto;
  animation: wave 2.5s infinite ease-in-out;
  transform-origin: left center;
  opacity: 0.85;
  z-index: 20;
}

@keyframes wave {
  0%,100% { transform: rotateZ(0deg) skewY(0deg); }
  25% { transform: rotateZ(1deg) skewY(2deg); }
  50% { transform: rotateZ(0deg) skewY(0deg); }
  75% { transform: rotateZ(-1deg) skewY(-2deg); }
}

/* ===== MESSAGE ===== */
.impact-message {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

/* ==========================================================
   ARC VISIBLE (sur la div .home-arc-layout dans ton home.html)
   ========================================================== */

.home-arc-layout {
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Courbe décorative derrière */
@media (min-width: 992px) {
  .home-arc-layout::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(760px, 92%);
    height: 220px;
    border-top: 2px solid rgba(255,255,255,0.18);
    border-left: 2px solid rgba(255,255,255,0.10);
    border-right: 2px solid rgba(255,255,255,0.10);
    border-radius: 900px 900px 0 0;
    pointer-events: none;
    z-index: 1;
  }

  /* Tout au-dessus de la courbe */
  .home-arc-layout > * {
    position: relative;
    z-index: 2;
  }

  /* Valeurs d’arc */
  .home-arc-layout {
    --arc-side-y: -44px;  /* boutons montent */
    --arc-globe-y: 18px;  /* globe descend */
  }

  /* Boutons montent */
  .home-arc-layout > a.btn-social {
    transform: translateY(var(--arc-side-y));
  }
  .home-arc-layout > a.btn-business {
    transform: translateY(var(--arc-side-y));
  }

  /* Hover garde translateY + scale */
  .home-arc-layout > a.btn-social:hover,
  .home-arc-layout > a.btn-social:focus {
    transform: translateY(var(--arc-side-y)) scale(1.05);
    background-color: #2ecc71;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.6);
  }
  .home-arc-layout > a.btn-business:hover,
  .home-arc-layout > a.btn-business:focus {
    transform: translateY(var(--arc-side-y)) scale(1.05);
    background-color: #3498db;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.6);
  }

  /* Globe plus petit + plus bas */
  .home-arc-layout #globe-container {
    width: 180px !important;
    height: 180px !important;
    transform: translateY(var(--arc-globe-y));
  }

  /* Pulse ring recalibré */
  .home-arc-layout .pulse-ring {
    width: 230px !important;
    height: 230px !important;
    margin-left: -115px !important;
    margin-top: -115px !important;
    border-width: 3px !important;
  }
}

/* Institution (sans backdrop-filter, compatible Safari iOS) */
.home-btn-institution{
  min-width: 260px;
  border-width: 2px;

  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;

  box-shadow: 0 10px 26px rgba(0,0,0,0.30);
}

.home-btn-institution:hover,
.home-btn-institution:focus{
  transform: scale(1.03);
  background-color: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.80);
  box-shadow: 0 14px 32px rgba(0,0,0,0.38);
  outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .main-layout { gap: 20px; }
  #globe-container { width: 220px; height: 220px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .subtitle { font-size: 1.1rem; }
  .main-layout { flex-direction: column; margin-top: 30px; }
  #globe-container { width: 200px; height: 200px; }
  .btn { font-size: 0.95rem; padding: 12px 20px; }
  .impact-message { font-size: 1rem; }
  .flag { width: 64px; top: 1rem; right: 1rem; }
  .background-overlay { padding: 20px 15px; }
}

@media (max-width: 575px) {
  .background-overlay { padding: 8px 2px; }
  .main-layout { gap: 10px; }
  .flag { left: 50%; right: auto; transform: translateX(-50%) scale(0.8); }
}




