/* =========================================================
   AK TECHNOLOGIE — Feuille de style principale
   Palette tirée du logo officiel : orange #F67F17 (action) / bleu marine #0A3375 (confiance)
   Typographie : Archivo (largeur variable) — étirée pour les titres
   ========================================================= */
:root {
  --orange: #F67F17;       /* orange du logo */
  --orange-dark: #D9690B;  /* survol des boutons */
  --orange-text: #B3570A;  /* orange lisible pour les petits textes sur fond blanc */
  --navy: #0A3375;         /* bleu marine du logo */
  --navy-mid: #123F8A;
  --night: #061C40;        /* bleu nuit : fonds sombres, pied de page */
  --white: #FFFFFF;
  --light: #F5F8FC;
  --grey: #5B6B82;
  --line: #DFE6EF;
  --text: #0B1B33;
  --radius: 6px;
  --font: "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-family: var(--font);
  --bs-link-color-rgb: 10, 51, 117;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font); color: var(--text); font-size: 1.0625rem; line-height: 1.6; background: var(--white); }
h1, h2, h3, h4, .display {
  font-family: var(--font);
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-stretch: 108%; font-variation-settings: "wdth" 108; }
p { max-width: 68ch; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 2000; border-radius: var(--radius); }
.skip-link:focus { left: 8px; color: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn { font-weight: 700; border-radius: var(--radius); padding: .75rem 1.35rem; font-stretch: 108%; font-variation-settings: "wdth" 108; }
.btn-akt { background: var(--orange); border: 2px solid var(--orange); color: var(--night); }
.btn-akt:hover, .btn-akt:focus-visible { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-line { border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-navy { background: var(--navy); border: 2px solid var(--navy); color: #fff; }
.btn-navy:hover { background: var(--night); border-color: var(--night); color: #fff; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.link-arrow { font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.link-arrow:hover { color: var(--orange-text); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(6,28,64,.08); }
.site-header .navbar { padding: .65rem 0; }
.site-header .navbar-brand { display: flex; align-items: center; gap: .7rem; margin-right: 1.5rem; flex-shrink: 0; white-space: nowrap; }
.site-header .navbar-brand img { height: 58px; width: 58px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { color: var(--navy); font-weight: 800; font-size: 1.2rem; font-stretch: 120%; font-variation-settings: "wdth" 120; }
.brand-name small { color: var(--orange-text); font-weight: 600; font-size: .78rem; letter-spacing: .02em; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .brand-name small { display: none; } .site-header .nav-link { padding: .5rem .55rem !important; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .brand-name { display: none; } }
@media (max-width: 380px) { .brand-name small { display: none; } }
.site-header .nav-link { color: var(--night); font-weight: 600; padding: .5rem .7rem !important; position: relative; white-space: nowrap; }
.site-header .btn-akt { white-space: nowrap; }
.site-header .nav-link:hover { color: var(--navy); }
.site-header .nav-link.active { color: var(--navy); }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 3px; background: var(--orange); border-radius: 2px; }
.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--navy); padding: 0 .25rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { padding: .75rem 0 1rem; }
  .site-header .nav-link.active::after { left: .8rem; right: auto; width: 24px; }
  .site-header .btn-akt { width: 100%; }
}

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; background: var(--night); color: #CBD5E1; overflow: hidden; }
.hero::before { /* bande bleu marine */
  content: ""; position: absolute; inset: 0 0 0 auto; width: 44%; background: var(--navy);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; min-height: min(78vh, 680px); padding: 4.5rem 0; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.1rem); font-stretch: 125%; font-variation-settings: "wdth" 125; margin-bottom: 1.4rem; }
.hero .hero-lead { font-size: 1.2rem; color: #CBD5E1; max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-domains { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: #A9B8CF; }
.hero-domains li { display: flex; align-items: center; gap: .45rem; }
.hero-domains i { color: var(--orange); }

/* L'orbite : le cercle du logo, comme un soleil autour duquel tourne un satellite */
.orbit { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-left: auto; }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-photo { position: absolute; inset: 18%; border-radius: 50%; overflow: hidden; border: 8px solid var(--orange); background: #fff; }
.orbit-logo { position: absolute; inset: 18%; width: 64%; height: 64%; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.orbit-photo img { width: 100%; height: 100%; object-fit: cover; }
.orbit-sat { transform-origin: 240px 240px; animation: orbit 22s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
  .hero::before { width: 100%; height: 38%; inset: auto 0 0 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 3rem 0 3.5rem; gap: 2.5rem; }
  .orbit { max-width: 320px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.sec { padding: 5.5rem 0; }
.sec-alt { background: var(--light); }
.sec-head { max-width: 720px; margin-bottom: 3rem; }
.sec-head p { color: var(--grey); font-size: 1.125rem; margin: .9rem 0 0; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sec-head-row .sec-head { margin-bottom: 0; }
@media (max-width: 767.98px) { .sec { padding: 3.75rem 0; } }

/* ---------- Domaines d'expertise : liste en lignes ---------- */
.domains { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.domain { display: grid; grid-template-columns: 64px minmax(180px, 1fr) 2fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.domain-icon { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--orange); display: grid; place-items: center; font-size: 1.45rem; color: var(--navy); }
.domain h3 { margin: 0; font-size: 1.35rem; }
.domain p { margin: 0; color: var(--grey); }
.domain:hover .domain-icon { background: var(--orange); color: var(--night); }
@media (max-width: 767.98px) {
  .domain { grid-template-columns: 52px 1fr; gap: .4rem 1rem; align-items: start; }
  .domain-icon { width: 48px; height: 48px; font-size: 1.2rem; grid-row: span 3; }
  .domain .link-arrow { justify-self: start; margin-top: .4rem; }
}

/* ---------- Pourquoi nous ---------- */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.why-list li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; }
.why-list i { font-size: 1.6rem; color: var(--orange); line-height: 1.2; }
.why-list h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.why-list p { margin: 0; color: var(--grey); }
@media (max-width: 991.98px) { .why { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Cartes produits / réalisations / actualités ---------- */
.card-akt { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s; }
.card-akt:hover { border-color: var(--navy); color: inherit; }
.card-akt .media { aspect-ratio: 4 / 3; background: var(--light); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-akt .media img { width: 100%; height: 100%; object-fit: cover; }
.card-akt .media .ph { font-size: 2.6rem; color: var(--navy); opacity: .35; }
.card-akt .body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-akt .kicker { font-size: .85rem; color: var(--orange-text); font-weight: 700; }
.card-akt h3 { font-size: 1.15rem; margin: 0; }
.card-akt p { color: var(--grey); margin: 0; font-size: .97rem; }
.card-akt .foot { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--navy); font-size: .95rem; }

.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--grey); }
.empty p { margin: 0 auto 1rem; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta { background: var(--navy); color: #DBEAFE; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px; border: 36px solid var(--orange); border-radius: 50%; opacity: .9; }
.cta .container { position: relative; z-index: 1; padding: 4.5rem 12px; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { font-size: 1.15rem; margin: 1rem 0 2rem; max-width: 50ch; }
@media (max-width: 767.98px) { .cta::after { width: 260px; height: 260px; right: -170px; top: -150px; border-width: 22px; } }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero { background: var(--night); color: #CBD5E1; padding: 3.5rem 0 3rem; border-bottom: 6px solid var(--orange); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .6rem 0 .8rem; }
.page-hero p { font-size: 1.15rem; margin: 0; }
.crumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: #A9B8CF; }
.crumbs a { color: #CBD5E1; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #5B6B82; }

/* ---------- Services détaillés ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block .domain-icon { margin-bottom: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; }
.checks li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--orange-text); font-weight: 700; }
.service-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
@media (max-width: 991.98px) { .service-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; } }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.filters a { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--night); font-weight: 600; font-size: .95rem; background: #fff; }
.filters a.active, .filters a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-inline { margin-left: auto; display: flex; gap: .4rem; }
.search-inline input { min-width: 220px; }
@media (max-width: 767.98px) { .search-inline { margin-left: 0; width: 100%; } .search-inline input { min-width: 0; flex: 1; } }

/* ---------- Fiche produit ---------- */
.product-media { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media .ph { font-size: 5rem; color: var(--navy); opacity: .3; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin: 1rem 0; }

/* ---------- Formulaires ---------- */
.form-label { font-weight: 600; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--radius); border-color: #CBD5E1; padding: .7rem .9rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(246,127,23,.22); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.req { color: var(--orange-text); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; }
.contact-list .domain-icon { width: 48px; height: 48px; font-size: 1.15rem; }
.contact-list small { display: block; color: var(--grey); }
.contact-list a, .contact-list span { font-weight: 700; color: var(--night); text-decoration: none; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); display: block; }

/* ---------- Texte long ---------- */
.prose { font-size: 1.1rem; }
.prose p { margin-bottom: 1.2rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #A9B8CF; padding: 4.5rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-logo { width: 88px; height: 88px; margin-bottom: 1rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.5rem; font-stretch: 120%; font-variation-settings: "wdth" 120; margin: 0; }
.footer-slogan { color: var(--orange); font-weight: 600; margin: .2rem 0 1rem; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links, .footer-contact, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; margin-bottom: .7rem; word-break: break-word; }
.footer-contact i { color: var(--orange); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid #1D3F74; border-radius: 50%; display: grid; place-items: center; }
.footer-bottom { border-top: 1px solid #143566; margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .9rem; }

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; align-items: center; gap: .5rem; background: #25D366; color: #06371c; font-weight: 700; padding: .8rem 1.1rem; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(6,28,64,.25); }
.whatsapp-float i { font-size: 1.5rem; line-height: 1; }
.whatsapp-float:hover { background: #1fbe5a; color: #06371c; }
@media (max-width: 575.98px) { .whatsapp-float span { display: none; } .whatsapp-float { padding: .9rem; } }

/* ---------- Pagination & alertes ---------- */
.pagination .page-link { color: var(--navy); }
.pagination .active .page-link { background: var(--navy); border-color: var(--navy); }
.alert { border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-sat { animation: none; }
  * { transition: none !important; }
}

/* Icônes : police locale, avec secours sur le CDN si le fichier est absent ou bloqué par l'hébergeur */
@font-face {
  font-family: "bootstrap-icons";
  font-display: block;
  src: url("../vendor/bootstrap-icons/fonts/bootstrap-icons.woff2?v=1.11.3") format("woff2"),
       url("../vendor/bootstrap-icons/fonts/bootstrap-icons.woff?v=1.11.3") format("woff"),
       url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff") format("woff");
}

/* ---------- Galeries photos ---------- */
.gal-main { position: relative; width: 100%; padding: 0; cursor: zoom-in; }
.gal-zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(6,28,64,.75); color: #fff; display: grid; place-items: center; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; margin-top: .75rem; }
.gal-thumb { padding: 0; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--light); aspect-ratio: 1; }
.gal-thumb img, .gal-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb.active, .gal-thumb:hover { border-color: var(--orange); }
.gal-hero { padding: 0; border: 0; width: 100%; display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--light); }
.gal-hero img { width: 100%; display: block; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin-top: .6rem; }
.gal-cell { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--light); }
.gal-cell:hover img { opacity: .85; }

.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(6,18,40,.94); display: none; align-items: center; justify-content: center; padding: 56px 64px; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; }
.lb figcaption { color: #E2E8F0; margin-top: .75rem; text-align: center; min-height: 1.4em; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.lb-btn:hover { background: var(--orange); color: var(--night); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
.lb-count { position: absolute; top: 24px; left: 20px; color: #A9B8CF; font-size: .95rem; }
@media (max-width: 575.98px) { .lb { padding: 64px 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* Défilement sur la fiche produit et nombre de photos dans le catalogue */
.gal-stage { position: relative; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(6,28,64,.18); }
.gal-nav:hover { background: var(--orange); color: var(--night); }
.gal-prev { left: 10px; } .gal-next { right: 10px; }
.gal-counter { position: absolute; left: 12px; bottom: 12px; background: rgba(6,28,64,.75); color: #fff; font-size: .85rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.gal-caption { color: var(--grey); font-size: .95rem; margin: .5rem 0 0; min-height: 1.4em; }
.gal-thumbs { grid-auto-flow: column; grid-auto-columns: 78px; grid-template-columns: none; overflow-x: auto; padding-bottom: 4px; }
.card-akt .media { position: relative; }
.photo-count { position: absolute; right: 8px; bottom: 8px; background: rgba(6,28,64,.78); color: #fff; font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }

.stock { font-weight: 600; margin: -.5rem 0 1rem; }
.stock.in { color: #15803D; }
.stock.out { color: var(--orange-text); }

/* Questions fréquentes */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-text); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--grey); }
