/* ================================================================
   pages.css — Pages statiques : contact, à propos, mentions légales
   ================================================================ */

:root {
  --serif: 'Instrument Serif', Georgia, serif;
}

/* Conteneur centré pour les pages étroites */
.page-content {
  max-width: 680px;
  margin: 0 auto;
}

.page-content-wide {
  max-width: 860px;
}

.page-content-sm {
  max-width: 560px;
  margin: 0 auto;
}

/* Cards de contenu */
.page-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  cursor: default;
}

.page-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.page-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
}

.page-card p + p {
  margin-top: 12px;
}

.page-card a {
  color: var(--accent);
  text-decoration: none;
}

.page-card a:hover {
  text-decoration: underline;
}

/* Page statique premium */
.page-hero-static {
  background:
    radial-gradient(circle at 15% 20%, rgba(30,100,152,.26), transparent 28%),
    linear-gradient(135deg, #0B1018 0%, #121A24 58%, #0D1117 100%);
  padding: 54px 80px 50px;
  text-align: center;
}

.page-kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: #93c5fd;
  margin-bottom: 14px;
}

.page-hero-static h1 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: #f1f5f9;
}

.page-hero-static p {
  max-width: 610px;
  margin: 0 auto;
  color: #dbe5f1;
  font-size: 15px;
  line-height: 1.65;
}

.static-section {
  padding: 42px 40px;
}

.static-section-main {
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(26,22,18,.08) inset, 0 -2px 12px rgba(26,22,18,.08) inset;
}

.static-section-light {
  background: rgba(251,249,246,.98);
  border-top: 1px solid rgba(26,22,18,.08);
  border-bottom: 1px solid rgba(26,22,18,.08);
  box-shadow: none;
}

.about-profile-card {
  background: var(--bg2);
  border: 1px solid rgba(26,22,18,.10);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(26,22,18,.055);
}

.about-profile-card p,
.static-copy p,
.method-block p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
}

.about-profile-card p + p,
.static-copy p + p {
  margin-top: 12px;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}

.about-principle {
  position: relative;
  overflow: hidden;
  background: rgba(251,249,246,.62);
  border: 1px solid rgba(26,22,18,.08);
  border-radius: 6px;
  padding: 15px;
}

.about-principle::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(30,100,152,.38);
}

.about-principle span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 8px;
}

.about-principle strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}

.about-principle p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}

.static-heading {
  max-width: 740px;
  margin: 0 auto 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26,22,18,.08);
  text-align: center;
}

.static-heading h2 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}

.static-heading p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 13px;
  color: #5f564d;
  line-height: 1.55;
}

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

.method-block {
  background: rgba(244,239,230,.48);
  border: 1px solid rgba(26,22,18,.08);
  border-radius: 6px;
  padding: 16px;
}

.method-block h3 {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.about-reason {
  max-width: 740px;
  margin: 0 auto;
}

.static-copy {
  background: var(--bg2);
  border: 1px solid rgba(26,22,18,.10);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(26,22,18,.045);
}

.static-copy a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.static-copy a:hover {
  opacity: .75;
}

.about-principle,
.method-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, border-color .15s, background .15s;
}

.about-principle.visible,
.method-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-principle.visible:hover,
.method-block.visible:hover {
  transform: translateY(-3px);
  border-color: rgba(30,100,152,.22);
  background: rgba(251,249,246,.86);
  box-shadow: 0 14px 34px rgba(26,22,18,.09);
}

.about-principle:nth-child(1),
.method-block:nth-child(1) { transition-delay: 0s; }
.about-principle:nth-child(2),
.method-block:nth-child(2) { transition-delay: .1s; }
.about-principle:nth-child(3),
.method-block:nth-child(3) { transition-delay: .2s; }

/* Profil à propos */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(30,100,152,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--mono);
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.profile-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.profile-role {
  font-size: 13px;
  color: var(--text2);
  margin-top: 3px;
}

@media(max-width:860px) {
  .page-hero-static {
    padding: 42px 24px;
  }
  .about-principles,
  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:700px) {
  .page-hero-static {
    padding: 36px 16px;
  }
  .static-section {
    padding: 34px 16px;
  }
  .about-profile-card,
  .static-copy {
    padding: 18px;
  }
}

