/* Retouches du 29/09/2026 (Velyria) : mode téléphone, lisibilité, icônes.
   Chargé après styles.css sur toutes les pages. Supprimer ce fichier = retour à l'état d'avant. */

:root { color-scheme: only light; }

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Icônes des cartes de services (remplacent les emoji) */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  border-radius: 50%;
  background: #f7e9f2;
  color: var(--primary);
  vertical-align: middle;
  flex: none;
}
.service-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Titre du haut de l'accueil : aligné sur le logo (il était tiré de 24 px vers la gauche et collait au bord) */
.hero__text { margin-left: 0; }

/* Signature Velyria en pied de page (logo + phrase), comme sur le site Micallef */
.signature-velyria a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 44px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.signature-velyria img { height: 32px; width: auto; display: block; }
.signature-velyria a:hover span,
.signature-velyria a:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }

/* Bouton Appeler dans l'en-tête : téléphone seulement */
.header-call { display: none; }

@media (max-width: 768px) {
  /* En-tête sur UNE ligne : logo + nom à gauche, Appeler + menu à droite */
  .header__content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 8px;
  }
  .brand__logo { height: 38px; }
  .brand__name { font-size: 20px; line-height: 1.1; white-space: nowrap; }
  .brand__tagline { font-size: 9px; letter-spacing: 0.1em; white-space: nowrap; }
  .header-call,
  .nav-toggle {
    align-self: center;
    flex: none;
    width: 46px;
    height: 46px;
  }
  .header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
  }
  .header-call svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .nav { top: calc(100% + 4px); left: 12px; right: 12px; }
  .nav a { min-height: 48px; display: flex; align-items: center; font-size: 17px; }

  /* Texte plus grand : public âgé et familles */
  body, p, li { font-size: 16px; }
  .hero__text h1, h1 { font-size: 34px; line-height: 1.15; }
  h2 { font-size: 26px; }
  .brand__tagline { font-size: 9px; }

  /* Espaces verticaux : fini les trous de 200 px entre les blocs */
  .hero,
  .home .hero { padding: 28px 0 48px; }
  .home .hero__grid,
  .hero__grid { gap: 32px; }
  .section,
  .home .section,
  .home .section-why,
  .home .call-section,
  .home .section-story,
  .home .section--primary,
  .section-story { padding-top: 48px; padding-bottom: 48px; }
  .services-hero { padding-top: 40px; padding-bottom: 40px; }
  .services-hero p br { display: none; }

  /* Grilles à colonne minimale de 300 à 360 px : débordaient sur les petits téléphones */
  .hero__grid,
  .story-grid,
  .service-cards,
  .detail-split,
  .split,
  .recruit-layout,
  .contact-layout,
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-card { min-width: 0; }
  .contact-card a,
  .detail-list a,
  .footer a { overflow-wrap: anywhere; }
  .detail-list + p { margin-top: 16px; }

  /* Cibles tactiles d'au moins 44 px */
  .footer__toggle { min-height: 48px; }
  .service-link,
  .story-link,
  .link-strong,
  .contact-card__link,
  .footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  input[type="checkbox"] { width: 22px !important; min-width: 22px; height: 22px; flex: none; }

  /* Petites mentions sous les formulaires : lisibles */
  .call-privacy,
  .form-privacy,
  .helper { font-size: 14px; }
}

/* Tablette et portable (769 à 1365 px) : le menu complet ne tenait pas sur une ligne
   (nom sur 2 lignes, « Qui Sommes-nous » sur 3) : menu en tiroir comme sur téléphone */
@media (min-width: 769px) and (max-width: 1365px) {
  .header__content { flex-wrap: nowrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand__name { white-space: nowrap; }
  .nav-toggle { display: flex; flex: none; width: 48px; height: 48px; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 22px;
    width: 320px;
    background: #fff;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    border: 1px solid #ecebf3;
    z-index: 20;
  }
  .nav a { min-height: 48px; display: flex; align-items: center; padding: 10px 12px; font-size: 17px; }
  .nav .nav__cta { justify-content: center; }
  .header.nav-open .nav { display: flex; }
  .header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 374px) {
  .brand__logo { height: 32px; }
  .brand__name { font-size: 17px; }
  .brand__tagline { display: none; }
  .header-call,
  .nav-toggle { width: 44px; height: 44px; }
  .hero__text h1, h1 { font-size: 30px; }
}
