/* Base */
:root{
  --bg1:#f7f8fc;
  --bg2:#eef2ff;
  --bg3:#fdf7ff;

  --card: rgba(255,255,255,.72);
  --card2: rgba(255,255,255,.92);

  --text:#0b1020;
  --muted: rgba(11,16,32,.68);
  --stroke: rgba(15,23,42,.10);
  --shadow: 0 18px 60px rgba(15,23,42,.12);

  --accent:#4f7cff;
  --accent2:#7b61ff;
  --accent3:#00c2ff;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  display:grid;
  place-items:center;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans";
  color:var(--text);
  background:
    radial-gradient(900px 520px at 15% 18%, rgba(79,124,255,.20), transparent 60%),
    radial-gradient(760px 480px at 85% 25%, rgba(0,194,255,.14), transparent 58%),
    radial-gradient(900px 650px at 52% 95%, rgba(123,97,255,.10), transparent 62%),
    linear-gradient(145deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  position:relative;
}

/* Halo flottant */
body::before,
body::after{
  content:"";
  position:fixed;
  border-radius:50%;
  filter:blur(60px);
  pointer-events:none;
  z-index:0;
  opacity:.65;
}

body::before{
  width:320px;
  height:320px;
  background:rgba(79,124,255,.16);
  top:6%;
  left:10%;
  animation: floatBlob1 14s ease-in-out infinite;
}

body::after{
  width:280px;
  height:280px;
  background:rgba(123,97,255,.14);
  right:8%;
  bottom:8%;
  animation: floatBlob2 16s ease-in-out infinite;
}

/* Grille discrète */
.bg-grid{
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity:.22;
  pointer-events:none;
  z-index:0;
  animation: gridMove 20s linear infinite;
}

/* moins de bords perdus */
.wrap{
  width:min(1180px, 96vw);
  padding:12px;
  position:relative;
  z-index:2;
}

.card{
  position:relative;
  padding:28px 32px 22px; /* réduit haut/bas */
  border-radius:24px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align:center;
  overflow:hidden;
  animation:
    cardReveal .9s cubic-bezier(.2,.8,.2,1) both,
    cardFloat 7s ease-in-out infinite 1s;
  isolation:isolate;
}

.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  padding:1px;
  background: linear-gradient(
    120deg,
    rgba(79,124,255,.25),
    rgba(255,255,255,.5),
    rgba(0,194,255,.22),
    rgba(123,97,255,.25)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  animation: borderShift 8s linear infinite;
}

.card::after{
  content:"";
  position:absolute;
  inset:auto -20% -60% auto;
  width:240px;
  height:240px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(79,124,255,.16), transparent 70%);
  animation: pulseGlow 5s ease-in-out infinite;
  pointer-events:none;
  z-index:-1;
}

/* Logo */
.logo-wrap{
  position:relative;
  width:max-content;
  margin:0 auto 14px;
  animation: logoEntrance 1s cubic-bezier(.2,.8,.2,1) both .15s;
}

.logo-wrap::before{
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  width:140px;
  height:140px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(79,124,255,.18),
      rgba(0,194,255,.12),
      rgba(123,97,255,.18),
      rgba(79,124,255,.18)
    );
  filter:blur(14px);
  animation: spinHalo 10s linear infinite;
  z-index:-1;
}

.logo{
  width:120px;
  height:auto;
  display:block;
  margin:0 auto;
  filter: drop-shadow(0 8px 14px rgba(15,23,42,.10));
  animation: logoLevitate 5s ease-in-out infinite;
  transform-origin:center;
}

/* Hero */
.hero h1{
  margin:0 0 8px;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing:.045em;
  text-transform:uppercase;
  line-height:1.1;
  animation: textUp .8s ease both .28s;
}

.hero h2{
  margin:0 0 14px;
  font-size: clamp(16px, 2vw, 20px);
  color:var(--muted);
  font-weight:500;
  letter-spacing:.02em;
  animation: textUp .8s ease both .38s;
}

.site{
  margin:0 0 18px;
  animation: textUp .8s ease both .48s;
}

