@import "tailwindcss";

:root {
  --navy: #163f5f;
  --blue: #5d86a7;
  --mist: #a9d4d8;
  --ice: #edf6f6;
  --ink: #153044;
  --paper: #fbfcfc;
  --line: #dbe5e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 252, 252, 0.94);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 88px;
  left: 0;
  padding: 0 5vw;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  justify-self: start;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  color: var(--navy);
  font-size: 23px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand small {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-top: 5px;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  gap: 3px;
  width: 35px;
}

.brand-mark i {
  display: block;
  height: 6px;
}

.brand-mark i:nth-child(1) { background: #afd8db; }
.brand-mark i:nth-child(2) { background: #91aec3; }
.brand-mark i:nth-child(3) { background: #638aaa; }
.brand-mark i:nth-child(4) { background: var(--navy); }

nav {
  display: flex;
  gap: 34px;
}

nav a {
  color: #496273;
  font-size: 14px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--navy);
}

.header-phone {
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
  justify-self: end;
  padding: 13px 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 88px);
}

.hero-copy {
  align-self: center;
  padding: 8vw 5vw;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(48px, 5.3vw, 88px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin-bottom: 32px;
}

h1 span {
  color: var(--blue);
}

.hero-text {
  color: #526b7a;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.65;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-weight: 720;
  justify-content: center;
  min-height: 54px;
  padding: 0 23px;
  transition: 180ms ease;
}

.button-primary {
  background: var(--navy);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0b314d;
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line);
  color: var(--navy);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: white;
  border-color: var(--blue);
}

.hero-proof {
  color: #567181;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 20px;
}

.hero-proof span::before {
  color: var(--blue);
  content: "✓";
  font-weight: 800;
  margin-right: 7px;
}

.hero-visual {
  background:
    linear-gradient(145deg, rgba(15, 52, 77, 0.68), rgba(86, 133, 163, 0.08)),
    url("/projects/hero-centre-ministeriel-sans-croix.png") center / cover no-repeat;
  min-height: 630px;
  overflow: hidden;
  position: relative;
}

.visual-panel {
  border: 2px solid rgba(255, 255, 255, 0.65);
  height: 52%;
  position: absolute;
  top: 12%;
  transform: skewY(-3deg);
  width: 34%;
}

.visual-panel::after {
  background: rgba(255, 255, 255, 0.8);
  content: "";
  height: 100%;
  left: 48%;
  position: absolute;
  width: 2px;
}

.visual-panel-one { left: 13%; }
.visual-panel-two { left: 51%; }

.hero-card {
  background: white;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  left: 7%;
  padding: 24px 28px;
  position: absolute;
}

.hero-card strong {
  color: var(--navy);
  font-size: 18px;
}

.hero-card span {
  color: #67808f;
  font-size: 13px;
  margin-top: 6px;
}

.problem {
  background: var(--navy);
  color: white;
  display: grid;
  gap: 4vw;
  grid-template-columns: 0.65fr 1.35fr 1fr;
  padding: 70px 5vw;
}

.problem .eyebrow {
  color: var(--mist);
}

.problem h2 {
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.problem > p:last-child {
  color: #c8d9e3;
  line-height: 1.75;
}

.insurance {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: auto 1fr 1.2fr;
  padding: 38px 5vw;
}

.insurance-badge {
  align-items: center;
  background: var(--ice);
  border: 1px solid #c9e0e2;
  border-radius: 50%;
  color: var(--navy);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 76px;
  justify-content: center;
  text-transform: uppercase;
  width: 76px;
}

.insurance .eyebrow {
  margin-bottom: 8px;
}

.insurance h2 {
  color: var(--navy);
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.insurance > p {
  color: #5f7582;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.section {
  padding: 110px 5vw;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 5vw;
  grid-template-columns: 1.6fr 0.7fr;
  margin-bottom: 55px;
}

.section-heading h2,
.method h2,
.diagnostic h2 {
  color: var(--navy);
  font-size: clamp(37px, 4vw, 62px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 0;
}

.section-heading > p {
  color: #647b88;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: white;
  min-height: 355px;
  padding: 38px;
}

.service-card > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.service-card h3 {
  color: var(--navy);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin: 80px 0 18px;
}

.service-card p {
  color: #617681;
  line-height: 1.65;
}

.service-card a {
  color: var(--navy);
  display: inline-block;
  font-size: 14px;
  font-weight: 750;
  margin-top: 14px;
}

.rockfon-strip {
  align-items: center;
  background: var(--ice);
  border-left: 5px solid var(--mist);
  display: grid;
  gap: 7vw;
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: 28px;
  padding: 28px 34px;
}

.rockfon-strip > div {
  display: flex;
  flex-direction: column;
}

.rockfon-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rockfon-strip strong {
  color: var(--navy);
  font-size: 22px;
  margin-top: 5px;
}

.rockfon-strip p {
  color: #58717f;
  line-height: 1.6;
  margin: 0;
}

.projects {
  background: #eef3f4;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  background-position: center;
  background-size: cover;
  min-height: 440px;
  overflow: hidden;
  position: relative;
}

.project-card::before {
  background:
    linear-gradient(0deg, rgba(11, 37, 55, 0.88), transparent 58%);
  content: "";
  inset: 0;
  position: absolute;
}

.project-cma { background-image: url("/projects/centre-ministeriel.jpg"); }
.project-france-tv { background-image: url("/projects/france-tv-acoustique.jpg"); }
.project-mission { background-image: url("/projects/mission-locale.jpg"); }
.project-mni { background-image: url("/projects/maison-numerique.jpg"); }

.project-card::after {
  border: 1px solid rgba(255, 255, 255, 0.35);
  content: "";
  inset: 32px;
  position: absolute;
}

.project-number {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  left: 52px;
  position: absolute;
  top: 50px;
  z-index: 2;
}

.project-caption {
  bottom: 48px;
  color: white;
  display: flex;
  flex-direction: column;
  left: 52px;
  position: absolute;
  z-index: 2;
}

.project-caption strong {
  font-size: 28px;
  font-weight: 570;
}

.project-caption span {
  color: #dbe9ee;
  font-size: 13px;
  margin-top: 7px;
}

.method {
  display: grid;
  gap: 8vw;
  grid-template-columns: 0.8fr 1.2fr;
}

.method-intro > p:last-child {
  color: #637b89;
  line-height: 1.7;
  margin-top: 25px;
  max-width: 520px;
}

.method-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.method-steps li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 50px 1fr;
  padding: 28px 0;
}

.method-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.method-steps > li > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.method-steps strong {
  color: var(--navy);
  font-size: 21px;
}

.method-steps p {
  color: #687d88;
  line-height: 1.6;
  margin: 7px 0 0;
}

.diagnostic {
  background: var(--navy);
  color: white;
  display: grid;
  gap: 8vw;
  grid-template-columns: 0.85fr 1.15fr;
}

.diagnostic .eyebrow {
  color: var(--mist);
}

.diagnostic h2 {
  color: white;
}

.diagnostic-copy > p:nth-of-type(2) {
  color: #c7d8e1;
  line-height: 1.7;
  margin-top: 28px;
}

.contact-lines {
  display: grid;
  gap: 1px;
  margin-top: 46px;
}

.contact-lines a {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  padding: 18px 0;
}

.contact-lines small {
  color: var(--mist);
  text-transform: uppercase;
}

.contact-lines strong {
  font-size: 21px;
  margin-top: 5px;
}

.contact-form {
  background: white;
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: clamp(25px, 4vw, 48px);
}

.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.contact-form label {
  color: #4a6372;
  display: grid;
  font-size: 12px;
  font-weight: 750;
  gap: 8px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #f8fafb;
  border: 1px solid #d9e3e7;
  border-radius: 0;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  text-transform: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(93, 134, 167, 0.16);
}

.contact-form .button {
  border: 0;
  margin-top: 3px;
}

.form-note {
  color: #72838d;
  line-height: 1.5;
}

footer {
  align-items: center;
  background: #0f2e44;
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto 1fr;
  padding: 42px 5vw;
}

.brand-footer strong {
  color: white;
}

.brand-footer small,
footer p {
  color: #b5cbd6;
}

footer p {
  font-size: 13px;
  margin: 0;
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-self: end;
  text-align: right;
}

footer > div a {
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .problem,
  .insurance,
  .section-heading,
  .method,
  .diagnostic {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 70px;
    padding-top: 70px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .problem {
    gap: 14px;
  }

  .insurance {
    gap: 18px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 44px;
  }

  .rockfon-strip {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 360px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer > div {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 76px;
    padding: 0 20px;
  }

  .brand small {
    display: none;
  }

  .header-phone {
    background: transparent;
    color: var(--navy);
    padding: 10px 0;
  }

  .hero-copy,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 430px;
  }

  .problem {
    padding: 55px 20px;
  }

  .section {
    padding-bottom: 78px;
    padding-top: 78px;
  }

  .project-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 330px;
  }

  .project-card::after {
    inset: 20px;
  }

  .project-number {
    left: 38px;
    top: 36px;
  }

  .project-caption {
    bottom: 36px;
    left: 38px;
  }

  footer {
    padding: 38px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

.thanks-page {
  align-items: center;
  background: linear-gradient(145deg, #edf6f6, #ffffff);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
}

.thanks-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(21, 48, 68, 0.14);
  max-width: 760px;
  padding: clamp(38px, 7vw, 78px);
  text-align: center;
}

.thanks-check {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 34px;
  height: 72px;
  justify-content: center;
  margin-bottom: 26px;
  width: 72px;
}

.thanks-card .eyebrow {
  margin-bottom: 14px;
}

.thanks-card h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

.thanks-card > p:not(.eyebrow) {
  color: #526b7a;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 590px;
}

.thanks-card .hero-actions {
  justify-content: center;
}

/* Direction visuelle inspirée d'une plaquette d'architecture tertiaire */
.site-header {
  background: #fff;
  grid-template-columns: 1.15fr 1fr 1fr auto;
  height: 104px;
  position: relative;
}

.brand strong {
  font-size: 34px;
}

.brand small {
  font-size: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 48px;
}

.brand-mark i {
  height: 8px;
}

.header-promise,
.header-location,
.header-phone {
  border-left: 1px solid #b9cbd7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 55px;
  padding-left: 28px;
}

.header-promise strong,
.header-location strong {
  color: var(--navy);
  font-size: 14px;
}

.header-promise span,
.header-location span,
.header-phone span {
  color: #61798a;
  font-size: 12px;
  margin-top: 5px;
}

.header-phone {
  background: transparent;
  color: var(--navy);
  padding-right: 0;
}

.header-phone strong {
  font-size: 25px;
}

.hero {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 32%, rgba(255,255,255,.45) 55%, rgba(255,255,255,.05) 70%),
    url("/projects/hero-centre-ministeriel-sans-croix.png") center / cover no-repeat;
  grid-template-columns: 1.8fr .88fr;
  min-height: 710px;
  padding: 40px 5vw 0;
}

.hero-copy {
  align-self: start;
  padding: 58px 4vw 55px 0;
}

.hero h1 {
  font-size: clamp(48px, 4.8vw, 75px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 820px;
}

.hero-text {
  color: #294b63;
  font-size: 18px;
  line-height: 1.55;
  max-width: 670px;
}

.hero-checks {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.hero-checks li {
  color: #24455d;
  font-size: 15px;
  font-weight: 700;
}

.hero-checks li::before {
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  content: "✓";
  display: inline-grid;
  font-size: 11px;
  height: 21px;
  margin-right: 10px;
  place-items: center;
  width: 21px;
}

.hero-proof {
  display: none;
}

.hero-visual {
  align-self: end;
  background: transparent;
  min-height: auto;
  overflow: visible;
}

.quick-form {
  background: linear-gradient(145deg, #719bbc, #4e7c9f);
  border-radius: 9px 9px 0 0;
  box-shadow: 0 18px 45px rgba(14, 48, 72, .24);
  color: white;
  display: grid;
  gap: 12px;
  padding: 30px;
}

.quick-form h2 {
  font-size: 27px;
  margin: 0;
}

.quick-form > p {
  color: #edf6fb;
  line-height: 1.45;
  margin-bottom: 4px;
}

.quick-form label {
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  text-transform: uppercase;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  background: rgba(255,255,255,.96);
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  min-height: 44px;
  padding: 11px 12px;
  text-transform: none;
}

.quick-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.quick-form .button {
  background: #174c70;
  border-radius: 4px;
  margin-top: 4px;
  width: 100%;
}

.quick-form small {
  color: #e1eef5;
  font-size: 10px;
  line-height: 1.4;
}

.problem {
  display: none;
}

.insurance {
  background: linear-gradient(90deg, #123f60, #286687);
  color: white;
  padding-bottom: 30px;
  padding-top: 30px;
}

.insurance h2,
.insurance > p {
  color: white;
}

.insurance .eyebrow {
  color: #b9dce9;
}

.insurance-badge {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.45);
  color: white;
}

.section {
  padding-bottom: 78px;
  padding-top: 78px;
}

.section-heading {
  display: block;
  margin-bottom: 36px;
  text-align: center;
}

.section-heading > div {
  margin: auto;
  max-width: 850px;
}

.section-heading > p {
  margin: 18px auto 0;
  max-width: 630px;
}

.section-heading h2 {
  font-size: clamp(34px, 3vw, 48px);
}

.service-grid {
  background: transparent;
  border: 0;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
}

.service-card {
  border: 1px solid #d7e4ea;
  border-radius: 8px;
  min-height: 310px;
  padding: 25px 22px;
  text-align: center;
}

.service-card > span {
  align-items: center;
  border: 1px solid #92b0c4;
  border-radius: 12px;
  display: inline-flex;
  font-size: 18px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.service-card h3 {
  font-size: 20px;
  margin: 24px 0 14px;
}

.service-card p {
  font-size: 13px;
}

.rockfon-strip {
  border: 0;
  border-radius: 8px;
}

.project-grid {
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.project-card {
  border-radius: 8px;
  min-height: 325px;
}

.project-card::after {
  display: none;
}

.project-number {
  background: #6390b1;
  border-radius: 4px;
  color: white;
  left: 16px;
  padding: 7px 10px;
  top: 16px;
}

.project-caption {
  bottom: 24px;
  left: 24px;
}

.project-caption strong {
  font-size: 21px;
}

.method {
  background: #f1f7f9;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .header-promise,
  .header-location {
    display: none;
  }
  .hero {
    grid-template-columns: 1.25fr .75fr;
  }
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    height: 78px;
  }
  .brand strong {
    font-size: 25px;
  }
  .header-phone span {
    display: none;
  }
  .header-phone strong {
    font-size: 16px;
  }
  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.78)),
      url("/projects/hero-centre-ministeriel-sans-croix.png") center / cover no-repeat;
    grid-template-columns: 1fr;
    padding: 25px 20px 0;
  }
  .hero-copy {
    padding: 35px 0;
  }
  .hero h1 {
    font-size: 44px;
  }
  .quick-form {
    border-radius: 9px 9px 0 0;
  }
  .insurance {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}
