/* ===== Design system ===== */
:root{
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --surface: rgba(255,255,255,.85);
  --surface-2: rgba(255,255,255,.72);

  --text: #0b1220;
  --muted: #516079;

  --line: rgba(12, 18, 32, 0.10);

  /* Blues updated to match the logo palette:
     - dark blue (ket)   : #0B3D91
     - light blue (nodes): #4FC3F7
  */
  --accent: #0B3D91;      /* primary */
  --accent-2: #4FC3F7;    /* subtle secondary */

  --shadow: 0 22px 60px rgba(12, 18, 32, 0.10);
  --shadow-soft: 0 12px 34px rgba(12, 18, 32, 0.08);

  --radius: 18px;
  --radius-sm: 14px;

  --container: 1120px;
}

/* ===== Base ===== */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 540px at 12% 0%, rgba(11,61,145,.13), transparent 60%),
    radial-gradient(900px 520px at 88% 12%, rgba(79,195,247,.10), transparent 55%),
    radial-gradient(800px 500px at 40% 100%, rgba(11,61,145,.06), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  line-height: 1.65;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity:.96; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section{ padding: 88px 0; }

.section-alt{
  position: relative;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(11,61,145,.06), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(79,195,247,.05), transparent 60%),
    linear-gradient(180deg, rgba(12,18,32,.02), rgba(12,18,32,.01));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

h1,h2,h3{ line-height: 1.12; margin:0; }
h2{
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}
h3{
  font-size: 18px;
  letter-spacing: -0.01em;
}

.section-desc{
  margin:0;
  color: var(--muted);
  /*max-width: 75ch;*/
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; }
.tiny{ font-size: 12px; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

.skip-link{
  position:absolute;
  left:-999px; top:10px;
  background: #111827; color:#fff;
  padding:10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

/* ===== Header / Nav ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12,18,32,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo{
  height: 52px;
  width: auto;
  display:block;
  filter: drop-shadow(0 6px 14px rgba(11,61,145,.10));
}

.nav-menu{
  list-style:none;
  display:flex;
  gap: 10px;
  align-items:center;
  padding:0; margin:0;
}

.nav-menu a{
  font-size: 14px;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-menu a:hover{
  background: rgba(11,61,145,.07);
  color: var(--text);
}

.nav-toggle{
  display:none;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(12,18,32,.12);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(12,18,32,.06);
}

.nav-toggle-lines{
  width: 18px; height: 12px; display:inline-block; position:relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: var(--text);
  border-radius: 999px;
  opacity: .85;
}
.nav-toggle-lines::before{ top:1px; }
.nav-toggle-lines::after{ bottom:1px; }

@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; align-items:center; gap:8px; }
  .nav-menu{
    position:absolute;
    right: 20px;
    top: 58px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 240px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(12,18,32,.10);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav-menu.is-open{ display:flex; }
  .nav-menu a{ padding: 10px 12px; }
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(11,61,145,.18);
  background:
    linear-gradient(135deg, rgba(11,61,145,1), rgba(11,61,145,.86));
  color: #ffffff;
  font-weight: 650;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(11,61,145,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(11,61,145,.22);
  filter: saturate(1.05);
}
.btn:active{ transform: translateY(0); }

.btn-ghost{
  background: rgba(255,255,255,.75);
  color: var(--text);
  border: 1px solid rgba(12,18,32,.12);
  box-shadow: 0 10px 26px rgba(12,18,32,.06);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.92);
}

.btn-sm{
  padding: 10px 12px;
  border-radius: 12px;
}

/* ===== Hero ===== */
.hero{ padding-top: 82px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: center;
}

.kicker{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.hero-logo{
  margin: 0 0 20px 0;
}
.hero-logo img{
  height: 240px;
  width: auto;
  display:block;
  filter: drop-shadow(0 18px 40px rgba(11,61,145,.14));
}

.hero-subtitle{
  margin: 10px 0 18px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(11,18,32,.92);
  max-width: 60ch;
}

.hero-lead{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 80ch;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.trust{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
.trust-item{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(12,18,32,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(12,18,32,.05);
}
.trust-dot{
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(79,195,247,.12);
}

.hero-card{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(12,18,32,.10);
  overflow: hidden;
  background:
    radial-gradient(560px 280px at 25% 0%, rgba(11,61,145,.12), transparent 60%),
    radial-gradient(560px 280px at 90% 30%, rgba(79,195,247,.08), transparent 55%),
    rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.glass{ padding: 20px; }

.metric{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(12,18,32,.18);
}
.metric:last-of-type{ border-bottom: 0; }

.metric-label{
  color: var(--muted);
  font-size: 13px;
}
.metric-value{
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.divider{
  height: 1px;
  background: rgba(12,18,32,.10);
  margin: 14px 0;
}

.micro{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1600px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-logo img{ height: 110px; }
}

/* ===== Cards / Grids ===== */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(12,18,32,.10);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.card p{ margin: 8px 0 0; color: var(--muted); }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

.mini-card{
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12,18,32,.10);
  background: var(--surface-2);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mini-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(12,18,32,.10);
}
.mini-card p{ margin: 8px 0 0; color: var(--muted); }

/* ===== Offers ===== */
.offer{
  border-radius: var(--radius);
  border: 1px solid rgba(12,18,32,.10);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.offer:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(12,18,32,.12);
}
.offer-top{
  display:flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(12,18,32,.10);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11,61,145,.06);
  white-space: nowrap;
}
.offer-goals{ margin: 8px 0 8px; color: rgba(11,18,32,.92); }
.offer p{ margin: 8px 0; }

.list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }
.list.compact{ margin-top: 10px; }
.list.compact li{ margin: 5px 0; }

.cta-card{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(11,61,145,.18);
  background:
    radial-gradient(700px 260px at 10% 0%, rgba(11,61,145,.10), transparent 60%),
    radial-gradient(700px 260px at 90% 0%, rgba(79,195,247,.08), transparent 60%),
    rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px){
  .cta-card{ flex-direction: column; align-items: stretch; }
  .offer{flex-direction: column; align-items: stretch; }
}

/* ===== Pills ===== */
.pill-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pill{
  font-size: 13px;
  color: rgba(11,18,32,.92);
  border: 1px solid rgba(12,18,32,.10);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 22px rgba(12,18,32,.05);
}

/* ===== Profiles (Modern) ===== */
.profiles{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.profile{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(12,18,32,.10);
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(11,61,145,.08), transparent 55%),
    radial-gradient(600px 220px at 100% 0%, rgba(79,195,247,.07), transparent 55%),
    rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.profile:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(12,18,32,.12);
  border-color: rgba(11,61,145,.18);
}

/* Avatar rond + "ring" léger */
.profile-media{
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.70);
  box-shadow: 0 12px 30px rgba(12,18,32,.10);
  position: relative;
}

.profile-media::after{
  content:"";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, rgba(11,61,145,.18), transparent 55%),
              radial-gradient(circle at 70% 30%, rgba(79,195,247,.14), transparent 55%);
  z-index: -1;
}

.profile-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-body{
  min-width: 0; /* évite les débordements */
}

.profile-body h3{
  margin: 2px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.profile-body .muted{
  margin: 8px 0 0;
}

/* Liste plus compacte + plus lisible */
.profile .list.compact{
  margin-top: 12px;
  padding-left: 16px;
}
.profile .list.compact li{
  margin: 6px 0;
}

/* Responsive */
@media (max-width: 900px){
  .profiles{
    grid-template-columns: 1fr;
  }

  .profile{
    flex-direction: column;
    align-items: stretch;
  }

  .profile-media{
    width: 112px;
    height: 112px;
    margin: 0 auto 4px;
  }

  .profile-body{
    text-align: left;
  }
}

/* Un petit plus pour très petits écrans */
@media (max-width: 420px){
  .profile{
    padding: 16px;
  }
  .profile-media{
    width: 104px;
    height: 104px;
  }
}

/* ===== Contact ===== */
.contact-grid{ align-items:start; }

.contact-highlights{
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.highlight{
  display:flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(12,18,32,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 22px rgba(12,18,32,.05);
}
.icon{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(12,18,32,.10);
  background: rgba(11,61,145,.06);
  color: rgba(11,18,32,.90);
}

.form{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.form-row{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

label{ font-size: 13px; color: rgba(11,18,32,.92); }

input, textarea{
  border-radius: 14px;
  border: 1px solid rgba(12,18,32,.14);
  background: rgba(255,255,255,.95);
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 0 rgba(12,18,32,.03);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
input:focus, textarea:focus{
  border-color: rgba(11,61,145,.45);
  box-shadow: 0 0 0 4px rgba(11,61,145,.12);
}
input:hover, textarea:hover{
  border-color: rgba(12,18,32,.18);
}

.field-error{
  min-height: 16px;
  font-size: 12px;
  color: #b42318;
}

.form-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.form-toast{
  display:none;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(79,195,247,.22);
  background: rgba(79,195,247,.08);
  padding: 12px;
  color: rgba(11,18,32,.92);
  font-size: 13px;
}
.form-toast.is-show{ display:block; }

/* ===== Footer ===== */
.footer{
  padding: 24px 0;
  border-top: 1px solid rgba(12,18,32,.10);
  background: rgba(255,255,255,.70);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.footer-left{
  display:flex;
  align-items:center;
  gap: 10px;
}

.footer-logo{
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.dot{ opacity:.7; }

.footer-right a{
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.footer-right a:hover{
  color: var(--text);
  border-color: rgba(12,18,32,.10);
  background: rgba(11,61,145,.06);
}

/* ===== Reveal Animations ===== */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .btn:hover, .offer:hover, .profile:hover, .mini-card:hover{ transform:none; }
}

/* ===== LinkedIn Links ===== */

.profile-links{
  margin-top: 14px;
}

.linkedin-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(11,61,145,.08);
  border: 1px solid rgba(11,61,145,.18);
  transition: all .2s ease;
}

.linkedin-link svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.linkedin-link:hover{
  background: rgba(11,61,145,.14);
  transform: translateY(-1px);
}

/* Fix couleur bouton Contact dans la navbar */
.nav-menu .btn{
  color: #ffffff; /* blanc */
}

/* ============================= */
/* LOGO RESPONSIVE FIX */
/* ============================= */

/* --- Navbar logo --- */
.brand-logo{
  height: 52px;
  width: auto;
  max-width: 100%;
}

/* --- Hero logo --- */
.hero-logo img{
  height: 120px;
  width: auto;
  max-width: 100%;
}

/* ===== Tablet ===== */
@media (max-width: 900px){

  /* Navbar */
  .brand-logo{
    height: 38px; /* réduit proprement */
  }

  /* Hero */
  .hero-logo img{
    height: 60px; /* divisé par 2 */
  }
}

/* ===== Mobile small ===== */
@media (max-width: 480px){

  /* Navbar */
  .brand-logo{
    height: 32px;
  }

  /* Hero */
  .hero-logo img{
    height: 60px;
  }
}