/* Formulaire contact */
.contact-hero {
  position: relative;
}

.contact-section {
  padding-top: 40px;
  padding-bottom: 46px;
  box-shadow: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 520px);
  gap: 16px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.contact-panel,
.contact-card {
  background: var(--bg2);
  border: 1px solid rgba(26,22,18,.10);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(26,22,18,.055);
}

.contact-panel {
  padding: 22px;
}

.contact-panel-label {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.contact-panel h2 {
  margin: 0 0 12px;
  text-align: left;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--text);
}

.contact-panel p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

.contact-notes {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(26,22,18,.08);
}

.contact-notes span {
  font-family: var(--mono);
  font-size: 11px;
  color: #6B6258;
}

.contact-card {
  padding: 24px;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 6px;
  font-family: var(--mono);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--sans);
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  transition: opacity .15s, transform .15s;
}
.btn-submit:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.form-success,
.form-error {
  margin-bottom: 16px;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--sans);
  transition: border-color .2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238C857D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Mentions légales */
.legal-hero {
  position: relative;
}

.legal-section {
  padding-top: 40px;
  padding-bottom: 48px;
  box-shadow: none;
}

.legal-intro {
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 24px;
  background: var(--bg2);
  border: 1px solid rgba(26,22,18,.10);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(26,22,18,.055);
}

.legal-intro-label {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.legal-intro h2 {
  max-width: 560px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--text);
}

.legal-intro p {
  max-width: 620px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.legal-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 20px;
  background: rgba(251,249,246,.72);
  border: 1px solid rgba(26,22,18,.08);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, border-color .15s, background .15s, box-shadow .15s;
}

.legal-card-main {
  background: var(--bg2);
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(30,100,152,.38);
}

.legal-card span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.legal-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text);
}

.legal-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.72;
}

.legal-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-card a:hover {
  opacity: .75;
}

.legal-card dl {
  margin-top: 16px;
  border-top: 1px solid rgba(26,22,18,.08);
}

.legal-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
}

.legal-card dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.legal-card dd {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.legal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-card.visible:hover {
  transform: translateY(-3px);
  border-color: rgba(30,100,152,.22);
  background: rgba(251,249,246,.88);
  box-shadow: 0 14px 34px rgba(26,22,18,.09);
}

.legal-card:nth-child(1) { transition-delay: 0s; }
.legal-card:nth-child(2) { transition-delay: .06s; }
.legal-card:nth-child(3) { transition-delay: .12s; }
.legal-card:nth-child(4) { transition-delay: .18s; }
.legal-card:nth-child(5) { transition-delay: .24s; }

@media(max-width:860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .legal-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .legal-intro {
    max-width: 560px;
  }
}

@media(max-width:700px) {
  .contact-card,
  .contact-panel,
  .legal-intro,
  .legal-card {
    padding: 18px;
  }
  .contact-panel h2 {
    font-size: 26px;
  }
  .legal-intro h2 {
    font-size: 28px;
  }
  .legal-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Index des cours */
.courses-hero {
  background:
    linear-gradient(135deg, rgba(9, 18, 28, .94), rgba(19, 28, 36, .94)),
    radial-gradient(circle at 18% 22%, rgba(30,100,152,.32), transparent 30%);
}

.courses-section {
  padding: 0;
  box-shadow: none;
  background: var(--bg);
  flex: 1;
}

.courses-layout {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.courses-start {
  max-width: 520px;
  margin: 0 auto 26px;
}

.courses-roadmap {
  padding-top: 0;
}

.courses-section-title {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.course-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg2);
  border: 1px solid rgba(26,22,18,.10);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(26,22,18,.055);
  transition: opacity .5s ease, transform .5s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(30,100,152,.42);
}

a.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30,100,152,.28);
  background: rgba(251,249,246,.92);
  box-shadow: 0 16px 36px rgba(26,22,18,.10);
}

.course-card-main::before {
  background: var(--accent);
}

.course-card-main {
  overflow: hidden;
  align-items: center;
  text-align: center;
}

