/* =========================================================
   Ipsilon Web — feuille de style principale
   Thème : coloré / dynamique
   ========================================================= */

:root {
  --violet: #6C5CE7;
  --violet-dark: #4B3FBF;
  --rose: #FF5D8F;
  --orange: #FFA63D;
  --jaune: #FFD93D;
  --cyan: #26D0CE;

  --gradient-main: linear-gradient(120deg, var(--violet) 0%, var(--rose) 55%, var(--orange) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(108,92,231,0.12) 0%, rgba(255,93,143,0.12) 55%, rgba(255,166,61,0.12) 100%);

  --ink: #1A1B2E;
  --ink-soft: #4A4B63;
  --bg: #FFFFFF;
  --bg-alt: #F7F6FF;
  --card-bg: #FFFFFF;
  --border: #ECEBFA;

  --shadow-sm: 0 4px 14px rgba(26, 27, 46, 0.06);
  --shadow-md: 0 12px 30px rgba(26, 27, 46, 0.10);
  --shadow-lg: 0 20px 50px rgba(108, 92, 231, 0.20);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --maxw: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-dark);
  background: var(--gradient-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(108, 92, 231, 0.30);
}

.btn-ghost {
  background: #fff;
  color: var(--violet-dark);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

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

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--gradient-soft);
  color: var(--violet-dark);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: var(--rose);
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: var(--cyan);
  bottom: -180px;
  left: -140px;
  opacity: 0.25;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 0.4em;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--gradient-main);
  min-height: 340px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual .float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floaty 5s ease-in-out infinite;
}

.hero-visual .float-card.c1 { top: 14%; left: 8%; animation-delay: 0s; }
.hero-visual .float-card.c2 { bottom: 16%; right: 10%; animation-delay: 1.2s; }
.hero-visual .float-card.c3 { top: 46%; right: -6%; animation-delay: 2.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jaune);
}

/* ---------- Sections génériques ---------- */

section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

/* ---------- Grilles / Cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
}

.card p { margin-bottom: 0; }

.card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--violet-dark);
  background: var(--gradient-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Réalisations ---------- */

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.project-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.project-body { padding: 24px; }

.project-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-body .project-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose);
  margin-bottom: 10px;
  display: block;
}

.placeholder-note {
  margin-top: 48px;
  text-align: center;
  padding: 24px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Timeline (À propos) ---------- */

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--border);
}

.timeline-item h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* ---------- Formulaire de contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--gradient-main);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.85); }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item strong { display: block; font-size: 0.92rem; }
.contact-info-item span { font-size: 0.88rem; color: rgba(255,255,255,0.85); }

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--gradient-soft);
}

.field textarea { resize: vertical; min-height: 130px; }

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  color: var(--violet-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.show { display: block; }

/* ---------- Bandeau CTA ---------- */

.cta-band {
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-ghost { background: #fff; border-color: transparent; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: #fff; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Reveal au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page header (pages internes) ---------- */

.page-header {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--bg-alt);
}

.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; margin: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  section { padding: 64px 0; }
}