.site a{
  display:inline-flex;
  align-items:center;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  position:relative;
  overflow:hidden;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.site a::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:80%;
  height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  transform: skewX(-24deg);
}

.site a:hover{
  transform:translateY(-2px) scale(1.015);
  border-color: rgba(79,124,255,.28);
  box-shadow: 0 16px 34px rgba(79,124,255,.14);
}

.site a:hover::before{ animation: shine .9s ease; }

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow: 0 0 0 7px rgba(79,124,255,.16);
  flex:0 0 auto;
  margin-right:14px;
  animation: dotPulse 2.4s ease-in-out infinite;
}

/* Services - une seule ligne */
.services{ text-align:left; }

.services-grid{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service{
  border:1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  border-radius:18px;
  padding:16px 16px 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position:relative;
  overflow:hidden;
  min-height: 150px;
}

.service::before{
  content:"";
  position:absolute;
  inset:-2px -30% auto auto;
  width:170px;
  height:170px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(79,124,255,.12), transparent 70%);
  pointer-events:none;
}

/* Icônes : blanc sur fond noir (style proche du logo) */
.service-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  letter-spacing:.02em;
  color:#ffffff;
  background: #0b1020;
  box-shadow: 0 5px 12px rgba(15,23,42,.10);
  margin-bottom:12px;
  position:relative;
}

.service-icon::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  padding:2px;
  background: linear-gradient(135deg, rgba(79,124,255,.55), rgba(0,194,255,.45), rgba(123,97,255,.55));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity:.75;
}

.service h3{ margin:0 0 8px; font-size: 15px; letter-spacing:.01em; }
.service p{ margin:0; color: rgba(11,16,32,.72); line-height:1.5; font-size: 13.5px; }

/* SEO hidden */
.seo-text{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

/* Particules */
.particle{ position:absolute; border-radius:50%; pointer-events:none; z-index:1; opacity:.55; }
.particle.p1{ width:10px; height:10px; top:18%; left:14%; background:rgba(79,124,255,.28); animation: orbit1 12s ease-in-out infinite; }
.particle.p2{ width:14px; height:14px; top:22%; right:16%; background:rgba(0,194,255,.22); animation: orbit2 10s ease-in-out infinite; }
.particle.p3{ width:8px; height:8px; bottom:18%; left:18%; background:rgba(123,97,255,.24); animation: orbit3 14s ease-in-out infinite; }
.particle.p4{ width:12px; height:12px; bottom:16%; right:14%; background:rgba(79,124,255,.18); animation: orbit4 11s ease-in-out infinite; }

/* Animations */
@keyframes cardReveal{ from{ opacity:0; transform:translateY(24px) scale(.96) rotateX(8deg); } to{ opacity:1; transform:translateY(0) scale(1) rotateX(0); } }
@keyframes logoEntrance{ from{ opacity:0; transform:translateY(-10px) scale(.85); } to{ opacity:1; transform:translateY(0) scale(1); } }
@keyframes textUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
@keyframes cardFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-5px); } }
@keyframes logoLevitate{
  0%,100%{ transform:translateY(0) rotate(0deg) scale(1); }
  25%{ transform:translateY(-4px) rotate(-1deg) scale(1.01); }
  50%{ transform:translateY(-8px) rotate(0deg) scale(1.025); }
  75%{ transform:translateY(-4px) rotate(1deg) scale(1.01); }
}
@keyframes spinHalo{ from{ transform:translate(-50%,-50%) rotate(0deg); } to{ transform:translate(-50%,-50%) rotate(360deg); } }
@keyframes pulseGlow{ 0%,100%{ transform:scale(1); opacity:.7; } 50%{ transform:scale(1.18); opacity:1; } }
@keyframes borderShift{ 0%{ filter:hue-rotate(0deg); } 100%{ filter:hue-rotate(360deg); } }
@keyframes dotPulse{ 0%,100%{ box-shadow: 0 0 0 7px rgba(79,124,255,.16); transform:scale(1); } 50%{ box-shadow: 0 0 0 12px rgba(79,124,255,.08); transform:scale(1.12); } }
@keyframes shine{ 0%{ left:-120%; } 100%{ left:140%; } }
@keyframes floatBlob1{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(40px,20px) scale(1.12); } }
@keyframes floatBlob2{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(-36px,-22px) scale(1.08); } }
@keyframes gridMove{ 0%{ transform:translate3d(0,0,0); } 100%{ transform:translate3d(42px,42px,0); } }
@keyframes orbit1{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(18px,-28px) scale(1.3); } }
@keyframes orbit2{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(-22px,20px) scale(.85); } }
@keyframes orbit3{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(26px,-16px) scale(1.2); } }
@keyframes orbit4{ 0%,100%{ transform:translate(0,0) scale(1); } 50%{ transform:translate(-18px,-24px) scale(.9); } }

