/* ============================================
   Portfolio — Anthony Printemps
   Développeur Full Stack Freelance | Guadeloupe
   Feuille de style principale
   Charte : Navy #1a3a5c | Or #c8973a | Crème #f8f4ed
   Polices : Playfair Display + DM Sans
============================================ */

:root {
      --navy: #1a3a5c;
      --navy-light: #234d7a;
      --gold: #c8973a;
      --gold-light: #e0b05a;
      --cream: #f8f4ed;
      --cream-dark: #ede8df;
      --text: #1a1a1a;
      --text-muted: #5a5a5a;
      --white: #ffffff;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--text);
      overflow-x: hidden;
    }

    /* ── NAVBAR ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(26, 58, 92, 0.97);
      backdrop-filter: blur(10px);
      padding: 0 60px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(200, 151, 58, 0.3);
    }

    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: var(--gold);
      letter-spacing: 0.5px;
    }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
    }

    .nav-links a {
      color: rgba(255,255,255,0.8);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      transition: color 0.3s;
    }

    .nav-links a:hover { color: var(--gold); }

    /* ── HERO ── */
    #hero {
      min-height: 100vh;
      background: var(--navy);
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
      padding: 100px 60px 60px;
    }

    .hero-bg-pattern {
      position: absolute;
      inset: 0;
      opacity: 0.04;
      background-image: repeating-linear-gradient(
        45deg,
        var(--gold) 0px, var(--gold) 1px,
        transparent 1px, transparent 60px
      );
    }

    .hero-decor {
      position: absolute;
      right: -100px;
      top: 50%;
      transform: translateY(-50%);
      width: 600px;
      height: 600px;
      border-radius: 50%;
      border: 1px solid rgba(200, 151, 58, 0.15);
      animation: pulse 4s ease-in-out infinite;
    }

    .hero-decor::before {
      content: '';
      position: absolute;
      inset: 40px;
      border-radius: 50%;
      border: 1px solid rgba(200, 151, 58, 0.1);
    }

    .hero-decor::after {
      content: '';
      position: absolute;
      inset: 80px;
      border-radius: 50%;
      border: 1px solid rgba(200, 151, 58, 0.08);
    }

    @keyframes pulse {
      0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
      50% { transform: translateY(-50%) scale(1.03); opacity: 0.7; }
    }

    .hero-content {
      max-width: 700px;
      position: relative;
      z-index: 2;
      animation: fadeUp 0.8s ease forwards;
    }

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

    .hero-tag {
      display: inline-block;
      background: rgba(200, 151, 58, 0.15);
      border: 1px solid rgba(200, 151, 58, 0.4);
      color: var(--gold);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      padding: 6px 16px;
      border-radius: 2px;
      margin-bottom: 28px;
      animation: fadeUp 0.8s 0.1s ease both;
    }

    .hero-name {
      font-family: 'Playfair Display', serif;
      font-size: clamp(3rem, 6vw, 5.5rem);
      color: var(--white);
      line-height: 1.1;
      margin-bottom: 12px;
      animation: fadeUp 0.8s 0.2s ease both;
    }

    .hero-name span { color: var(--gold); }

    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.2rem, 2.5vw, 1.8rem);
      color: rgba(255,255,255,0.6);
      font-style: italic;
      margin-bottom: 32px;
      animation: fadeUp 0.8s 0.3s ease both;
    }

    .hero-desc {
      font-size: 1rem;
      color: rgba(255,255,255,0.7);
      line-height: 1.8;
      max-width: 560px;
      margin-bottom: 48px;
      font-weight: 300;
      animation: fadeUp 0.8s 0.4s ease both;
    }

    .hero-cta {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      animation: fadeUp 0.8s 0.5s ease both;
    }

    .btn-primary {
      background: var(--gold);
      color: var(--navy);
      padding: 14px 32px;
      border: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.3s;
      display: inline-block;
    }

    .btn-primary:hover {
      background: var(--gold-light);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(200, 151, 58, 0.3);
    }

    .btn-outline {
      background: transparent;
      color: var(--white);
      padding: 14px 32px;
      border: 1px solid rgba(255,255,255,0.3);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.3s;
      display: inline-block;
    }

    .btn-outline:hover {
      border-color: var(--gold);
      color: var(--gold);
    }

    .hero-stats {
      position: absolute;
      bottom: 60px;
      right: 60px;
      display: flex;

      gap: 48px;
      animation: fadeUp 0.8s 0.6s ease both;
    }

    .stat {
      text-align: center;
    }

    .stat-number {
      font-family: 'Playfair Display', serif;
      font-size: 2.5rem;
      color: var(--gold);
      display: block;
      line-height: 1;
    }

    .stat-label {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-top: 6px;
      display: block;
    }

    /* ── SECTIONS COMMUNES ── */
    section {
      padding: 100px 60px;
    }

    .section-label {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
      display: block;
    }

    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 4vw, 3rem);
      color: var(--navy);
      line-height: 1.2;
      margin-bottom: 60px;
    }

    .section-title em {
      font-style: italic;
      color: var(--gold);
    }

    /* ── À PROPOS ── */
    #about {
      background: var(--cream);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    .about-text p {
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.9;
      margin-bottom: 20px;
      font-weight: 300;
    }

    .about-text p strong {
      color: var(--navy);
      font-weight: 600;
    }

    .about-info {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 40px;
    }

    .info-item {
      border-left: 2px solid var(--gold);
      padding-left: 16px;
    }

    .info-label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      display: block;
      margin-bottom: 4px;
    }

    .info-value {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--navy);
    }

    .about-formation {
      background: var(--navy);
      padding: 40px;
      position: relative;
    }

    .about-formation::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 4px;
      height: 100%;
      background: var(--gold);
    }

    .formation-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: var(--white);
      margin-bottom: 32px;
    }

    .formation-item {
      margin-bottom: 28px;
      padding-bottom: 28px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .formation-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

    .formation-degree {
      font-weight: 600;
      color: var(--gold);
      font-size: 0.9rem;
      margin-bottom: 4px;
    }

    .formation-school {
      color: rgba(255,255,255,0.8);
      font-size: 0.85rem;
      margin-bottom: 2px;
    }

    .formation-year {
      color: rgba(255,255,255,0.4);
      font-size: 0.75rem;
    }

    /* ── COMPÉTENCES ── */
    #skills {
      background: var(--cream-dark);
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .skill-card {
      background: var(--white);
      padding: 36px 32px;
      position: relative;
      transition: transform 0.3s, box-shadow 0.3s;
      border-bottom: 3px solid transparent;
    }

    .skill-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 40px rgba(26, 58, 92, 0.1);
      border-bottom-color: var(--gold);
    }

    .skill-card-icon {
      font-size: 2rem;
      margin-bottom: 20px;
      display: block;
    }

    .skill-card-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      color: var(--navy);
      margin-bottom: 16px;
    }

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

    .skill-tag {
      background: var(--cream);
      color: var(--navy);
      font-size: 0.72rem;
      font-weight: 500;
      padding: 4px 12px;
      border-radius: 2px;
      letter-spacing: 0.5px;
    }

    .skill-tag.gold {
      background: rgba(200, 151, 58, 0.12);
      color: var(--gold);
    }

    /* ── EXPÉRIENCES ── */
    #experience {
      background: var(--cream);
    }

    .timeline {
      position: relative;
      max-width: 800px;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, var(--gold), transparent);
    }

    .timeline-item {
      padding-left: 48px;
      margin-bottom: 60px;
      position: relative;
      animation: fadeUp 0.6s ease both;
    }

    .timeline-dot {
      position: absolute;
      left: -6px;
      top: 8px;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--gold);
      border: 2px solid var(--cream);
    }

    .timeline-period {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 8px;
    }

    .timeline-role {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      color: var(--navy);
      margin-bottom: 4px;
    }

    .timeline-company {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 20px;
      font-weight: 500;
    }

    .timeline-tasks {
      list-style: none;
    }

    .timeline-tasks li {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.7;
      padding-left: 20px;
      position: relative;
      margin-bottom: 8px;
      font-weight: 300;
    }

    .timeline-tasks li::before {
      content: '—';
      position: absolute;
      left: 0;
      color: var(--gold);
      font-weight: 600;
    }

    /* ── SERVICES ── */
    #services {
      background: var(--navy);
      position: relative;
      overflow: hidden;
    }

    #services .section-title { color: var(--white); }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: rgba(255,255,255,0.08);
    }

    .service-card {
      background: var(--navy);
      padding: 48px 36px;
      transition: background 0.3s;
      position: relative;
    }

    .service-card:hover {
      background: var(--navy-light);
    }

    .service-number {
      font-family: 'Playfair Display', serif;
      font-size: 3rem;
      color: rgba(200, 151, 58, 0.15);
      display: block;
      margin-bottom: 20px;
      line-height: 1;
    }

    .service-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      color: var(--white);
      margin-bottom: 16px;
    }

    .service-desc {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.5);
      line-height: 1.8;
      font-weight: 300;
    }

    .service-price {
      margin-top: 24px;
      font-size: 0.8rem;
      color: var(--gold);
      font-weight: 600;
      letter-spacing: 1px;
    }

    /* ── CONTACT ── */
    #contact {
      background: var(--navy);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    #contact .section-title { color: var(--white); margin-bottom: 20px; }

    .contact-subtitle {
      font-size: 1rem;
      color: rgba(255,255,255,0.5);
      margin-bottom: 60px;
      font-weight: 300;
    }

    .contact-grid {
      display: flex;
      justify-content: center;
      gap: 32px;
      flex-wrap: wrap;
      margin-bottom: 60px;
    }

    .contact-item {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(200, 151, 58, 0.2);
      padding: 32px 48px;
      text-decoration: none;
      transition: all 0.3s;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .contact-item:hover {
      background: rgba(200, 151, 58, 0.1);
      border-color: var(--gold);
      transform: translateY(-4px);
    }

    .contact-icon { font-size: 1.5rem; }

    .contact-label {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--gold);
      font-weight: 600;
    }

    .contact-value {
      font-size: 0.9rem;
      color: rgba(255,255,255,0.8);
    }

    .contact-divider {
      width: 60px;
      height: 1px;
      background: rgba(200, 151, 58, 0.3);
      margin: 0 auto 40px;
    }

    /* ── FOOTER ── */
    footer {
      background: #0f2238;
      padding: 32px 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid rgba(200, 151, 58, 0.15);
    }

    .footer-logo {
      font-family: 'Playfair Display', serif;
      color: var(--gold);
      font-size: 1rem;
    }

    .footer-text {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.3);
    }

    /* ── SCROLL INDICATOR ── */
    .scroll-indicator {
      position: absolute;
      bottom: 40px;
      left: 60px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      animation: bounce 2s ease-in-out infinite;
    }

    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(8px); }
    }

    .scroll-line {
      width: 1px;
      height: 48px;
      background: linear-gradient(to bottom, var(--gold), transparent);
    }

    .scroll-text {
      font-size: 0.6rem;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
      writing-mode: vertical-rl;
    }

    /* ── FORMATIONS ── */
    #formations {
      background: var(--cream-dark);
    }

    .formations-intro {
      max-width: 700px;
      margin-bottom: 60px;
    }

    .formations-intro p {
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.9;
      font-weight: 300;
      margin-bottom: 24px;
    }

    .formations-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .badge {
      background: var(--white);
      border: 1px solid var(--cream-dark);
      color: var(--navy);
      font-size: 0.78rem;
      font-weight: 500;
      padding: 6px 16px;
      border-radius: 2px;
    }

    .formations-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-bottom: 40px;
    }

    .formation-card {
      background: var(--white);
      padding: 40px 36px;
      position: relative;
      transition: transform 0.3s, box-shadow 0.3s;
      border-bottom: 3px solid transparent;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .formation-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 40px rgba(26, 58, 92, 0.1);
      border-bottom-color: var(--gold);
    }

    .formation-card.featured {
      background: var(--navy);
      border-bottom-color: var(--gold);
    }

    .fc-badge {
      position: absolute;
      top: -12px;
      left: 32px;
      background: var(--gold);
      color: var(--navy);
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 4px 14px;
    }

    .fc-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .fc-icon { font-size: 1.8rem; }

    .fc-level {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--gold);
      background: rgba(200, 151, 58, 0.1);
      padding: 4px 12px;
      border-radius: 2px;
    }

    .fc-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      color: var(--navy);
    }

    .formation-card.featured .fc-title { color: var(--white); }

    .fc-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.8;
      font-weight: 300;
      flex: 1;
    }

    .formation-card.featured .fc-desc { color: rgba(255,255,255,0.6); }

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

    .fc-tags span {
      background: var(--cream);
      color: var(--navy);
      font-size: 0.7rem;
      font-weight: 600;
      padding: 4px 12px;
      letter-spacing: 0.5px;
    }

    .formation-card.featured .fc-tags span {
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.7);
    }

    .fc-details {
      display: flex;
      flex-direction: column;
      gap: 8px;
      border-top: 1px solid var(--cream-dark);
      padding-top: 16px;
    }

    .formation-card.featured .fc-details {
      border-top-color: rgba(255,255,255,0.1);
    }

    .fc-detail {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .fc-detail-label {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .formation-card.featured .fc-detail-label { color: rgba(255,255,255,0.4); }

    .fc-detail-value {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--navy);
    }

    .formation-card.featured .fc-detail-value { color: rgba(255,255,255,0.85); }

    .fc-price {
      font-family: 'Playfair Display', serif;
      font-size: 1.6rem;
      color: var(--gold);
      font-weight: 700;
    }

    .fc-price span {
      font-family: 'DM Sans', sans-serif;
      font-size: 0.8rem;
      color: var(--text-muted);
      font-weight: 400;
    }

    .formation-card.featured .fc-price span { color: rgba(255,255,255,0.4); }

    .fc-btn {
      display: inline-block;
      background: var(--navy);
      color: var(--white);
      padding: 12px 24px;
      font-size: 0.8rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      text-decoration: none;
      transition: all 0.3s;
      text-align: center;
    }

    .fc-btn:hover {
      background: var(--gold);
      color: var(--navy);
    }

    .formation-card.featured .fc-btn {
      background: var(--gold);
      color: var(--navy);
    }

    .formation-card.featured .fc-btn:hover {
      background: var(--gold-light);
    }

    /* Encart sur mesure */
    .formations-custom {
      background: var(--navy);
      padding: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      margin-top: 16px;
    }

    .fc-custom-content {
      display: flex;
      align-items: flex-start;
      gap: 24px;
    }

    .fc-custom-icon { font-size: 2.5rem; flex-shrink: 0; }

    .fc-custom-content h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: var(--white);
      margin-bottom: 10px;
    }

    .fc-custom-content p {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.55);
      line-height: 1.7;
      font-weight: 300;
      max-width: 560px;
    }

    @media (max-width: 900px) {
      .formations-grid { grid-template-columns: 1fr; }
      .formations-custom { flex-direction: column; }
    }
  
    @media (max-width: 900px) {
      nav { padding: 0 24px; }
      .nav-links { gap: 20px; }
      section { padding: 70px 24px; }
      #hero { padding: 120px 24px 60px; }
      .hero-stats { display: none; }
      .about-grid { grid-template-columns: 1fr; gap: 40px; }
      .skills-grid { grid-template-columns: 1fr 1fr; }
      .services-grid { grid-template-columns: 1fr; }
      .tarifs-grid { grid-template-columns: 1fr; }
      .tarif-card.featured { transform: none; }
      footer { flex-direction: column; gap: 12px; text-align: center; }
      .scroll-indicator { display: none; }
      .hero-decor { display: none; }
    }