
/* ======================================
   COLLÈGE BRIZEUX — FEUILLE DE STYLE
   ====================================== */

:root {
  --navy: #132e50;
  --blue: #2e679e;
  --blue-light: #eaf3fc;
  --text: #29394d;
  --muted: #6b7b8e;
  --line: #e3eaf2;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(19, 46, 80, 0.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

section {
  scroll-margin-top: 95px;
}

/* BANDEAU DE DÉMONSTRATION */

.demo-banner {
  padding: 7px 15px;
  background: #0d223b;
  color: #dce9f7;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

/* EN-TÊTE */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.brand-name strong {
  color: var(--navy);
  font-size: 15px;
}

.brand-name small {
  color: var(--muted);
  font-size: 10px;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navigation a {
  color: #526176;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.navigation a:hover {
  color: var(--blue);
}

.navigation .nav-button {
  padding: 11px 16px;
  background: var(--navy);
  color: white;
  border-radius: 7px;
}

.navigation .nav-button:hover {
  background: var(--blue);
  color: white;
}

/* BOUTONS */

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 5px 14px rgba(19, 46, 80, 0.12);
}

.button-primary:hover {
  background: var(--blue);
  box-shadow: var(--shadow);
}

.button-secondary {
  background: white;
  color: var(--navy);
  border-color: #dce5ef;
}

.button-secondary:hover {
  border-color: #9db9d5;
}

/* ACCUEIL */

.hero {
  overflow: hidden;
  padding: 75px 0;
  background: linear-gradient(120deg, #f0f6fd, #ffffff 78%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}

.hero-text {
  animation: appear 0.7s ease both;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.1;
}

.hero h1 span,
.section-heading h2 span,
.life-text h2 span {
  color: var(--blue);
}

.hero-text > p {
  max-width: 460px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-caption {
  margin-top: 27px;
  color: var(--muted);
  font-size: 11px;
}

.hero-caption span {
  margin-right: 7px;
  color: var(--blue);
}

/* ILLUSTRATION DU COLLÈGE */

.hero-image {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid white;
  border-radius: 22px;
  background: linear-gradient(150deg, #dcecfb, #eef5fc 55%, #d7e8f5);
  box-shadow: 0 20px 50px rgba(36, 80, 126, 0.12);
  animation: appear 0.8s 0.1s ease both;
}

.sun {
  position: absolute;
  top: 45px;
  right: 60px;
  width: 66px;
  height: 66px;
  background: #f2dba7;
  border-radius: 50%;
}

.school-illustration {
  position: absolute;
  z-index: 2;
  top: 125px;
  left: 50%;
  width: 240px;
  height: 215px;
  transform: translateX(-50%);
}

.roof {
  position: absolute;
  top: -35px;
  left: -5px;
  width: 250px;
  height: 55px;
  background: #294d70;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.school-top {
  position: absolute;
  top: 0;
  left: 15px;
  width: 210px;
  height: 78px;
  padding: 15px 17px;
  background: #f8fbfe;
  border: 3px solid #cbdceb;
  border-bottom: 0;
}

.school-bottom {
  position: absolute;
  top: 76px;
  left: 0;
  width: 240px;
  height: 120px;
  display: flex;
  justify-content: space-between;
  padding: 17px 12px;
  background: white;
  border: 3px solid #cbdceb;
}

.windows {
  display: flex;
  gap: 8px;
}

.windows span {
  display: block;
  width: 26px;
  height: 28px;
  background: #9bc5e7;
  border: 3px solid #e3edf6;
}

.school-top .windows {
  justify-content: space-between;
  margin-bottom: 9px;
}

.school-top .windows span {
  width: 27px;
  height: 23px;
}

.school-door {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 37px;
  height: 65px;
  transform: translateX(-50%);
  background: #315b7f;
  border: 4px solid #e4edf6;
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
}

.school-sign {
  position: absolute;
  z-index: 4;
  top: 88px;
  left: 50%;
  width: 135px;
  padding: 4px;
  transform: translateX(-50%);
  background: #f4dfa9;
  color: #29445d;
  text-align: center;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}

.tree {
  position: absolute;
  z-index: 3;
  bottom: 40px;
  color: #568b6b;
  font-size: 105px;
  line-height: 1;
}

.tree-left {
  left: 17px;
}

.tree-right {
  right: 17px;
}

.image-label {
  position: absolute;
  z-index: 5;
  right: 17px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid white;
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.label-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 8px;
}

.image-label strong,
.image-label small {
  display: block;
}

.image-label strong {
  color: var(--navy);
  font-size: 10px;
}

.image-label small {
  color: var(--muted);
  font-size: 9px;
}

/* BANDEAU DES ENGAGEMENTS */

.highlights {
  border-bottom: 1px solid var(--line);
  background: white;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0;
}

.highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 5px 16px;
  border-right: 1px solid var(--line);
}

.highlight:first-child {
  justify-content: flex-start;
}

.highlight:last-child {
  justify-content: flex-end;
  border-right: 0;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 20px;
}

.highlight strong {
  color: var(--navy);
  font-size: 11px;
}

.highlight p {
  color: var(--muted);
  font-size: 10px;
}

/* SECTIONS */

.section {
  padding: 85px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading .tag {
  margin-bottom: 10px;
}

.section-heading h2,
.life-text h2 {
  color: var(--navy);
  font-size: clamp(31px, 4vw, 43px);
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.section-heading p {
  max-width: 600px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* CARTES DU COLLÈGE */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-blue {
  background: var(--navy);
  border-color: var(--navy);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #9baabd;
  font-size: 11px;
  font-weight: 800;
}

.card-blue .card-number {
  color: #9eb4cc;
}

.card-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 22px;
}

.card-blue .card-icon {
  background: #2a496b;
  color: white;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
}

.card-blue h3 {
  color: white;
}

.card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.card-blue p {
  color: #d1ddeb;
}

.text-link {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

.card-blue .text-link {
  color: #c8e2ff;
}

/* ACTUALITÉS */

.news-section {
  background: #f5f8fc;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  overflow: hidden;
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  background: white;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-picture {
  position: relative;
  height: 165px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.picture-blue {
  background: #dceafa;
}

.picture-green {
  background: #dfeee4;
}

.picture-gold {
  background: #f5e9ce;
}

.picture-symbol {
  color: #426b94;
  font-size: 72px;
}

.picture-green .picture-symbol {
  color: #54866b;
}

.picture-gold .picture-symbol {
  color: #a77b36;
}

.picture-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.news-content {
  padding: 21px;
}

.news-date {
  color: #8492a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.news-content h3 {
  margin: 9px 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
}

.news-content p {
  min-height: 65px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* VIE SCOLAIRE */

.life-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 65px;
}

.life-text .tag {
  margin-bottom: 12px;
}

.life-text p {
  max-width: 400px;
  margin: 18px 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.schedule {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(19, 46, 80, 0.05);
}

.schedule-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.schedule-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 22px;
}

.schedule-heading strong,
.schedule-heading small {
  display: block;
}

.schedule-heading strong {
  color: var(--navy);
  font-size: 13px;
}

.schedule-heading small {
  color: var(--muted);
  font-size: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 65px 1fr;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #edf1f5;
}

.schedule-row strong {
  color: var(--blue);
  font-size: 12px;
}

.schedule-row span {
  color: #465a70;
  font-size: 12px;
}

.schedule-note {
  margin-top: 14px;
  color: #8492a3;
  font-size: 10px;
}

/* CONTACT */

.contact-section {
  padding: 75px 0;
  background: var(--navy);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 65px;
}

.tag-light {
  color: #b6d8f8;
}

.contact-intro h2 {
  color: white;
  font-size: clamp(34px, 4vw, 45px);
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.contact-intro h2 span {
  color: #b6d8f8;
}

.contact-intro p {
  max-width: 350px;
  margin-top: 17px;
  color: #c4d2e1;
  font-size: 13px;
  line-height: 1.9;
}

.contact-form {
  padding: 27px;
  border-radius: 14px;
  background: white;
  color: var(--text);
}

.contact-form label {
  display: block;
  margin: 0 0 6px;
  color: #344b64;
  font-size: 11px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  margin-bottom: 15px;
  padding: 11px 12px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  outline: none;
  background: #fbfcfe;
  color: var(--text);
  font-size: 12px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #5a91c5;
  box-shadow: 0 0 0 3px #e9f2fb;
}

.contact-form textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
}

.form-feedback {
  margin-top: 10px;
  color: #26734d;
  font-size: 11px;
}

/* PIED DE PAGE */

.footer {
  padding-top: 28px;
  background: #0c2139;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 25px;
}

.footer-brand .logo {
  color: var(--navy);
  background: #e4effa;
}

.footer-brand .brand-name strong {
  color: white;
}

.footer-brand .brand-name small {
  color: #aebfd1;
}

.footer-content > p {
  color: #aebfd1;
  font-size: 10px;
  text-align: center;
}

.back-top {
  color: #e4effa;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #91a4b9;
  font-size: 10px;
}

/* ANIMATION */

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLETTES */

@media (max-width: 900px) {
  .header-content {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    gap: 14px;
  }

  .navigation {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero-content {
    gap: 28px;
  }

  .hero-image {
    min-height: 340px;
  }

  .school-illustration {
    transform: translateX(-50%) scale(0.88);
    transform-origin: top center;
  }

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

  .life-grid,
  .contact-grid {
    gap: 32px;
  }
}

/* MOBILES */

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 48px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(39px, 10vw, 52px);
    letter-spacing: -1.5px;
  }

  .hero-text > p {
    font-size: 13px;
  }

  .hero-image {
    min-height: 320px;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .highlight,
  .highlight:first-child,
  .highlight:last-child {
    justify-content: flex-start;
    padding: 12px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .highlight:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 60px 0;
  }

  .cards,
  .news-grid,
  .life-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 23px;
  }

  .news-content p {
    min-height: 0;
  }

  .life-grid,
  .contact-grid {
    gap: 28px;
  }

  .schedule,
  .contact-form {
    padding: 20px;
  }

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

  .navigation {
    gap: 9px 14px;
  }

  .navigation a {
    font-size: 11px;
  }

  .navigation .nav-button {
    padding: 7px 10px;
  }
}

/* PETITS ÉCRANS */

@media (max-width: 390px) {
  .brand-name strong {
    font-size: 13px;
  }

  .brand-name small {
    font-size: 9px;
  }

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

  .hero-buttons .button {
    width: 100%;
  }

  .hero-image {
    min-height: 285px;
  }

  .school-illustration {
    top: 105px;
    transform: translateX(-50%) scale(0.76);
  }

  .tree-left {
    left: 3px;
  }

  .tree-right {
    right: 3px;
  }
}

/* ACCESSIBILITÉ */

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


/* LOGO DU COLLÈGE */
img.logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.footer-brand img.logo {
  width: 52px;
  height: 52px;
}

/* CONTACT PAR E-MAIL */
.contact-email-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 28px;
  border-radius: 14px;
  background: white;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.contact-email-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 25px;
}
.contact-email-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  flex: 1;
}
.contact-email-card strong {
  color: var(--navy);
  font-size: 12px;
}
.contact-email-card a:not(.button) {
  color: var(--blue);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-legal-links a {
  color: #d7e4f2;
  font-size: 10px;
}
.footer-legal-links a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .contact-email-card { padding: 20px; }
  .footer-legal-links { gap: 10px 14px; }
}


/* FORMULAIRE DE CONTACT */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.form-field input,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 145, 218, .16);
}
.contact-form-note {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.6;
}
.contact-submit {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.contact-direct-email a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
@media (max-width: 760px) {
  .contact-form { padding: 20px; }
  .contact-submit { width: 100%; justify-content: center; }
}

/* ESPACE COLLÈGE — CONNEXION */
.space-page {
  min-height: 65vh;
  padding: 70px 0 90px;
  background: linear-gradient(120deg, #f0f6fd, #fff 78%);
}
.space-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  gap: 48px;
  align-items: center;
}
.space-intro h1 {
  color: var(--navy);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 14px 0 16px;
}
.space-intro h1 span { color: var(--blue); }
.space-intro p { color: var(--muted); font-size: 15px; max-width: 440px; }
.space-card {
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.space-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.space-panel[hidden] { display: none; }
.space-panel h2 { color: var(--navy); font-size: 22px; }
.space-panel p { font-size: 14px; color: var(--text); }
.space-panel .button { align-self: flex-start; border: 0; font: inherit; font-size: 13px; font-weight: 700; }
.space-panel .button:disabled { opacity: .6; cursor: wait; }
.space-link {
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.space-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 13px;
}
.space-message[data-kind="error"] { background: #fdecec; color: #9b1c1c; }
.space-message[data-kind="ok"] { background: #e8f7ee; color: #1d6b3a; }
.space-pages { list-style: none; display: grid; gap: 8px; }
.space-pages a {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
.space-pages a:hover { border-color: #9db9d5; background: var(--blue-light); }
.space-pages a::after { content: " →"; color: var(--blue); }
.navigation a[aria-current="page"] { color: var(--blue); }
@media (max-width: 900px) {
  .space-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ÉDITION DU SITE (ADMINISTRATEUR) */
html.cms-pending body { visibility: hidden; }
.cms-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1000;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(19, 46, 80, .35);
  font-size: 12px;
}
.cms-bar-info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.cms-status { color: #c9d8ea; }
.cms-status[data-kind="ok"] { color: #8fe3ad; }
.cms-status[data-kind="error"] { color: #ffb4b4; }
.cms-bar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cms-bar button {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cms-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.cms-bar button:disabled { opacity: .45; cursor: not-allowed; }
.cms-bar button[hidden] { display: none; }
.cms-bar .cms-primary { background: #fff; color: var(--navy); border-color: #fff; }
.cms-bar .cms-primary:hover:not(:disabled) { background: var(--blue-light); }
.cms-editing { padding-bottom: 90px; }
.cms-editing [contenteditable="true"] {
  outline: 1px dashed rgba(46, 103, 158, .45);
  outline-offset: 2px;
  cursor: text;
}
.cms-editing [contenteditable="true"]:hover,
.cms-editing [contenteditable="true"]:focus {
  outline: 2px solid var(--blue);
  background-color: rgba(234, 243, 252, .35);
}
.cms-editing img.cms-image { cursor: pointer; outline: 2px dashed #d5a33b; outline-offset: 3px; }
.cms-editing img.cms-image:hover { outline-style: solid; }
