/* ═══════════════════════════════════════════
   ICES – Audit SI  |  style.css
   Palette : bleu marine #0D1B6E  vert #2E9E5B
   ═══════════════════════════════════════════ */

:root {
  --navy:   #0D1B6E;
  --navy2:  #162080;
  --green:  #2E9E5B;
  --green2: #25834A;
  --light:  #F4F6FC;
  --border: #D3D9F0;
  --text:   #1A1A2E;
  --muted:  #6B7280;
  --white:  #ffffff;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(13,27,110,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--light);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0 0;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  height: 80px;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

.header-tag {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: .5rem;
}

.header-text h1 {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .25rem;
}

.header-sub {
  font-size: .9rem;
  opacity: .75;
  font-style: italic;
}

.header-vision {
  background: rgba(255,255,255,0.07);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
}

.header-vision p {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: .88rem;
  opacity: .88;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
}

.header-vision strong { color: #7FC9A0; font-style: normal; }

/* ── MAIN ── */
main {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3rem;
}

/* ── SECTIONS ── */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--navy);
}

.section-synthese { border-left-color: var(--green); }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
}

.section-desc {
  font-size: .82rem;
  color: var(--muted);
}

/* ── FIELDS ── */
.field { margin-bottom: 1.4rem; }

.field label:not(.radio-label):not(.check-label):not(.sublabel),
.field > label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .45rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sublabel {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .3rem;
}

.req { color: var(--green); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: .65rem .9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  color: var(--text);
  background: #FAFBFF;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,110,0.1);
  background: white;
}

textarea { resize: vertical; }

/* ── GRIDS ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.field-full { grid-column: 1 / -1; }

/* ── RADIO & CHECKBOX ── */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: .3rem;
}

.radio-label,
.check-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: .4rem .85rem;
  transition: border-color .15s, background .15s;
}

.radio-label:hover,
.check-label:hover {
  border-color: var(--navy);
  background: #EEF1FC;
}

.radio-label input,
.check-label input {
  width: auto;
  accent-color: var(--navy);
}

/* ── PRIORITY CARDS ── */
.priority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.priority-card {
  display: flex;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.priority-card:hover { border-color: var(--navy); }

.priority-card input[type="checkbox"] {
  display: none;
}

.priority-card input:checked ~ .priority-content {
  background: #EEF1FC;
  border-left: 4px solid var(--navy);
}

.priority-content {
  padding: 1rem 1.1rem;
  border-left: 4px solid transparent;
  transition: background .2s, border-color .2s;
  width: 100%;
}

.priority-icon { font-size: 1.5rem; display: block; margin-bottom: .4rem; }

.priority-content strong {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .25rem;
}

.priority-content p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── FOOTER FORM ── */
.form-footer {
  text-align: center;
  margin-top: 2rem;
}

.confidential {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

button[type="submit"] {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  padding: .9rem 2.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s, transform .1s;
}

button[type="submit"]:hover { background: var(--navy2); transform: translateY(-1px); }
button[type="submit"]:active { transform: translateY(0); }
button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* ── CONFIRMATION ── */
.confirmation {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 4px solid var(--green);
}

.confirm-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.confirm-inner h2 { color: var(--green2); margin-bottom: .5rem; }
.confirm-inner p { color: var(--muted); }

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: .75rem;
  padding: 1.2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .logo { height: 60px; }
  .header-text h1 { font-size: 1.3rem; }
  .grid-2, .grid-3, .priority-grid { grid-template-columns: 1fr; }
  .form-section { padding: 1.25rem; }
}
