:root {
  --bg: #F4F8FA;
  --bg-soft: #EEF4F7;
  --card: #FFFFFF;
  --border: rgba(0, 0, 0, 0.08);
  --text: #1A1A2E;
  --muted: #5F6F81;
  --primary: #007C91;
  --accent: #FFC300;
  --max-width: 1120px;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #F4F8FA;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

/* =========================
   TYPO
========================= */

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  max-width: 18ch;
}

h2, h3 {
  line-height: 1.15;
}

p {
  font-family: 'Poppins', sans-serif;
  line-height: 1.75;
  margin: 0;
}

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
}

.navmenu ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1A2A40;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navmenu a:hover {
  color: var(--primary);
}

.mobile-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #1A2A40;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.mobile-nav-close {
  display: none;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 195, 0, 0.14);
  border: 1px solid rgba(255, 195, 0, 0.28);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p,
.section-intro,
.contact-card p {
  max-width: 65ch;
}

.hero p {
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00bfa6);
  color: white;
  box-shadow: 0 12px 32px rgba(0, 124, 145, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 124, 145, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(0, 124, 145, 0.28);
  background: rgba(0, 124, 145, 0.06);
  color: var(--primary);
}

/* =========================
   CARDS
========================= */

.hero-card,
.feature-card,
.project-card,
.contact-card {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.hero-card {
  padding: 1.4rem;
}

.project-card{
  background:#fff;
  border-radius:10px;
  padding:28px;
  transition:all 0.25s ease;
  border:1px solid rgba(0,0,0,0.06);
}

.project-card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 30px rgba(0,0,0,0.08);
  border-color:rgba(0,0,0,0.12);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mini-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.mini-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 16px;
  background: #F8FBFC;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mini-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.mini-card p,
.feature-card p,
.project-card p,
.contact-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-card h3,
.project-card h3,
.contact-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

/* =========================
   SECTIONS / GRIDS
========================= */

.section {
  padding: 2.5rem 0;
}

.section-title {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.section-intro {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

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

.project-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 195, 0, 0.14);
  border: 1px solid rgba(255, 195, 0, 0.28);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}



.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.contact-link {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  transition: all 0.25s ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 124, 145, 0.35);
  background: rgba(0, 124, 145, 0.06);
  color: var(--primary);
}

.contact-link:active {
  transform: translateY(0);
}

.contact-link{
  display:inline-block;
  padding:10px 16px;
  border-radius:8px;
  font-weight:500;
  text-decoration:none;
  color:white;
  margin-right:10px;
  margin-bottom:10px;
  transition:opacity 0.2s ease;
}

.contact-link:hover{
  opacity:0.9;
}

/* Couleurs plateformes */

.linkedin{
  background:#0A66C2;
}

.whatsapp{
  background:#25D366;
}

.github{
  background:#24292F;
}

.kaggle{
  background:#20BEFF;
}

.email{
  background:#007C91;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-wrap a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-wrap a:hover {
  color: var(--primary);
}
/* =========================
   MOBILE
========================= */

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }

  .logo img {
    height: 38px;
  }

  .mobile-nav-toggle {
    display: block;
    order: 3;
    margin-left: auto;
    z-index: 1001;
  }

  .navmenu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 68%;
    max-width: 280px;
    height: 100vh;
    background: #ffffff;
    padding: 5rem 1rem 2rem;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    display: block;
  }

  .navmenu.is-open {
    left: 0;
  }

  .navmenu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navmenu li {
    width: 100%;
  }

  .navmenu a {
    display: block;
    width: 100%;
    padding: 0.1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
  }

  .mobile-nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }

  .mobile-nav-close:hover {
    opacity: 0.6;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 998;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-actions,
  .contact-links {
    width: 100%;
  }

  .btn,
  .contact-link {
    width: 100%;
  }
}

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


.contact-link{
  background:#F5F7FA;
  color:#1A1A2E;
}

.linkedin { color:#0A66C2; }
.whatsapp { color:#25D366; }
.github { color:#24292F; }
.kaggle { color:#20BEFF; }


/* =========================
   SECTION TECHNOLOGIES
========================= */

.section {
  padding: 80px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   TITRES
========================= */

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 16px;
  color: #6b7280;
  max-width: 600px;
  margin-bottom: 40px;
}

/* =========================
   GRID
========================= */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =========================
   CARDS
========================= */

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
}

/* Hover premium */
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

/* =========================
   CONTENU
========================= */

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* liste techno */
.feature-card p:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

/* =========================
   RESPONSIVE
========================= */

/* tablette */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }
}

.feature-card:hover h3 {
  color: #007C91; /* bleu pétrole */
}

.feature-card {
  backdrop-filter: blur(6px);
}



/* =========================
   PAGE MENTIONS LEGALES
========================= */

.legal-hero {
  padding: 4rem 0 2rem;
}



.legal-hero h1 {
  margin-bottom: 1rem;
  max-width: 100%;
}

.legal-lead {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 68ch;
}

.legal-section {
  padding-top: 1rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  padding: 1.2rem;
}

.legal-toc-title {
  display: block;
  margin-bottom: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

.legal-toc nav {
  display: grid;
  gap: 0.7rem;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--primary);
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-card {
  padding: 1.4rem;
  border-radius: 18px;
}

.legal-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.legal-card p + p {
  margin-top: 0.9rem;
}

.legal-card a {
  color: var(--primary);
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-list {
  margin: 0.75rem 0 0 1.15rem;
  padding: 0;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 0.4rem;
}

.footer-wrap-legal {
  align-items: center;
}

.footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links-inline a,
.footer-wrap a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links-inline a:hover,
.footer-wrap a:hover {
  color: var(--primary);
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .legal-hero {
    padding-top: 3rem;
  }

  .footer-links-inline {
    width: 100%;
    gap: 0.75rem 1rem;
  }
}

.legal-hero-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.legal-hero-copy {
  grid-column: 2;
}

@media (max-width: 980px) {
  .legal-hero-inner {
    grid-template-columns: 1fr;
  }

  .legal-hero-copy {
    grid-column: auto;
  }
}


.feature-card a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.feature-card a:hover {
  transform: translateX(4px);
  color: #005f6b;
}

.feature-card:nth-child(1) {
  background: #f8fbff;
}

.feature-card:nth-child(2) {
  background: #f9fff8;
}

.feature-card:nth-child(3) {
  background: #fffdf6;
}
