/* GATE Avocats : reprise statique du site WordPress (Elementor), décembre 2026.
   Mesures, couleurs et polices relevées sur gate-avocats.com. */

@font-face { font-family: "Poiret One"; src: url("fonts/poiret-one-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bleu: #003a70;
  --texte: #333333;
  --texte-fonce: #2e2e2e;
  --gris: #8d99ae;
  --gris-bordure: #69727d;
  --fond-contact: #edf2f4;
  --rose: #cc3366;
  --largeur: 1280px;
  --largeur-etroite: 1140px;
  --gouttiere: 24px;
  --titre-section: clamp(2.5rem, 1.4rem + 3.6vw, 4.0625rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #ffffff;
  color: var(--texte);
  font: 400 16px/1.5 Lato, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: calc(var(--largeur-etroite) + 2 * var(--gouttiere)); }

.titre-section {
  margin: 0;
  font: 600 var(--titre-section)/1 "Poiret One", Lato, sans-serif;
  color: var(--bleu);
  text-align: center;
}

/* ------------------------------------------------------------------ Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--bleu);
  border-radius: 3px;
  background: var(--bleu);
  color: #ffffff;
  font: 400 16px/24px Lato, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}
.bouton--contour { background: transparent; color: var(--bleu); }
.bouton--blanc { background: #ffffff; color: var(--bleu); }
.bouton:hover { background: #ffffff; color: var(--bleu); }
.bouton--contour:hover, .bouton--blanc:hover { background: var(--bleu); color: #ffffff; }
.bouton--grandir:hover { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .bouton--grandir:hover { transform: none; } }

/* ------------------------------------------------------------------ Accueil */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* Voile blanc à 37 % sur le tableau, comme dans Elementor. */
  background:
    linear-gradient(rgba(255, 255, 255, 0.37), rgba(255, 255, 255, 0.37)),
    #dfe4e8 url("img/visuel-gate.jpg") center / cover no-repeat;
}
.hero__inner { display: flex; justify-content: flex-end; }
.hero__contenu { width: 640px; max-width: 100%; margin-top: -65px; }
.hero__logo { display: flex; justify-content: flex-end; margin-bottom: 25px; }
.hero__logo img { width: 320px; }
.hero__texte { color: #000000; text-align: justify; }
.hero__boutons { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 16px; margin-top: 27px; padding: 10px; }

/* ------------------------------------------------------------------ Savoir-faire */
.savoir { padding-top: 30px; }
.expertises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 40px;
  padding-top: 120px;
  padding-bottom: 100px;
}
.expertise { border-top: 5px solid var(--bleu); padding: 23px; }
.expertise h3 {
  margin: 0 0 24px;
  font: 600 20px/24px Poppins, sans-serif;
  color: var(--bleu);
  text-transform: uppercase;
}
.expertise__texte { color: var(--texte-fonce); text-align: justify; }

/* ------------------------------------------------------------------ Équipe */
.equipe { padding-top: 30px; padding-bottom: 100px; }
.equipe .titre-section { margin-bottom: 70px; }
.groupe + .groupe { margin-top: 80px; }
.groupe h3 {
  margin: 0 0 70px;
  font: 600 30px/42px "Poiret One", Lato, sans-serif;
  color: var(--bleu);
}
.membres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 20px; }
.membre { display: flex; flex-direction: column; align-items: center; text-align: center; }
.membre img { width: 220px; aspect-ratio: 220 / 285; object-fit: cover; object-position: center top; border-radius: 10px; }
.membre h4 { margin: 20px 0 4px; font: 400 24px/1.4 Lato, sans-serif; color: var(--bleu); }
.membre__titre { color: var(--bleu); }
.membre__boutons { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }
.membre__boutons .bouton { border-width: 1px; }

