/* ============================================================
   CODE & COMPÉTENCES — codeetcompetences.fr
   Palette : Navy #1e3a5f + Vert #10b981 | Inter
   Ton : professionnel, humain, pédagogique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1e3a5f;
  --navy-dark: #152c49;
  --navy-mid:  #2d5282;
  --green:     #10b981;
  --green-dark:#059669;
  --green-pale:#d1fae5;
  --text:      #1f2937;
  --muted:     #6b7280;
  --light:     #f8fafc;
  --border:    #e5e7eb;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 2px 16px rgba(0,0,0,.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,.11);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----- Conteneur ----- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--white);
  font-weight: 700;
}
.nav-logo .logo-main {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.2px;
}
.nav-logo .logo-main span { color: var(--green); }
.nav-logo .logo-sub {
  font-size: .7rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.nav-logo:hover { text-decoration: none; color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.1);
  color: var(--white);
  text-decoration: none;
}

.nav-pill {
  background: var(--green) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
}
.nav-pill:hover { background: var(--green-dark) !important; color: var(--white) !important; }

.nav-espace {
  color: #94a3b8 !important;
  font-size: .8rem !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 20px !important;
  padding: 5px 12px !important;
}
.nav-espace:hover {
  background: rgba(255,255,255,.1) !important;
  color: var(--white) !important;
  text-decoration: none !important;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============================================================
   HERO — ACCUEIL
   ============================================================ */
.hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1a4a3a 100%);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tagline {
  display: inline-block;
  background: rgba(16,185,129,.18);
  color: var(--green);
  border: 1px solid rgba(16,185,129,.3);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}

.hero h1 .accent { color: var(--green); }

.hero-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 16px auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background .15s, transform .15s;
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white) !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background .15s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.18);
  text-decoration: none;
}

.hero-proof {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.hero-stat span {
  font-size: .8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============================================================
   SECTIONS GÉNÉRALES
   ============================================================ */
section { padding: 72px 0; }
section.alt { background: var(--light); }

.section-eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -.3px;
  line-height: 1.25;
}

.section-sub {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 44px;
  font-size: 1.02rem;
}

/* ============================================================
   PILIERS — cards principales
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.65;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--green-dark);
  font-size: .88rem;
  font-weight: 600;
}
.pillar-card:hover .pillar-link { text-decoration: underline; }

/* ============================================================
   CARDS GÉNÉRIQUES
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   CHECK LIST
   ============================================================ */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
}
.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   DEUX COLONNES
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.highlight-box p { margin: 0; color: #065f46; font-weight: 500; }

/* ============================================================
   QUALIOPI BADGE
   ============================================================ */
.qualiopi-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 40px 0;
}
.qualiopi-icon { font-size: 2.5rem; flex-shrink: 0; }
.qualiopi-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--green);
}
.qualiopi-box p { font-size: .92rem; color: #cbd5e1; margin: 0; line-height: 1.6; }

/* ============================================================
   TAGS TECHNOLOGIES
   ============================================================ */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-tag {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}
.tech-tag.green {
  background: var(--green-pale);
  border-color: #6ee7b7;
  color: #065f46;
}
.tech-tag-link {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.tech-tag-link:hover {
  background: var(--green-pale);
  border-color: #6ee7b7;
  color: #065f46;
}

/* ============================================================
   SECTEURS
   ============================================================ */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.sector-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.sector-item span { font-size: 1.2rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1a4a3a 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.cta-banner p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 1.05rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   HERO PAGE INTERNE
   ============================================================ */
.hero-inner {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 60px 0 52px;
}

.breadcrumb {
  font-size: .82rem;
  color: #94a3b8;
  margin-bottom: 16px;
}
.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

.hero-inner .page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.25);
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-inner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.4px;
}

.hero-inner p.lead {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.65;
}

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Grille 2 colonnes formulaires — utilisée dans contact + espace */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Table responsive (politique de confidentialité, etc.) */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive table {
  min-width: 600px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.contact-item a, .contact-item p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.contact-item a:hover { color: var(--green-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 32px;
  font-size: .88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.footer-brand .brand-name span { color: var(--green); }
.footer-brand .brand-line {
  font-size: .75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p { line-height: 1.7; font-size: .87rem; }

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a { color: #94a3b8; font-size: .88rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-size: .88rem;
}
.footer-contact a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #475569;
}
.footer-bottom a { color: #475569; }
.footer-bottom a:hover { color: var(--white); }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.faq-item h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.faq-item p { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.faq-item a { color: var(--green-dark); text-decoration: none; font-weight: 500; }
.faq-item a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* La nav reste à hauteur fixe — le menu s'ouvre en overlay absolu en dessous */
  .site-nav { position: sticky; }
  .nav-inner { height: 68px; flex-wrap: nowrap; }
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-dark);
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 20px;
    border-radius: 0;
    font-size: .95rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-pill {
    margin: 10px 16px 0 !important;
    border-radius: var(--radius) !important;
    text-align: center;
    display: block;
  }

  /* Icône burger → croix quand ouvert */
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-burger span { transition: transform .2s, opacity .15s; }

  .hero { padding: 64px 0 56px; }
  .hero-proof { gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .qualiopi-box { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  section { padding: 56px 0; }
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.35rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-banner .cta-actions { flex-direction: column; align-items: center; }
}
