
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #4c4c4c;
  --card: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.1);
  --link: #111111;
  --primary: #6c63ff;
  --primary-2: #2c0b8c;
  --glow: 0 0 24px rgba(113, 168, 255, 0.22);
  --halo-light: rgba(0, 85, 255, 0.15); /* ou ce que tu veux pour light */
}

.dark {
  --bg: #081120;
  --text: #f4f7ff;
  --muted: #b8c4e0;
  --muted-header: #b8c4e0;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --link: #f4f7ff;
  --primary: #71a8ff;
  --primary-2: #2c0b8c;
  --bg-soft: #0d1730;
  --halo-dark: rgba(100, 150, 255, 0.20); /* pour un bleu doux profond */
}
.light {
  --bg: #ffffff;
  --bg-soft: #f5f7ff;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --text: #111111;
  --muted-header: #f2f1f1;
  --muted: #555584;
  --primary: #3b82f6;
  --primary-2: #2c0b8c;
  --glow: 0 0 12px rgba(59, 130, 246, 0.18);
}



body {
	background:
	radial-gradient(circle at 80% 30%, rgba(113, 168, 255, 0.12), transparent 40%),
	radial-gradient(circle at 20% 20%, rgba(157, 123, 255, 0.08), transparent 50%),
	linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
	margin: 0;
	font-family: Arial, sans-serif;
	color: var(--text);
	background-color: var(--bg);
}

body.light {
  background: 
    radial-gradient(
      at 100% 0%, /* coin supérieur droit */
      rgba(180, 200, 255, 1),
      transparent 50%
    ),
    #f8f9ff; /* ta couleur claire de base */
}

.header, .footer {
  padding: 1rem 2rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}



/* Menu */
.nav a {
  color: var(--link);
  text-decoration: none;
  padding: 0 1rem;
  margin: 0 0.9rem;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--muted-header);
}
* {
  box-sizing: border-box;
}

.nav a:hover {
  text-decoration: underline;
}
.nav {
  display: flex;
  gap: 22px;
}


#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  margin-left: 1rem;
  transition: transform 0.2s;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}
#theme-toggle:hover {
  transform: scale(1.1);
}
.theme-toggle {
  appearance: none;
  -webkit-appearance: none;

  background: transparent;
  border: none;
  padding: 6px;
  margin: 0;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  border-radius: 50%;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    filter 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.08);
  filter: drop-shadow(0 0 5px rgba(110, 130, 255, 0.45));
}

.theme-toggle:focus {
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid #6d8cff;
  outline-offset: 4px;
}
.logo-dark {
  display: none;
}
.logo-light {
  display: block;
}

.dark .logo-dark {
  display: block;
}
.dark .logo-light {
  display: none;
}
.btn {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  display: inline-block;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  box-shadow: var(--glow);
  cursor: pointer;
   box-shadow: var(--glow);
}


.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--glow);
  margin-top: 1rem;
}



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

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

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-dark {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(58,89,139,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.dark .header {
  background: rgba(8, 17, 32, 0.82);
}

.light .header {
  background: rgba(135, 158, 196, 0.88);
}
.header-inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header img {
  height: 40px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}




.hero {
 padding: 72px 0 72px;
}
.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  max-width: 760px;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  margin: 20px 0 0;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 16px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--glow);
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  padding-left: 20px;
  color: var(--muted);
}

.cards, .cards-2x2 {
  display: grid;
  gap: 24px;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: radial-gradient(circle, rgba(113, 168, 255, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.light .hero::after {
  background: radial-gradient(circle, rgba(100, 140, 255, 0.35), transparent 70%);
}
.hero {
  position: relative;
  z-index: 1;
}
.cards {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--glow);
}

.muted {
  color: var(--muted);
}

.footer {
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.contact-form {
  margin-top: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.portfolio-page {
  padding: 96px 0;
}

.portfolio-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.portfolio-intro h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
}
.portfolio-page,
.container,
.portfolio-card {
  overflow: visible;
}
.portfolio-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  padding: 36px;
  border-radius: 28px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}
.certificate-compact img {
  width: 65%;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  padding: 18px;
  text-align: center;
}
.portfolio-card-content {
  position: sticky;
  top: 110px;
  align-self: start;
}
.portfolio-card-map {
  margin-top: 56px;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.25);
}

.dark .badge-blue {
  color: #93c5fd;
}

.map-value-box {
  background: rgba(249, 115, 22, 0.07);
  border-color: rgba(249, 115, 22, 0.22);
}

.map-value-box .time-icon {
  background: rgba(249, 115, 22, 0.12);
}
.portfolio-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 42px;
}

