/* ============================================
   INFORMATIQUE LEGALE - STYLE 2025
   Version épurée responsive (HTML5 + Flexbox)
   ============================================ */

/* ---------- Reset minimal ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Gill Sans", Arial, sans-serif;
  color: #1a171b;
  background-color: #ffffff;
  line-height: 1.7;
  font-size: 16px;
}

/* ---------- Couleurs principales ---------- */
:root {
  --bleu-principal: #002c69;
  --bleu-secondaire: #003268;
  --gris-clair: #a9aaac;
  --blanc: #ffffff;
}

/* ---------- Structure générale ---------- */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.4rem;
  color: var(--bleu-principal);
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.6rem;
  color: var(--bleu-principal);
  text-align: center;
  margin-bottom: 50px;
}

h3 {
  font-size: 1.5rem;
  color: #283121;
  margin-bottom: 15px;
}

p {
  margin-bottom: 1.2em;
}

/* ---------- Liens & boutons ---------- */
a {
  color: var(--bleu-principal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, #002c69, #003268);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 0.95rem;
}

.button:hover {
  background: linear-gradient(135deg, #344f78, #3c5b87);
}

/* ---------- Header ---------- */
header {
  background: var(--bleu-principal);
  color: var(--blanc);
  padding: 20px 0;
  text-align: center;
  position: relative;
  z-index: 10;

}

header h1 {
  color: var(--blanc);
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header p {
  color: rgba(255, 255, 255, 0.8);
}

.subtitle-h1 {
  font-size: 1.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.experience {
  padding-top: 20px !important;   /* au lieu de 80px */
  margin-top: 0 !important;       /* empêche tout cumul de marges */
}

.experience h2 {
  color: #002c69;
  font-size: 1.4rem;           /* légèrement plus petit */
  margin-top: 0;               /* supprime l’espace au-dessus */
  margin-bottom: 20px;         /* réduit l’espace en dessous */
  font-weight: 500;
  letter-spacing: -0.2px;
}


/* ---------- Trois idées fortes ---------- */
.core {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background: #f3f6fb;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;        /* augmente la taille des cartes */
  flex: 1 1 340px;           /* largeur un peu plus grande */
  max-width: 380px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.card:hover .icon img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(0,44,105,0.3));
}

.card h3 {
  color: var(--bleu-principal);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.icon img {
  width: 70px; /* taille idéale */
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 12px; /* donne un effet "soft" si les bords sont carrés */
}


/* ---------- Contact / Footer ---------- */
.contact {
  padding: 0px 0 10px 0 !important;
  margin: 0 !important;
  color: var(--bleu-principal);
  text-align: center;
  
  color: #ffffff;
  font-size: 1.4rem;           /* légèrement plus petit */
  margin-top: 0;               /* supprime l’espace au-dessus */
  margin-bottom: 15px;         /* réduit l’espace en dessous */
  font-weight: 500;
  letter-spacing: -0.2px;
}
.contact p {
	  margin: 0;
  text-align: center;
}

footer {
  background: var(--bleu-principal);
  color: var(--blanc);
  text-align: center;
  padding: 25px 20px;
  font-size: 0.95rem;
  margin-top: 0;
}

footer p {
  margin-bottom: 8px;
}

footer a {
  color: var(--blanc);
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  section {
    padding: 60px 15px;
  }

  h1 {
    font-size: 2rem;
  }

  .core {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .button {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

html, body {
  margin: 0;
  min-height: 100%;
  /* background: #f7faff;*/
  overflow-x: hidden; /* garde le canvas mais permet le scroll vertical */
}
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(180deg, #fbfdff 0%, #f0f5fb 80%);
  z-index: -1; /* <-- IMPORTANT */
}
.content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #0a0f1a;
  text-align: center;
}