/* Couleurs reprises du logo Gamso Labs : bleu du texte, vert du cercle */
:root {
  --blue: #1f8fd0;
  --blue-dark: #1673ab;
  --navy: #0d2b45;
  --navy-2: #0a2237;
  --green: #6cbf2e;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --text: #1b2b3a;
  --muted: #5d6f80;
  --border: #e1e8ef;
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }


/* En-tête */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(13, 43, 69, 0.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; }
/* Le fichier logo est carré avec du blanc autour : on n'affiche que la bande centrale */
.logo img { width: 210px; height: 66px; object-fit: cover; object-position: center; }
.menu { display: flex; align-items: center; gap: 34px; list-style: none; }
.menu a { color: var(--text); font-weight: 500; font-size: 0.97rem; position: relative; padding: 26px 0; }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px;
  background: var(--green); transform: scaleX(0); transition: transform .2s;
}
.menu a:hover::after { transform: scaleX(1); }
.menu .btn { padding: 10px 22px; }
.menu .btn::after { display: none; }
.burger { display: none; background: none; border: 0; font-size: 1.8rem; color: var(--navy); cursor: pointer; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 4px; font-weight: 500;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #5aa524; }

/* Bannière principale */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(110deg, var(--navy-2) 0%, var(--navy) 45%, var(--blue-dark) 100%);
  padding: 120px 0 130px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 620px; height: 620px; right: -140px; top: -180px;
  border: 70px solid rgba(108, 191, 46, 0.18);
}
.hero::after {
  width: 380px; height: 380px; right: 160px; bottom: -220px;
  border: 40px solid rgba(31, 143, 208, 0.35);
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; font-weight: 700;
  color: var(--green); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 300; line-height: 1.1; max-width: 780px; }
.hero h1 strong { font-weight: 700; }
.hero p { margin-top: 24px; font-size: 1.2rem; color: #cfdceb; max-width: 600px; font-weight: 300; }
.hero .actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }


/* Références clients */
section.clients { padding: 70px 0; text-align: center; }
.clients .section-title { margin-bottom: 40px; }
.logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.client {
  display: flex; align-items: center; justify-content: center;
  width: 210px; height: 120px; padding: 20px 24px;
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.client img { height: 72px; max-width: 100%; width: auto; object-fit: contain; }
/* Logo carré avec marges intégrées : on l'affiche un peu plus grand */
.client-tall { padding: 6px; }
.client-tall img { height: 106px; }
.client:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(13, 43, 69, 0.08); transform: translateY(-3px); }

/* Sections */
section { padding: 100px 0; }
section.alt { background: var(--bg-alt); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; line-height: 1.2; color: var(--navy); }
.section-title strong { font-weight: 700; }
.section-sub { color: var(--muted); max-width: 560px; margin-top: 14px; font-size: 1.05rem; }
.link-arrow { font-weight: 500; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Tuiles de services */
.tiles { display: grid; gap: 2px; grid-template-columns: repeat(4, 1fr); background: var(--border); border: 1px solid var(--border); }
.tile {
  background: #fff; padding: 40px 32px 44px; position: relative; overflow: hidden;
  transition: background .3s, color .3s;
}
.tile .num { font-size: 0.85rem; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.tile h3 { font-size: 1.35rem; font-weight: 500; margin: 18px 0 14px; color: var(--navy); transition: color .3s; }
.tile p { color: var(--muted); font-size: 0.97rem; transition: color .3s; }
.tile .more { display: inline-block; margin-top: 24px; font-weight: 500; color: var(--blue); transition: color .3s; }
.tile:hover { background: var(--navy); }
.tile:hover h3, .tile:hover .more { color: #fff; }
.tile:hover p { color: #b9c9d8; }

/* Expertises (cartes colorées) */
.expertises { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.exp {
  min-height: 260px; padding: 34px; color: #fff; border-radius: 4px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.exp::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -60px; top: -60px; border: 30px solid rgba(255, 255, 255, 0.12);
}
.exp:nth-child(1) { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.exp:nth-child(2) { background: linear-gradient(135deg, var(--navy), #164a72); }
.exp:nth-child(3) { background: linear-gradient(135deg, #5aa524, #3f8a1a); }
.exp .tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.8; }
.exp h3 { font-size: 1.5rem; font-weight: 500; margin: 8px 0 10px; }
.exp p { opacity: 0.88; font-size: 0.97rem; }

/* Approche */
.steps { display: grid; gap: 30px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { border-top: 3px solid var(--border); padding-top: 26px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 2.6rem; font-weight: 700; color: var(--blue); opacity: 0.25; line-height: 1;
}
.step::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 60px; height: 3px; background: var(--green);
}
.step h3 { font-size: 1.15rem; font-weight: 500; color: var(--navy); margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* À propos */
.about { max-width: 820px; }
.about p { color: var(--muted); margin-top: 16px; font-size: 1.03rem; }
.facts { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--green); }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 18px 26px; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact span:first-child { color: var(--muted); }
.fact span:last-child { font-weight: 500; text-align: right; color: var(--navy); }

footer.site address { font-style: normal; line-height: 1.9; }

/* Appel à l'action */
.cta {
  background: linear-gradient(110deg, var(--blue-dark), var(--blue));
  color: #fff; padding: 80px 0;
}
.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; }
.cta h2 strong { font-weight: 700; }
.cta p { color: #dbeaf6; margin-top: 8px; }

/* Contact */
.contact { display: grid; gap: 24px; grid-template-columns: minmax(0, 420px); }
.contact .card { background: #fff; border: 1px solid var(--border); padding: 32px; border-top: 3px solid var(--blue); }
.contact h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.contact p { font-size: 1.08rem; color: var(--navy); }
.contact a { font-weight: 500; word-break: break-word; }

/* Pied de page */
footer.site { background: var(--navy-2); color: #a9bccd; padding: 70px 0 0; font-size: 0.93rem; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: 50px; }
.foot-brand { display: inline-block; background: #fff; border-radius: 4px; padding: 2px 8px; margin-bottom: 18px; }
.foot-brand img { width: 180px; height: 56px; object-fit: cover; }
footer.site h4 { color: #fff; font-size: 0.95rem; font-weight: 500; margin-bottom: 16px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; }
footer.site a { color: #a9bccd; }
footer.site a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.85rem;
}

/* Page mentions légales */
.page-hero { background: linear-gradient(110deg, var(--navy-2), var(--navy)); color: #fff; padding: 70px 0; }
.page-hero h1 { font-size: 2.6rem; font-weight: 300; }
.legal { padding: 70px 24px; max-width: 860px; }
.legal h2 { font-size: 1.3rem; font-weight: 500; margin: 36px 0 12px; color: var(--navy); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); margin-bottom: 8px; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text); font-weight: 500; }
.todo { background: #fff3c4; color: #8a6100; padding: 1px 6px; border-radius: 4px; }

/* Responsive */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .menu {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 10px 24px 20px;
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .menu a::after { display: none; }
  .menu .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .expertises, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 70px 0; }
  .hero { padding: 80px 0 90px; }
  .tiles, .steps, .foot-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
