/* Compléments à la feuille de style Webflow (emerylaw.css) — copie statique, nov. 2026 */

/* Titres : changer de balise (div -> h1, h1 -> h2) sans changer l'apparence.
   :where() garde une spécificité de balise : les classes Webflow restent prioritaires. */
h1:where(.comme-div) { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
h2:where(.comme-h1) { margin-top: 20px; font-size: 38px; line-height: 44px; }
.bloc { display: block; }

/* Articles de blog : intertitres plus discrets que le H2 Webflow (32 px / 36 px) */
.rich-text-v1 h2 { margin-top: 28px; font-size: 24px; line-height: 30px; }

/* Accueil : titres des cartes « Nos compétences » cliquables */
.lien-carte { color: inherit; text-decoration: none; }
.lien-carte:hover, .lien-carte:focus-visible { text-decoration: underline; }

/* Sélecteur de langue (remplace le sélecteur Weglot, même aspect) */
.lang-switch { position: relative; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; line-height: 20px; }
.lang-switch .lang-option { display: flex; align-items: center; height: 40px; padding: 0 15px; background-color: #fff; color: #000; font-weight: 700; text-decoration: none; border-radius: 5px; cursor: pointer; transition: background-color .2s, color .2s; }
.lang-switch .lang-list { position: absolute; top: 40px; left: 0; width: 100%; display: none; flex-direction: column; z-index: 10; }
.lang-switch:hover .lang-list, .lang-switch:focus-within .lang-list { display: flex; }
.lang-switch .lang-list .lang-option { justify-content: center; padding: 0; }
.lang-switch .lang-list .lang-option:hover, .lang-switch .lang-list .lang-option:focus-visible { background-color: #3D46FB; color: #fff; }
.lang-switch .lang-active { outline: none; }

/* --- Retouches mobiles (24 nov. 2026) --- */

/* Bouton téléphone : le numéro reste sur une ligne */
.button-primary-small .text-block-15 { white-space: nowrap; }

/* Icônes de la page contact : le SVG prend la taille de son cadre (il débordait à 420 px de haut) */
.icon-6 svg { width: 50px; height: 50px; }

@media screen and (max-width: 479px) {
  /* Page contact : le bouton n'est plus limité à 80 % de la largeur du titre */
  .div-block-57 { width: 100%; }
  .div-block-4 { max-width: 100%; }
  /* Page contact : la photo occupe la largeur de la colonne (elle s'affichait à 43 px) */
  .image-23 { width: 300px; max-width: 100%; height: auto; }
}

/* Menu replié (tablette et mobile) : « FR / EN » affichés d'emblée,
   langue active dans la couleur du site, l'autre en gris */
@media screen and (max-width: 991px) {
  .lang-switch { display: flex; align-items: center; margin: 4px 0; padding: 12px 16px; font-family: "Open Sans", sans-serif; }
  .lang-switch .lang-option { height: auto; padding: 0; background: none; border-radius: 0; }
  .lang-switch .lang-active { color: var(--couleur); font-weight: 700; cursor: default; }
  .lang-switch .lang-list { position: static; display: flex; flex-direction: row; align-items: center; width: auto; }
  .lang-switch .lang-list::before { content: "/"; margin: 0 8px; color: #767676; font-weight: 400; }
  .lang-switch .lang-list .lang-option { color: #767676; font-weight: 600; }
  .lang-switch .lang-list .lang-option:hover, .lang-switch .lang-list .lang-option:focus-visible { background: none; color: var(--couleur); }
  /* pages anglaises : garder l'ordre FR / EN */
  .lang-switch .lang-active[lang="en"] { order: 2; }
  .lang-switch .lang-active[lang="en"] + .lang-list { order: 1; flex-direction: row-reverse; }
}
