/* =====================================================================
   Rubi Studio — responsive : corrections de l'audit du 4 octobre 2026
   (13 pages × 11 tailles d'écran, de 320 à 2560 px). Les media queries
   historiques restent dans style.css ; ce fichier passe après lui.
   Les réglages de la 3D (zones, R de fin de page) sont dans site-3d.css.
   ===================================================================== */

/* ─── En-tête : tient sur les plus petits téléphones (320 px) ──────── */
@media (max-width: 400px) {
  .site-header--island { padding-left: 10px; padding-right: 10px; }
  .site-header--island .header-island { padding: 6px 6px 6px 14px; gap: 6px; }
  .site-header--island .logo { font-size: 14.5px; }
  .site-header--island .header-actions { gap: 6px; }
  .site-header--island .nav-cta { padding: 8px 12px; font-size: 12.5px; }
}
@media (max-width: 350px) {
  .site-header--island .nav-cta span { display: none; }   /* la flèche */
}
/* Burger : zone de toucher de 44 px (le dessin des 3 traits ne change pas).
   Logo : 44 px de haut aussi, sans changer la hauteur de l'en-tête. */
@media (max-width: 860px) {
  .site-header--island .burger { width: 44px; height: 44px; }
  .site-header--island .logo { padding: 11px 0; margin: -11px 0; }
}

/* ─── Formulaires ──────────────────────────────────────────────────── */
/* Mêmes cases partout : le thème parent stylait input[type=text] avec une
   règle plus forte (coins de 3 px, bordure grise, 39 px de haut). 48 px de
   haut pour le doigt, et texte en 16 px : en dessous, l'iPhone zoome sur
   le champ dès qu'on tape dedans. */
.form-field .form-input,
.form-field .form-select,
.form-field .form-textarea {
  min-height: 48px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(236, 233, 245, 0.18);
  border-radius: 12px;
  padding: 12px 15px;
}
.form-field .form-select { padding-right: 42px; background-position: right 14px center; }
.form-field .form-textarea { min-height: 130px; }
.form-field .form-input:focus,
.form-field .form-select:focus,
.form-field .form-textarea:focus {
  border-color: var(--orange);
  background-color: rgba(255, 255, 255, 0.09);
}
/* (Une ancienne règle « background: » effaçait la flèche du menu au focus.) */
.form-field .form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%238A7F6E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
}
.form-field .form-input--error,
.form-field .form-select--error,
.form-field .form-textarea--error { border-color: rgba(255, 107, 107, 0.7); }

/* ─── Textes trop petits (moins de 12 px) ──────────────────────────── */
.project-card .project-card__type { font-size: 12px; }
.contact__social-link span { font-size: 13px; }
/* Page CV (à l'écran seulement : l'impression garde sa mise en page A4). */
@media screen {
  .cv-tag,
  .cv-qlabel,
  .cv-contact-row .lbl,
  .cv-lang-level,
  .cv-item-meta { font-size: 12px; }
}

/* ─── Portrait (accueil et À propos) ───────────────────────────────── */
/* La photo est en portrait : cadrée sur le visage partout. Sur téléphone et
   tablette, le cadre passait en paysage (3/2) et coupait le haut de la tête
   et le menton ; il devient carré. */
.profil__photo img { object-position: 50% 18%; }
@media (max-width: 960px) {
  .profil__photo { aspect-ratio: 1 / 1; max-width: 420px; }
  .profil__photo-accent { width: 30px; height: 30px; bottom: 16px; right: 16px; }
}

/* ─── Zones de toucher (téléphone, tablette) ───────────────────────── */
@media (max-width: 860px) {
  /* Liens du pied de page : 42 px de haut au lieu de 21. */
  .footer__links { gap: 4px 14px; }
  .footer__links a { display: inline-block; padding: 11px 4px; }
  /* Fil d'Ariane des pages projet. */
  .projet-fil a { display: inline-block; padding: 10px 0; }
}
/* Page CV : téléphone, email, LinkedIn (écran seulement, pas l'impression). */
@media screen and (max-width: 860px) {
  .page-cv main a:not(.btn) { display: inline-block; padding: 12px 0; }
}

/* ─── Tablette portrait (601 à 960 px) ─────────────────────────────── */
/* Boutons côte à côte, à leur taille : en pleine largeur (720 px), ils
   faisaient « téléphone agrandi ». La pleine largeur reste sur téléphone. */
@media (min-width: 601px) and (max-width: 960px) {
  .ctas,
  .profil__actions,
  .section-more { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ctas .btn,
  .profil__actions .btn,
  .section-more .btn { width: auto; }
}

/* ─── Tablette paysage et petit portable (901 à 1200 px) ───────────── */
/* Trois colonnes étroites : les grands titres sortaient de leur carte
   (« Habillage de stream » coupé, « Réseaux & contenu » sur 3 lignes). */
@media (min-width: 901px) and (max-width: 1200px) {
  .service-card__title { font-size: clamp(26px, 2.9vw, 38px); }
  .offre-pole__nom { font-size: clamp(1.5rem, 2.4vw, 2.4rem); }
}
