:root{
  --bg:#f4f1ea;
  --surface:#ffffff;
  --surface-soft:#faf8f4;
  --ink:#16171b;
  --ink-2:#343943;
  --muted:#707784;
  --line:#e2ddd4;
  --red:#ef2f4f;
  --red-dark:#c91f3d;
  --blue:#3286d7;
  --green:#42a56f;
  --purple:#7d5bd6;
  --gold:#f1b72e;
  --shadow:0 18px 55px rgba(19,22,29,.08);
  --radius:24px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(239,47,79,.07), transparent 28%),
    radial-gradient(circle at 92% 9%, rgba(50,134,215,.06), transparent 24%),
    var(--bg);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:400;
}

button,
input,
select{
  font:inherit;
}

button{
  border:0;
}

.app{
  width:min(1120px,calc(100% - 32px));
  margin:28px auto 60px;
}

.hidden{
  display:none !important;
}

/* HERO */

.hero{
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,255,255,.045),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      #0a0f17 0%,
      #111722 46%,
      #0c1119 100%
    );

  color:#fff;

  border-radius:30px;

  padding:28px 30px 24px;

  box-shadow:
    0 22px 65px rgba(17,20,28,.13),
    inset 0 1px 0 rgba(255,255,255,.04);

  margin-bottom:22px;
}


/* Halo rouge ISDO */

.hero::before{
  content:"";

  position:absolute;

  width:380px;
  height:380px;

  right:-135px;
  top:-155px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(239,47,79,.28) 0%,
      rgba(239,47,79,.16) 36%,
      rgba(239,47,79,.07) 58%,
      transparent 76%
    );

  pointer-events:none;
}


/* Cercle turquoise */

.hero::after{
  content:"";

  position:absolute;

  width:320px;
  height:320px;

  right:95px;
  bottom:-195px;

  border-radius:50%;

  border:
    42px solid rgba(65,160,181,.18);

  box-shadow:
    0 0 80px rgba(65,160,181,.08);

  pointer-events:none;
}


/* Zone logo + titre */

.hero-brand{
  position:relative;

  z-index:2;

  display:flex;

  align-items:center;

  gap:22px;
}


/* Conteneur du logo */

.logo-shell{
  width:132px;
  height:132px;

  flex:0 0 132px;

  display:grid;

  place-items:center;

  border-radius:22px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.07),
      rgba(255,255,255,.025)
    );

  border:
    1px solid rgba(255,255,255,.11);

  box-shadow:
    0 14px 32px rgba(0,0,0,.23),
    inset 0 1px 0 rgba(255,255,255,.04);

  padding:8px;
}


/* Logo ISDO */

.event-logo{
  width:100%;
  height:100%;

  object-fit:contain;

  display:block;

  filter:
    drop-shadow(
      0 8px 14px rgba(0,0,0,.18)
    );
}
.eyebrow,
.section-kicker{
  margin:0 0 7px;
  color:var(--red);
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero h1{
  margin:0;
  font-size:clamp(2rem,5vw,3.45rem);
  line-height:.98;
  letter-spacing:-.045em;
}

.hero-subtitle{
  margin:10px 0 0;
  color:#c9ced7;
  font-size:.95rem;
}

.progress-wrap{
  position:relative;
  z-index:1;
  margin-top:26px;
}

.progress-track{
  width:100%;
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.13);
}

.progress-track span{
  display:block;
  width:20%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--red),#ff5270);
  transition:width .25s ease;
}

.progress-meta{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:10px;
  color:#c8ccd4;
  font-size:.78rem;
  letter-spacing:.03em;
}

.progress-sections{
  color:#8f96a2;
  font-size:.7rem;
  letter-spacing:.08em;
}

/* CARDS */

