/* ============================================================
   SimpleSky.fr — Styles communs (variables, reset, nav, footer)
   Inclus sur toutes les pages publiques du site.
   ============================================================ */

:root {
  --sky-top: #2b99df;
  --sky-bot: #c3f299;
  --glass: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.75);
  --blue: #0077cc;
  --blue-dark: #005a99;
  --text: #003344;
  --shadow: 0 10px 30px rgba(0,80,150,0.18);
  --shadow-h: 0 20px 50px rgba(0,120,200,0.25);
  --radius: 18px;
  --red: #e05050;
  --green: #3daa60;
  --orange: #e07c30;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Segoe UI", "Trebuchet MS", sans-serif;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--sky-top) 0%, #74c8f0 35%, #a8e89c 70%, var(--sky-bot) 100%) fixed;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
}

/* Nuages décoratifs */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 300px 120px at 10% 15%, rgba(255,255,255,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 200px 80px at 80% 8%, rgba(255,255,255,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 250px 100px at 55% 25%, rgba(255,255,255,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 180px 70px at 25% 40%, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

* { position: relative; z-index: 1; }

/* ── MAIN ── */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── NAV ── */
nav {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 18px 20px 0;
  flex-wrap: wrap;
}

nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  transition: all 0.25s;
}

nav a:hover, nav a.active {
  background: rgba(255,255,255,0.5);
  color: var(--blue-dark);
}

/* ── HEADER ── */
header img { height: auto; }

header {
  margin-top: 30px;
  text-align: center;
  animation: fadeUp 0.8s ease;
  padding: 0 20px;
}

header img.logo {
  width: 160px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
}

header img.logo:hover {
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 15px 40px rgba(0, 140, 255, 0.5);
}

h1 {
  font-size: clamp(1.6em, 5vw, 2.6em);
  font-weight: 900;
  margin: 0.3em 0 0.2em;
  color: white;
  text-shadow: 0 2px 12px rgba(0,80,150,0.35);
}

header > p {
  color: rgba(0,40,80,0.65);
  font-size: 0.95em;
  font-weight: 600;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── SECTIONS GENERIQUES ── */
.section {
  max-width: 850px;
  width: 93%;
  padding: 25px 28px;
  margin-top: 22px;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: fadeUp 0.8s ease;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-h);
}

.section h2 {
  text-align: center;
  color: var(--blue-dark);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

p { line-height: 1.6; font-weight: 600; }

/* ── LIENS ── */
a {
  color: var(--blue);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--blue);
  transition: 0.3s;
}

a:hover::after { width: 100%; }
a:hover { color: var(--blue-dark); }

/* Exceptions : liens nav et boutons */
nav a::after, .discord a::after, .no-underline::after { display: none; }

/* ── DISCORD ── */
.discord {
  margin-top: 2em;
  font-weight: 700;
  text-align: center;
  animation: fadeUp 0.8s ease;
}

/* ── FOOTER ── */
footer {
  margin-top: auto;
  padding: 1.5em 20px;
  font-size: 0.88em;
  color: rgba(0,50,80,0.6);
  font-weight: 600;
  text-align: center;
}

footer a { color: var(--blue); text-decoration: none; }

footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 8px;
}

footer .footer-sep { opacity: 0.5; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FAQ (details/summary) ── */
.faq-item {
  background: rgba(255,255,255,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--blue-dark);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--blue);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 18px 16px;
  font-size: 0.92rem;
  color: rgba(0,50,80,0.8);
  font-weight: 600;
  line-height: 1.6;
}

/* ── CTA copier IP ── */
.cta-box {
  max-width: 850px;
  width: 93%;
  margin-top: 22px;
  padding: 28px 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(200,235,255,0.5));
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease;
}

.cta-box h2 {
  color: var(--blue-dark);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.cta-box p {
  font-size: 0.92rem;
  color: rgba(0,50,80,0.7);
  margin-bottom: 18px;
}

.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.7);
  border: 2px solid rgba(0,150,255,0.3);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.ip-copy code {
  font-family: "Inconsolata", "Courier New", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
}

.ip-copy button {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  background: linear-gradient(135deg, var(--sky-top), #5bc8a0);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,120,200,0.3);
  transition: all 0.25s;
}

.ip-copy button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,120,200,0.4); }
.ip-copy button.copied { background: linear-gradient(135deg, var(--green), #5bc8a0); }

/* ── CONSENT BANNER ── */
#consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(0, 40, 70, 0.95);
  color: white;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

#consent-banner p { margin: 0; max-width: 600px; color: rgba(255,255,255,0.9); }
#consent-banner a { color: #9fd9ff; }

#consent-banner .consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

#consent-banner button {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
}

#consent-banner #consent-accept {
  background: linear-gradient(135deg, var(--sky-top), #5bc8a0);
  color: white;
}

#consent-banner #consent-refuse {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
  .ip-copy { padding: 14px; flex-direction: column; }
}
