/* IFEMOS — motion design & textures (nov. 2026)
   Fil conducteur : « la route vers l'international », trait or fin, aucune photo. */

/* ---------- Texture : grain papier sur toute la page ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero : méridiens en filigrane + globe ---------- */
.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
  content: "";
  position: absolute;
  top: -10%; right: -18%;
  width: 78vw; max-width: 1180px; aspect-ratio: 1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' fill='none' stroke='%23C9A84C' stroke-opacity='.22'%3E%3Ccircle cx='500' cy='500' r='490'/%3E%3Ccircle cx='500' cy='500' r='400'/%3E%3Ccircle cx='500' cy='500' r='310'/%3E%3Cellipse cx='500' cy='500' rx='160' ry='490'/%3E%3Cellipse cx='500' cy='500' rx='330' ry='490'/%3E%3Cellipse cx='500' cy='500' rx='490' ry='160'/%3E%3Cellipse cx='500' cy='500' rx='490' ry='330'/%3E%3Cpath d='M10 500h980M500 10v980'/%3E%3C/svg%3E");
  background-size: contain;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
  animation: hv-spin 240s linear infinite;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section .col-lg-6:last-child { display: block; }

.hero .hl, .hero-section h1 .hl {
  background-image: linear-gradient(transparent 68%, rgba(201, 168, 76, .38) 68%, rgba(201, 168, 76, .38) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: hl-in 1.1s .5s cubic-bezier(.6, 0, .2, 1) forwards;
}
@keyframes hl-in { to { background-size: 100% 100%; } }

.hero-visual {
  position: relative;
  width: min(560px, calc(100% - 48px)); /* marge pour les cartes qui débordent du globe */
  margin-left: auto;
  aspect-ratio: 1;
  container-type: inline-size;
}
.globe-svg { width: 100%; height: 100%; overflow: visible; display: block; }

.gl-body { filter: drop-shadow(0 24px 40px rgba(22, 29, 44, .10)); }
.gl-rim { fill: none; stroke: #C9A84C; stroke-width: 1.3; stroke-opacity: .75; }
.gl-mer, .gl-par { fill: none; stroke: #A9822B; stroke-width: .9; stroke-opacity: .38; }
.gl-par { stroke-opacity: .3; }
.gl-ticks line { stroke: #C9A84C; stroke-opacity: .45; stroke-width: 1; }
.gl-ticks { transform-origin: 280px 280px; animation: hv-spin 160s linear infinite; }
.gl-orbit { fill: none; stroke: #C9A84C; stroke-width: 1; stroke-opacity: .45; stroke-dasharray: 2 7; animation: hv-dash 30s linear infinite; }
.gl-orbit-b { stroke-opacity: .28; animation-duration: 44s; animation-direction: reverse; }
.gl-sat { fill: #161D2C; }

.gl-route { fill: none; stroke: #C9A84C; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: route-draw 1.4s cubic-bezier(.65, 0, .35, 1) forwards; }
.gl-r1 { animation-delay: .9s; }
.gl-r2 { animation-delay: 1.3s; }
.gl-r3 { animation-delay: 1.7s; }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
.gl-trav { fill: #161D2C; opacity: 0; animation: fade-in .4s 2.4s forwards; }
.gl-trav-r2 { animation-delay: 2.9s; }
.gl-trav-r3 { animation-delay: 3.5s; }

.gl-node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: node-pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.gl-node-1 { animation-delay: 2.1s; }
.gl-node-2 { animation-delay: 2.5s; }
.gl-node-3 { animation-delay: 2.9s; }
.gl-node-ring { fill: #FAF7F0; stroke: #C9A84C; stroke-width: 1.3; }
.gl-node-dot { fill: #C9A84C; }
@keyframes node-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

.gl-origin-dot { fill: #161D2C; }
.gl-pulse { fill: none; stroke: #161D2C; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.gl-pulse-2 { animation-delay: 1.4s; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(4.2); opacity: 0; } }
.gl-label { font: 600 10px/1 var(--font-body); letter-spacing: .22em; fill: #161D2C; opacity: .75; }

/* Chaque carte est accrochée au point d'arrivée de sa route (coordonnées du globe 560 × 560, en %) */
.hv-anchor { position: absolute; z-index: 2; }
.hv-a1 { left: 75%;     top: 16.07%; transform: translate(-50%, calc(-100% - 10px)); }
.hv-a2 { left: 78.57%;  top: 77.86%; transform: translate(-50%, 10px); }
.hv-a3 { left: 21.07%;  top: 77.86%; transform: translate(-50%, 10px); }
.hv-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, .35);
  box-shadow: 0 18px 40px rgba(22, 29, 44, .10);
  opacity: 0;
  animation: card-in .7s cubic-bezier(.2, .8, .2, 1) forwards, float 7s ease-in-out infinite;
  white-space: nowrap;
}
.hv-card i {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: #161D2C; color: #C9A84C; font-size: 17px;
}
.hv-card strong { display: block; font: 700 15px/1.15 var(--font-heading); color: #161D2C; }
.hv-card span { display: block; font-size: 12.5px; color: #666; margin-top: 2px; }
.hv-card-1 { animation-delay: 2.2s, 3s; }
.hv-card-2 { animation-delay: 2.6s, 4.2s; }
.hv-card-3 { animation-delay: 3s, 3.6s; }
@keyframes card-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@keyframes hv-spin { to { transform: rotate(360deg); } }
@keyframes hv-dash { to { stroke-dashoffset: -180; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Piliers : numérotation + filet or animé ---------- */
.pillars-grid { counter-reset: pillar; }
.pillar-item { position: relative; overflow: hidden; }
.pillar-item::before {
  counter-increment: pillar;
  content: "0" counter(pillar);
  position: absolute; top: 14px; right: 18px;
  font: 700 34px/1 var(--font-heading);
  color: rgba(201, 168, 76, .18);
}
.pillar-item::after {
  content: "";
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.6, 0, .2, 1) .2s;
}
.pillar-item.is-visible::after, .pillar-item:hover::after { transform: scaleX(1); }
.pillar-item > i { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 76, .14), transparent 70%); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.pillar-item:hover > i { transform: translateY(-3px) rotate(-8deg); }

/* ---------- Sections claires : courbes de niveau en filigrane ---------- */
#pourquoi-ifemos, #temoignages { position: relative; overflow: hidden; }
#pourquoi-ifemos::before, #temoignages::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400' fill='none' stroke='%23C9A84C' stroke-opacity='.16'%3E%3Cpath d='M-20 300C80 250 140 330 260 290S440 180 620 230'/%3E%3Cpath d='M-20 330C90 280 150 360 270 320S450 210 620 262'/%3E%3Cpath d='M-20 360C100 310 160 390 280 350S460 240 620 294'/%3E%3Cpath d='M-20 80C120 40 200 120 330 90S500 20 620 60'/%3E%3Cpath d='M-20 110C130 70 210 150 340 120S510 50 620 92'/%3E%3C/svg%3E");
  background-size: 900px auto;
}
#temoignages::before { transform: scaleX(-1); }
#pourquoi-ifemos .container, #temoignages .container { position: relative; }

/* ---------- Contact : parcours en 3 étapes ---------- */
.contact-section { position: relative; overflow: hidden; }
.contact-section::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(201, 168, 76, .22) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 65%);
          mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 65%);
}
.contact-section .container { position: relative; }

.steps-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 34px;
  border-radius: 22px;
  border: 1px solid rgba(201, 168, 76, .28);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}
.compass-bg { position: absolute; width: 440px; right: -150px; bottom: -170px; opacity: .14; pointer-events: none; }
.compass-bg * { fill: none; stroke: #C9A84C; stroke-width: 1.2; }
.compass-bg text { fill: #C9A84C; stroke: none; font: 700 22px var(--font-heading); }
.compass-rot { transform-origin: 200px 200px; animation: hv-spin 90s linear infinite; }

.steps-kicker { color: #C9A84C !important; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 6px; }
.steps-title { font: 700 26px/1.2 var(--font-heading); color: #FAF7F0; margin: 0 0 26px; }

.steps-list { list-style: none; margin: 0; padding: 0; position: relative; }
.steps-list::before, .steps-list::after {
  content: "";
  position: absolute; left: 21px; top: 22px; bottom: 30px; width: 1px;
  background: rgba(201, 168, 76, .22);
}
.steps-list::after { background: #C9A84C; transform-origin: top; transform: scaleY(0); transition: transform 1.6s cubic-bezier(.6, 0, .2, 1) .3s; }
.steps-panel.in-view .steps-list::after { transform: scaleY(1); }

.steps-list li { display: flex; gap: 20px; padding: 0 0 24px; position: relative; opacity: .25; translate: 0 8px; transition: opacity .6s ease, translate .6s ease; }
.steps-list li:last-child { padding-bottom: 0; }
.steps-panel.in-view .steps-list li { opacity: 1; translate: 0 0; }
.steps-panel.in-view .steps-list li:nth-child(1) { transition-delay: .3s; }
.steps-panel.in-view .steps-list li:nth-child(2) { transition-delay: .9s; }
.steps-panel.in-view .steps-list li:nth-child(3) { transition-delay: 1.5s; }
.step-num {
  flex: none; width: 43px; height: 43px; border-radius: 50%;
  display: grid; place-items: center;
  background: #161D2C; border: 1px solid #C9A84C; color: #C9A84C;
  font: 700 14px/1 var(--font-heading);
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px #161D2C;
}
.steps-list strong { display: block; color: #FAF7F0; font-size: 16px; margin: 4px 0 4px; }
.steps-list p { margin: 0; font-size: 14px; color: rgba(250, 247, 240, .68) !important; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
  .hero-section .row { flex-wrap: nowrap; }
  .hero-section .col-lg-6:last-child { flex: 1 1 0; width: auto; min-width: 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section .col-lg-6:first-child { width: 56%; }
  .hero-section h1 { font-size: 3.1rem; }
}
@media (max-width: 991.98px) {
  .hero-visual { width: min(460px, calc(100% - 48px)); margin: 10px auto 40px; }
  .hero-section::before { width: 150vw; right: -60%; top: 30%; }
  .steps-panel { padding: 30px 24px 26px; margin-top: 10px; }
}
@media (max-width: 575.98px) {
  .hero-visual { width: min(340px, calc(100% - 64px)); margin-bottom: 56px; }
}

/* Cartes proportionnées à la taille réelle du globe (et non de l'écran) */
@container (max-width: 470px) {
  .hv-card { padding: 7px 10px 7px 7px; gap: 7px; border-radius: 11px; }
  .hv-card i { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
  .hv-card strong { font-size: 12.5px; }
  .hv-card span { font-size: 10.5px; }
  .hv-a1 { transform: translate(-50%, calc(-100% - 7px)); }
  .hv-a2, .hv-a3 { transform: translate(-50%, 7px); }
}
@container (max-width: 380px) {
  .hv-card i { display: none; }
  .hv-card { padding: 6px 10px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
