/* ============================================================
   TROPHÉE TRI MARTOLOD – CORNEMUSES
   Palette: #192742 | #00B3C4 | #FED169 | #FFFFFF
   Titres: Cabrito Didone Condensed Bold
   Corps: Figtree
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #192742;
  --teal:       #00B3C4;
  --yellow:     #FED169;
  --white:      #FFFFFF;
  --navy-light: #1e3159;
  --navy-muted: rgba(25, 39, 66, 0.06);

  --font-title: "cabrito-didone-condensed", sans-serif;
  --font-body:  "Figtree", sans-serif;

  --max-w:        1100px;
  --max-w-narrow: 720px;
  --section-py:   clamp(3.5rem, 8vw, 6rem);
  --radius-pill:  9999px;
  --radius-card:  14px;
  --radius-sm:    8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ol { padding-left: 0; list-style: none; }

/* ---------- Container ---------- */
.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}
.container-narrow {
  width: min(var(--max-w-narrow), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .85rem 2.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: #ffc840;
  border-color: #ffc840;
}

.btn-secondary {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}
.btn-secondary:hover {
  background: var(--yellow);
  color: var(--navy);
}

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

.btn-sm {
  font-size: .8125rem;
  padding: .55rem 1.25rem;
}

/* ---------- Section base ---------- */
.section {
  padding-block: var(--section-py);
}

.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

/* ---------- TOP NAV ---------- */
.topnav {
  background: var(--navy);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topnav-inner {
  display: flex;
  align-items: center;
}
.topnav-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--white);
  opacity: .75;
  letter-spacing: .03em;
  transition: opacity .2s;
}
.topnav-back:hover { opacity: 1; }

/* ---------- HERO ---------- */
.hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse at 60% 35%, rgba(0, 179, 196, .10) 0%, transparent 58%),
    radial-gradient(ellipse at 18% 80%, rgba(254, 209, 105, .06) 0%, transparent 50%),
    url('img/fond.jpg');
  background-size: cover;
  background-position: center top;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.011) 40px,
    rgba(255,255,255,.011) 41px
  );
  pointer-events: none;
  z-index: 2;
}


/* Fête de la Bretagne badge — coin haut droit */
.hero-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: clamp(100px, 10vw, 150px);
  height: auto;
  z-index: 4;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 700px;
}

/* Bagad logo */
.hero-logo {
  width: clamp(180px, 40vw, 280px);
  height: auto;
  opacity: .92;
  margin-bottom: .25rem;
}

.hero-supertitle {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 1.875rem);
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 9rem);
  line-height: .92;
  color: var(--white);
  letter-spacing: -.03em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(.875rem, 2.5vw, 1.125rem);
  color: var(--teal);
  font-style: italic;
  margin-top: -.25rem;
}

/* Date block — tout en jaune / Cabrito */
.hero-date {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-block: .4rem;
  line-height: 1;
}
.date-day {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  color: var(--yellow);
}
.date-number {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  color: var(--yellow);
  line-height: 1;
}
.date-month {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  color: var(--yellow);
}
.date-time {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--teal);
  font-style: italic;
  width: 100%;
  text-align: center;
  margin-top: -.2rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
}
.hero-location svg { flex-shrink: 0; color: var(--teal); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.2);
  font-size: 1.25rem;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Concours hero variant */
.hero-concours {
  min-height: 70svh;
  background-image:
    url('img/fond.jpg');
}
.hero-concours .hero-title {
  font-size: clamp(3rem, 10vw, 6.5rem);
}

/* ---------- INTRO ---------- */
.section-intro {
  background: var(--teal);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.intro-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--white);
  line-height: 1.3;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

/* ---------- PROGRAMME ---------- */
.section-programme { background: var(--white); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--teal);
  padding-left: 2rem;
  margin-bottom: 3rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--teal);
}
.timeline-time {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: .35rem;
}
.timeline-content strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
}
.timeline-content p {
  color: #4a5568;
  font-size: .9375rem;
}

.extras {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.extra-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  background: #f0f9fa;
  border: 1px solid rgba(0,179,196,.3);
  padding: .65rem 1.1rem;
  border-radius: var(--radius-pill);
}
.extra-item svg { color: var(--teal); flex-shrink: 0; }

