/* Accueil : ouverture avec le logo en grand, savoir-faire, fonderie, méthode, fondations, contact. */

/* Ouverture */
.hero { background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 3rem; align-items: center; padding-block: 4.5rem 5rem; }
.hero .kicker { color: var(--hero-kicker); }
.hero h1 { font-size: var(--step-4); font-weight: 300; margin-top: 1rem; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; font-weight: 500; background: var(--hero-em); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 1.4rem; font-size: var(--step-1); color: var(--hero-soft); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-ghost { color: var(--hero-ghost); border-color: color-mix(in srgb, var(--hero-ghost) 40%, transparent); }
.btn-ghost:hover { border-color: var(--hero-ghost); }
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 2.4rem 0 0; color: var(--hero-soft); list-style: none; padding: 0; }
.facts li { display: flex; align-items: center; gap: 0.5rem; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--cyan); transform: skewX(-12deg); }

.emblem { position: relative; display: grid; justify-items: center; gap: 1.6rem; z-index: 0; }
.emblem::before { content: ""; position: absolute; inset: -10% -14% 0; background: radial-gradient(closest-side, var(--hero-glow), transparent 72%); z-index: -1; }
.emblem img { width: 100%; max-width: 540px; height: auto; display: block; filter: drop-shadow(0 22px 36px rgba(5, 34, 63, 0.22)); }
.lockup { display: flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(0.8rem, 0.6rem + 0.7vw, 1.1rem); letter-spacing: 0.42em; text-transform: uppercase; color: var(--hero-ink); padding-left: 0.42em; text-align: center; }
.lockup::before, .lockup::after { content: ""; width: 3px; height: 1.6em; background: linear-gradient(var(--cyan), #00a9c6); transform: skewX(-12deg); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .emblem img { animation: monter 900ms cubic-bezier(.2,.7,.2,1) both; }
  .lockup { animation: monter 900ms 200ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes monter { from { transform: translateY(14px); } }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.5rem 3.5rem; }
  .emblem { order: -1; }
  .emblem img { max-width: 360px; }
}
@media (max-width: 420px) {
  .lockup { letter-spacing: 0.24em; gap: 0.6rem; }
}

/* Sections */
section.block { padding-block: 5rem; background: var(--sky); }
.head { display: grid; gap: 0.8rem; max-width: 46rem; margin-bottom: 2.75rem; }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--ink-soft); font-size: var(--step-1); }
@media (max-width: 600px) { section.block { padding-block: 3.5rem; } }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--card-shadow); padding: 1.5rem; display: grid; gap: 0.7rem; align-content: start; }
.skill .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.skill h3 { font-size: var(--step-2); }
.skill p { color: var(--ink-soft); }
.skill .mono { color: var(--accent); text-align: right; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .skills { grid-template-columns: 1fr; } }

/* Bande marine : la fonderie */
section.block.foundry { background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 70%); color: var(--on-navy); position: relative; overflow: hidden; }
.foundry::before, .foundry::after { content: ""; position: absolute; border-radius: 28px; pointer-events: none; }
.foundry::before { width: 360px; height: 300px; right: -200px; top: -120px; background: linear-gradient(160deg, rgba(79, 183, 220, 0.35), rgba(0, 148, 245, 0.08)); transform: rotate(10deg); }
.foundry::after { width: 360px; height: 300px; right: -150px; top: -60px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(5, 34, 63, 0.3); transform: rotate(5deg); }
.foundry .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; }
.foundry .kicker { color: var(--cyan-lt); }
.foundry h2 { font-size: var(--step-3); font-weight: 300; margin-top: 0.8rem; }
.foundry blockquote { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.45; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.trio div { display: grid; gap: 0.35rem; align-content: start; padding-left: 1rem; border-left: 3px solid var(--cyan); }
.trio h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--step-0); }
.trio p { color: var(--on-navy-soft); font-size: 0.95rem; }
@media (max-width: 900px) { .foundry .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 640px) { .trio { grid-template-columns: 1fr; } }

