/* =====================================================================
   CONTACT : style propre à la page
   Trois bandes pleine largeur, comme le reste du site (aucune case vide, aucun filet vertical continu) :
   1) titre | invitation (filet à 7/12) : rangée compacte ;
   2) le studio, d'un seul tenant : son e-mail en grand (l'élément principal), WhatsApp et LinkedIn dessous ;
   3) Lucas | Cédric (filet à 50 %), deux cases qui se séparent au centre pendant les changements d'écran.
   Filets verticaux : 7/12, aucun, 1/2 : jamais deux à la suite au même endroit.
   ===================================================================== */
/* aussi sur .screens : elles y suivent la largeur de la page quand le menu s'ouvre (styles.css, --vw) */
:root, .screens {
  --ct-pad: clamp(20px, 4vh, 44px);
  --ct-padx: clamp(22px, calc(var(--vw) * 3), 48px);
}

/* Charte : chaque conteneur est fermé, ses filets vont d'un bord du cadre à l'autre. La section n'a donc AUCUNE
   marge ni espacement à elle (ce sont les cases qui portent les marges) et ses rangées occupent toute la largeur :
   on l'écrit explicitement pour qu'aucune autre règle (ancienne feuille en cache, page classique) ne puisse
   rétrécir une rangée et couper ses filets. */
