/* ============================================================
   Profondément Corse 2026 — Feuille de style principale
   Palette inspirée du visuel officiel :
   - Bleu marine fond  #0a1f3d
   - Bleu plus clair   #142e5c
   - Jaune slogan      #ffe600
   - Blanc             #ffffff
   ============================================================ */

:root {
  --navy:        #0a1f3d;
  --navy-2:      #142e5c;
  --navy-3:      #1d3b73;
  --yellow:      #ffe600;
  --white:       #ffffff;
  --gray-50:     #f6f8fb;
  --gray-100:    #e9eef5;
  --gray-300:    #c4cdd9;
  --gray-600:    #5a6577;
  --gray-800:    #2a3140;
  --radius:      14px;
  --shadow:      0 6px 24px rgba(10, 31, 61, 0.12);
  --maxw:        1100px;
  --font-body:   "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); }
a:hover { color: var(--navy); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header / Nav ----- */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 16px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--navy-3);
  color: var(--yellow);
}

/* ----- Hero ----- */
.hero {
  background: var(--navy);
  text-align: center;
  padding: 0;
}

.hero-image {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  display: block;
}

.hero-tagline {
  color: var(--white);
  padding: 28px 24px 36px;
  font-size: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-tagline strong { color: var(--yellow); }

/* ----- Page header (pages internes) ----- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.5px;
}

.page-header p {
  margin: 8px 0 0;
  color: var(--gray-100);
}

/* ----- Section cards (accueil) ----- */
.section { padding: 48px 0; }
.section h2 {
  text-align: center;
  font-size: 26px;
  margin: 0 0 32px;
  color: var(--navy);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 880px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--gray-800);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border-top: 4px solid var(--yellow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(10, 31, 61, 0.18);
  color: var(--navy);
}

.card .card-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

/* ----- Article (règlement) ----- */
.article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  margin: 36px auto;
}

.article h2 {
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
  border-left: 4px solid var(--yellow);
  padding-left: 12px;
}

.article h2:first-child { margin-top: 0; }
.article p, .article li { font-size: 15px; }
.article ul { padding-left: 22px; }
.article .lead {
  font-size: 17px;
  background: var(--gray-50);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--navy-2);
}

@media (max-width: 600px) {
  .article { padding: 24px 18px; }
}

/* ----- Form ----- */
.form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin: 36px auto;
  max-width: 760px;
}

.form .field { margin-bottom: 18px; }
.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14px;
}

.form label .required { color: #c53030; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(20, 46, 92, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form .checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray-800);
}

.form .checkbox-field input { margin-top: 4px; }
.form .checkbox-field label { font-weight: 400; color: var(--gray-800); }

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 31, 61, 0.25);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--yellow);
}

.btn--ghost:hover { background: var(--yellow); color: var(--navy); }

/* ----- Confirmation / messages ----- */
.confirm-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  margin: 36px auto;
  max-width: 720px;
  text-align: center;
}

.confirm-card .participant-number {
  display: inline-block;
  margin: 18px 0 24px;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 999px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.alert {
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.alert--error   { background: #fde2e2; color: #8b1a1a; border-left: 4px solid #c53030; }
.alert--info    { background: #e6f0fb; color: #14457f; border-left: 4px solid #2563b3; }
.alert--success { background: #e3f5e9; color: #1f6035; border-left: 4px solid #2f8f57; }

/* ----- Gallery placeholder ----- */
.gallery-placeholder {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 40px;
  margin: 36px auto;
  max-width: 720px;
  text-align: center;
}

.gallery-placeholder .icon {
  font-size: 64px;
  margin-bottom: 16px;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: var(--gray-100);
  padding: 32px 0;
  margin-top: 48px;
  font-size: 13px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ----- Utilitaires ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.muted { color: var(--gray-600); }