/* Méthode */
section.block.method { background: var(--sky-alt); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: etape; }
.steps li { counter-increment: etape; display: grid; gap: 0.5rem; align-content: start; position: relative; padding-top: 4.4rem; }
.steps li::before { content: counter(etape, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; background: var(--hero-em); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li::after { content: ""; position: absolute; top: 3.4rem; left: 0; right: -1.5rem; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--line)); }
.steps li:last-child::after { right: 0; }
.steps h3 { font-size: var(--step-2); }
.steps p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } .steps li::after { right: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Fiche technique : seul élément qui défile en largeur sur un petit écran */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--card-shadow); }
.spec { width: 100%; border-collapse: collapse; min-width: 36rem; }
.spec caption { text-align: left; padding: 0.9rem 1.2rem; font-family: var(--font-mono); font-size: var(--step--1); color: var(--on-navy-soft); background: var(--navy); caption-side: top; }
.spec th, .spec td { text-align: left; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tbody tr:last-child td, .spec tbody tr:last-child th { border-bottom: 0; }
.spec thead th { font-family: var(--font-display); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-navy); background: var(--navy-mid); border-bottom: 0; }
.spec tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 35%, var(--surface)); }
.spec tbody th { font-weight: 600; white-space: nowrap; }
.spec td.mono { color: var(--accent); white-space: nowrap; }
.spec td.check { color: var(--ok); white-space: nowrap; font-family: var(--font-mono); font-size: var(--step--1); }

.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 2.5rem; }
.sectors > span:first-child { color: var(--ink-soft); margin-right: 0.4rem; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.9rem; }

/* Contact */
section.block.contact { background: var(--navy); color: var(--on-navy); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; }
.contact .kicker { color: var(--cyan-lt); }
.contact h2 { font-size: var(--step-3); font-weight: 300; margin-top: 0.8rem; }
.contact .lead { color: var(--on-navy-soft); margin-top: 1rem; font-size: var(--step-1); }
.mail { margin-top: 2rem; display: grid; gap: 0.5rem; }
.mail .label { color: var(--on-navy-soft); font-size: 0.9rem; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.mail-row code { font-size: 1.05rem; user-select: all; color: #fff; overflow-wrap: anywhere; }
.copy { font: 500 0.8rem/1 var(--font-mono); background: transparent; color: var(--on-navy); border: 1px solid rgba(241, 246, 251, 0.35); border-radius: 6px; padding: 0 0.9rem; cursor: pointer; min-height: 44px; }
#formulaire-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 1.5rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; align-content: start; }
.field.full, .notice.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--on-navy-soft); }
.field input, .field textarea { font: inherit; color: #fff; background: rgba(2, 12, 26, 0.45); border: 1px solid rgba(169, 193, 218, 0.45); border-radius: 8px; padding: 0.75rem 0.85rem; width: 100%; min-height: 48px; color-scheme: dark; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.field.en-erreur input, .field.en-erreur textarea { border-color: #ff8a80; }
.field ul, .notice ul { list-style: none; margin: 0; padding: 0; color: #ffb3ab; font-size: 0.9rem; }
.field small { color: var(--on-navy-soft); font-size: 0.85rem; }
.field.calcul input { max-width: 8rem; }
#formulaire-contact .btn { justify-self: start; align-self: end; }
.notice { border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.95rem; }
.notice-ok { background: rgba(76, 207, 142, 0.14); border: 1px solid rgba(76, 207, 142, 0.5); color: #c9f5dd; }
.notice-erreur { background: rgba(255, 138, 128, 0.12); border: 1px solid rgba(255, 138, 128, 0.5); color: #ffd3ce; }
.notice-erreur ul { color: inherit; }
/* Champ piège : hors de l'écran pour une personne, présent pour un robot */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 520px) { #formulaire-contact { grid-template-columns: 1fr; padding: 1.1rem; } }
