/* ==========================================================================
   X9000 — feuille de style principale (site statique HTML5 / CSS3)
   ========================================================================== */

:root {
  --accent: #ea5d52;
  --accent-dark: #c9463c;
  --accent-soft: #fdf1f0;
  --ink: #1d1d1d;
  --text: #333;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --dark: #252525;
  --white: #fff;
  --font: "Verdana Pro", Verdana, Geneva, "DejaVu Sans", sans-serif;
  --container: 1180px;
  --gutter: 24px;
  --header-h: 96px;
  --radius: 4px;
  --shadow: 0 2px 18px rgba(0, 0, 0, .08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img, iframe, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}
.topbar { font-size: 11px; text-transform: uppercase; }
.topbar .container { display: flex; justify-content: flex-end; gap: 0; }
.topbar a, .topbar span {
  display: flex; align-items: center; gap: 6px;
  color: var(--ink); padding: 4px 12px; line-height: 1.4;
}
.topbar a + a, .topbar a + span { border-left: 1px solid var(--line); }
.topbar a:hover { color: var(--accent); }
.topbar img { width: 18px; height: 12px; }

.header-main .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding-top: 4px; padding-bottom: 8px;
}
.logo img { width: 190px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink); border-left: 1px solid var(--line);
  position: relative;
}
.main-nav li:first-child a { border-left: 0; }
.main-nav a img { width: 22px; height: 22px; object-fit: contain; }
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero / bandeaux ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  color: var(--white);
  background: #111 center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 70%);
}
.hero .container { position: relative; }
.hero-title {
  color: var(--white);
  font-size: clamp(34px, 6vw, 60px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: .2em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; line-height: 1.4;
  max-width: 720px; margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.page-banner {
  position: relative; min-height: 300px;
  display: flex; align-items: flex-end;
  padding: 60px 0 50px;
  color: var(--white);
  background: #111 center / cover no-repeat;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 100%);
}
.page-banner .container { position: relative; }
.page-banner h1 {
  color: var(--white); margin: 0;
  font-size: clamp(28px, 5vw, 48px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.page-banner p { margin: .5em 0 0; font-size: clamp(16px, 2vw, 21px); max-width: 760px; }
.page-banner .meta { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; margin-bottom: .6em; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 50px 0; }
.section--soft { background: #f7f7f7; }

.section-title {
  color: var(--accent);
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 1em;
}
.section-title--center { text-align: center; }
.lead-title {
  text-align: center; text-transform: uppercase; color: var(--accent);
  font-size: clamp(20px, 3vw, 30px); font-weight: 700; line-height: 1.35;
  margin: 0 auto 1.6em; max-width: 900px;
}
.lead-title small { display: block; font-size: 1.1em; margin-bottom: .3em; }

/* Filet décoratif (trait + point) */
.rule {
  display: block; width: 52px; height: 10px; margin: 0 0 18px;
  background: url("../img/divider.png") left center / contain no-repeat;
}
.rule--center { margin-left: auto; margin-right: auto; }

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.text-justify p { text-align: justify; hyphens: auto; }

.figure { margin: 40px 0; overflow: hidden; border-radius: var(--radius); }
.figure img { width: 100%; max-height: 520px; object-fit: cover; }

/* Encadré "rose" avec liste à chevrons */
.box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 36px 40px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 40px 0;
}
.box-title { color: var(--accent); font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; margin: 0; }
.box-subtitle { color: var(--accent); font-size: 16px; margin: .2em 0 .9em; }

.chevrons { list-style: none; padding: 0; margin: 0; }
.chevrons li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.chevrons li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- Accueil : savoir-faire ---------- */
.skills {
  position: relative; color: var(--white);
  background: #1a1a1a url("../img/bg_section3_home.jpg") center / cover no-repeat;
}
.skills::before { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, .55); }
.skills .container { position: relative; }
.skill-card {
  background: rgba(20, 20, 20, .62);
  backdrop-filter: blur(3px);
  border-top: 3px solid var(--accent);
  padding: 34px 26px 26px;
  text-align: center;
  transition: transform .3s, background .3s;
}
.skill-card:hover { transform: translateY(-6px); background: rgba(20, 20, 20, .8); }
.skill-card img { width: 110px; margin: 0 auto 18px; }
.skill-card h2 { color: var(--white); font-size: 20px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .8em; }
.skill-card ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.5; }
.skill-card li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); }
.skill-card li:first-child { border-top: 0; }

.value { text-align: left; }
.value img { width: 92px; margin-bottom: 14px; }
.value h2 { color: var(--accent); font-size: 21px; font-weight: 700; text-transform: uppercase; margin-bottom: .6em; }
.value p { text-align: justify; hyphens: auto; font-size: 14px; }

