/* ===== Variables ===== */
:root {
  --blue:        #1565d8;
  --blue-dark:   #0d47a1;
  --blue-light:  #e8f1ff;
  --ink:         #16243a;
  --gray:        #5c6b80;
  --white:       #ffffff;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(21, 101, 216, .12);
  --max:         1080px;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 90%; max-width: var(--max); margin: 0 auto; }

a { color: var(--blue); text-decoration: none; }

/* ===== En-tête / Menu ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eaeef5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  padding: .4rem 0;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }

/* Menu mobile (sans JS) */
.menu-toggle, .menu-icon { display: none; }

/* ===== Hero / Accueil ===== */
.hero {
  background: linear-gradient(160deg, var(--blue-light) 0%, #ffffff 70%);
  padding: 6rem 0 5.5rem;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: var(--white); }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--blue-light); }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: .8rem;
  letter-spacing: -.5px;
}
.section-intro {
  text-align: center;
  color: var(--gray);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 2.8rem;
}
.section-title + .about-grid { margin-top: 2rem; }

/* ===== Équipe ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 800px;
  margin: 0 auto;
}
.member {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  border: 1px solid #e7edf6;
  box-shadow: var(--shadow);
}
.member-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-photo {
  width: 130px; height: 130px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  border: 4px solid var(--blue-light);
  box-shadow: var(--shadow);
}
.member h3 { color: var(--blue-dark); font-size: 1.3rem; margin-bottom: .25rem; }
.member-role {
  color: var(--blue);
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .9rem;
}
.member p { color: var(--gray); font-size: .96rem; }
.member-phone {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--blue);
}
.member-phone:hover { color: var(--blue-dark); }

/* Phrase d'accroche secteur */
.card-tagline {
  color: var(--blue);
  font-weight: 700;
  font-style: italic;
  font-size: .95rem;
  margin-bottom: .6rem;
}

/* ===== À propos ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid p { color: var(--gray); margin-bottom: 1rem; }
.facts {
  list-style: none;
  background: var(--white);
  border: 1px solid #e7edf6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.facts li {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #eef2f8;
  font-weight: 600;
}
.facts li:last-child { border-bottom: 0; }
.facts span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .15rem;
}

/* ===== Cartes services ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  border: 1px solid #e7edf6;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21,101,216,.18); }
.card-icon { font-size: 2.4rem; margin-bottom: .8rem; }
.card h3 { color: var(--blue-dark); margin-bottom: .5rem; font-size: 1.2rem; }
.card p { color: var(--gray); font-size: .96rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { color: var(--blue-dark); margin-bottom: 1.2rem; font-size: 1.4rem; }
.contact-line { color: var(--gray); margin-bottom: 1.1rem; }
.contact-line strong { color: var(--ink); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  gap: .4rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: .8rem 1rem;
  border: 1px solid #d6deeb;
  border-radius: 10px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,216,.15);
}
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; border: none; }

/* ===== Pied de page ===== */
.site-footer {
  background: var(--blue-dark);
  color: #cfe0fb;
  padding: 1.6rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
}
.to-top { color: var(--white); font-weight: 600; }
.to-top:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    cursor: pointer;
  }
  .menu-icon span {
    display: block;
    height: 3px;
    width: 26px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: .3s;
  }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid #eaeef5;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a {
    display: block;
    padding: 1rem 0;
    border-top: 1px solid #f0f3f9;
  }
  .menu-toggle:checked ~ .nav-links { max-height: 320px; }
  .menu-toggle:checked ~ .menu-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .menu-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
