/* DMA IT Conseil — feuille de style v1.3 (thème sombre, logo triangle)
   Identité conservée : primaires Mondrian (rouge, jaune, bleu), bleu marine, Calibri.
   Fond bleu anthracite, accents éclaircis pour rester lisibles (contraste AA). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Fonds */
  --bg:        #0F1723;  /* fond de page */
  --surface:   #152030;  /* sections alternées */
  --card:      #1A2738;  /* cartes */
  --navy:      #1F4E79;  /* bleu marine de la marque */
  --navy-dk:   #122A42;
  --border:    #2A3A4F;

  /* Textes */
  --heading:   #F1F5F9;
  --text:      #CBD5E1;
  --muted:     #94A3B8;

  /* Primaires Mondrian : version marque (fonds, bandes) et version texte (éclaircie) */
  --red:       #CC0000;
  --red-txt:   #FF6B6B;
  --yellow:    #F5C518;
  --blue:      #0055B3;
  --blue-txt:  #6AA8FF;
  --link:      #8FC1F0;

  --maxw:      1080px;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; color-scheme: dark; }

body {
  font-family: Calibri, 'Segoe UI', Carlito, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
}

a { color: var(--link); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: #111; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.mondrian-bar {
  height: 4px;
  background: linear-gradient(to right,
    var(--red) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--blue) 66.66% 100%);
}

/* ── En-tête ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 28, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--yellow); }
.nav .btn { color: #fff; }

/* ── Boutons ── */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .8rem 1.4rem; border-radius: 6px; font-size: 1rem;
  transition: background-color .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #E01B1B; }
.btn-ghost { border-color: var(--muted); color: var(--heading); background: transparent; }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.nav .btn-ghost { color: var(--heading); }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-light { background: var(--yellow); color: #111; }
.btn-light:hover { background: #FFD84D; }

/* ── Héros ── */
.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 80% at 85% 40%, rgba(31, 78, 121, .35), transparent 70%),
    var(--bg);
}
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 700; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15;
  color: var(--heading); font-weight: 700; margin-bottom: 1rem;
}
.slogan { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-style: italic; font-weight: 700; margin-bottom: 1.25rem; }
.slogan .s1 { color: var(--red-txt); }
.slogan .s2 { color: var(--yellow); }
.slogan .s3 { color: var(--blue-txt); }
.hero .lead { font-size: 1.15rem; max-width: 38em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 300px; height: auto; }

/* ── Sections ── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--heading); line-height: 1.2; margin-bottom: .75rem;
}
.section .intro { max-width: 46em; margin-bottom: 2.5rem; color: var(--text); }

/* Trois piliers du slogan */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.75rem 1.5rem; border-top: 5px solid var(--c);
}
.pillar .num { font-weight: 700; color: var(--c-text); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.pillar h3 { font-size: 1.45rem; color: var(--heading); margin: .25rem 0 .6rem; }
.pillar.p1 { --c: var(--red);    --c-text: var(--red-txt); }
.pillar.p2 { --c: var(--yellow); --c-text: var(--yellow); }
.pillar.p3 { --c: var(--blue);   --c-text: var(--blue-txt); }

/* Domaines d'intervention */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.service {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem;
}
.service h3 { color: var(--link); font-size: 1.15rem; margin-bottom: .4rem; }
.service p { font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; list-style: none; }
.tags li {
  font-size: .85rem; font-weight: 700; color: var(--text);
  border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: .25rem .8rem;
}

/* Démarche en 6 phases */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.4rem 1.4rem 1.4rem 4.2rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.25rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--navy); border: 1px solid #3A6A97; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; color: var(--heading); margin-bottom: .3rem; }
.step p { font-size: .98rem; }
.step .deliv { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

/* Engagements */
.commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.5rem; list-style: none; }
.commitments li { padding-left: 1.6rem; position: relative; }
.commitments li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .7rem; height: .7rem; background: var(--blue-txt);
}
.commitments li:nth-child(3n+1)::before { background: var(--red-txt); }
.commitments li:nth-child(3n+2)::before { background: var(--yellow); }
.commitments strong { color: var(--heading); }

/* Contact */
.contact { background: var(--navy-dk); color: var(--text); padding: 4.5rem 0; border-top: 1px solid var(--border); }
.contact h2 { color: var(--heading); }
.contact .intro { color: var(--text); }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem;
}
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-email { font-size: 1.35rem; font-weight: 700; color: var(--heading); text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--yellow); }

/* Pied de page */
.site-footer { background: #0A1019; color: var(--muted); font-size: .9rem; padding: 1.5rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Page mentions légales */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal h1 { font-size: 2rem; color: var(--heading); margin-bottom: 2rem; }
.legal section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal section:last-child { border-bottom: none; }
.legal h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--link); margin-bottom: .75rem; }
.legal p { margin-bottom: .5rem; }
.legal strong { color: var(--heading); }
.legal .maj { color: var(--muted); font-size: .9rem; }
.todo { background: #4A3B00; color: #FFE28A; padding: 0 .3rem; border-radius: 3px; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; justify-content: flex-start; }
  .hero-visual img { max-width: 120px; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav li:not(.nav-cta) { display: none; }
  .brand img { height: 38px; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero-visual { display: none; }
  .section, .contact { padding: 3.25rem 0; }
  .steps, .commitments { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Liens LinkedIn / GitHub (v1.3) */
.ico { flex: none; vertical-align: middle; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; padding: 0; }
.social-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--text); text-decoration: none; font-weight: 600; }
.social-link:hover { color: var(--yellow); }
.footer-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.footer-social { display: inline-flex; align-items: center; gap: .4rem; }
.footer-social .ico { width: 16px; height: 16px; }
