/* --- ADAPTATIONS RESPONSIVES --- */
@media (max-width: 900px) {
  /* Accueil */
  header#home {
    gap: 18px;
  }

  h1 {
    font-size: 4rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .cell-apps,
  .cell-auto,
  .cell-dataverse,
  .cell-sp {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .article-content-wrapper {
    padding: 80px 20px 140px;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-header-controls {
    width: 100%;
    align-items: stretch;
  }

  .blog-search-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Accueil */
  header#home {
    gap: 14px;
  }

  /* Navigation */
  .nav-wrapper {
    top: 10px;
    padding: 0 10px;
  }

  nav {
    padding: 6px 15px;
    gap: 12px;
    font-size: 0.85rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .cta-nav {
    padding: 6px 15px;
  }

  header {
    padding-top: 80px;
    min-height: 80vh;
  }

  h1 {
    font-size: 3rem;
    letter-spacing: -1px;
  }

  .brand-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }

  .by-line {
    font-size: 0.85rem;
    padding: 4px 12px;
  }

  /* Sections communes */
  #about,
  #technos,
  #blog,
  #contact {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  /* A propos */
  .about-wrapper {
    padding: 30px 20px;
    gap: 30px;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-cred {
    margin-top: 20px;
    gap: 10px;
  }

  .cred-badge-item {
    padding: 14px 16px;
    gap: 10px;
  }

  .cred-icon {
    width: 36px;
    height: 36px;
  }

  .cred-icon svg {
    width: 16px;
    height: 16px;
  }

  .cred-label {
    font-size: 0.7rem;
  }

  .cred-text {
    font-size: 0.9rem;
  }

  .exp-badge {
    bottom: -15px;
    right: -15px;
    padding: 12px 20px;
  }

  .exp-badge span {
    font-size: 1.5rem;
  }

  /* Expertise */
  .bento-cell {
    padding: 30px 20px;
  }

  .bento-cell h3 {
    font-size: 1.4rem;
  }

  .bento-cell p {
    font-size: 0.9rem;
  }

  /* Blog */
  .blog-title {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 0.9rem;
  }

  .blog-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card {
    padding: 25px 20px;
  }

  .blog-card h4 {
    font-size: 1.2rem;
  }

  /* Contact */
  .contact-container {
    border-radius: 30px;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 40px 25px;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  /* Article */
  .article-content-wrapper {
    padding: 60px 15px 130px;
  }

  .article-header h1 {
    font-size: 2.2rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Accueil */
  header#home {
    gap: 10px;
  }

  /* Navigation */
  nav {
    padding: 5px 10px;
    gap: 8px;
  }

  nav a {
    font-size: 0.75rem;
  }

  .cta-nav {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  /* Sections communes */
  #about,
  #technos,
  #blog,
  #contact {
    padding: 40px 10px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* A propos */
  .about-wrapper {
    padding: 20px 15px;
    border-radius: 30px;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  /* A propos : badges et credibilite */
  .about-cred {
    margin-top: 18px;
    gap: 8px;
  }

  .cred-badge-item {
    padding: 12px 14px;
    gap: 8px;
  }

  .cred-icon {
    width: 32px;
    height: 32px;
  }

  .cred-icon svg {
    width: 14px;
    height: 14px;
  }

  .cred-label {
    font-size: 0.65rem;
  }

  .cred-text {
    font-size: 0.85rem;
  }

  /* Expertise */
  .bento-cell {
    padding: 25px 15px;
    border-radius: 20px;
  }

  .bento-cell h3 {
    font-size: 1.3rem;
  }

  /* Blog */
  .blog-title {
    font-size: 1.8rem;
  }

  .blog-card {
    padding: 20px 15px;
    border-radius: 24px;
  }

  /* Contact */
  .contact-container {
    border-radius: 24px;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 30px 20px;
  }

  /* Article */
  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
