:root {
  --navy: #0b1f4d;
  --navy-2: #0f2a66;
  --navy-3: #132f73;
  --blue: #0a66e8;
  --blue-soft: #eaf2fe;
  --orange: #ff7a00;
  --orange-2: #ff9a1f;
  --text: #1a2340;
  --muted: #5a6482;
  --line: #e3e8f2;
  --bg-soft: #f4f7fc;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(11, 31, 77, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { flex-shrink: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head p, .sub { color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 0, .3); }
.btn-orange:hover { box-shadow: 0 12px 26px rgba(255, 122, 0, .4); }
.btn-outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 50px; }
.brand-text { font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: .02em; line-height: 1; }
.brand-text b { color: var(--blue); }
.brand-text small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { font-weight: 600; font-size: .9rem; color: var(--navy); padding: 8px 12px; border-radius: 8px; transition: background .2s, color .2s; }
.menu a:not(.btn):hover { color: var(--blue); }
.menu a.active { background: var(--blue); color: #fff; }
.menu a.active:hover { color: #fff; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav-phone svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2; }
.menu .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Accueil */
.hero {
  position: relative; overflow: hidden; color: #dbe5ff;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(10, 102, 232, .45), transparent 60%),
    linear-gradient(120deg, #071538 0%, var(--navy) 45%, #0d2c75 100%);
  padding: clamp(48px, 7vw, 84px) 0 150px;
}
.hero::before {
  content: ""; position: absolute; left: -60px; top: -40px; width: 180px; height: 120%;
  background: linear-gradient(180deg, var(--orange), var(--orange-2)); transform: skewX(-18deg); opacity: .9;
  clip-path: polygon(0 0, 60% 0, 100% 100%, 40% 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-kicker { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; color: #fff; margin: 0 0 4px; letter-spacing: .01em; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.hl { color: var(--orange); }
.lead { font-size: 1.12rem; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
.hero-script {
  position: absolute; right: -6px; top: -36px; margin: 0;
  font-family: "Caveat", cursive; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.05;
  color: #fff; text-align: right; transform: rotate(-8deg); text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.hero-script::after { content: ""; display: block; width: 110px; height: 4px; margin: 8px 0 0 auto; border-radius: 4px; background: var(--orange); }

/* Services */
.services-wrap { position: relative; margin-top: -100px; z-index: 2; }
.services-panel { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.services-intro h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.services-intro p { color: var(--blue); font-weight: 500; }
.underline { display: block; width: 70px; height: 4px; border-radius: 4px; background: var(--orange); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-img { aspect-ratio: 16 / 9; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service-img img { transform: scale(1.05); }
.service-body { position: relative; padding: 30px 20px 22px; text-align: center; }
.service-icon {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(11, 31, 77, .15);
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { color: var(--navy); }
.service p { color: var(--muted); font-size: .9rem; margin: 0; }

/* À propos + réalisations */
.about-real { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 7vw, 72px); }
.about-card {
  position: relative; overflow: hidden; border-radius: 20px;
  background: linear-gradient(135deg, #f1f6ff, #fff 60%); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.15fr .85fr; min-height: 360px;
}
.about-text { padding: clamp(24px, 4vw, 48px); align-self: center; max-width: 620px; }
.about-text p { color: var(--muted); }
.values { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.values li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: 8px; }
.about-img { position: relative; }
.about-img::before { content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: var(--orange); opacity: .9; }
.about-img img { position: relative; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }

.real-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.real-head p { color: var(--muted); margin: 0; }
.link-arrow { color: var(--blue); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.real-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.real-item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 8px 20px rgba(11, 31, 77, .12); }
.real-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.real-item:hover img { transform: scale(1.06); }
.real-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 21, 56, .6)); }
.tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.tag-orange { background: var(--orange); }

/* Secteurs */
.kicker { color: var(--orange) !important; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.section-head.center p:last-child { max-width: 560px; margin-inline: auto; }
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sector { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(11, 31, 77, .07); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sector:hover .sector-img img { transform: scale(1.05); }
.sector-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 21, 56, .55)); }
.sector-num { position: absolute; left: 16px; bottom: 12px; z-index: 1; color: #fff; font-weight: 800; font-size: 1.5rem; line-height: 1; }
.sector-num::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); margin-top: 6px; }
.sector-body { padding: 20px 22px 24px; border-top: 4px solid var(--blue); flex: 1; }
.sector:nth-child(even) .sector-body { border-top-color: var(--orange); }
.sector h3 { font-size: 1.08rem; margin-bottom: 12px; }
.sector ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sector li { position: relative; padding-left: 26px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.sector li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a66e8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.sector-wide { grid-column: 1 / -1; flex-direction: row; }
.sector-wide .sector-img { aspect-ratio: auto; flex: 0 0 42%; min-height: 260px; }
.sector-wide .sector-body { border-top: 0; border-left: 4px solid var(--blue); padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.sector-wide ul { grid-template-columns: 1fr 1fr; column-gap: 24px; margin-bottom: 22px; }
.sector-wide .btn { align-self: flex-start; }
.sectors-more { text-align: center; margin: 32px 0 0; color: var(--muted); }
.sectors-more a { color: var(--blue); font-weight: 700; }
.sectors-more a:hover { text-decoration: underline; }

/* Méthode + FAQ */
.method-faq { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; }
.method, .faq { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.method h2, .faq h2 { font-size: 1.4rem; margin-bottom: 2px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { position: relative; text-align: center; display: grid; justify-items: center; gap: 2px; font-size: .9rem; color: var(--navy); }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 18px; color: var(--blue); font-size: 1.3rem; }
.steps strong { margin-top: 10px; }
.steps li > span:last-child { color: var(--muted); }
.step-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; }
.step-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 12px 44px 12px 16px; font-weight: 600; font-size: .92rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 1.3rem; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); font-size: .9rem; }
.faq .sub { margin-bottom: 10px; }

/* Contact */
.contact-section { background: linear-gradient(120deg, #071538, var(--navy) 50%, #0d2c75); color: #c9d4ee; padding: clamp(56px, 8vw, 84px) 0; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a:hover { color: var(--orange-2); }
.form { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: #fff; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 2px solid transparent; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form .invalid { border-color: #ff5a4f; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { font-size: .85rem; margin: 0; }
.form-note.error { color: #ffb4ae; }

/* Pied de page */
.footer { background: #061232; color: #9fb0d6; padding: 22px 0; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: #fff; }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-phone { display: none; }
}
@media (max-width: 1080px) {
  .services-panel { grid-template-columns: 1fr; }
  .method-faq { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu a.active { background: none; color: var(--blue); }
  .nav-phone { display: inline-flex; margin: 0; }
  .menu .btn { margin: 16px 0 0; }
  .hero::before { width: 90px; height: 60%; left: auto; right: -30px; top: auto; bottom: -20px; opacity: .85; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 640px; }
  .hero-script { top: -44px; right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .brand-text small { display: none; }
  .hero { padding-bottom: 130px; }
  .hero::before { width: 70px; height: 60%; left: auto; right: -30px; top: auto; bottom: -20px; opacity: .85; }
  .hero-script { font-size: 1.25rem; top: -38px; }
  .actions .btn, .form-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-wide { flex-direction: column; }
  .sector-wide .sector-img { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .sector-wide .sector-body { border-left: 0; border-top: 4px solid var(--blue); padding: 20px 22px 24px; }
  .sector-wide ul { grid-template-columns: 1fr; }
  .sector-wide .btn { align-self: stretch; }
  .about-card { grid-template-columns: 1fr; }
  .about-img { height: 200px; overflow: hidden; }
  .about-img img { clip-path: none; }
  .real-head { flex-direction: column; align-items: flex-start; }
  .real-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .steps li::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
