/* ============================================================
   IFACI Certification — site vitrine
   ============================================================ */

:root {
  --green:      #1a7a4a;
  --green-dark: #145e38;
  --green-light:#e8f5ee;
  --accent:     #f0a500;
  --text:       #1a1f2e;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --white:      #ffffff;
  --bg:         #f9fafb;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt { background: var(--bg); }

.tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: .75rem;
}
h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; margin-bottom: 1rem;
}
p.section-lead {
  color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 2.5rem;
}

/* Boutons */
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s;
  border: 2px solid transparent; text-decoration: none;
}
.btn-primary  { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-outline  { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.btn-contact  { background: var(--white); color: var(--green); }
.btn-contact:hover { background: var(--green-light); text-decoration: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none;
}
.nav-brand .dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; background: var(--green);
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-links .btn { padding: .45rem 1.2rem; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: all .2s; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #2aa76a 100%);
  color: var(--white); padding: 7rem 0 6rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 720px; }
.hero-label {
  display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .88; max-width: 560px; margin-bottom: 2.25rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.stats { background: var(--white); border-top: 3px solid var(--green); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

/* À propos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual {
  background: var(--green-light); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 2rem; text-align: center; gap: 1rem;
}
.about-visual .big-icon { font-size: 4rem; }
.about-visual strong { font-size: 1.1rem; color: var(--green-dark); }
.about-visual p { font-size: .9rem; color: var(--muted); }
.about-points { list-style: none; margin-top: 1.5rem; }
.about-points li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .95rem;
}
.about-points li:last-child { border: none; }
.about-points .check {
  flex-shrink: 0; width: 22px; height: 22px; background: var(--green); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; margin-top: .1rem;
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p  { font-size: .9rem; color: var(--muted); }

/* Bandeau normes */
.norms { background: var(--green); color: var(--white); padding: 3.5rem 0; text-align: center; }
.norms h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.norms p  { opacity: .85; max-width: 600px; margin: 0 auto 2rem; }
.norms-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.norm-badge {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: var(--white);
  padding: .45rem 1.1rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
}

/* Équipe */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.member-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.member-card:hover { transform: translateY(-2px); }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green-light); color: var(--green);
  font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; border: 3px solid var(--green);
}
.member-name { font-weight: 700; font-size: 1rem; }
.member-role { font-size: .83rem; color: var(--green); font-weight: 600; margin-top: .2rem; }
.member-bio  { font-size: .82rem; color: var(--muted); margin-top: .6rem; line-height: 1.5; }

/* Contact */
.contact-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--white); padding: 5rem 0;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p  { opacity: .85; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: center; gap: .6rem; font-size: .95rem; opacity: .9; margin-bottom: .75rem; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: 0 8px 40px rgba(0,0,0,.2); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .95rem; color: var(--text); transition: border-color .15s;
  background: var(--white); font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,122,74,.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; }
.form-notice { font-size: .78rem; color: var(--muted); margin-top: .75rem; text-align: center; }
.form-success { text-align: center; padding: 2rem; display: none; }
.form-success .big-check { font-size: 3rem; display: block; margin-bottom: .75rem; }
.form-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--green); }
.form-success p  { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

/* Footer */
.footer { background: #111827; color: rgba(255,255,255,.65); padding: 2rem 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { color: var(--white); font-weight: 600; }
.footer a { color: rgba(255,255,255,.55); }
.footer a:hover { color: var(--white); }

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border: none; }
  .nav-links a { display: block; padding: .75rem 0; }
  .nav-toggle { display: block; }
  .nav { position: relative; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { order: -1; padding: 2rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info { text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
}
