/* ============================================================
   DOMA ARCHITECTURE — feuille de style unique
   Minimalisme éditorial : blanc, typographie, photos.
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-grey: #6b6b6b;
  --color-line: #e6e6e6;
  --color-terracotta: #7a3b2e;
  --font: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1400px;
  --gutter: 40px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.6;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* ---------- Accessibilité : masqué visuellement ---------- */

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

/* ---------- Conteneurs ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--color-bg);
  border-bottom-color: var(--color-line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.logo:hover {
  opacity: 1;
}

.logo-line1 {
  font-family: "Montserrat", "Avenir Next", "Avenir", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

.logo-line2 {
  font-size: 13px;
  color: var(--color-grey);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
}

.main-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--color-grey);
}

.lang-toggle .lang {
  font-size: 15px;
  color: var(--color-grey);
  transition: opacity 0.3s ease;
}

.lang-toggle .lang:hover {
  opacity: 0.6;
}

.lang-toggle .lang.is-active {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Burger (mobile) */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  z-index: 110;
}

.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Pages sans hero : espace sous le header ---------- */

.page-main {
  padding-top: 120px;
  min-height: 60vh;
}

/* ---------- Hero plein écran (page d'accueil) ---------- */

.page-main.has-hero {
  padding-top: 0;
}

.hero-cover {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #2a231e;
}

.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 11, 8, 0.34) 0%, rgba(15, 11, 8, 0) 20%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.04) 100%);
}

/* Burger foncé quand le menu mobile est ouvert (par-dessus le panneau blanc) */
.site-header.hero-over:not(.scrolled) .burger.open span {
  background: var(--color-text);
}

.hero-cover-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - clamp(330px, 42vh, 460px));
  z-index: 2;
  width: 100%;
}

.hero-cover-title {
  color: #fff;
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  max-width: 34ch;
  text-shadow: 0 1px 40px rgba(0, 0, 0, 0.35);
}

.hero-cover-sub {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.5;
  text-align: left;
  hyphens: none;
}

.hero-more-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 30px;
}

.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 17px;
  transition: opacity 0.25s ease;
}

.hero-more::after {
  content: "\203A";
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}

.hero-more:hover {
  opacity: 0.7;
}

.hero-more:hover::after {
  transform: translate(3px, -1px);
}

/* Indicateur de scroll : fine ligne verticale qui « coule » */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45));
}

.scroll-hint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  animation: trickle 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes trickle {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  46% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint::after {
    animation: none;
  }
}

.hero-cover + .container {
  padding-top: clamp(60px, 9vh, 110px);
}

/* Header clair par-dessus le hero (avant le scroll) — le logo reste terracotta */
.site-header.hero-over:not(.scrolled) .logo-line2 {
  color: rgba(255, 255, 255, 0.8);
}

.site-header.hero-over:not(.scrolled) .burger span {
  background: #fff;
}

@media (min-width: 769px) {
  .site-header.hero-over:not(.scrolled) .main-nav a,
  .site-header.hero-over:not(.scrolled) .lang-toggle,
  .site-header.hero-over:not(.scrolled) .lang-toggle .lang {
    color: #fff;
  }
}

/* ---------- Titres ---------- */

.page-title {
  font-family: "Montserrat", var(--font);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 28px;
  text-transform: lowercase;
  color: var(--color-terracotta);
}

.section-title {
  font-family: "Montserrat", var(--font);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-terracotta);
}

/* ---------- Intro / blocs de texte centrés ---------- */

.intro {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 40px;
}

.intro p + p,
.text-block p + p {
  margin-top: 24px;
}

.text-block {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 48px;
}

/* Note isolée, encadrée de deux traits, police fine */
.note-consultation {
  max-width: 720px;
  margin: 8px auto 56px;
  padding: 26px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
  font-weight: 300;
  font-size: 15px;
  color: var(--color-grey);
}

/* ---------- Grille de projets (index) ---------- */

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding-bottom: 100px;
}

.project-head + .projects-grid {
  margin-top: 40px;
}

.project-card {
  display: block;
  flex: 0 1 calc((100% - 80px) / 3);
}

.project-card:hover {
  opacity: 1;
}

.project-card figure {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.project-card:hover img {
  opacity: 0.85;
}

/* Dessins au trait : montrer l'image entière sur fond blanc */
.project-card img.img-contain {
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-line);
}

.project-card figcaption {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-top: 18px;
}

/* Sous-titre de carte : plus petit, sans gras */
.project-card .card-subtitle {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 4px;
}

/* ---------- Cartes « intentions » (titre superposé) ---------- */

.intent-card {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.intent-card figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #e6e1da;
}

.intent-card figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intent-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.03) 30%, rgba(15, 11, 8, 0.72) 100%);
}

.intent-card:hover {
  transform: translateY(-4px);
}

.intent-card:hover figure img {
  transform: scale(1.05);
  opacity: 1;
}

.intent-card .intent-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 26px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intent-card .intent-title {
  color: #fff;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.16;
}

.intent-card .intent-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.intent-card .intent-read::after {
  content: "\203A";
  font-size: 18px;
  transition: transform 0.3s ease;
}

.intent-card:hover .intent-read::after {
  transform: translateX(3px);
}

/* ---------- Page projet ---------- */