/* Responsive : on replie si nécessaire */
@media (max-width: 1100px){ .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){
  .card{ padding:24px 18px 18px; border-radius:20px; }
  .logo{ width:108px; }
  .services-grid{ grid-template-columns: 1fr; }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation:none !important; transition:none !important; }
}


/* Copyright */
.copyright{
  margin: 20px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(11,16,32,.50);
}



/* Duo split layout */
.wrap{
  width:min(1380px, 97vw);
}

.card{
  padding: 28px 28px 22px;
}

.duo-services{
  margin-top: 6px;
}

.duo-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.expert-column{
  position: relative;
  border:1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.54));
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
  text-align:left;
  overflow:hidden;
}

.expert-column::before{
  content:"";
  position:absolute;
  inset:-10% auto auto -8%;
  width:180px;
  height:180px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(79,124,255,.10), transparent 72%);
  pointer-events:none;
}

.expert-column--michael::before{
  inset:auto -8% -14% auto;
  background: radial-gradient(circle, rgba(123,97,255,.10), transparent 72%);
}

.expert-kicker{
  margin:0 0 8px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(11,16,32,.52);
}

.expert-title{
  margin:0 0 6px;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing:.03em;
  text-transform:uppercase;
}

.expert-subtitle{
  margin:0 0 14px;
  color: rgba(11,16,32,.68);
  font-size:14px;
  line-height:1.5;
}

.services-grid--four{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service h4{
  margin:0 0 8px;
  font-size: 15px;
  letter-spacing:.01em;
}

.service{
  min-height: 152px;
}

@media (max-width: 1100px){
  .duo-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .services-grid--four{
    grid-template-columns: 1fr;
  }

  .expert-column{
    padding: 18px 14px 14px;
  }
}


/* Duo cards distinctes */
.wrap--duo{
  width:min(1480px, 98vw);
  padding: 12px;
}

.duo-cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.profile-card{
  position: relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 100%;
  padding: 26px 24px 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.68));
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation:isolate;
}

.profile-card::before{
  content:"";
  position:absolute;
  inset:-10% auto auto -8%;
  width:220px;
  height:220px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(79,124,255,.10), transparent 72%);
  pointer-events:none;
}

.profile-card--michael::before{
  inset:auto -10% -20% auto;
  background: radial-gradient(circle, rgba(123,97,255,.10), transparent 72%);
}

.profile-top{
  text-align:center;
}

.logo-wrap--profile{
  margin: 0 auto 12px;
}

.logo--profile{
  width: 110px;
  filter: drop-shadow(0 6px 10px rgba(15,23,42,.08));
}

.logo--michael{
  width: 150px;
}

.hero--profile h1{
  margin:0 0 8px;
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: .04em;
}

.hero--profile h2{
  margin:0 0 14px;
  font-size: clamp(15px, 1.8vw, 19px);
}

.expert-kicker{
  margin:0 0 8px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(11,16,32,.50);
}

.services--profile{
  margin-top: 2px;
  text-align:left;
}