.card{
  background:var(--surface);
  border:1px solid rgba(214,209,200,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:30px;
  margin-bottom:18px;
}

.loading-card{
  color:var(--muted);
}

.section-heading{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin-bottom:28px;
}

.section-heading h2{
  margin:0;
  font-size:clamp(1.55rem,3vw,2.15rem);
  letter-spacing:-.035em;
  line-height:1.05;
}

.section-description{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.55;
  max-width:720px;
}

.step-number{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:16px;
  color:#fff;
  background:var(--red);
  font-size:.88rem;
  font-weight:900;
  letter-spacing:.06em;
}

.step-number.blue{background:var(--blue)}
.step-number.green{background:var(--green)}
.step-number.purple{background:var(--purple)}
.step-number.dark{background:#15171b}

/* FORM */

.grid{
  display:grid;
  gap:16px;
}

.grid.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

label{
  display:grid;
  gap:8px;
  color:var(--ink);
  font-weight:700;
  font-size:.92rem;
}

label > span em{
  color:var(--red);
  font-style:normal;
}

input,
select{
  width:100%;
  min-height:50px;
  padding:0 14px;
  border:1px solid #d7d4ce;
  border-radius:13px;
  background:#fff;
  color:var(--ink);
  font-weight:400;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

/* Important: typed / selected values remain regular weight */
input:not([type="checkbox"]),
select,
option{
  font-weight:400 !important;
}

input::placeholder{
  color:#a5a9b0;
  font-weight:400;
}

input:focus,
select:focus{
  border-color:var(--red);
  box-shadow:0 0 0 4px rgba(239,47,79,.10);
}

select:disabled,
input:disabled{
  background:#f1f1f0;
  color:#989ca3;
  cursor:not-allowed;
}

.club-field{
  max-width:520px;
  margin-bottom:20px;
}

/* TEAM BOXES */

.team-box{
  padding:20px;
  margin:18px 0;
  border-radius:18px;
  background:var(--surface-soft);
  border:1px solid var(--line);
}

.team-box-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.team-box-header h3{
  margin:4px 0 0;
  font-size:1.1rem;
}

.team-tag{
  color:var(--muted);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.team-accent{
  display:block;
  width:48px;
  height:8px;
  border-radius:999px;
}

.team-accent.red{background:var(--red)}
.team-accent.green{background:var(--green)}

.check{
  display:flex;
  grid-template-columns:none;
  align-items:flex-start;
  gap:12px;
  font-weight:400;
  cursor:pointer;
}

.check input[type="checkbox"]{
  width:19px;
  height:19px;
  min-height:auto;
  flex:0 0 19px;
  margin:2px 0 0;
  accent-color:var(--red);
}

.check strong{
  display:block;
  font-weight:750;
}

.check small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-weight:400;
  line-height:1.4;
}

.second-category-check{
  padding:15px 17px;
  border:1px dashed #d5d0c7;
  border-radius:14px;
  background:#fff;
}

/* MEALS */

.info{
  border:1px solid #e8e2d6;
  background:#fffaf0;
  border-radius:17px;
  padding:18px;
}

.lunch-info{
  display:flex;
  gap:14px;
  margin-bottom:20px;
}

.info-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:13px;
  background:#fff;
  font-size:1.3rem;
}

.info p{
  margin:0 0 8px;
  color:var(--ink-2);
  line-height:1.5;
}

.info p:last-child{
  margin-bottom:0;
}

.price-note{
  color:var(--red) !important;
  font-weight:800;
}

.small-note{
  color:var(--muted) !important;
  font-size:.88rem;
}

.meal-card{
  padding:18px;
  border-radius:17px;
  background:#fff;
  border:1px solid var(--line);
}

.meal-card h3{
  margin:0 0 12px;
  font-size:1rem;
}

.total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:18px;
  padding:18px 20px;
  border-radius:17px;
  background:#15171b;
  color:#fff;
}

.total span{
  color:#cdd1d8;
  font-size:.9rem;
}

.total strong{
  font-size:1.45rem;
}

/* LEGAL */

.legal-card{
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface-soft);
  margin-bottom:14px;
}

.legal-card h3{
  margin:0 0 12px;
  font-size:1.05rem;
}

.legal-text{
  white-space:pre-line;
  color:#555c66;
  line-height:1.62;
  font-size:.92rem;
  font-weight:400;
  margin-bottom:16px;
}

.legal-card .check{
  padding-top:14px;
  border-top:1px solid #e4dfd6;
}

/* REVIEW */

.review-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.review-card{
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--surface-soft);
  padding:18px;
}

.review-card h3{
  margin:0 0 14px;
  font-size:1rem;
}

.review-card p{
  margin:7px 0;
  color:#4f5660;
  line-height:1.45;
  font-weight:400;
}

.review-card strong{
  color:var(--ink);
  font-weight:750;
}

