/* PGS Technologie — www.pgstech.ca
   One stylesheet, no framework. Mobile first: the base rules are the phone
   layout; the min-width media queries widen it. */

:root {
  --navy: #0b2340;
  --navy-2: #12355f;
  --accent: #0fa3a3;
  --accent-dark: #0b8282;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #e2e8ef;
  --bg-soft: #f4f7fa;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 35, 64, .08);
  --max: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-2), var(--accent)); color: var(--white);
  font-size: .85rem; letter-spacing: .02em;
}
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.open, .no-js .site-nav { display: block; }
.no-js .site-nav { position: static; box-shadow: none; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--accent-dark); }
.site-nav .nav-cta { margin-top: 10px; text-align: center; border: 0; }

/* Current page, set by <body class="p-xxx"> */
.p-accueil .n-accueil, .p-apropos .n-apropos, .p-services .n-services,
.p-sip .n-sip, .p-pbx .n-pbx, .p-contact .n-contact { color: var(--accent-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at 85% 20%, rgba(15, 163, 163, .35), transparent 45%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dbe6f2; padding: 56px 0 64px; overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.12rem; max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .actions .btn { flex: 1 1 200px; }
.hero-art { display: none; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fe0db; margin-bottom: 14px; }

.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe6f2; padding: 44px 0; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { margin: 0; max-width: 40em; font-size: 1.08rem; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 40em; margin-bottom: 30px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.card .more::after { content: " \2192"; }

.icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(15, 163, 163, .12); color: var(--accent-dark);
}
.icon svg { width: 24px; height: 24px; }

.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: -32px; position: relative; }
.highlight { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; border: 1px solid var(--line); }
.highlight strong { display: block; color: var(--navy); font-size: 1.15rem; }
.highlight span { color: var(--muted); font-size: .9rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
.prose p { color: #33404f; }

.cta-band { background: linear-gradient(135deg, var(--navy-2), var(--accent-dark)); color: #e6f4f4; border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

.logos { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 18px; }
.logos img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; }

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

.contact-info { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info .icon { width: 40px; height: 40px; margin: 0; flex: none; }
.contact-info .icon svg { width: 20px; height: 20px; }
.contact-info strong { display: block; color: var(--navy); }

.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
  border: 1px solid #cdd6e0; border-radius: 10px; background: var(--white);
  font-size: 16px; /* 16px stops iOS from zooming into the field */
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(15, 163, 163, .25); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.contact-form .btn { width: 100%; }

.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.alert-ok { background: #e3f6ef; color: #135c3f; border: 1px solid #b4e5d0; }
.alert-err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }

.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #a9b8ca; padding: 44px 0 24px; margin-top: 0; }
.site-footer a { color: #dbe6f2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 18px; font-size: .85rem; }

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .highlights { grid-template-columns: repeat(4, 1fr); }
  .checklist.cols { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-form .btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .actions .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 12px; font-size: .95rem; }
  .site-nav .nav-cta { margin: 0 0 0 8px; }
  .site-nav .nav-cta a { padding: 9px 16px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .checklist.cols { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .split.contact { grid-template-columns: .8fr 1.2fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .hero { padding: 88px 0 96px; }
  .hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
  .hero-art { display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
  .section { padding: 80px 0; }
  .cta-band { padding: 48px; }
}

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

/* The CTA in the menu is a button: keep its own colours over the link rules. */
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--white); }
