/* Rimétiers — feuille de style (OMAR, mission RMT-WEB-02, 02/12/2026) */

:root {
  --bleu: #001834;
  --or: #FEC30F;
  --gris: #F3F5F9;
  --texte: #1b2333;
  --blanc: #ffffff;
  --bordure: #dce2e9;
  --rayon: 10px;
  --ombre: 0 8px 28px rgba(0, 24, 52, 0.09);
}

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

html {
  scroll-padding-top: 8rem;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: Arial, "Liberation Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #063b70;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #a25d00;
  outline-offset: 4px;
}

.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--or);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75em;
  color: var(--bleu);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-inline-start: 1.5rem;
}

.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 1000;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--or);
  color: var(--bleu);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip:focus {
  transform: translateY(0);
}

/* En-tête et navigation. Sans JavaScript, les liens restent visibles. */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem max(1rem, calc((100% - 1180px) / 2));
  background: var(--bleu);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: auto;
  height: 48px;
  max-width: min(60vw, 280px);
  object-fit: contain;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a,
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  color: var(--blanc);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.lang:hover {
  color: var(--or);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--or);
  border-radius: 6px;
  background: transparent;
  color: var(--blanc);
  font-weight: 700;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--or);
  color: var(--bleu);
}

.lang {
  flex: 0 0 auto;
}

.site-header > .btn {
  flex: 0 0 auto;
}

/* Boutons. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease,
    border-color 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-gold {
  border-color: var(--or);
  background: var(--or);
  color: var(--bleu);
}

.btn-gold:hover {
  border-color: #e0a900;
  background: #e0a900;
  color: var(--bleu);
}

.btn-outline {
  border-color: var(--bleu);
  background: transparent;
  color: var(--bleu);
}

.btn-outline:hover {
  background: var(--bleu);
  color: var(--blanc);
}

.hero .btn-outline,
.page-hero .btn-outline,
.section-dark .btn-outline {
  border-color: var(--or);
  color: var(--blanc);
}

.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.section-dark .btn-outline:hover {
  background: var(--or);
  color: var(--bleu);
}

/* Héros et sections. */
.hero,
.page-hero {
  background: var(--bleu);
  color: var(--blanc);
}

.hero {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.page-hero {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero h1,
.page-hero h1 {
  max-width: 18ch;
  color: var(--blanc);
}

.hero p,
.page-hero p {
  max-width: 65ch;
}

.hero .slogan,
.page-hero .slogan,
.section-dark .slogan {
  color: var(--or);
}

.slogan {
  color: var(--bleu);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero .btn,
.page-hero .btn {
  margin-block: 0.35rem;
  margin-inline-end: 0.6rem;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section-dark {
  background: var(--bleu);
  color: var(--blanc);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--blanc);
}

.section-dark a:not(.btn) {
  color: var(--or);
}

/* Grilles et cartes. */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.grid > * {
  min-width: 0;
}

.card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--texte);
  box-shadow: var(--ombre);
}

.card h2,
.card h3,
.card h4,
.section-dark .card h2,
.section-dark .card h3,
.section-dark .card h4 {
  color: var(--bleu);
}

.card p {
  color: var(--texte);
}

.card-icon,
.card-number,
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-block-end: 1rem;
  border-radius: 50%;
  background: var(--or);
  color: var(--bleu);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

/* Démarche : étapes comme enfants directs de .steps ; numérotation automatique. */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.steps > * {
  position: relative;
  min-width: 0;
  padding-block: 0 2rem;
  padding-inline-start: 4rem;
  counter-increment: etape;
}

.steps > *::before {
  position: absolute;
  z-index: 1;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--or);
  color: var(--bleu);
  content: counter(etape, decimal-leading-zero);
  font-weight: 700;
  line-height: 1;
}

.steps > *:not(:last-child)::after {
  position: absolute;
  inset-block: 2.75rem 0;
  inset-inline-start: calc(1.375rem - 1px);
  width: 2px;
  background: var(--or);
  content: "";
}

.steps > *:last-child {
  padding-block-end: 0;
}

/* Contact et encadré projet. */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.coord-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coord-list a {
  overflow-wrap: anywhere;
}

.notice {
  margin-block: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-inline-start: 5px solid var(--or);
  border-radius: var(--rayon);
  background: #fff8dc;
  color: var(--texte);
}

.notice h2,
.notice h3,
.section-dark .notice h2,
.section-dark .notice h3 {
  color: var(--bleu);
}