.final-check{
  margin-top:20px;
  padding:17px;
  border:1px solid #d9d5cd;
  border-radius:15px;
  background:#fff;
}

/* ACTIONS */

.actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0 0;
}

.actions-spacer{
  flex:1;
}

button{
  min-height:50px;
  padding:0 22px;
  border-radius:14px;
  background:var(--red);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease,background .15s ease,box-shadow .15s ease;
  box-shadow:0 7px 18px rgba(239,47,79,.17);
}

button:hover{
  transform:translateY(-1px);
  background:var(--red-dark);
}

button:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
}

button.secondary{
  background:#fff;
  color:var(--ink);
  border:1px solid #d9d6cf;
  box-shadow:none;
}

button.secondary:hover{
  background:#f7f5f1;
}

.error{
  margin:14px 0 0;
  padding:14px 16px;
  border-radius:14px;
  background:#fff0f1;
  border:1px solid #ffd0d7;
  color:#a31c34;
  font-weight:600;
}

/* SUCCESS */

.success-card{
  text-align:center;
  padding:38px 30px;
}

.success-icon{
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  margin:0 auto 16px;
  border-radius:50%;
  background:#e8f8ef;
  color:#23834f;
  font-size:1.8rem;
  font-weight:900;
}

.success-card h2{
  margin:0;
  font-size:2rem;
}

.success-lead{
  margin:8px 0 24px;
  color:var(--muted);
}

.success-info,
.warning-info,
.edit-link-card,
.organizer-help{
  text-align:left;
}

.success-info{
  background:#edf9f2;
  border-color:#ccebd8;
}

.warning-info{
  background:#fff8e9;
}

.edit-link-card{
  margin-top:16px;
  padding:20px;
  border-radius:18px;
  background:#15171b;
  color:#fff;
}

.edit-link-label{
  color:#ff667f;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.11em;
}

.edit-link-card h3{
  margin:6px 0 8px;
}

.edit-link-card p{
  color:#ccd1da;
  line-height:1.5;
  font-weight:400;
}

.edit-link-card .privacy-note{
  color:#ffcf84;
  font-size:.88rem;
}

.edit-link-wrap{
  padding:12px 14px;
  border-radius:12px;
  background:#24272e;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.edit-link-wrap a{
  color:#fff;
  text-decoration:none;
  font-size:.88rem;
  font-weight:400;
}

.edit-link-card .secondary{
  margin-top:4px;
}

.organizer-help{
  display:flex;
  gap:10px;
  margin-top:16px;
  padding:14px 4px 0;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.5;
}

.organizer-help strong{
  color:var(--ink);
  flex:0 0 auto;
}

/* FOOTER */

.site-footer{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 18px;
  padding:10px 0 0;
  color:#898e96;
  font-size:.76rem;
}

.site-footer span:first-child{
  color:var(--red);
  font-weight:900;
}

/* MOBILE */

@media(max-width:820px){
  .review-grid{
    grid-template-columns:1fr;
  }

  .grid.three{
    grid-template-columns:1fr;
  }

  .progress-sections{
    display:none;
  }
}

@media(max-width:680px){
  .app{
    width:min(100% - 18px,1120px);
    margin:10px auto 36px;
  }

  .hero{
    border-radius:22px;
    padding:20px;
  }

  .hero-brand{
    align-items:flex-start;
    gap:14px;
  }

  .logo-shell{
    width:94px;
    height:94px;
    flex-basis:94px;
    border-radius:16px;
    padding:6px;
  }

  .hero h1{
    font-size:2rem;
  }

  .hero-subtitle{
    font-size:.82rem;
  }

  .progress-meta{
    font-size:.73rem;
  }

  .card{
    padding:21px 17px;
    border-radius:20px;
  }

  .section-heading{
    gap:12px;
    margin-bottom:22px;
  }

  .step-number{
    width:44px;
    height:44px;
    flex-basis:44px;
    border-radius:13px;
    font-size:.78rem;
  }

  .grid.two{
    grid-template-columns:1fr;
  }

  .form-grid{
    gap:13px;
  }

  .team-box{
    padding:16px;
  }

  .actions{
    gap:8px;
  }

  .actions button{
    min-width:110px;
  }

  .organizer-help{
    flex-direction:column;
  }
}