.contact {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.crow { display: flex; align-items: stretch; width: 100%; min-width: 0; }
.crow--intro { border-bottom: 1px solid var(--line); }

/* ----- 1. titre | invitation ----- */
.contact-text {
  flex: 1 1 0; min-width: 0; padding: var(--ct-pad) var(--ct-padx);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.contact h2 { margin: 0; font-size: clamp(24px, calc(var(--vw) * 2.4), 44px); line-height: 1.2; font-weight: 400; max-width: none; }
.contact h2 em { font-style: normal; color: var(--accent); }
.contact-lead {
  flex: 0 0 41.6667%;   /* filet à 7/12 */ min-width: 0; padding: var(--ct-pad) var(--ct-padx);
  border-left: 1px solid var(--line); display: flex; align-items: center;
}
.contact-lead p > span { display: block; }   /* une idée par ligne */
.contact-lead p {
  margin: 0; max-width: 34em; color: var(--soft);
  text-transform: uppercase; font-size: clamp(12px, calc(var(--vw) * 0.85), 16px); line-height: 2.1; letter-spacing: var(--ls);
}

/* ----- 2. la carte du studio ----- */
/* Repère des tailles (cqw, cqh) : l'écran Contact lui-même, en mode « un écran ». Sa taille ne change jamais pendant
   un changement d'écran : rien ne se redimensionne en plein mouvement. (Page classique : pas de repère, les unités
   cq valent alors celles de la fenêtre.) */
html.onescreen #screen-contact { container-type: size; }

/* le studio : un bandeau d'un seul tenant */
.crow--studio { border-bottom: 1px solid var(--line); }
.ccard__studio {
  flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 2.9cqh, 38px); padding: clamp(48px, 9vh, 96px) 16px;
}
.ccard__name {
  margin: 0; font-size: clamp(13px, 1.25cqw, 20px); line-height: 1.2; letter-spacing: var(--ls); text-transform: uppercase;
  white-space: nowrap; color: var(--text);
}
.ccard__mail {
  font-size: min(6.2cqw, 11.7cqh); line-height: 1.1; font-weight: 300; letter-spacing: -0.01em; white-space: nowrap; color: var(--text);
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: color 0.3s ease, background-size 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}
.ccard__mail:hover, .ccard__mail:focus-visible { color: var(--accent); background-size: 100% 1px; }
.ccard__links, .cperson__links { list-style: none; margin: 0; padding: 0; }
.ccard__links li, .cperson__links li { margin: 0; padding: 0; }
.ccard__links { display: flex; gap: clamp(16px, 2cqw, 34px); }
/* logos dessinés pour le site : traits fins, dans un carré au filet d'1 px */
.ico {
  flex: none; display: block; box-sizing: content-box; width: 18px; height: 18px; padding: 10px;
  border: 1px solid var(--line); color: var(--text);
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.ico circle { fill: currentColor; stroke-width: 1.8; }
.icol { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--text); }
.icol__v { font-size: 15px; letter-spacing: 0.02em; color: var(--text); transition: color 0.3s ease; }
.icol:hover .ico, .icol:focus-visible .ico { color: #000; background-color: var(--accent); border-color: var(--accent); }
.icol:hover .icol__v, .icol:focus-visible .icol__v { color: var(--accent); }
.icol:focus-visible { outline: 0; }
.icol:focus-visible .ico { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Lucas | Cédric : deux cases, un filet entre elles */
.cperson {
  flex: 1 1 50%; min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2cqw, 36px);
  padding: clamp(32px, 6vh, 64px) 12px;
}
.cperson + .cperson { border-left: 1px solid var(--line); }
/* Portraits en couleur (en noir et blanc sur la page Studio). Toujours affichés bien plus petits que leur taille réelle
   (640 px) : agrandis, ils perdent leur qualité. */
.cperson__pic {
  --pic: min(21.2cqh, 10.5cqw, 220px);
  flex: none; display: block; width: var(--pic); height: var(--pic); object-fit: cover; background: var(--panel);
}
.cperson__name {
  margin: 0 0 clamp(4px, 1cqh, 12px); font-size: clamp(13px, 1.15cqw, 18px); line-height: 1.2; letter-spacing: var(--ls-title);
  text-transform: uppercase; white-space: nowrap; color: var(--text);
}
.cperson__links a {
  display: inline-flex; align-items: center; min-height: clamp(24px, 3.4cqh, 32px); font-size: clamp(13px, 1.05cqw, 16px);
  white-space: nowrap; color: var(--soft); transition: color 0.3s ease;
}
.cperson__links a:hover, .cperson__links a:focus-visible { color: var(--accent); }
.cperson__links a + a { margin-left: 1.2em; }   /* LinkedIn et CV sur la même ligne : les deux fiches gardent 3 lignes */

@media (prefers-reduced-motion: reduce) {
  .ccard__mail, .ico, .icol__v, .cperson__links a { transition: none; }
}

/* ----- mode « un écran » : le studio et le duo se partagent la hauteur restante, la rangée du titre reste compacte ----- */
html.onescreen #screen-contact .contact { flex: 1 0 auto; }
html.onescreen #screen-contact .crow { flex: none; min-height: 0; overflow: hidden; overflow: clip; }
html.onescreen #screen-contact .crow--studio { flex: 54 1 0; min-height: 160px; }
html.onescreen #screen-contact .crow--duo { flex: 46 1 0; min-height: 140px; }
html.onescreen #screen-contact .ccard__studio { padding: 0 16px; }
html.onescreen #screen-contact .cperson { padding: 0 12px; }

/* fenêtre d'ordinateur basse : tout se resserre un peu */
@media (min-width: 900px) {
  @container (max-height: 630px) {
    .ccard__studio { gap: 6px; }
    .ccard__studio .ico { padding: 6px; }
  }
}

/* ----- petits écrans : portrait au-dessus du nom ----- */
@media (max-width: 899px) {
  :root, .screens { --ct-pad: clamp(18px, 3.2vh, 36px); --ct-padx: 24px; }
  .crow--intro { flex-direction: column; }
  .contact-lead { flex: none; border-left: 0; border-top: 1px solid var(--line); }
  .contact-lead p { font-size: clamp(12px, 3.5vw, 16px); line-height: 1.85; letter-spacing: 0.8px; }   /* tient en deux lignes dès 360 px */
  .contact h2 { font-size: clamp(22px, 6.6vw, 40px); }
  html.onescreen #screen-contact .crow--studio { flex: 1 0 auto; min-height: 210px; }
  html.onescreen #screen-contact .crow--duo { flex: none; min-height: 0; }
  .ccard__name { font-size: clamp(13px, 2cqw, 18px); letter-spacing: 2px; }
  .ccard__mail { font-size: min(10.4cqw, 9.5cqh); }
  .ccard__links { gap: 14px; }
  .ico { padding: 9px; }
  .icol { gap: 8px; }
  .icol__v { font-size: 13px; }
  .cperson, html.onescreen #screen-contact .cperson { flex-direction: column; gap: 8px; padding: 24px 6px 10px; text-align: center; }
  .cperson__pic { --pic: clamp(56px, 12.5cqh, 150px); }
  .cperson__name { margin-bottom: 2px; font-size: clamp(14px, 2cqw, 18px); letter-spacing: 0.4px; }
  .cperson__links a { min-height: 36px; font-size: clamp(14px, 2cqw, 17px); }
}