.services-grid--profile{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.services-grid--profile .service{
  min-height: 150px;
}

.services-grid--profile .service h4{
  margin:0 0 8px;
  font-size: 15px;
  letter-spacing:.01em;
}

.services-grid--profile .service p{
  margin:0;
  color: rgba(11,16,32,.72);
  line-height:1.5;
  font-size: 13.5px;
}

.profile-card .copyright{
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(11,16,32,.44);
}

@media (max-width: 1180px){
  .duo-cards{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .profile-card{
    padding: 22px 16px 14px;
    border-radius: 22px;
  }

  .services-grid--profile{
    grid-template-columns: 1fr;
  }

  .logo--profile{
    width: 96px;
  }

  .logo--michael{
    width: 132px;
  }
}


/* Main heading */
.page-heading{
  text-align:center;
  margin: 0 0 18px;
}

.ikigai-title{
  margin:0;
  font-size: clamp(34px, 5vw, 64px);
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:800;
  color:#0b1020;
  text-shadow: 0 6px 18px rgba(15,23,42,.06);
}

.profile-name{
  margin:0 0 8px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height:1.1;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-weight:800 !important;
  color:#000 !important;
}


/* Michael official SVG logo */
.logo--michael-svg{
  width: 190px;
  height: auto;
  display:block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(15,23,42,.06));
}

/* IKIGAI-WEB refined title */
.page-heading{
  text-align:center;
  margin: 0 0 22px;
  position: relative;
}

.ikigai-kicker{
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(11,16,32,.48);
}

.ikigai-title{
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .12em;
  font-size: clamp(36px, 6vw, 72px);
  line-height: .95;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0b1020;
  text-shadow: 0 8px 24px rgba(15,23,42,.06);
  position: relative;
}

.ikigai-title span{
  display:inline-block;
  position: relative;
}

.ikigai-title::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-10px;
  width: min(220px, 40%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,124,255,.9), rgba(0,194,255,.9), rgba(123,97,255,.9));
  box-shadow: 0 6px 18px rgba(79,124,255,.18);
}

@media (max-width: 700px){
  .logo--michael-svg{
    width: 165px;
  }

  .ikigai-title{
    gap: .08em;
    letter-spacing: .10em;
  }

  .ikigai-title::after{
    bottom: -8px;
    height: 3px;
    width: 140px;
  }
}


/* Logo shadow reset */
.logo,
.logo--profile,
.logo--michael-svg,
.logo-svg--michael{
  filter: none !important;
}


/* Equal top height (logo + nom + lien) */
.profile-top{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-height: 250px;
}

.hero--profile{
  width:100%;
}

@media (max-width: 1180px){
  .profile-top{
    min-height: 0;
  }
}


/* Remove decorative halo behind logos */
.logo-wrap--profile::before,
.logo-wrap--michael::before,
.logo-wrap::before{
  content: none !important;
  display: none !important;
  background: none !important;
  filter: none !important;
  animation: none !important;
}


/* Force identical profile top areas */
.profile-card{
  display: flex;
  flex-direction: column;
}

.profile-top{
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  min-height: 280px;
  height: 280px;
  text-align: center;
}

.logo-wrap--profile{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px !important;
}

.hero--profile{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero--profile .site{
  margin-bottom: 0;
}

@media (max-width: 1180px){
  .profile-top{
    min-height: 280px;
    height: 280px;
  }
}

@media (max-width: 700px){
  .profile-top{
    min-height: auto;
    height: auto;
    padding-top: 4px;
  }
}


/* Wrap each card with its copyright underneath */
.profile-card-wrap{
  display:flex;
  flex-direction:column;
}

/* Remove underline under IKIGAI-WEB */
.ikigai-title::after{
  content:none !important;
  display:none !important;
}

/* Equal visible logo heights */
.logo--profile{
  width: auto;
  height: 68px;
  max-width: 190px;
  object-fit: contain;
}

.logo--michael-svg{
  width: auto;
  height: 68px;
  max-width: 210px;
  object-fit: contain;
}

/* Copyrights below cards */
.profile-card-wrap .copyright{
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(11,16,32,.44);
}

@media (max-width: 700px){
  .logo--profile,
  .logo--michael-svg{
    height: 58px;
    max-width: 170px;
  }
}
