/* ===== Design tokens (portés depuis Web/assets/styles/_variables.scss) ===== */
:root {
  --navy: #0A1628;
  --blue-700: #0D3B66;
  --blue-600: #1565C0;
  --blue-300: #42A5F5;
  --blue-100: #90CAF9;
  --blue-50: #E3F2FD;
  --gray: #5D7A99;
  --gray-bg: #F4F7FB;
  --white: #FFFFFF;
  --bg: #FAFBFE;
  --red: #E74C3C;
  --green: #27AE60;
  --green-bg: #E8F5E9;
  --gradient-hero: linear-gradient(135deg, #0A1628 0%, #0D3B66 40%, #1565C0 100%);
  --gradient-btn: linear-gradient(135deg, #1565C0, #42A5F5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gradient-hero) fixed;
  color: var(--white);
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; }
a { text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Grandes bulles décoratives (reprises du hero de Web) ===== */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 0;
}
body::before { width: 420px; height: 420px; top: -140px; right: -120px; }
body::after { width: 300px; height: 300px; bottom: -110px; left: -90px; }

header, main, footer { position: relative; z-index: 1; }

/* ===== Zone centrale ===== */
main { flex: 1; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.hero__logo {
  width: min(340px, 82vw);
  height: auto;
  margin-bottom: 32px;
}
.hero__heading {
  display: inline-block;
  text-align: left;
  margin-bottom: 20px;
}
.hero__surtitre {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-100);
  margin-bottom: 10px;
}
.hero__title {
  font-size: clamp(42px, 9vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  color: #E8EEFF; /* blanc bleuté du texte du logo */
}
.hero__title-accent {
  font-style: italic;
  display: inline-block;
  padding-right: 0.1em; /* évite que l'italique coupe le a final */
  background: linear-gradient(90deg, #3B6ED4, #7BA8FF); /* bleus du logo, plus marqués */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__accroche {
  font-family: 'DM Sans', sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Boutons ===== */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  background: var(--gradient-btn);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(21, 101, 192, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(21, 101, 192, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}
.btn-outline:active { transform: translateY(0); }

/* ===== Manifeste ===== */
.manifeste {
  padding: 16px 24px 56px;
  text-align: center;
}
.manifeste__text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(16px, 2.6vw, 34px);
  line-height: 1.4;
  white-space: nowrap;
  margin: 0 auto 24px;
}
@media (max-width: 640px) {
  .manifeste__text {
    white-space: normal;
    font-size: 20px;
    max-width: 420px;
  }
}
.manifeste__inner { display: inline-block; }
.manifeste__signature {
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-100);
  text-align: right;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 24px;
  text-align: center;
}
.footer__copy { color: var(--blue-100); font-size: 13px; }

/* ===== Pages d'erreur ===== */
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-page__code {
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 18vw, 140px);
  font-weight: 700;
  line-height: 1;
  color: #E8EEFF;
  margin-bottom: 20px;
}
.error-page__accent {
  font-style: italic;
  display: inline-block;
  /* l'italique déborde de la zone de découpe du dégradé : on l'élargit sans changer l'espacement */
  padding: 0 0.08em;
  margin: 0 -0.04em;
  background: linear-gradient(90deg, #3B6ED4, #7BA8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page__title {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 12px;
}
.error-page__text {
  font-size: 17px;
  color: var(--blue-50);
  max-width: 440px;
  margin: 0 auto 36px;
}

/* ===== Page contact ===== */
.btn-retour {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-600);
  border: 2px solid var(--gray-bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-retour:hover {
  border-color: var(--blue-300);
  background: var(--gray-bg);
}

.page-hero { text-align: center; padding: 40px 0 36px; }
.page-hero__logo { width: min(340px, 82vw); height: auto; margin-bottom: 20px; }
.page-hero__title { font-size: clamp(32px, 6vw, 42px); }
.hero__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue-100);
  margin-bottom: 16px;
}

.contact-section { padding: 8px 0 72px; }
.contact-container { max-width: 640px; }

.flash-success {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-weight: 600;
}

.flash-error {
  background: #FDEDEB;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--gray-bg);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(5, 10, 20, 0.35);
}
.form-title { font-size: 26px; margin-bottom: 28px; }

.contact-form > div { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D5DEEA;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--navy);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue-300);
  border-color: var(--blue-300);
}
.contact-form textarea {
  resize: vertical;      /* agrandissable en hauteur uniquement : la carte suit, la largeur reste intacte */
  min-height: 120px;
  max-width: 100%;
}
.contact-form ul {
  list-style: none;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 6px;
}

/* Honeypot : hors écran, invisible pour les humains */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn { width: 100%; border: none; cursor: pointer; }
.submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
