/* ============================================================
   RAPHINFO Dark & High-Tech — thème LittleLink UNIFIÉ
   Remplace : normalize.css + skeleton-light.css + brands.css
   Contient tout le nécessaire, seul fichier CSS du site.
   ============================================================ */

/* ============ 1. RESET (normalize.css) ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid currentColor; opacity: 0.15; }

/* ============ 2. VARIABLES DU THÈME ============ */
:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --txt: #e8eefc;
  --txt-dim: #9fb0cc;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --accent-3: #f838a2;
  --glow: rgba(34, 211, 238, 0.35);
  --radius: 14px;
}

/* ============ 3. BODY / FOND ANIMÉ ============ */
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% -20%, #101a33 0%, var(--bg) 60%);
  background-attachment: fixed;
  min-height: 100vh;
  height: auto;
  color: var(--txt);
  overflow-x: hidden;
  line-height: 1.65;
  /* Centrage vertical : plus AUCUNE marge haute nécessaire,
     le contenu s'adapte exactement à la hauteur de l'écran */
  display: flex;
  align-items: center;
  justify-content: center;
}
}

/* Orbes lumineuses */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  animation: raph-float 16s ease-in-out infinite;
}
body::before {
  width: 480px; height: 480px;
  background: var(--accent);
  top: -120px; left: -120px;
}
body::after {
  width: 420px; height: 420px;
  background: var(--accent-2);
  bottom: -140px; right: -100px;
  animation-delay: -6s;
}
@keyframes raph-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

/* ============ 4. MISE EN PAGE (skeleton) ============ */
.container {
  position: relative;
  width: 100%;
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
  padding: 24px 20px;
}
.row, .column { width: 100%; }
.column { margin-top: 0; margin-bottom: 0; }

/* ============ 5. TYPOGRAPHIE ============ */
h1 {
  font-size: 2.6rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: raph-shine 5s linear infinite;
}
@keyframes raph-shine { to { background-position: 200% center; } }
h2 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 10px; }
p { color: var(--txt-dim); font-size: 17px; line-height: 1.4; }
a { color: var(--accent); }

/* ============ 6. AVATAR / LOGO ============ */
.column > img:first-of-type {
  width: 148px;
  height: 148px;
  max-width: 148px;
  max-height: 148px;
  object-fit: contain;
  border-radius: 32px;
  box-shadow: 0 0 40px var(--glow);
  margin: 0 auto 18px;
  animation: raph-hover3d 6s ease-in-out infinite;
}
@keyframes raph-hover3d {
  0%, 100% { transform: perspective(600px) rotateY(0) translateY(0); }
  50% { transform: perspective(600px) rotateY(10deg) translateY(-8px); }
}

/* ============ 7. BOUTONS ============ */
.button {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 56px;
  line-height: 54px;
  margin: 0 auto 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: normal;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--txt);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.button:hover, .button:focus {
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 18px rgba(34, 211, 238, 0.15);
  outline: none;
}

/* Icônes SVG dans les boutons */
.button .icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  padding: 0 8px 3.5px 0;
  vertical-align: middle;
  filter: invert(72%) sepia(49%) saturate(5988%) hue-rotate(158deg) brightness(96%) contrast(92%);
}
.button:hover .icon {
  filter: invert(83%) sepia(52%) saturate(5725%) hue-rotate(141deg) brightness(101%) contrast(95%);
}

/* ============ 8. SÉCURITÉS ANTI-DÉBORDEMENT ============ */
/* Les <br> du HTML ne servent plus à rien : boutons en display:block */
.column br, .row br, .container br, body br, div br {
  display: none !important;
  height: 0 !important;
  line-height: 0 !important;
}
.container img { max-width: 100%; height: auto; }
.container, .row, .column { max-width: 100%; }

/* ============ 9. RESPONSIVE ============ */
/* Tablettes */
@media (max-width: 550px) {
  h1 { font-size: 2.2rem; }
  .container { padding: 16px; }
}

/* Smartphones */
@media (max-width: 400px) {
  h1 { font-size: 1.9rem; }
  .column > img:first-of-type {
    width: 124px; height: 124px;
    max-width: 124px; max-height: 124px;
  }
  .button { height: 54px; line-height: 52px; font-size: 18px; }
  .container { padding: 14px; }
}

/* Très petits écrans */
@media (max-width: 320px) {
  .button { font-size: 16px; }
  .container { padding: 12px; }
}

/* Grands écrans : plus aéré */
@media (min-height: 900px) {
  .column > img:first-of-type {
    width: 168px; height: 168px;
    max-width: 168px; max-height: 168px;
  }
  .button { height: 58px; line-height: 56px; margin-bottom: 14px; }
}

/* Paysage bas */
@media (max-height: 500px) {
  body::before, body::after { opacity: 0.3; }
}

/* Accessibilité : animations réduites */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after,
  .column > img:first-of-type,
  h1 { animation: none !important; }
  .button { transition: none; }
}
