/* ==========================================================
   CV & BOOK SPORTIF — CYRIL CRESPO
   RESPONSIVE PORTRAIT INTELLIGENT (Smartphones & Petites Hauteurs)
   ========================================================== */

@media (max-width: 800px) {

  /* 1. CORRECTIONS GLOBALES & STRUCTURE */
  body {
    background-attachment: scroll;
    background-position: center top;
    overflow-x: hidden;
  }

  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand span {
    font-size: 8px;
  }
  
  /* Menu Burger Mobile */
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    padding: 12px 18px;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(201, 164, 90, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
  }

  .site-header.open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(201, 164, 90, 0.12);
    font-size: 11px;
  }
  
  .portal-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* 2. HERO SECTION ADAPTATIF (MULTIFORMATS SMARTPHONES) */
  .hero {
    height: 100svh;
    min-height: 620px;
    max-height: 900px;
  }
  
  .hero-image-wrap {
    width: 100%;
    inset: 0;
    opacity: 0.3;
    right: 0;
  }

  .hero-content {
    position: absolute;
    width: auto;
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 90px;
    transform: none;
  }

  .kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(54px, 15vw, 88px);
    line-height: 0.78;
    white-space: normal;
  }

  .hero-rule {
    margin-bottom: 18px;
    width: 56px;
  }

  .hero-intro {
    font-size: 17px;
    line-height: 1.35;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
  }

  .hero-actions .button {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .text-button {
    text-align: center;
    padding: 6px 0;
  }

  .hero-meta,
  .hero-scroll {
    display: none;
  }

  /* 3. SECTIONS & ESPACEMENTS GÉNÉRAUX */
  .section {
    width: calc(100% - 36px);
    padding: 75px 0;
  }
  
  .section-heading {
    grid-template-columns: max-content max-content minmax(20px, 1fr);
    column-gap: 12px;
    margin-bottom: 35px;
  }

  .section-number {
    font-size: 13px;
  }

  .section-label {
    font-size: 8.5px;
    letter-spacing: 0.15em;
  }

  .profile-grid,
  .journey-intro,
  .palmares-intro,
  .book-head {
    display: block;
  }

  .profile-statement h2,
  .journey-title h2,
  .book-head h2,
  .palmares-title h2 {
    font-size: clamp(42px, 11vw, 54px);
    line-height: 0.88;
    margin-bottom: 24px;
  }

  .profile-statement .lead {
    font-size: 22px;
  }

  .profile-statement p:not(.lead),
  .journey-title p,
  .journey-copy p,
  .palmares-title p,
  .book-head p {
    font-size: 16px;
    line-height: 1.6;
  }

  .stats {
    margin-top: 45px;
  }

  .stat {
    grid-template-columns: 90px 1fr;
    gap: 15px;
    padding: 18px 0;
  }

  .stat strong {
    font-size: 28px;
  }

  .stat span {
    font-size: 9px;
  }

  /* 4. ANNÉE MAJEURE (2026) SUR MOBILE */
  .year-2026 {
    width: calc(100% - 36px);
    padding-top: 75px;
  }

  .year-head {
    grid-template-columns: max-content max-content minmax(20px, 1fr);
    column-gap: 12px;
  }

  .year-head p {
    grid-column: 1 / -1;
    margin-top: 18px;
    font-size: 17px;
  }

  .year-main-title {
    font-size: clamp(75px, 22vw, 110px);
    margin: 32px 0 28px;
    line-height: 0.7;
  }

  .year-story {
    display: block;
    margin-bottom: 35px;
  }

  .year-story-copy h3 {
    font-size: clamp(34px, 9vw, 46px);
    margin: 10px 0 18px;
  }

  .year-highlight {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
    margin-top: 30px;
    grid-template-columns: 55px 1fr;
  }

  .year-highlight strong {
    font-size: 28px;
  }

  /* 5. GALERIES & PHOTOS PORTRAIT (RATIO D'ORIGINE PRÉSERVÉ) */
  .year-gallery,
  .journey-gallery,
  .palmares-gallery,
  .book-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    min-height: 0;
  }
  
  .year-photo,
  .journey-photo,
  .palmares-photo,
  .book-photo,
  .book-photo-large {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .year-photo img,
  .journey-photo img,
  .palmares-photo img,
  .book-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .journey-caption {
    display: none;
  }

  .palmares-year {
    grid-template-columns: 70px 1fr;
    gap: 15px;
    padding: 20px 0;
  }

  .palmares-year-label {
    font-size: 22px;
  }

  .palmares-year strong {
    font-size: 16px;
  }

  /* 6. NAVIGATION FINALE & FOOTER MOBILE */
  .final-nav {
    padding: 75px 20px;
  }

  .final-nav h2 {
    font-size: clamp(45px, 12vw, 65px);
    line-height: 0.82;
    margin: 20px 0 45px;
  }

  .final-links {
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(201, 164, 90, 0.18);
  }

  .final-links a {
    margin-right: 0;
    padding: 16px 0;
    font-size: 10px;
  }

  footer {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  footer span, 
  footer a {
    font-size: 8.5px;
  }
}

/* Cas spécifique : Très petits smartphones compacts (< 360px de large) */
@media (max-width: 359px) {
  .hero h1 {
    font-size: 46px;
  }
  .hero-content {
    bottom: 75px;
    left: 15px;
    right: 15px;
  }
  .site-header {
    padding: 0 12px;
  }
  .section {
    width: calc(100% - 24px);
  }
}

/* Cas spécifique : Smartphones pliables ou formats étroits en hauteur */
@media (max-width: 800px) and (max-height: 680px) {
  .hero {
    min-height: 560px;
  }
  .hero-content {
    bottom: 50px;
  }
  .hero h1 {
    font-size: 42px;
    margin: 10px 0;
  }
  .hero-intro {
    display: none;
  }
}