/* A1 Informatique Agde — feuille de style
   Couleurs : noir et blanc de l'enseigne, bleu glacier repris de la vidéo d'accueil. */

:root {
  --noir: #000;
  --blanc: #fff;
  --glace: #25b9ec;        /* accent sur fond noir */
  --glace-fonce: #0a6c93;  /* accent sur fond blanc (contraste suffisant pour du texte) */
  --brume: #f1f4f6;
  --trait: #d5dbe0;
  --encre: #2e3338;
  --vert: #1a7f3c;
  --header-h: 104px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  background: #fff;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: inherit; }
a:focus, button:focus { outline: 3px solid #0a6c93; outline-offset: 3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--glace-fonce); outline-offset: 3px; }
.repair a:focus-visible, .hero a:focus-visible, .hero button:focus-visible { outline-color: var(--glace); }

h1, h2, h3, p, ul, table { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #000; color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

.text-link { color: #0a6c93; color: var(--glace-fonce); font-weight: 700; text-underline-offset: 3px; }
.text-link:hover { color: #000; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block; padding: 11px 24px;
  border: 2px solid #000; border-radius: 8px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.3;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #fff; color: #000; }
.btn-outline { background: transparent; color: #000; }
.btn-outline:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn-light:hover { background: #25b9ec; background: var(--glace); border-color: #25b9ec; border-color: var(--glace); }
.btn-ghost { background: rgba(0, 0, 0, .35); color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: #000; }

/* ---------- En-tête ---------- */

.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--trait); box-shadow: 0 6px 18px rgba(0, 20, 35, .08); }

.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 40px;
  display: flex; align-items: center;
}

.brand { flex: none; margin-right: 40px; }
.brand img { width: 76px; height: auto; transition: width .2s; }
.is-scrolled .brand img { width: 52px; }

.main-nav { display: flex; align-items: center; }
.main-nav a {
  margin-right: 34px; padding: 6px 0;
  font-size: 18px; font-weight: 500; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: #000; }

.open-status {
  margin-left: auto; margin-right: 20px;
  font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--encre);
}
.open-status::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px;
  border-radius: 50%; background: #9aa3aa; vertical-align: 1px;
}
.open-status.is-open::before { background: var(--vert); }
.open-status[hidden] + .header-call { margin-left: auto; }

.header-call { flex: none; white-space: nowrap; }

.menu-toggle { display: none; }

/* ---------- Accueil (vidéo) ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 560px;
  min-height: min(84vh, 900px);
  display: flex; align-items: flex-end;
  background: #06121c;
  color: #fff;
}

.hero-poster, .hero-poster img, .hero-video, .hero-shade {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
}
.hero-poster img, .hero-video { max-width: none; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.is-playing { opacity: 1; }
.hero-shade { background: linear-gradient(to top, rgba(0, 8, 14, .82) 0%, rgba(0, 8, 14, .35) 45%, rgba(0, 8, 14, 0) 75%); }

.hero-text {
  position: relative; width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 0 40px 72px;
}
.hero-text h1 {
  font-size: 44px;
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.01em;
  max-width: 14em;
}
.hero-sub {
  margin-top: 10px;
  font-size: 24px;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 500; line-height: 1.3;
  color: #fff;
}
.hero-text h1, .hero-sub { text-shadow: 0 2px 18px rgba(0, 8, 14, .55); }
.hero-actions { margin-top: 32px; }
.hero-actions .btn { margin: 0 12px 12px 0; }

.video-toggle {
  position: absolute; right: 20px; bottom: 20px;
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 6px;
  background: rgba(0, 0, 0, .45); color: #fff;
  font: inherit; font-size: 12px; cursor: pointer;
}
.video-toggle:hover { background: #000; }

/* ---------- Bienvenue ---------- */

.welcome { display: grid; grid-template-columns: 1fr 1fr; }
.welcome > * { min-width: 0; }

.welcome-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 56px;
}
.welcome-title { font-size: 34px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 24px; }
.welcome-title span { display: block; font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.welcome-info { font-size: 17px; font-weight: 500; max-width: 30em; margin-bottom: 14px; }

.welcome-photo picture, .welcome-photo img { width: 100%; height: 100%; }
.welcome-photo img { min-height: 420px; object-fit: cover; }

/* ---------- Pourquoi A1 Informatique ---------- */

.why {
  position: relative; overflow: hidden;
  min-height: 760px; padding: 96px 40px;
  display: flex; align-items: center; justify-content: flex-end;
  background: #e8e6e6;
}
.why-bg, .why-bg img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.why-bg img { max-width: none; object-fit: cover; }

.why-box {
  position: relative; width: 100%; max-width: 480px; margin-right: 7%;
  background: #000; color: #fff; padding: 56px;
  border-top: 4px solid #25b9ec; border-top: 4px solid var(--glace);
}
.why-box h2 { font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.why-lead { font-size: 17px; font-weight: 500; color: #25b9ec; color: var(--glace); margin-bottom: 30px; }
.why-box p { line-height: 1.55; margin-bottom: 18px; }
.why-box p:last-child { margin-bottom: 0; }

/* ---------- Titres de section ---------- */

.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.15; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--encre); }

/* ---------- Services ---------- */

.services { padding: 104px 0; background: #f1f4f6; background: var(--brume); }

.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-gap: 1px; gap: 1px;
  background: #d5dbe0; background: var(--trait);
  border: 1px solid #d5dbe0; border: 1px solid var(--trait);
}
.service { min-width: 0; background: #fff; padding: 34px 32px 38px; }

.service-icon {
  width: 40px; height: 40px; margin-bottom: 18px;
  fill: none; stroke: #0a6c93; stroke: var(--glace-fonce);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.service li {
  position: relative; padding-left: 16px; margin-bottom: 7px;
  font-size: 15px; line-height: 1.5; color: var(--encre);
}
.service li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 2px; background: #0a6c93; background: var(--glace-fonce);
}

.services-cta { margin-top: 36px; font-size: 17px; font-weight: 500; }

/* ---------- Vente / Réparation ---------- */

.sales, .repair { padding: 104px 0; }
.repair { background: #000; color: #fff; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 64px; gap: 64px; align-items: center; }
.two-cols > * { min-width: 0; }

.col-text h2 { font-size: 28px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; margin-bottom: 28px; }
.col-text p { margin-bottom: 20px; max-width: 34em; }
.col-text p:last-child { margin-bottom: 0; }

.col-media img { margin: 0 auto; }

.repair-photo { width: 420px; }
.repair-logos { display: flex; align-items: center; justify-content: center; margin-top: 36px; }
.repair-logos .logo-pc { width: 130px; margin: 0 36px 0 0; }
.repair-logos .logo-mac { width: 104px; margin: 0; }

/* ---------- Contact ---------- */

.contact { padding: 104px 0; }

.contact-grid { display: grid; grid-template-columns: 5fr 6fr; grid-gap: 56px; gap: 56px; align-items: stretch; }
.contact-grid > * { min-width: 0; }

address { font-style: normal; margin-bottom: 32px; }
address p { margin-bottom: 10px; }
.contact-name { font-size: 20px; font-weight: 700; }
.contact-phone { font-size: 30px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.contact-phone:hover { color: var(--glace-fonce); }

.hours { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 15px; }
.hours caption { text-align: left; font-size: 17px; font-weight: 700; padding-bottom: 10px; }
.hours th, .hours td { padding: 8px 0; border-top: 1px solid var(--trait); text-align: left; font-weight: 400; }
.hours td { padding-left: 12px; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " (aujourd'hui)"; font-weight: 400; color: var(--encre); }
.hours-note { margin-top: 12px; font-size: 15px; color: var(--encre); }

.contact-actions { margin-top: 28px; }
.contact-actions .btn { margin: 0 10px 10px 0; }

.map { min-height: 380px; background: #f1f4f6; background: var(--brume); border: 1px solid var(--trait); }
.map-placeholder {
  height: 100%; min-height: 380px; padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.map-placeholder p { font-weight: 500; margin-bottom: 18px; }
.map-placeholder .map-note { margin: 18px 0 0; max-width: 26em; font-size: 13px; font-weight: 400; color: var(--encre); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Pied de page ---------- */

.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--trait); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; }
.footer-logo { width: 96px; margin-right: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; }
.footer-nav a { margin: 4px 26px 4px 0; font-weight: 500; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { width: 100%; margin-top: 28px; font-size: 14px; color: var(--encre); }

/* ---------- Barre d'action mobile ---------- */

.mobile-bar { display: none; }

/* ---------- Page de texte (mentions légales) ---------- */

.page { padding: 72px 0 96px; }
.page .container { max-width: 800px; }
.page h1 { font-size: 34px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 36px; }
.page h2 { font-size: 21px; margin: 40px 0 12px; }
.page p { margin-bottom: 12px; }
.page .a-completer { background: #fff3c4; padding: 1px 6px; }

/* ---------- Apparition au défilement (uniquement si le script fonctionne) ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablettes ---------- */

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav a { margin-right: 22px; font-size: 16px; }
  .brand { margin-right: 24px; }
  .open-status { display: none; }
  .header-call { margin-left: auto; }
}

/* ---------- Mobiles ---------- */

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  body { padding-bottom: 60px; }
  .container { padding: 0 20px; }

  .header-inner { padding: 8px 16px; flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .brand img, .is-scrolled .brand img { width: 48px; }
  .header-call { display: none; }

  .open-status { display: block; order: 2; margin: 0 14px 0 0; font-size: 13px; }

  .menu-toggle {
    display: inline-flex; align-items: center; order: 3;
    padding: 9px 12px; border: 2px solid #000; border-radius: 8px;
    background: #fff; color: #000; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: #000;
  }
  .menu-toggle-bars { position: relative; margin-right: 9px; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }

  .main-nav { order: 4; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 6px; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .main-nav a { margin: 0; padding: 13px 4px; font-size: 18px; border-bottom: 1px solid var(--trait); }
  .main-nav a:last-child { border-bottom: 0; }

  .hero { min-height: 480px; min-height: min(72vh, 620px); }
  .hero-text { padding: 0 20px 40px; }
  .hero-actions .btn { display: block; margin: 0 0 12px; }
  .video-toggle { display: none; }

  .welcome { grid-template-columns: 1fr; }
  .welcome-text { padding: 48px 20px; }
  .welcome-photo img { min-height: 0; }

  .why { min-height: 0; padding: 40px 16px; justify-content: center; }
  .why-box { margin-right: 0; padding: 36px 26px; }

  .services, .sales, .repair, .contact { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }

  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 28px 22px 30px; }

  .two-cols, .contact-grid { grid-template-columns: 1fr; grid-gap: 40px; gap: 40px; }
  .repair-photo { width: 100%; max-width: 420px; }

  .contact-phone { font-size: 26px; }
  .map, .map-placeholder, .map iframe { min-height: 300px; }

  .footer-logo { width: 72px; margin: 0 0 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #000; border-top: 1px solid #333;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    flex: 1 1 50%; padding: 17px 8px; text-align: center;
    color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  }
  .mobile-bar a:first-child { background: #25b9ec; background: var(--glace); color: #000; }
}

/* ---------- Préférences de l'utilisateur ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .site-header, .brand img, .hero-video { transition: none; }
}

@media print {
  .site-header, .mobile-bar, .hero-video, .video-toggle, .map, .hero-actions { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { padding-bottom: 0; }
}
