/* =========================
   BASE
========================= */
:root {
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --blue-main: #38BDF8;
  --blue-dark: #1E3A8A;
  --dark-bg: #0F172A;
  --yellow-accent: #FBBF24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #d6dbe5;
  background-color: #ffffff; /* fond très clair pour toute la page */
  color: #1f2937;            /* texte sombre pour contraste */
  
}
ul li {
  font-size: 0.95rem;
  color: #d2d8e2;
}

/* =========================
   HEADER
========================= */
header {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--dark-bg), var(--blue-dark), var(--dark-bg));
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: #fff;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-left {
  max-width: 70%;
}
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
}

/* H1 avec logo intégré */
h1 {
  display: flex;
  align-items: center;
  gap: 0px;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;

  opacity: 0;
  transform: translateY(-24px);
  animation: fadeSlideIn 1s forwards 0.3s;
}

/* Logo dans le H1 */
.h1-logo {
  height: 60px;          /* taille ajustable selon ton design */
  width: auto;           /* conserve les proportions */
  margin-right: 12px;    /* espace entre logo et texte DevSys */
  vertical-align: middle;
}


h2 {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--blue-main);
  margin: 0 0 20px;

  opacity: 0;
  transform: translateY(-24px);
  animation: fadeSlideIn 1s forwards 0.6s;
}
p {
  font-size: 1rem;
  color: #cfd6e0;
}
.section-title {
  font-size: 2rem;              /* visibilité forte */
  font-weight: 800;
  color: var(--blue);           /* couleur charte */
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.2rem;
  letter-spacing: -0.3px;
}

/* Accent vertical */
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  height: 1.2em;
  width: 5px;
  background: linear-gradient(
    to bottom,
    var(--blue),
    var(--blue-light)
  );
  border-radius: 4px;
}


header p {
  font-size: 1.25rem;
  max-width: 720px;

  opacity: 0;
  transform: translateY(-24px);
  animation: fadeSlideIn 1s forwards 0.9s;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
header h1 {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1.1;
}

header h1 span {
  color: #4bb8ff;
}
/* =========================
   BOUTONS HEADER
========================= */
.btn-account,
.btn-project {
  position: absolute;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;

  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.btn-account {
  right: 20px;
  background: var(--blue-main);
  color: var(--dark-bg);
  box-shadow: 0 6px 14px rgba(56,189,248,0.35);
}

.btn-project {
  left: 20px;
  background: var(--yellow-accent);
  color: var(--dark-bg);
  box-shadow: 0 6px 14px rgba(251,191,36,0.35);
}

.btn-account:hover,
.btn-project:hover {
  transform: translateY(-2px);
}

.btn-account svg,
.btn-project svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =========================
   SECTIONS
========================= */
section {
  margin: 2rem auto;      /* réduit depuis 3rem ou 5rem */
  padding: 3rem 2rem; /* optionnel : un peu moins de padding */
  border-radius: 6px;
  background: #ffffff;        /* blanc pur */
  max-width: 1200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

section:nth-of-type(even) {
  background: #fdfdfd; 
}
section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

/* =========================
   CARTES / FEATURES
========================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #ffffff;   /* fond très clair */
  border-radius: 6px;
  box-shadow: none; 
  /* box-shadow supprimé pour le conteneur */
}


.card {
  background: #ffffff; /* même ton que sections */
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 28px;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* =========================================================
   1. Base des SVG dans les cards
   ========================================================= */

.card-icon svg {
  display: block;
  width: 48px;
  height: 48px;

  animation: svgFloat 6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}



/* =========================================================
   2. Animation douce : flottement subtil
   ========================================================= */

@keyframes svgFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}



/* =========================================================
   3. Désynchronisation des animations
   ========================================================= */

.card:nth-child(1) .card-icon svg {
  animation-delay: 0s;
}

.card:nth-child(2) .card-icon svg {
  animation-delay: 1.5s;
}

.card:nth-child(3) .card-icon svg {
  animation-delay: 3s;
}

.card:nth-child(4) .card-icon svg {
  animation-delay: 4.5s;
}

.card:nth-child(5) .card-icon svg {
  animation-delay: 6s;
}



/* =========================================================
   4. Accentuation très légère au hover (optionnelle)
   ========================================================= */

.card:hover .card-icon svg {
  transform: translateY(-6px) scale(1.05);
}



/* =========================================================
   5. Accessibilité : respect des préférences utilisateur
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .card-icon svg {
    animation: none;
    transform: none;
  }
}


.card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  color: #4b5563;
}

/* =========================================================
   SECTION OREPAS – MISE EN AVANT PRODUIT SAAS
   ========================================================= */

.section-orepas {
  margin: 2rem auto;      /* moins d’espace au-dessus et en-dessous */
  padding: 3rem 2rem; /* conserve espace intérieur suffisant */
  
  background: #ffffff; /* blanc pur pour cohérence */
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  position: relative;
  max-width: 1100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section-orepas::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4bb8ff, transparent);
  opacity: 0.4;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.orepas-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

/* =========================================================
   IMAGE
   ========================================================= */

.orepas-image img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

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

.orepas-content {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4b5563; /* texte secondaire lisible */
}

.orepas-badge {
  background: rgba(75, 184, 255, 0.1);
  color: #4bb8ff;
  border-color: rgba(75, 184, 255, 0.25);
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #6cf2c2;
  background: rgba(108, 242, 194, 0.12);
  border: 1px solid rgba(108, 242, 194, 0.3);
  border-radius: 4px;
}

.section-orepas h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937; /* texte principal sombre */
  letter-spacing: -0.01em;
}

.section-orepas h2 span {
  color: #4bb8ff; /* accent DevSys */
}

.orepas-description {
  font-size: 1rem;        /* taille confortable */
  line-height: 1.7;       /* bonne respiration */
  margin-bottom: 1.5rem;
  color: #374151;         /* gris foncé lisible sur fond blanc */
  font-weight: 400;       /* standard pour texte de corps */
}
.section-orepas p {
  max-width: 620px;
}
/* =========================================================
   FEATURES
   ========================================================= */

.orepas-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.orepas-features li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #374151; /* gris légèrement plus foncé pour hiérarchie */
}

/* =========================================================
   CTA
   ========================================================= */

.btn-orepas {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: #4bb8ff;     /* accent DevSys */
  color: #ffffff;          /* texte contrasté */
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-orepas:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(76, 184, 255, 0.35);
}



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

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

  .section-orepas {
    padding: 3rem 2rem;
  }
}


/* =========================
   SECTION DARK
========================= */
.dark {
  background: var(--dark-bg);
  color: #e5e7eb;
  text-align: center;
}

.dark h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.dark ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.dark li {
  margin-bottom: 12px;
}

/* =========================
   FOOTER
========================= */
footer {
   padding: 2rem 1rem;     /* plus compact mais lisible */
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  background: #f1f5f9;
}
.footer-links a {
  margin-right: 1.5rem;
  color: #4bb8ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1f2937;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .header-left {
    max-width: 100%;
  }

  h1 {
    font-size: 2.5rem;
  }

  .orepas-section {
    grid-template-columns: 1fr;
  }

  .btn-account,
  .btn-project {
    position: static;
    margin-top: 16px;
  }
}