.hero {
  height: 90vh;
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-intro {
  padding: 90px 0 40px;
  text-align: center;
}

.project-section {
  margin: 90px 0;
}

/* Section suivant directement un titre de page : même espace que l'intro */
.page-title + .project-section {
  margin-top: 0;
}

.image-grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-3 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-2 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.full-img {
  margin-top: 24px;
}

.full-img img {
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
}

/* Dessins et planches : afficher l'image entière, sans recadrage */
.full-img img.img-contain {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.full-img + .full-img {
  margin-top: 40px;
}

/* Photo verticale : afficher entière, hauteur limitée, centrée */
.full-img img.photo-tall {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: auto;
  margin: 0 auto;
  object-fit: contain;
}

.project-credits {
  font-size: 14px;
  font-style: italic;
  color: var(--color-grey);
  margin-top: 32px;
}

/* ---------- En-tête de projet à deux colonnes (fiche + texte) ---------- */

.project-head {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
}

.project-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  text-align: left;
  margin-bottom: 14px;
}

.project-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  border: 1px solid var(--color-terracotta);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-terracotta);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 8px;
}

.project-title {
  font-family: "Montserrat", var(--font);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 36px;
}

.project-facts {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fact-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.fact-value {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--color-text);
}

.project-body {
  text-align: justify;
  hyphens: auto;
  padding-right: 6px;
}

.project-body p + p {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .project-head {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Navigation entre projets */

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--color-line);
  padding: 40px 0 80px;
  font-size: 15px;
}

.project-nav .next {
  margin-left: auto;
  text-align: right;
}

/* ---------- Intentions architecturales : billet dépliable ---------- */

.post {
  margin-bottom: 100px;
}

.post-trigger {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.post-trigger img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.post-trigger:hover img {
  opacity: 0.85;
}

.post-trigger figcaption {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-date {
  font-size: 14px;
  color: var(--color-grey);
}

.post-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}

.post-hint {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s ease;
}

.post-trigger:hover .post-hint {
  opacity: 0.6;
}

.post-body {
  margin-top: 40px;
  text-align: left;
  animation: post-reveal 0.6s ease;
}

.post-body p + p {
  margin-top: 24px;
}

.post-body[hidden] {
  display: none;
}

@keyframes post-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-body {
    animation: none;
  }
}

.press-section {
  margin-top: 40px;
}

/* ---------- Presse ---------- */

.press-list {
  max-width: 900px;
  margin: 0 auto 100px;
}

.press-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line);
}

.press-item:first-child {
  border-top: 1px solid var(--color-line);
}

.press-media {
  font-weight: 700;
}

.press-title {
  font-weight: 400;
}

.press-year {
  color: var(--color-grey);
  font-size: 14px;
}

.press-link {
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- Actualités ---------- */

.news-list {
  max-width: 1000px;
  margin: 0 auto 100px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.news-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.news-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-date {
  font-size: 14px;
  color: var(--color-grey);
  margin-bottom: 8px;
}

.news-item h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* ---------- L'agence ---------- */

.agency-portrait {
  max-width: 900px;
  margin: 0 auto 60px;
}

.agency-portrait img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.agency-text {
  margin-bottom: 100px;
}

.approach {
  padding-bottom: 100px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.approach-grid h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.approach-grid p {
  font-size: 15px;
  color: var(--color-grey);
  text-align: center;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto 100px;
}

.contact-info h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info .info-block {
  margin-bottom: 32px;
}

.contact-info p {
  color: var(--color-grey);
}

.contact-info a {
  color: var(--color-text);
}

.contact-channel-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.channel-btn {
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-grey);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.channel-btn:hover {
  color: var(--color-text);
}

.channel-btn.is-active {
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.contact-form.is-hidden {
  display: none;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 20px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-text);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  margin-top: 32px;
  padding: 14px 48px;
  font-size: 15px;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.form-confirmation {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--color-line);
  text-align: center;
}

.form-confirmation.visible {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--color-grey);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Visionneuse plein écran ---------- */

.zoomable {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text);
  padding: 16px;
  transition: opacity 0.3s ease;
}

.lightbox button:hover {
  opacity: 0.5;
}

.lightbox-close {
  top: 24px;
  right: 32px;
  font-size: 36px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-grey);
}

@media (max-width: 768px) {
  .lightbox-img {
    max-width: 100vw;
    max-height: 80vh;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* ---------- Apparition au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablette */
@media (max-width: 1024px) {
  .project-card {
    flex-basis: calc((100% - 40px) / 2);
  }

  .approach-grid {
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .main-nav a {
    font-size: 20px;
  }

  .page-main {
    padding-top: 130px;
  }

  .hero {
    height: 70vh;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .press-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Petit mobile */
@media (max-width: 640px) {
  .project-card {
    flex-basis: 100%;
  }
}

/* ---------- Contact simplifié (page contact) ---------- */

.contact-single {
  max-width: 600px;
  margin: 0 auto 100px;
}

.contact-widget-hint {
  color: var(--color-grey);
  margin-top: 8px;
}

/* ---------- Widget de chat flottant (bouton + modale de contact) ---------- */

.chat-widget-button {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-terracotta);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 300;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-widget-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.chat-widget-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3fb950;
  border: 2px solid var(--color-bg);
}

.chat-widget-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(0, 0, 0, 0.4);
  align-items: flex-end;
  justify-content: flex-end;
  padding: 28px;
}

.chat-widget-overlay.open {
  display: flex;
}

.chat-widget-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--color-bg);
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.chat-widget-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  line-height: 1;
  color: var(--color-grey);
  transition: opacity 0.3s ease;
}

.chat-widget-close:hover {
  opacity: 0.5;
}

.chat-widget-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .chat-widget-button {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .chat-widget-overlay {
    padding: 0;
    align-items: flex-end;
    justify-content: center;
  }

  .chat-widget-modal {
    max-width: 100%;
    max-height: 90vh;
  }
}
