/* ==========================================================================
   MMSAT Rouen — reproduction fidèle du site mmsat-rouen.com
   Polices : Be Vietnam Pro (titres) · Nunito Sans (texte)
   Couleurs : orange #FD9800 · navy #0F172A · royal #243C7B · slate #454F5E
   ========================================================================== */

:root {
  --orange:      #fd9800;
  --orange-dark: #e98c00;
  --navy:        #0f172a;   /* titres foncés + titres du footer */
  --royal:       #243c7b;   /* bleu des blocs de marque (hero, domaines) */
  --slate:       #454f5e;   /* texte courant + menu inactif */
  --white:       #ffffff;
  --line:        #e7e7e7;
  --black:       #0a0a0a;   /* barre copyright */

  --font-head: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --radius: 6px;
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
strong { font-weight: 700; color: var(--navy); }

/* ----- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.text-center { text-align: center; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 13px 30px; border-radius: 4px; border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  line-height: 1.2; text-align: center;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-lg { padding: 16px 46px; font-size: 1.1rem; }

/* ----- Header ----------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand { flex-shrink: 0; }
.brand img { height: 74px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; margin: 0 auto; }
.main-nav a {
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  color: var(--slate); transition: color .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.main-nav .nav-contact-mobile { display: none; }
.header-contact {
  flex-shrink: 0; font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  color: #fff; background: var(--orange); padding: 11px 24px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(253,152,0,.28);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.header-contact:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(253,152,0,.36); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-inner { min-height: 76px; }
  .brand img { height: 58px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 8px;
  }
  .nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav .nav-contact-mobile { display: block; }
  .header-contact { display: none; }
  .site-header { position: relative; }
}

/* ----- Hero (image pleine largeur) ------------------------------------- */
.hero { background: var(--white); }
.hero img { width: 100%; height: auto; display: block; }

/* ----- Split sections (image + texte) ---------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.split-body h2 { margin-bottom: 20px; }
.split-body p { margin-bottom: 16px; }

.h-orange { color: var(--orange); font-size: clamp(1.6rem, 3.4vw, 2rem); }
.h-navy   { color: var(--navy);   font-size: clamp(1.9rem, 4vw, 3rem); }
.h-royal  { color: var(--royal);  font-size: clamp(1.9rem, 4vw, 3rem); }

.lead { font-size: 1.15rem; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-media { order: -1; }
}

/* ----- Centered image / banner sections -------------------------------- */
.band-center { text-align: center; }
.band-center h2 { margin-bottom: 40px; }
.band-center .h-orange { font-size: clamp(1.9rem, 4vw, 3rem); }
.band-center .h-orange, .band-center .h-royal { max-width: 1000px; margin-inline: auto; }
.band-img { max-width: 1120px; margin-inline: auto; }
.band-img img { width: 100%; border-radius: 10px; }

/* video */
.video-wrap { max-width: 1120px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(15,23,42,.18); }
.video-wrap video { width: 100%; display: block; background: #000; }

/* ----- CONTACT band (photo salle + bouton) ----------------------------- */
.contact-band {
  position: relative; min-height: 360px;
  display: grid; place-items: center;
  background-size: cover; background-position: center;
  text-align: center;
}
.contact-band::before { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.28); }
.contact-band .btn { position: relative; z-index: 1; }

/* ----- Footer (moderne, fond bleu foncé) -------------------------------- */
.site-footer { background: #14224a; color: #b9c6e2; padding-top: clamp(48px, 6vw, 68px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.5fr; gap: 44px; padding-bottom: 44px; align-items: start; }

.footer-logos { background: #fff; border-radius: 16px; padding: 18px 22px; display: inline-flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-logos img { height: 56px; width: auto; display: block; }
.footer-logos .logo-mms { height: 60px; }
.footer-brand p { color: #93a4c7; font-size: .95rem; max-width: 320px; margin: 0; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; color: #fff; }

.footer-col h4 { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #9db0d8; font-size: .96rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: #9db0d8; font-size: .96rem; }
.footer-contact svg { width: 19px; height: 19px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.footer-contact strong { color: #fff; font-weight: 700; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: #7e90b5; }
.footer-bottom a { color: #9db0d8; transition: color .2s ease; }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom .fb-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ----- Page hero (pages internes) -------------------------------------- */
.page-title { background: var(--white); padding: clamp(40px, 6vw, 64px) 0 8px; text-align: center; }
.page-title h1 { color: var(--orange); font-size: clamp(2rem, 5vw, 3rem); }
.page-title .crumb { color: var(--slate); font-size: .95rem; margin-top: 10px; }
.page-title .crumb a:hover { color: var(--orange); }

/* ----- Prose (pages internes) ------------------------------------------ */
.prose h2 { color: var(--navy); font-size: 1.7rem; margin: 36px 0 14px; }
.prose h2.h-orange { color: var(--orange); }
.prose h3 { color: var(--royal); font-size: 1.3rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul.list { display: grid; gap: 10px; margin: 8px 0 22px; }
.prose ul.list li { position: relative; padding-left: 26px; }
.prose ul.list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.narrow { max-width: 820px; margin-inline: auto; }

/* ----- Page A.P.A ------------------------------------------------------- */
.apa-section { text-align: center; }
.apa-h1 { color: var(--orange); font-size: clamp(2.1rem, 5vw, 4rem); margin-bottom: 30px; }
.apa-prose { max-width: 860px; margin-inline: auto; text-align: justify; }
.apa-prose p { margin-bottom: 16px; }
.apa-prose p:last-child { margin-bottom: 0; }

.apa-benefit { align-items: center; }
.apa-benefit + .apa-benefit { margin-top: clamp(48px, 7vw, 88px); }
.apa-num { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; letter-spacing: .12em; margin-bottom: 12px; }
.apa-benefit .split-body h2 { color: var(--orange); font-size: clamp(1.55rem, 3vw, 2.3rem); margin: 0 0 18px; }
.apa-benefit .split-body p { text-align: justify; margin: 0; }
/* Photos en fond avec effet parallax : l'image reste fixe pendant que le texte
   défile par-dessus (reproduit background-attachment: fixed du site d'origine). */
.apa-photo {
  border-radius: 8px;
  min-height: clamp(420px, 44vw, 560px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 820px) {
  /* background-attachment: fixed n'est pas fiable sur mobile → défilement normal */
  .apa-photo { min-height: 300px; background-attachment: scroll; }
}
/* Sur petit écran, le texte justifié laisse de gros trous → aligné à gauche */
@media (max-width: 640px) {
  .apa-prose, .apa-benefit .split-body p, .about-row .split-body p { text-align: left; }
}

/* ----- Page À propos ---------------------------------------------------- */
.about-h1 { color: var(--orange); text-align: center; font-size: clamp(2.1rem, 5vw, 4rem); margin-bottom: clamp(30px, 5vw, 52px); }
.about-row { align-items: center; }
.about-row + .about-row { margin-top: clamp(44px, 6vw, 80px); }
.about-row .split-body h3 { color: var(--navy); font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 0 0 16px; }
.about-row .split-body p { text-align: justify; margin: 0 0 14px; }
.about-row .split-body p:last-child { margin-bottom: 0; }
.about-row .split-media img { width: 100%; height: clamp(320px, 40vw, 440px); object-fit: cover; border-radius: 8px; }
@media (max-width: 820px) { .about-row .split-media img { height: 300px; } }

.partners-h2 { color: var(--orange); text-align: center; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 40px; }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--orange); border: 1px solid var(--orange); border-radius: 12px; overflow: hidden; }
.partner-cell { background: #fff; padding: 34px 22px; display: flex; flex-direction: column; align-items: center; gap: 20px; min-height: 240px; text-align: center; }
.partner-cell h3 { color: var(--orange); font-size: clamp(1.15rem, 1.9vw, 1.55rem); margin: 0; }
.partner-cell .plogo { flex: 1; display: grid; place-items: center; }
.partner-cell .plogo img { max-height: 118px; max-width: 82%; width: auto; object-fit: contain; }
.partner-cell .prule { width: 72%; height: 2px; background: var(--orange); border-radius: 2px; }
@media (max-width: 820px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-cell.empty { display: none; }
  .partner-cell { min-height: 0; }
}

/* ----- Cards (tarifs, bénéfices) — style sobre --------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; }
.card p { margin: 0; }

/* pricing (tarifs) — cartes sobres comme l'original */
.tarif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tarif-card { border: 2px solid var(--orange); border-radius: 16px; padding: 40px 38px 52px; min-height: 220px; }
.tarif-price { font-family: var(--font-head); font-weight: 700; color: var(--orange); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; margin-bottom: 24px; }
.tarif-label { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.2rem; margin: 0; }
.tarif-note { margin-top: 40px; color: var(--slate); font-size: .98rem; }
@media (max-width: 820px) { .tarif-grid { grid-template-columns: 1fr; } }

/* ----- Contact form ----------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; font-size: .96rem; }
.form-alert--ok { background: #e9f7ec; border: 1px solid #b6e3c0; color: #1c7a37; }
.form-alert--err { background: #fdecec; border: 1px solid #f3bcbc; color: #b02a2a; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 4px; background: #fbfbfb;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(253,152,0,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--slate); margin-bottom: 20px; }
.form-consent input { margin-top: 4px; accent-color: var(--orange); flex-shrink: 0; }
.info-block h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.info-block h4 { color: var(--navy); font-size: 1.15rem; margin: 20px 0 4px; }
.info-block p { margin-bottom: 2px; }
.info-block a:hover { color: var(--orange); }
.info-map { width: 100%; height: 230px; border: 0; border-radius: var(--radius); margin-top: 14px; }
