/* =========================================================
   INTERPOLES — Feuille de style
   Site de démonstration fictif — design institutionnel
   ========================================================= */

/* ---------- Variables globales ---------- */
:root {
  --navy: #0b1f3a;
  --navy-dark: #071528;
  --navy-light: #123465;
  --blue-accent: #2f6fed;
  --white: #ffffff;
  --gray-light: #f4f6f9;
  --gray-mid: #e3e7ee;
  --gray-text: #5a6472;
  --text-dark: #1b2432;
  --danger: #c0392b;
  --warning: #e08a1e;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.12);
  --transition: 0.25s ease;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Bannière de démonstration ---------- */
.demo-banner {
  background: var(--warning);
  color: #2a1a00;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-logo {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.brand-accent {
  color: var(--blue-accent);
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--blue-accent);
  border-radius: 2px;
}

/* Menu burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 110px 24px 130px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 111, 237, 0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(47, 111, 237, 0.14), transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--blue-accent);
  font-weight: bold;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.45);
}

.btn-primary svg {
  transition: transform var(--transition);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ---------- Stats bar ---------- */
.stats-bar {
  max-width: 1100px;
  margin: -60px auto 60px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.stat {
  text-align: center;
  padding: 30px 10px;
  border-right: 1px solid var(--gray-mid);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--navy);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-text);
  margin-top: 4px;
  display: block;
}

/* ---------- Sections communes ---------- */
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  letter-spacing: 0.5px;
}

.section-heading .subtitle {
  color: var(--gray-text);
  margin-top: 8px;
  font-style: italic;
}

.notice-section {
  padding: 40px 20px 90px;
  background: var(--gray-light);
}

/* ---------- Carte de notice ---------- */
.notice-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.notice-top {
  display: flex;
  gap: 32px;
  padding: 36px;
  border-bottom: 1px solid var(--gray-mid);
  flex-wrap: wrap;
}

.notice-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.notice-photo {
  width: 160px;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--gray-mid);
}

.status-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  white-space: nowrap;
}

.status-wanted {
  background: var(--danger);
}

.notice-main-info {
  flex: 1;
  min-width: 260px;
}

.notice-name {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.notice-id {
  font-size: 0.85rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.copy-btn {
  color: var(--blue-accent);
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
}

.copy-btn:hover {
  background: var(--gray-mid);
}

.copy-feedback {
  position: absolute;
  left: 100%;
  margin-left: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  white-space: nowrap;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-text);
}

.info-value {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-dark);
}

.badge-danger,
.badge-warning {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--white);
}

.badge-danger {
  background: var(--danger);
}

.badge-warning {
  background: var(--warning);
}

/* ---------- Accordéon ---------- */
.accordion-item {
  border-bottom: 1px solid var(--gray-mid);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  font-weight: bold;
  color: var(--navy);
  transition: background var(--transition);
}

.accordion-header span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-header:hover {
  background: var(--gray-light);
}

.chevron {
  transition: transform var(--transition);
  color: var(--gray-text);
}

.accordion-item.open .chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 0 36px 24px 68px;
  color: var(--gray-text);
}

.detail-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--gray-mid);
}

.detail-list li:last-child {
  border-bottom: none;
}

.summary-text {
  line-height: 1.7;
}

/* ---------- About ---------- */
.about-section {
  padding: 90px 20px;
  background: var(--white);
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.about-inner > p {
  color: var(--gray-text);
  max-width: 640px;
  margin: 0 auto 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.about-card svg {
  color: var(--blue-accent);
  margin-bottom: 14px;
}

.about-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.about-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 90px 20px;
  background: var(--navy);
  color: var(--white);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.contact-inner > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 34px;
}

.contact-form {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  transition: border var(--transition), background var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  background: rgba(255, 255, 255, 0.12);
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #7ee08a;
  text-align: center;
  min-height: 1em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  height: 34px;
  width: 34px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.footer-brand span {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--white);
}

.footer-brand p {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 24px;
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom .disclaimer {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Bouton retour en haut ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ---------- Animations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--gray-mid);
  }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 24px 20px;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 14px;
  }

  .burger {
    display: flex;
  }

  .notice-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .accordion-panel-inner {
    padding-left: 36px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 18px 110px;
  }

  .footer-links {
    gap: 30px;
  }
}