/* ---------- CTA SONNEURS ---------- */
.section-cta-sonneurs {
  background: var(--navy);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-box-content h2 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.cta-box-content p {
  color: rgba(255,255,255,.7);
  font-size: .9375rem;
  max-width: 520px;
}
.cta-deadline {
  margin-top: .6rem !important;
  color: var(--yellow) !important;
  font-size: .875rem !important;
}
.cta-deadline strong { color: var(--yellow); }

/* ---------- INFOS PRATIQUES ---------- */
.section-infos { background: #f5f8fb; }

.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.info-card {
  background: var(--white);
  border: 1.5px solid rgba(0, 179, 196, .22);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-card);
  transition: border-color .2s, box-shadow .2s;
}
.info-card:hover {
  border-color: rgba(0, 179, 196, .5);
  box-shadow: 0 4px 20px rgba(0, 179, 196, .08);
}
.info-icon {
  color: var(--teal);
  margin-bottom: .85rem;
}
.info-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.info-card p {
  font-size: .9rem;
  color: #4a5568;
  line-height: 1.55;
}

/* ---------- REGLEMENT (page concours) ---------- */
.section-reglement { background: var(--white); }

.reglement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.reglement-header .section-title { margin-bottom: 0; }

.reglement-block { margin-bottom: 2.5rem; }
.reglement-block h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal);
}
.reglement-block > p {
  color: #3a4a5e;
  font-size: .9875rem;
}

.reglement-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.reglement-list li {
  font-size: .9375rem;
  color: #3a4a5e;
  line-height: 1.6;
  padding: .6rem 1rem;
  border-left: 3px solid rgba(0,179,196,.35);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(0,179,196,.03);
}
.reglement-list li strong { color: var(--teal); font-weight: 700; }

/* Sous-liste répertoires (article 10) */
.reglement-sublist {
  list-style: none;
  padding: 0;
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.reglement-sublist li {
  font-size: .9rem;
  color: #4a5568;
  padding: .5rem .85rem;
  border-left: 2px solid rgba(0,179,196,.2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: none;
  margin-left: .5rem;
}
.reglement-sublist li strong { color: var(--navy); font-weight: 700; }

/* Contact */
.reglement-contact {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #f5f8fb;
  border: 1.5px solid rgba(0,179,196,.2);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: #3a4a5e;
  margin-bottom: 2rem;
}
.reglement-contact svg { color: var(--teal); flex-shrink: 0; margin-top: .15rem; }
.reglement-contact strong { color: var(--navy); }
.reglement-contact a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reglement-contact a:hover { color: var(--navy); }

.deadline-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-card);
  font-size: .9375rem;
  font-weight: 500;
  margin-top: 3rem;
}
.deadline-banner svg { color: var(--yellow); flex-shrink: 0; }
.deadline-banner strong { color: var(--yellow); }

/* ---------- INSCRIPTION ---------- */
.section-inscription { background: #f5f8fb; }
.section-inscription .section-title { color: var(--navy); }

.form-intro {
  color: #4a5568;
  font-size: .9375rem;
  margin-bottom: 2rem;
  max-width: 560px;
}
.tally-wrapper {
  background: var(--white);
  border: 1.5px solid rgba(0, 179, 196, .22);
  border-radius: var(--radius-card);
  padding: 2rem;
  min-height: 400px;
}
.tally-wrapper iframe { display: block; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  padding-block: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

/* Liens sociaux */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
}
.footer-social-link svg { flex-shrink: 0; }

/* Partenaires */
.footer-partners {
  width: 100%;
}
.footer-partners-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.25rem;
}
.footer-partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem 1.5rem;
}
/* Placeholder — à remplacer par de vraies images/SVG */
.partner-logo-placeholder {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: .45rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  transition: color .2s, border-color .2s;
}
.partner-logo-placeholder:hover {
  color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.2);
}
.partner-logo img {
  max-width: 120px;
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
  opacity: .7;
  transition: opacity .2s;
}
.partner-logo img:hover { opacity: 1; }

/* Mention légale */
.footer-legal {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  width: 100%;
}
.footer-legal strong { color: rgba(255,255,255,.5); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
  .cta-box-content p { max-width: 100%; }

  .reglement-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tally-wrapper { padding: 1.25rem; }

  .hero-badge {
    top: 2rem;
    right: 1rem;
    width: 100px;
  }

  .hero { padding-top: 4rem; }

  .date-day, .date-month {
    font-size: clamp(1.2rem, 6vw, 1.75rem);
  }
  .date-number {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }
}

@media (max-width: 400px) {
  .footer-social { flex-direction: column; align-items: center; }
}
