﻿/* ================= MODE CLASSIQUE ================= */

/* Hero classique : disposition en deux colonnes, texte a gauche et carte a droite. */
    .classic-hero {
      padding: 90px 7% 60px;
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 56px;
      align-items: center;
    }

/* Petit badge au-dessus du grand titre. */
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 999px;
      color: #67e8f9;
      background: rgba(34, 211, 238, 0.1);
      border: 1px solid rgba(34, 211, 238, 0.28);
      margin-bottom: 22px;
      font-size: 14px;
    }

/* Grand titre de la page d'accueil. */
    .classic-hero h1 {
      font-size: clamp(42px, 6vw, 76px);
      line-height: 1.02;
      margin-bottom: 24px;
    }

    .accent {
      color: var(--cyan);
    }

/* Paragraphe principal du hero. */
    .classic-hero p {
      max-width: 720px;
      font-size: 20px;
      line-height: 1.7;
      color: #cbd5e1;
      margin-bottom: 32px;
    }

/* Tags de specialites dans le hero. */
    .hero-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 28px;
    }

/* Zone des boutons du hero. */
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .primary,
    .secondary {
      border-radius: 16px;
      padding: 15px 22px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid transparent;
    }

/* Bouton d'action principal. */
    .primary {
      background: var(--cyan);
      color: #020617;
    }

/* Bouton secondaire plus discret. */
    .secondary {
      background: rgba(30, 41, 59, 0.8);
      color: white;
      border-color: rgba(148, 163, 184, 0.28);
    }

/* Carte visuelle qui simule une petite fenetre de profil. */
    .profile-card {
      padding: 30px;
      border-radius: 32px;
      background:
        radial-gradient(circle at top, rgba(34, 211, 238, 0.26), transparent 42%),
        var(--panel);
      border: 1px solid rgba(148, 163, 184, 0.25);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    }

/* Interieur sombre de la carte de profil. */
    .profile-screen {
      padding: 20px;
      border-radius: 24px;
      background: #020617;
      border: 1px solid rgba(148, 163, 184, 0.22);
    }

/* Les trois petits points type fenetre macOS. */
    .profile-screen-top {
      display: flex;
      gap: 8px;
      margin-bottom: 22px;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

    .dot.red { background: var(--red); }
    .dot.yellow { background: var(--yellow); }
    .dot.green { background: var(--green); }

/* Avatar rond au centre de la carte. */
    .avatar {
      width: 170px;
      height: 170px;
      border-radius: 50%;
      margin: 0 auto 20px;
      display: grid;
      place-items: center;
      font-size: 68px;
      background: linear-gradient(135deg, var(--cyan), var(--violet));
      box-shadow: 0 0 60px rgba(139, 92, 246, 0.45);
    }

    .profile-card h3 {
      text-align: center;
      margin-bottom: 8px;
    }

    .profile-card p {
      text-align: center;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.5;
      margin-bottom: 0;
    }

/* Petites statistiques sous le profil. */
    .mini-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 22px;
    }

    .mini-stat {
      padding: 14px 10px;
      text-align: center;
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(148, 163, 184, 0.16);
    }

    .mini-stat strong {
      display: block;
      color: var(--yellow);
      font-size: 22px;
    }

    .mini-stat span {
      color: var(--muted);
      font-size: 12px;
    }

/* Espacement commun de toutes les sections classiques. */
    .section {
      padding: 60px 7%;
    }

    .section h2 {
      font-size: 38px;
      margin-bottom: 12px;
    }

/* Description sous les titres de section. */
    .section-desc {
      color: var(--muted);
      max-width: 720px;
      line-height: 1.7;
      margin-bottom: 28px;
    }

/* Grille des cartes : 3 colonnes sur grand ecran. */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

/* Carte de contenu reutilisee pour profil, projets et competences. */
    .card {
      min-height: 220px;
      padding: 26px;
      border-radius: 26px;
      background: var(--panel);
      border: 1px solid rgba(148, 163, 184, 0.22);
      transition: 0.2s ease;
    }