.portfolio-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--glow);
}

.dark .portfolio-tabs a {
  background: rgba(255,255,255,0.06);
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.portfolio-card {
  scroll-margin-top: 120px;
}
.portfolio-card-observatoire {
  margin-top: 56px;
}

.observatoire-value-box {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.22);
}

.observatoire-value-box .time-icon {
  background: rgba(16, 185, 129, 0.12);
}
.portfolio-tabs-folder {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin: 34px 0 0;
  padding-left: 18px;
  position: relative;
  z-index: 3;
}

.folder-tab {
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 14px 30px 12px;
  border-radius: 18px 18px 0 0;
  background: #f7f9ff;
  color: #102033;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(8px);
  box-shadow: 0 -4px 18px rgba(30, 64, 175, 0.08);
}

.folder-tab:nth-child(1) {
  background: #dceaff;
}

.folder-tab:nth-child(2) {
  background: #e4f5fb;
}

.folder-tab:nth-child(3) {
  background: #e6f7ec;
}

.folder-tab.active {
  transform: translateY(0);
  color: white;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  z-index: 5;
}

.portfolio-panel {
  display: none;
  margin-top: 0;
  border-top-left-radius: 12px;
  animation: panelFade 0.25s ease;
}

.portfolio-panel.active {
  display: grid;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.project-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(59, 130, 246, 0.12);
  margin-bottom: 24px;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(113, 168, 255, 0.12);
  color: var(--text);
  border: 1px solid var(--border);
}

.badge-green {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.25);
}

.dark .badge-green {
  color: #86efac;
}

.portfolio-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 0 0 10px;
}

.portfolio-card h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0 0 24px;
}

.project-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.value-list {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.value-item {
  padding-left: 18px;
  border-left: 3px solid var(--primary);
}

.value-item strong {
  display: block;
  margin-bottom: 4px;
}

.value-item span {
  color: var(--muted);
}

.portfolio-btn {
  margin-top: 8px;
}

.portfolio-card-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(30, 64, 175, 0.14);
}

.visual-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.visual-main img,
.visual-wide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.visual-panel figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.visual-panel figcaption span {
  display: block;
  font-weight: 500;
  color: var(--muted);
}


.certificate-preview::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}

.watermark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-24deg);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(170, 60, 60, 0.18);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.dark .visual-panel {
  background: rgba(255,255,255,0.06);
}

.visual-panel.large {
  grid-column: span 2;
}

.visual-title {
  font-weight: 800;
  margin-bottom: 18px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.visual-main img {
  min-height: 410px;
}

.visual-small img {
  min-height: 190px;
}
.visual-grid span {
  padding: 18px 10px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
  text-align: center;
  font-weight: 700;
}

.visual-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.blurred-lines {
  display: grid;
  gap: 10px;
}

.blurred-lines span {
  height: 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  filter: blur(1px);
}

.anonymized {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.time-saving-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  margin: 28px 0;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.time-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  font-size: 2rem;
}

.time-saving-box h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.time-saving-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.time-saving-box li {
  margin-bottom: 7px;
}

.saas-benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 24px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
}

.saas-benefit {
  padding-right: 18px;
}

.benefit-icon {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.saas-benefit h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.saas-benefit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .hero-grid,
  .cards,
  .cards-2x2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 72px 0;
  }

  .nav {
    display: none;
  }

  .btn,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .portfolio-card-visual {
    grid-template-columns: 1fr;
  }

  .visual-panel.large {
    grid-column: span 1;
  }
  .time-saving-box,
  .saas-benefits-row {
    grid-template-columns: 1fr;
  }
  .visual-main {
    grid-row: auto;
  }

  .visual-main img,
  .visual-small img {
    min-height: auto;
  }
  .portfolio-card-content {
    position: static;
  }
}