/* ---------- Partenaires ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.partner {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.partner:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.partner-logo { height: 90px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 90px; max-width: 220px; width: auto; object-fit: contain; }
.partner h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin: 0; }
.partner p { margin: 0; font-size: 14px; }
.partner--featured { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; border-left: 4px solid var(--accent); }
.partner--featured .partner-logo { flex: 0 0 240px; }

/* ---------- Actualités ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: var(--text);
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); color: var(--text); }
.post-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover figure img { transform: scale(1.05); }
.post-card .post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.post-card h3 { font-size: 16px; margin: .5em 0 1em; color: var(--ink); }
.post-card .more { margin-top: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }

.job {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 26px 30px; border-radius: 0 var(--radius) var(--radius) 0;
}
.job h3 { margin: 0 0 .2em; font-size: 17px; }
.job p { margin: 0; }

/* ---------- Article ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article p { font-size: 15.5px; }
.article .checklist { list-style: none; padding: 0; }
.article .checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.article .checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center;
}
.article h2 { color: var(--accent); font-size: 20px; margin-top: 1.4em; }

.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 70px; }
.post-nav a {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 180px; padding: 30px; color: var(--white);
  background: #222 center / cover no-repeat; overflow: hidden;
}
.post-nav a::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); transition: background .3s; }
.post-nav a:hover::before { background: rgba(234, 93, 82, .8); }
.post-nav a > * { position: relative; }
.post-nav .next { text-align: right; }
.post-nav small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.post-nav strong { font-size: 18px; line-height: 1.35; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 30px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--white);
  padding: 13px 26px; border-radius: 40px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--ghost:hover { background: var(--accent); }

/* ---------- Cloud Hybrid ---------- */
.quote {
  font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--ink);
  border-left: 4px solid var(--accent); padding-left: 22px; margin: 0 0 30px;
}
.highlight {
  color: var(--accent); font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4;
  margin: 50px 0 20px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }

.band {
  position: relative; color: var(--white);
  background: #111 center / cover no-repeat fixed;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.band .container { position: relative; }
.band h2 { color: var(--white); text-align: center; text-transform: uppercase; font-size: clamp(20px, 3vw, 28px); margin-bottom: 1.2em; }
.band .video { max-width: 900px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: stretch; }
.contact-card {
  background: var(--dark) url("../img/bg_footer.jpg") center / cover;
  color: var(--white); padding: 44px; border-radius: var(--radius);
}
.contact-card h2 { color: var(--white); text-transform: uppercase; font-size: 22px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.contact-list a { color: var(--white); }
.contact-list a:hover { color: var(--accent); }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Pages légales ---------- */
.legal { max-width: 900px; margin: 0 auto; }
.legal h2 { color: var(--accent); font-size: 18px; text-transform: uppercase; margin-top: 2em; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; }
.legal .lead { color: var(--ink); }
.legal p, .legal li { font-size: 14.5px; text-align: justify; }

/* ---------- Réalisations ---------- */
.placeholder { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.placeholder p { font-size: 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  color: #ccc; font-size: 14px;
  background: var(--dark) url("../img/bg_footer.jpg") center / cover no-repeat;
}
.footer-main { padding-top: 60px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr; gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 17px; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3em; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-logo img { width: 190px; margin-left: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12px; color: #999; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; background: var(--accent-dark); }

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 10px; font-size: 11px; }
  .main-nav a img { width: 18px; height: 18px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-logo img { margin-left: 0; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-open .main-nav { max-height: 480px; }
  .main-nav ul { flex-direction: column; padding: 6px 0 14px; }
  .main-nav a {
    border-left: 0; border-top: 1px solid var(--line);
    padding: 14px var(--gutter); font-size: 13px;
  }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { background: var(--accent-soft); }
  .site-header { position: sticky; }
  .header-main .container { position: static; min-height: 64px; }
  .header-main { position: relative; }
  .logo img { width: 150px; }

  .cols-2, .cols-3, .split, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 30px; }
  .section { padding: 56px 0; }
  .hero { min-height: 440px; }
  .page-banner { min-height: 220px; }
  .partner--featured { flex-direction: column; align-items: flex-start; }
  .partner--featured .partner-logo { flex: none; }
  .band { background-attachment: scroll; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .topbar .container { justify-content: center; }
  .topbar a, .topbar span { padding: 4px 8px; }
  .cols-4, .posts, .partners { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 30px; }
  .box { padding: 26px 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .contact-card { padding: 30px 24px; }
  .text-justify p, .value p, .legal p, .legal li { text-align: left; }
}

@media print {
  .site-header, .site-footer, .to-top, .nav-toggle { display: none !important; }
  .hero, .page-banner { min-height: 0; color: #000; background: none !important; padding: 20px 0; }
  .hero::before, .page-banner::before { display: none; }
  .page-banner h1, .hero-title { color: #000; text-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