label {
  display: block;
  margin-block: 0 0.35rem;
  font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #758294;
  border-radius: 6px;
  background: var(--blanc);
  color: var(--texte);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Pied de page. */
.site-footer {
  padding-block: 3rem 1.5rem;
  background: var(--bleu);
  color: #d9e0e8;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--blanc);
}

.site-footer a {
  color: var(--or);
}

.site-footer a:hover {
  color: var(--blanc);
}

.site-footer img {
  width: auto;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-block-start: 0.5rem;
}

.site-footer .slogan {
  color: var(--or);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.footer-bottom {
  margin-block-start: 2rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

/* Les propriétés logiques suivent le sens d'écriture du document. */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .site-header,
[dir="rtl"] .main-nav ul {
  direction: rtl;
}

[dir="rtl"] .notice {
  text-align: right;
}

[dir="rtl"] .btn {
  text-align: center;
}

/* Le menu ne devient repliable que lorsque le script est initialisé. */
@media (max-width: 899px) {
  .site-header {
    gap: 0.5rem;
  }

  .js-nav .main-nav {
    flex: 0 0 auto;
    margin-inline-start: auto;
  }

  .js-nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .js-nav .main-nav ul {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    display: none;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem;
    background: var(--bleu);
    border-block-start: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
  }

  .js-nav.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .js-nav .main-nav li,
  .js-nav .main-nav a {
    width: 100%;
  }

  .site-header > .btn {
    padding-inline: 0.75rem;
  }
}

@media (min-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .site-header {
    flex-wrap: nowrap;
  }

  .main-nav ul {
    justify-content: center;
  }

  .main-nav a {
    padding-inline: 0.4rem;
    font-size: 0.9rem;
  }

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

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .steps > * {
    padding-block: 4rem 0;
    padding-inline-start: 0;
  }

  .steps > *:not(:last-child)::after {
    inset-block: calc(1.375rem - 1px) auto;
    inset-inline-start: 2.75rem;
    width: calc(100% - 2.75rem + 1.5rem);
    height: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Typographie allégée (demande du DG : textes plus fins et plus petits). */
body {
  font-size: 0.95rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

h3 {
  font-size: 1.08rem;
}

.hero h1,
.page-hero h1 {
  max-width: 24ch;
}

.slogan {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.btn,
.main-nav a,
.lang,
.nav-toggle {
  font-weight: 600;
}

.btn {
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
}

.card-number {
  font-size: 0.9rem;
  font-weight: 600;
}

.quote {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Ajustements d'intégration (02/12/2026). */
.site-header {
  display: block;
  padding: 0.6rem 0;
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.section-alt {
  background: var(--gris);
}

.actions {
  margin-block-start: 2rem;
}

.narrow {
  max-width: 820px;
}

.quote {
  margin-block-start: 1.5rem;
  padding-inline-start: 1rem;
  border-inline-start: 4px solid var(--or);
  color: var(--bleu);
  font-size: 1.2rem;
  font-weight: 700;
}

.hero {
  background:
    linear-gradient(120deg, rgba(0, 24, 52, 0.96) 55%, rgba(0, 24, 52, 0.82)),
    repeating-linear-gradient(135deg, rgba(254, 195, 15, 0.08) 0 2px, transparent 2px 22px),
    var(--bleu);
  border-block-end: 6px solid var(--or);
}

.page-hero {
  border-block-end: 4px solid var(--or);
}

.steps h2,
.steps h3 {
  margin-block-end: 0.4rem;
  font-size: 1.25rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer h2 {
  font-size: 1.1rem;
}

@media (max-width: 899px) {
  .header-inner > .btn {
    display: none;
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1000px) {
  .hero {
    background:
      url("../images/embleme.png") no-repeat right max(2rem, calc((100% - 1180px) / 2)) center / 360px auto,
      linear-gradient(120deg, rgba(0, 24, 52, 0.96) 55%, rgba(0, 24, 52, 0.82)),
      var(--bleu);
  }
}

/* Diaporama d'accueil et bandeaux photo. */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: center;
  background: var(--bleu);
}

.hero-slider .slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1200ms ease, transform 7000ms ease-out;
}

.slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 24, 52, 0.92) 0%, rgba(0, 24, 52, 0.72) 45%, rgba(0, 24, 52, 0.25) 100%);
  content: "";
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide-route { background-image: url("../images/route.webp"); }
.slide-terrassement { background-image: url("../images/terrassement.webp"); }
.slide-batiment { background-image: url("../images/batiment.webp"); }

.hero-content {
  position: relative;
  z-index: 2;
}

.slider-dots {
  display: flex;
  gap: 0.6rem;
  margin-block-start: 2rem;
}

.dot {
  width: 2.2rem;
  height: 0.3rem;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}

.dot.is-active {
  background: var(--or);
}

.illus-note {
  position: absolute;
  z-index: 2;
  inset-block-end: 0.6rem;
  inset-inline-end: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

@media (min-width: 1000px) {
  .hero.hero-slider {
    background: var(--bleu);
  }
}

.page-hero-photo {
  position: relative;
  background-position: center;
  background-size: cover;
}

.page-hero-photo::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 24, 52, 0.94), rgba(0, 24, 52, 0.7));
  content: "";
}

.page-hero-photo .container {
  position: relative;
}

.ph-route { background-image: url("../images/route.webp"); }
.ph-terrassement { background-image: url("../images/terrassement.webp"); }
.ph-batiment { background-image: url("../images/batiment.webp"); }

.video-wrap {
  overflow: hidden;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  background: var(--bleu);
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transform: none;
    transition: opacity 300ms ease;
  }
}
