/* ============================================================
   PCT 2026 — Design System
   Variables · Reset · Typographie · Boutons · Formulaires · Utils
   ============================================================ */

/* ── Source Sans Pro — auto-hébergé ──────────────────────── */
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Couleurs */
  --blue:        #014a99;
  --blue-mid:    #013670;
  --blue-dark:   #012d5e;
  --blue-xdark:  #011e45;
  --orange:      #ef8014;
  --orange-dark: #d96e05;
  --green:       #27ae60;
  --red:         #e74c3c;
  --gold:        #f9c84a;
  --white:       #ffffff;
  --gray-50:     #f5f7fa;
  --gray-100:    #eef4fb;
  --gray-200:    #dce6f0;
  --gray-300:    #c5d4e8;
  --gray-500:    #888;
  --gray-600:    #555;
  --gray-800:    #1a2e4a;
  --black:       #0d1b2a;

  /* Radii */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(1,74,153,.07);
  --shadow:     0 4px 20px rgba(1,74,153,.11);
  --shadow-lg:  0 8px 40px rgba(1,74,153,.16);
  --shadow-orange: 0 4px 16px rgba(239,128,20,.40);

  /* Typographie */
  --font: 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;

  /* Espacements */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* Layout */
  --container: 1200px;
  --container-sm: 760px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--orange); text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.link-gold { color: var(--gold); }
.link-gold:hover { color: #fff; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--space-8) 0;
}

/* ── Typographie ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-dark);
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(28px, 5vw, var(--text-4xl)); }
h2 { font-size: clamp(22px, 3.5vw, var(--text-3xl)); }
h3 { font-size: clamp(18px, 2.5vw, var(--text-xl)); }
h4 { font-size: var(--text-lg); }
h5, h6 { font-size: var(--text-base); }

.text-lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--gray-600);
}

.text-small { font-size: var(--text-sm); }
.text-xs    { font-size: var(--text-xs); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Conteneur ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.container-sm {
  max-width: var(--container-sm);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 22px;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white) !important;
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  box-shadow: var(--shadow-orange);
  color: var(--white) !important;
}

.btn-secondary {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue) !important;
}
.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--blue) !important;
}

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue) !important;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white) !important;
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--white) !important;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white) !important;
}

.btn-lg { padding: 14px 28px; font-size: var(--text-lg); }
.btn-sm { padding: 7px 14px;  font-size: var(--text-sm); }
.btn-block { width: 100%; }

.btn:disabled,
.btn.disabled {
  opacity: .5;
  pointer-events: none;
  transform: none;
}

/* Compatibilité ancien code (Bootstrap classes) */
.btn-color2 { background: var(--orange); border-color: var(--orange); color: var(--white) !important; }
.btn-color2:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white) !important; }
.btn-default { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-600) !important; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-xl);
  line-height: 1.5;
}
.badge-blue   { background: var(--blue);   color: var(--white); }
.badge-orange { background: var(--orange); color: var(--white); }
.badge-green  { background: var(--green);  color: var(--white); }
.badge-gray   { background: var(--gray-200); color: var(--gray-600); }
.badge-ghost  {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
}

/* ── Formulaires ─────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
}
.form-label .required { color: var(--red); margin-left: 2px; }

.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1,74,153,.12);
}
.form-control.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}
.form-control::placeholder { color: var(--gray-500); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-error {
  font-size: var(--text-sm);
  color: var(--red);
  margin-top: var(--space-1);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

/* Checkbox/Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-check-label {
  font-size: var(--text-sm);
  line-height: 1.5;
  cursor: pointer;
}

/* ── Alertes ─────────────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  border-left: 4px solid transparent;
}
.alert-success { background: #e8f8f0; border-color: var(--green);  color: #1a5c38; }
.alert-error   { background: #fdecea; border-color: var(--red);    color: #7b1c1c; }
.alert-info    { background: var(--gray-100); border-color: var(--blue); color: var(--blue-dark); }
.alert-warning { background: #fff8e1; border-color: var(--orange); color: #7a4000; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-body { padding: var(--space-6); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-10) 0; }
.section-white { background: var(--white); }
.section-gray  { background: var(--gray-50); }
.section-blue  { background: var(--gray-100); }
.section-dark  {
  background: linear-gradient(135deg, var(--blue-xdark) 0%, var(--blue) 100%);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p { color: var(--white); }

.section-title {
  font-size: clamp(20px, 3vw, var(--text-2xl));
  color: var(--blue);
  margin-bottom: var(--space-8);
}
.section-title .fa { color: var(--orange); margin-right: var(--space-2); }
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-8);
}

/* ── Grid utilitaires ────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: var(--space-5); }

@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-12) 0; }
}

/* ── Flex utilitaires ────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ── Icônes check / trust ────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.5;
}
.check-list li .fa {
  color: var(--orange);
  font-size: var(--text-sm);
  margin-top: 4px;
  flex-shrink: 0;
}
.check-list-green li .fa { color: var(--green); }

/* ── Visibilité responsive ───────────────────────────────── */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }
@media (max-width: 767px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

/* ── Utilitaires divers ──────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.img-responsive { max-width: 100%; height: auto; }

/* ── Champs natifs (date, time, text…) ───────────────────── */
.pct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.pct-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}
.pct-required { color: var(--orange); margin-left: 2px; }
.pct-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}
.pct-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1,74,153,.12);
}
.pct-field--error .pct-input { border-color: #c0392b; }
.pct-field-error {
  font-size: var(--text-xs);
  color: #c0392b;
}

/* reCAPTCHA */
.grecaptcha-badge { visibility: hidden !important; }
.page-id-15 .grecaptcha-badge { visibility: visible !important; }

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .no-print { display: none; }
}