/* Animation au survol pour rendre les cartes plus vivantes. */
    .card:hover {
      transform: translateY(-6px);
      border-color: rgba(34, 211, 238, 0.65);
    }

    .card-icon {
      font-size: 36px;
      margin-bottom: 16px;
    }

    .card h3 {
      margin-bottom: 12px;
    }

    .card p {
      color: #cbd5e1;
      line-height: 1.6;
      margin-bottom: 18px;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

/* Petits badges de technologies. */
    .tag {
      padding: 6px 9px;
      border-radius: 999px;
      background: rgba(34, 211, 238, 0.08);
      border: 1px solid rgba(34, 211, 238, 0.22);
      color: #67e8f9;
      font-size: 12px;
    }

/* Bloc contact en deux colonnes. */
    .contact-box {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      padding: 34px;
      border-radius: 30px;
      background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.14));
      border: 1px solid rgba(148, 163, 184, 0.22);
    }

    .contact-list {
      padding: 22px;
      border-radius: 22px;
      background: rgba(2, 6, 23, 0.65);
      border: 1px solid rgba(148, 163, 184, 0.18);
      line-height: 2;
    }

    .contact-list a {
      color: var(--cyan);
      text-decoration: none;
      transition: opacity 0.2s ease;
    }

    .contact-list a:hover {
      opacity: 0.75;
    }

/* Lien GitHub sur les cartes du slider projets. */
    .card-ext-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--cyan);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      margin-top: 10px;
      letter-spacing: 0.02em;
      transition: gap 0.22s ease, opacity 0.22s ease;
    }

    .card-ext-link:hover {
      gap: 10px;
      opacity: 0.8;
    }

/* ================= SLIDER 3D PROJETS ================= */

    .slider-3d-container {
      position: relative;
      width: 100%;
      padding: 20px 0 16px;
    }

    .slider-3d-stage {
      position: relative;
      height: 380px;
      perspective: 1400px;
      perspective-origin: 50% 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .card-slide {
      position: absolute;
      width: 320px;
      min-height: 300px;
      transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.65s ease,
                  box-shadow 0.65s ease;
      cursor: pointer;
      will-change: transform;
      backface-visibility: hidden;
    }

    .card-slide.active-slide {
      cursor: default;
      box-shadow: 0 24px 72px rgba(34, 211, 238, 0.22),
                  0 0 0 1px rgba(34, 211, 238, 0.35);
    }

    .card-slide:not(.active-slide):hover {
      opacity: 0.72 !important;
    }

    .slider-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 22px;
      margin-top: 20px;
    }

    .slider-btn {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background: rgba(30, 41, 59, 0.85);
      color: var(--text);
      font-size: 18px;
      cursor: pointer;
      transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.15s;
      display: grid;
      place-items: center;
      backdrop-filter: blur(8px);
    }

    .slider-btn:hover {
      border-color: var(--cyan);
      color: var(--cyan);
      box-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
      transform: scale(1.08);
    }

    .slider-btn:active {
      transform: scale(0.95);
    }

    .slider-dots {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .slider-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(148, 163, 184, 0.32);
      cursor: pointer;
      transition: background 0.3s, width 0.3s, border-radius 0.3s, box-shadow 0.3s;
    }

    .slider-dot.active {
      background: var(--cyan);
      box-shadow: 0 0 10px rgba(34, 211, 238, 0.65);
      width: 26px;
      border-radius: 4px;
    }

/* ================= SCROLL REVEAL 3D ================= */

    .reveal-card {
      opacity: 0;
      transform: perspective(900px) translateZ(-70px) translateY(36px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-card.is-visible {
      opacity: 1;
      transform: perspective(900px) translateZ(0) translateY(0);
    }

    .reveal-section {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-section.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
