html {
  background-color: #f4c000;
}
/* ==============================
   RESET
   ============================== */
*{ margin:0; padding:0; box-sizing:border-box; }

/* ==============================
   THEME SOWASH
   ============================== */
:root{
  --bg-main:#091c25;
  --bg-soft:#0d2a38;

  --primary:#186d8d;
  --accent:#fedb33;

  --text:#f5f7fb;
  --text-muted:rgba(245,247,251,.72);
  --text-dim:rgba(245,247,251,.58);

  --card-bg:rgba(7, 20, 30, 0.378);
  --card-soft:rgba(5,18,28,.92);

  --border:rgba(150,193,215,.35);

  --shadow-soft:0 18px 55px rgba(0,0,0,.75);
  --shadow-strong:0 24px 80px rgba(0,0,0,.85);

  --radius-lg:22px;
  --radius-md:16px;
}

/* ==============================
   BODY / FOND
   ============================== */
body{
  font-family:'Urbanist',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  overflow-x:hidden;

  background:
    radial-gradient(900px 700px at 10% 0%, rgba(24,109,141,.55), transparent 60%),
    radial-gradient(800px 600px at 90% 100%, rgba(254,219,51,.45), transparent 55%),
    linear-gradient(145deg, #02070c 0%, var(--bg-main) 45%, #02070c 100%);
}

/* Grain léger */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.06;
  mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ==============================
   PAGE CONTAINER
   ============================== */
.page{
  max-width:980px;
  margin:0 auto;
  padding:22px;
}

/* ==============================
   FADE IN
   ============================== */
.fade-in{
  opacity:0;
  transform:translateY(26px);
  animation:fadeSlide .6s ease forwards;
}
@keyframes fadeSlide{ to{ opacity:1; transform:translateY(0);} }

/* ==============================
   BACK BUTTON
   ============================== */
.back-btn{
  width:52px;
  height:52px;
  border-radius:var(--radius-md);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;

  background:
    radial-gradient(circle at 10% 0%, rgba(254,219,51,.25), transparent 60%),
    rgba(3,14,24,.94);

  border:1px solid rgba(254,219,51,.45);
  box-shadow:0 12px 32px rgba(0,0,0,.6);

  font-size:1.8rem;
  font-weight:900;
  color:var(--text);

  transition:transform .18s ease, box-shadow .18s ease;
  margin-bottom:14px;
}
.back-btn:hover{
  transform:translateX(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,.8);
}

/* ==============================
   TITLES
   ============================== */
.main-title{
  font-weight:900;
  font-size:clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing:-0.02em;
  margin:8px 0 10px;
  line-height:1.06;
}

.subtitle{
  color:var(--text-muted);
  margin-bottom:18px;
  font-size:1.12rem;
  line-height:1.45;
}

/* ==============================
   FORM CARD
   ============================== */
.contact-form{
  margin-top:10px;
  padding:20px;
  border-radius:var(--radius-lg);

  background:var(--card-bg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ==============================
   LABELS
   ============================== */
.contact-form label{
  font-weight:800;
  font-size:.95rem;
  color:var(--text-muted);
  margin-top:2px;
}

/* ==============================
   INPUTS / TEXTAREA
   ============================== */
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:14px 14px;
  border-radius:14px;

  border:1px solid rgba(150,193,215,.40);
  background:var(--card-soft);

  color:var(--text);
  font-size:1.05rem;

  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.contact-form textarea{
  min-height:160px;
  resize:vertical;
  line-height:1.55;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:var(--text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(254,219,51,.22);
}

/* ==============================
   PREF GROUP
   ============================== */
.pref-group{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:-6px;
}

.pref-item{
  display:flex;
  align-items:center;
  gap:10px;

  padding:12px 14px;
  border-radius:999px;

  background:rgba(5,18,28,.92);
  border:1px solid rgba(150,193,215,.30);

  font-size:.95rem;
  font-weight:800;
  color:var(--text);

  cursor:pointer;
  user-select:none;

  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.pref-item input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:var(--accent);
  cursor:pointer;
}

@media (hover:hover){
  .pref-item:hover{
    transform:translateY(-2px);
    border-color:rgba(254,219,51,.40);
    box-shadow:0 14px 35px rgba(0,0,0,.55);
  }
}

/* ==============================
   SEND BUTTON
   ============================== */
.send-btn{
  margin-top:6px;
  border:0;
  border-radius:14px;

  padding:15px 16px;
  cursor:pointer;

  font-size:1.05rem;
  font-weight:900;

  background:linear-gradient(160deg, #fedb33, #f7c609);
  color:#050608;
  box-shadow:0 18px 55px rgba(254,219,51,.6);

  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.send-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 22px 65px rgba(254,219,51,.85);
}

.send-btn:active{ transform:translateY(0); }

/* ==============================
   STATUS MESSAGE
   ============================== */
#status{
  margin-top:6px;
  font-size:.98rem;
  font-weight:900;
  color:var(--text-muted);
}

/* (Optionnel) si send_contact.php renvoie du HTML coloré */
#status b, #status strong{ color:var(--accent); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 700px){
  .page{ padding:16px; }

  .pref-group{
    flex-direction:column;
    gap:10px;
  }
  .pref-item{
    width:100%;
    border-radius:16px;
    padding:14px 16px;
  }
  .pref-item input[type="checkbox"]{
    width:20px;
    height:20px;
  }
}
