/* ================================================
   CORRECTIFS MOBILE - CONFIRMATION DE COMMANDE
   ================================================ */

/* Reset des largeurs pour mobile */
@media (max-width: 768px) {
  /* Container principal */
  .order-confirmation-page {
    padding: 20px 10px;
    min-height: auto;
  }

  .order-confirmation-page .container {
    padding: 0 10px;
    max-width: 100%;
  }

  /* Contenu de confirmation */
  .confirmation-content {
    padding: 25px 15px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Icône de succès */
  .success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .success-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Titres */
  .confirmation-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    word-wrap: break-word;
  }

  .confirmation-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
  }

  /* Informations de livraison */
  .delivery-info {
    flex-direction: row;
    padding: 15px;
    gap: 12px;
    margin-bottom: 20px;
  }

  .delivery-icon {
    width: 40px;
    height: 40px;
  }

  .delivery-icon svg {
    width: 20px;
    height: 20px;
  }

  .delivery-text {
    text-align: left;
  }

  .delivery-text h3 {
    font-size: 1rem;
  }

  .delivery-text p {
    font-size: 0.9rem;
  }

  /* Détails de commande */
  .order-details {
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .order-details h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .order-info p {
    font-size: 0.85rem;
    margin-bottom: 6px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .order-info p strong {
    display: inline-block;
    min-width: 80px;
  }

  /* Notes de commande */
  .order-notes {
    margin-top: 15px;
    padding-top: 15px;
  }

  .order-notes p {
    font-size: 0.85rem;
  }

  /* Résumé des articles */
  .order-items-summary {
    margin-top: 15px;
  }

  .order-items-summary h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .confirmation-item {
    flex-wrap: nowrap;
    padding: 10px 0;
    gap: 8px;
    align-items: center;
  }

  .item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .item-info {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
  }

  .item-info span {
    display: block;
    word-wrap: break-word;
  }

  .item-meta {
    font-size: 0.75rem;
    margin-top: 2px;
  }

  .item-total {
    font-size: 0.85rem;
    text-align: right;
  }

  /* Actions de confirmation */
  .confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .confirmation-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Ajustements très petits écrans */
@media (max-width: 480px) {
  .order-confirmation-page {
    padding: 15px 5px;
  }

  .confirmation-content {
    padding: 20px 12px;
  }

  .confirmation-title {
    font-size: 1.3rem;
  }

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

  .delivery-info {
    padding: 12px;
  }

  .order-details {
    padding: 12px;
  }

  .order-info p {
    font-size: 0.8rem;
  }

  .confirmation-item {
    gap: 6px;
  }

  .item-image {
    width: 45px;
    height: 45px;
  }

  .item-info {
    font-size: 0.8rem;
  }

  .item-total {
    font-size: 0.8rem;
  }
}

/* ================================================
   CORRECTIFS FOOTER MOBILE
   ================================================ */

@media (max-width: 768px) {
  /* Footer principal */
  .footer,
  .footer-artistic {
    padding: 40px 20px 20px;
  }

  /* Contenu du footer */
  .footer-content,
  .footer-content-artistic {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  /* Section de marque */
  .footer-brand,
  .footer-brand-artistic {
    padding: 0 10px;
  }

  .footer-brand .logo-artistic,
  .footer-brand-artistic .logo-artistic {
    justify-content: center;
    margin-bottom: 15px;
  }

  .brand-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  /* Liens sociaux */
  .social-links,
  .social-artistic {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  /* Sections de liens */
  .footer-section,
  .footer-links {
    padding: 0 10px;
  }

  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .footer-section p,
  .footer-section li {
    font-size: 0.9rem;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  /* Section remerciements */
  .footer-thanks p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-thanks-icon {
    margin-top: 15px;
  }

  .footer-thanks-icon svg {
    width: 35px;
    height: 35px;
  }

  /* Bas du footer */
  .footer-bottom,
  .footer-bottom-artistic {
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  /* Newsletter (si présente) */
  .footer-newsletter {
    padding: 25px 15px;
  }

  .newsletter-artistic h3 {
    font-size: 1.3rem;
  }

  .newsletter-artistic p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .footer,
  .footer-artistic {
    padding: 30px 15px 15px;
  }

  .footer-content,
  .footer-content-artistic {
    gap: 25px;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-section li {
    font-size: 0.85rem;
  }

  .brand-description {
    font-size: 0.85rem;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .footer-thanks-icon svg {
    width: 30px;
    height: 30px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}

/* ================================================
   CORRECTIFS CHECKOUT MOBILE
   ================================================ */

@media (max-width: 768px) {
  /* Page checkout */
  .checkout-page {
    padding: 20px 10px;
  }

  .checkout-content {
    padding: 0 10px;
    gap: 20px;
  }

  /* Sections */
  .billing-section,
  .order-summary {
    padding: 20px 15px;
  }

  /* Formulaire */
  .form-group {
    margin-bottom: 15px;
  }

  .form-input {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  /* Articles de commande */
  .order-item {
    padding: 12px 0;
    gap: 12px;
  }

  .order-item-image {
    width: 50px;
    height: 50px;
  }

  .order-item-name {
    font-size: 0.9rem;
  }

  .order-item-details {
    font-size: 0.85rem;
  }

  .order-item-total {
    font-size: 0.9rem;
  }

  /* Boutons */
  .checkout-submit-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .checkout-content {
    padding: 0 5px;
  }

  .billing-section,
  .order-summary {
    padding: 15px 12px;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .order-item-image {
    width: 45px;
    height: 45px;
  }
}

/* ================================================
   CORRECTIFS GÉNÉRAUX MOBILE
   ================================================ */

@media (max-width: 768px) {
  /* Empêche le débordement horizontal */
  body {
    overflow-x: hidden;
  }

  /* Container global */
  .container {
    padding: 0 15px;
    max-width: 100%;
  }

  /* Images responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Textes longs */
  p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Boutons pleine largeur sur mobile */
  .btn,
  .btn-artistic {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ================================================
   AMÉLIORATION DE LA LISIBILITÉ
   ================================================ */

@media (max-width: 768px) {
  /* Espacement des sections */
  section {
    padding: 30px 15px;
  }

  /* Titres */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1rem;
  }

  /* Espacement des paragraphes */
  p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }
}