.course-card-main::after {
  content: "OSI";
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: rgba(30,100,152,.055);
  pointer-events: none;
}

.course-card-main p {
  margin-left: auto;
  margin-right: auto;
}

.course-card-main .course-card-points {
  justify-content: center;
}

.course-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 18px;
}

.course-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--text);
}

.course-card p {
  margin: 0;
  max-width: 430px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text2);
}

.course-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.course-card-points span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  background: rgba(30,100,152,.08);
  border: 1px solid rgba(30,100,152,.16);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.course-meta {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.course-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-list {
  display: block;
  padding: 0;
}

.course-group {
  position: relative;
  padding: 38px 40px;
  border-bottom: 1px solid rgba(26,22,18,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.52),
    inset 0 -1px 0 rgba(26,22,18,.035);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.course-group-blue {
  background: rgba(251,249,246,.98);
}

.course-group-green {
  background: rgba(251,249,246,.98);
}

.course-group-orange {
  background: rgba(251,249,246,.98);
}

.course-group-red {
  background: rgba(251,249,246,.98);
}

.course-group-purple {
  background: rgba(251,249,246,.98);
}

.course-group-dark {
  background: rgba(251,249,246,.98);
}

.course-group-inner {
  max-width: 940px;
  margin: 0 auto;
}

.course-group:last-child {
  border-bottom: none;
}

.course-group h2 {
  margin: 0 0 18px;
  text-align: left;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.course-row-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.course-row-items a,
.course-row-items span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid rgba(26,22,18,.08);
  border-radius: 999px;
  background: rgba(244,239,230,.70);
  color: var(--text2);
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
}

.course-row-items a {
  background: rgba(30,100,152,.08);
  border-color: rgba(30,100,152,.18);
  color: var(--accent);
  font-weight: 700;
}

.course-row-items a:hover {
  background: rgba(30,100,152,.13);
}

.course-topic-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.course-link-card {
  display: block;
  position: relative;
  padding: 14px;
  border: 1px solid rgba(26,22,18,.10);
  border-radius: 6px;
  background: rgba(255,255,255,.56);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(26,22,18,.055);
  transition: transform .15s, border-color .15s, background .15s;
}

.course-link-card .badge-lab {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.course-link-card .badge-new {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.course-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30,100,152,.32);
  background: rgba(255,255,255,.74);
}

.course-link-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

.course-link-card small {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.course-link-card p {
  margin: 0;
  color: var(--text2);
  font-size: 12px;
  line-height: 1.5;
}

.course-topic {
  min-height: 190px;
  padding: 18px;
  background: var(--bg2);
  border: 1px solid rgba(26,22,18,.10);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: opacity .5s ease, transform .5s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.course-topic::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(30,100,152,.42);
}

.course-topic span {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26,22,18,.08);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.courses-note {
  max-width: none;
  margin: 0;
  padding: 28px 40px 38px;
  background: rgba(251,249,246,.98);
  border-top: 1px solid rgba(26,22,18,.08);
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  line-height: 1.65;
}

.course-card,
.course-topic,
.course-link-card,
.courses-note {
  opacity: 0;
  transform: translateY(20px);
}

.course-card.visible,
.course-topic.visible,
.course-group.visible,
.course-link-card.visible,
.courses-note.visible {
  opacity: 1;
  transform: translateY(0);
}

.course-topic:nth-child(1) { transition-delay: 0s; }
.course-topic:nth-child(2) { transition-delay: .06s; }
.course-topic:nth-child(3) { transition-delay: .12s; }
.course-topic:nth-child(4) { transition-delay: .18s; }
.course-topic:nth-child(5) { transition-delay: .24s; }
.course-topic:nth-child(6) { transition-delay: .30s; }

@media(max-width:760px) {
  .course-group {
    padding: 32px 16px;
  }
  .course-topic-grid {
    grid-template-columns: 1fr;
  }
  .course-topic-featured {
    grid-template-columns: 1fr;
  }
  .course-card {
    min-height: auto;
  }
  .courses-start {
    max-width: none;
  }
  .course-topic {
    min-height: auto;
  }
  .courses-note {
    padding: 24px 16px 32px;
  }
}
