:root {
  --vigie-blue: #0053c3;
  --vigie-blue-2: #0090d8;
  --vigie-ink: #101010;
  --vigie-bg: #ffffff;
  --phi: 1.618;
  --band-unit: 1rem;
  --band-blue: #0f3f7a;
  --band-gap: calc(var(--band-unit) / var(--phi));
}

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

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--vigie-ink);
  background: var(--vigie-bg);
}

p {
  margin-bottom: 1em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

header {
  background: var(--vigie-blue);
  color: white;
  padding: 60px 40px;
  text-align: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header p {
  font-size: 1.25em;
  opacity: 1;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.content {
  padding: 60px 40px;
}

.intro {
  background: #f5f7fb;
  border-left: 5px solid var(--vigie-blue);
  padding: 30px;
  margin-bottom: 40px;
  font-size: 1.1em;
  line-height: 1.8;
}

h2 {
  display: flex;
  align-items: center;
  gap: var(--band-gap);
  margin: calc(var(--band-unit) * var(--phi)) 0 calc(var(--band-unit) * 0.86);
  padding: calc(var(--band-unit) / 1.9) calc(var(--band-unit) * var(--phi));
  min-height: calc(var(--band-unit) * var(--phi) * 1.16);
  background: linear-gradient(90deg, var(--band-blue) 0%, #1a4f90 70%, var(--band-blue) 100%);
  color: #fff;
  border-radius: 6px;
  font-size: calc(var(--band-unit) * var(--phi) * 0.98);
  font-weight: 700;
  line-height: 1.14;
  max-width: 100%;
  box-sizing: border-box;
}


h3 {
  color: var(--vigie-blue);
  font-size: 1.55em;
  margin: 40px 0 22px 0;
  font-weight: 700;
}

h4 {
  color: #222;
  font-size: 1.2em;
  margin: 28px 0 16px 0;
  font-weight: 700;
}

.section {
  margin-bottom: 40px;
}

.subsection {
  margin: 25px 0;
  padding-left: 20px;
}

ul {
  margin: 15px 0 15px 40px;
}

li {
  margin: 10px 0;
  line-height: 1.8;
}

strong {
  color: var(--vigie-blue);
  font-weight: 600;
}

.highlight {
  background: #eaf3ff;
  border-left: 4px solid var(--vigie-blue-2);
  padding: 20px;
  margin: 25px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

thead {
  background: var(--vigie-blue);
  color: white;
}

th {
  padding: 18px;
  text-align: left;
  font-weight: 600;
  font-size: 1em;
}

td {
  padding: 15px 18px;
  border-bottom: 1px solid #a8a8a8;
}

tbody tr:nth-child(even) {
  background: #f5f7fb;
}

tbody tr:hover {
  background: #e8f2ff;
  transition: background 0.3s;
}

.score-high   { color: #28a745; font-weight: bold; }
.score-medium { color: #ffc107; font-weight: bold; }
.score-low    { color: #dc3545; font-weight: bold; }

.src-gov {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: .85em;
  background: #ddeeff;
  color: #003380;
  border: 1px solid #aaccee;
  white-space: nowrap;
}

.src-pq {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: .85em;
  background: #ddf0dd;
  color: #1a5c1a;
  border: 1px solid #99cc99;
  white-space: nowrap;
}

.company-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 25px 0;
}

.company-column {
  background: white;
  border: 2px solid #a8a8a8;
  border-radius: 8px;
  padding: 25px;
}

.company-column.us { border-left: 5px solid #dc3545; }
.company-column.qc { border-left: 5px solid #28a745; }

.company-column h5 {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #a8a8a8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.stat-card {
  background: var(--vigie-blue);
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-number {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1em;
  opacity: 0.95;
}

.conclusion {
  background: var(--vigie-blue);
  color: white;
  padding: 40px;
  margin: 50px 0;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.conclusion h3 {
  color: white;
  margin-top: 0;
  font-size: 1.8em;
}

.action-list {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 8px;
  margin-top: 25px;
}

.action-list ol {
  margin-left: 25px;
}

.action-list li {
  margin: 15px 0;
  font-weight: 500;
}

.references {
  background: #f8f9fa;
  padding: 40px;
  margin-top: 50px;
  border-radius: 8px;
}

.references h3 {
  margin-top: 0;
}

.ref-category {
  margin: 25px 0;
}

.ref-category h4 {
  color: #2a5298;
  margin-bottom: 12px;
}

footer {
  background: #1e3c72;
  color: white;
  padding: 30px 40px;
  text-align: center;
}

.alert {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

.alert strong {
  color: #856404;
  font-size: 1.2em;
}

@media (max-width: 768px) {
  header h1      { font-size: 1.8em; }
  .content       { padding: 30px 20px; }
  .company-list  { grid-template-columns: 1fr; }
  table          { font-size: 0.9em; }
  th, td         { padding: 10px; }
}

@media print {
  body       { background: white; }
  .container { box-shadow: none; }
}

/* ── Surcharges vigie-doc (modele en-tete 0-site) ─────────────────────────── */

/* Masquer le texte "VIGIE QUÉBEC" dans la barre nav — logo seul suffit */
.flys-title { display: none !important; }

/* Fleur de lys dans le h1 — +10% */
header h1 .fdl {
  height: 1.45em;
  width: auto;
  vertical-align: middle;
  margin-right: 0.35em;
  margin-bottom: 0.08em;
  display: inline-block;
  flex-shrink: 0;
}

/* Fleur de lys dans la barre nav — +10% */
.flys-logo img {
  height: 33px !important;
  width: auto;
}

/* Variantes d'en-tete (pages radar / pages speciales) — fdl +10% */
.header img[src*="fdl.png"],
.header img[src*="fdl.PNG"],
.title-flag,
.qc-logo {
  transform: scale(1.1);
  transform-origin: center;
}

/* Sous-titres: gras + retour a la ligne si trop long */
header > p,
header .subtitle,
.header .subtitle {
  font-weight: 700 !important;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.subtitle,
.hero .subtitle {
  font-weight: 700 !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

header h1 .fdl-link {
  display: inline;
  line-height: 0;
  text-decoration: none;
}

/* Curseur sur la fleur pour rappeler que c'est un lien vers l'accueil */
header h1 .fdl-link:hover .fdl {
  opacity: 0.80;
}

/* ── Fin surcharges ────────────────────────────────────────────────────────── */