/* ------------------------------------------------------------------ Nous rejoindre */
.rejoindre { background: var(--bleu); color: #ffffff; padding: 20px 0 60px; }
.rejoindre .titre-section { color: #ffffff; padding: 0 0 20px; }
.rejoindre__grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "a b" "c .";
  gap: 60px 40px;
  margin-top: 40px;
  padding: 10px 20px;
}
.rejoindre__grille > :nth-child(1) { grid-area: a; }
.rejoindre__grille > :nth-child(2) { grid-area: b; }
.rejoindre__grille > :nth-child(3) { grid-area: c; }
.rejoindre__grille > div { text-align: justify; }

/* ------------------------------------------------------------------ Contact */
.contact { padding-block: 30px 100px; }
.contact__accroche { margin: 20px 0 0; padding-bottom: 24px; font: 500 18px/27px "Poiret One", Lato, sans-serif; color: #000000; text-align: center; }
.contact__grille { display: grid; grid-template-columns: 556fr 644fr; gap: 80px; margin-top: 15px; align-items: start; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.champ { display: flex; flex-direction: column; }
.champ--large { grid-column: 1 / -1; }
.champ label { padding-bottom: 8px; color: var(--texte-fonce); }
.champ input, .champ textarea {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--gris-bordure);
  border-radius: 0;
  background: #ffffff;
  color: var(--texte-fonce);
  font: 400 16px/24px Lato, sans-serif;
}
.champ textarea { min-height: 106px; resize: vertical; }
.champ ::placeholder { color: var(--gris); }
.formulaire__envoi { grid-column: 1 / -1; }
.formulaire__envoi .bouton { border: 0; border-radius: 0; height: 40px; padding: 0 24px; }
.formulaire__note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--gris-bordure); }
.coordonnees { background: var(--fond-contact); padding: 24px; margin-top: 20px; }
.coordonnees dt { margin: 8px 0; font: 600 20px/28px Poppins, sans-serif; color: var(--bleu); }
.coordonnees dd { margin: 0 0 20px; color: var(--texte-fonce); }
.coordonnees dd:last-child { margin-bottom: 8px; }
.coordonnees a { color: inherit; text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Pied de page */
.pied { padding-block: 48px 0; }
.pied__haut { color: var(--gris); display: inline-flex; padding-bottom: 48px; }
.pied__haut svg { width: 25px; height: 25px; }
.pied__milieu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 48px 0;
  border-top: 1px solid var(--texte-fonce);
  border-bottom: 1px solid var(--texte-fonce);
}
.pied__milieu > div { padding: 10px; }
.pied__logo img { width: 80px; margin-bottom: 20px; }
.pied__texte { font: 400 14px/21px Figtree, Lato, sans-serif; color: var(--texte-fonce); text-align: justify; }
.pied__carte iframe { display: block; width: 100%; height: 170px; border: 0; filter: saturate(0); }
.pied__bas { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 0; font: 400 14px/21px Figtree, Lato, sans-serif; color: var(--texte-fonce); }
.pied__bas p { margin: 0; }
.pied__linkedin { color: var(--gris-bordure); display: inline-flex; }
.pied__linkedin svg { width: 20px; height: 20px; }
.pied__legal { text-align: center; padding: 0 0 40px; }
.pied__legal a { color: var(--texte); text-decoration: none; }
.pied__legal a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Biographies */
.bio {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100% - 64px);
  padding: 30px 20px 20px;
  border: 0;
  border-radius: 10px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
  color: var(--texte);
  text-align: justify;
}
.bio::backdrop { background: rgba(0, 0, 0, 0.8); }
.bio__fermer {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #1f2124;
  cursor: pointer;
}
.bio__fermer svg { width: 14px; height: 14px; }
.bio p { margin-bottom: 15px; }

/* ------------------------------------------------------------------ Langue */
.langue {
  position: fixed;
  right: max(160px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
  color: #143852;
  font: 400 14px/20px Lato, sans-serif;
  text-decoration: none;
}
.langue svg { width: 18px; height: 12px; border-radius: 1px; }
.langue:hover { background: #f5f6f7; }

/* ------------------------------------------------------------------ Pages légales */
.legal { padding-block: 48px 40px; }
.legal h1 { margin: 20px 0 32px; font: 600 24px/1.2 "Poiret One", Lato, sans-serif; color: var(--gris); }
.legal__retour { color: var(--bleu); text-decoration: none; }
.legal__retour:hover { text-decoration: underline; }
.legal a { word-break: break-word; }

.visuellement-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ Tablette */
@media (max-width: 1024px) {
  :root { --gouttiere: 16px; }
  .hero { min-height: 800px; }
  .expertises { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 80px; }
  .membres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grille { grid-template-columns: 1fr; gap: 40px; }
  .langue { right: 16px; }
}

/* ------------------------------------------------------------------ Mobile */
@media (max-width: 767px) {
  :root { --gouttiere: 16px; }
  .hero {
    min-height: 0;
    padding: 48px 0;
    background:
      linear-gradient(rgba(255, 255, 255, 0.37), rgba(255, 255, 255, 0.37)),
      #dfe4e8 url("img/visuel-gate-mobile.jpg") center / cover no-repeat;
  }
  .hero__contenu { margin-top: 0; }
  .hero__logo img { width: 200px; }
  .hero__texte { font-size: 15px; line-height: 1.55; }
  .hero__boutons { justify-content: flex-start; gap: 12px; padding: 0; }
  .expertises { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 60px; }
  .expertise { padding: 23px 16px; }
  .equipe .titre-section { margin-bottom: 40px; }
  .groupe h3 { margin-bottom: 32px; }
  .groupe + .groupe { margin-top: 60px; }
  .membres { grid-template-columns: 1fr; gap: 56px; }
  .membre__boutons { margin-top: 24px; }
  .rejoindre__grille { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; gap: 32px; padding: 10px 0; margin-top: 20px; }
  .formulaire { grid-template-columns: 1fr; }
  .pied__milieu { grid-template-columns: 1fr; }
  .pied__bas { flex-direction: column-reverse; align-items: flex-start; }
  .langue { right: 16px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .bio { padding: 40px 16px 16px; max-height: calc(100% - 32px); }
}
