/* ============================================
   STYLES PAGES INTERNES (Qui sommes-nous, Solutions, Actualités, Article, Légales)
   ============================================ */

/* ---- Page Hero (plus court que home hero) ---- */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 0 80px;
  overflow: hidden;
  text-align: center;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Variante avec fond uni (pas d'image) — pour pages légales */
.page-hero--plain {
  background: linear-gradient(135deg, #0a1428 0%, #051028 60%, #020814 100%);
  min-height: 320px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,8,20,.55) 0%, rgba(2,8,20,.75) 100%);
}

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

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 700;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

/* ---- Section Intro (texte + image côte à côte) ---- */
.section-intro {
  padding: 90px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.intro-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.intro-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* ---- Section Approche (cartes "Une approche centrée") ---- */
.section-approach {
  padding: 80px 0 100px;
}

.section-approach .section-heading {
  margin-bottom: 40px;
}

.section-approach .section-heading p {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  margin: 12px auto 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.approach-card {
  background: linear-gradient(180deg, rgba(23,30,54,.94), rgba(18,24,45,.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 28px 26px;
  transition: .3s ease;
  position: relative;
}

.approach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8,240,228,.24);
}

.approach-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(8,240,228,.10);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.approach-card__icon img {
  width: 26px;
  height: 26px;
}

.approach-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.approach-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.approach-card--progress {
  display: flex;
  flex-direction: column;
}

.approach-card__progress { margin-top: 18px; }

.approach-card__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.approach-card__progress-label strong { color: var(--accent); }

.approach-card__progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.approach-card__progress-fill {
  height: 100%;
  width: 98%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

/* ---- Section "Notre accompagnement" / "Comment fonctionne notre infra" ---- */
.section-feature { padding: 80px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-grid--reverse .feature-visual { order: 2; }

.feature-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature-content .eyebrow { margin-bottom: 14px; }

.feature-content h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature-content p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(8,240,228,.15);
}

/* ---- Section Valeurs/Piliers variante 2 colonnes ---- */
.values-grid--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.values-grid--2col .value-card { min-height: auto; }

/* ---- Bloc Technos (4 mini-cards) ---- */
.techs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 24px;
}

.tech-card {
  background: linear-gradient(180deg, rgba(23,30,54,.94), rgba(18,24,45,.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 22px 26px;
  transition: .3s ease;
}

.tech-card:hover {
  border-color: rgba(8,240,228,.24);
  transform: translateY(-3px);
}

.tech-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.tech-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---- Accordéon ---- */
.section-atouts { padding: 90px 0; }

.atouts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.atouts-intro .eyebrow { margin-bottom: 14px; }

.atouts-intro h2 {
  margin: 0;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.accordion { display: grid; gap: 12px; }

.accordion-item {
  background: linear-gradient(180deg, rgba(23,30,54,.94), rgba(18,24,45,.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  transition: .3s ease;
}

.accordion-item.is-open { border-color: rgba(8,240,228,.24); }

.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.accordion-trigger::after {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2308f0e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .3s ease;
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger::after { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.accordion-item.is-open .accordion-content { max-height: 700px; }

.accordion-content-inner {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- Section CONTACT avec fond clair ---- */
.section-contact {
  background: var(--offwhite);
  color: var(--dark);
  padding: 100px 0;
  position: relative;
}

.section-contact::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 180px;
  background: var(--offwhite);
  clip-path: ellipse(88% 100% at 50% 100%);
}

/* Lien actif menu */
.nav-desktop a.is-active { color: var(--accent); }

/* ============================================
   PAGE ACTUALITES (liste)
   ============================================ */

.section-news-list {
  padding: 90px 0 110px;
}

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

.news-card {
  background: linear-gradient(180deg, rgba(23,30,54,.94), rgba(18,24,45,.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8,240,228,.24);
  box-shadow: var(--shadow);
}

.news-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.news-card:hover .news-card__image img { transform: scale(1.05); }

.news-card__date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #04111c;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card__body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__title {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
}

.news-card__title a { color: inherit; transition: color .25s ease; }
.news-card__title a:hover { color: var(--accent); }

.news-card__excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

/* ligne tronquée (3 lignes max) sur les extraits */
.news-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}

.news-card__link:hover { border-bottom-color: var(--accent); }

.news-card__link::after {
  content: "→";
  transition: transform .25s ease;
}

.news-card__link:hover::after { transform: translateX(4px); }

.news-empty {
  text-align: center;
  color: var(--muted);
  padding: 80px 20px;
  font-size: 17px;
}

/* ============================================
   PAGE ARTICLE (détail)
   ============================================ */

.section-article {
  padding: 70px 0 90px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}

/* Article principal */
.article-main {
  background: linear-gradient(180deg, rgba(23,30,54,.94), rgba(18,24,45,.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 24px;
  overflow: hidden;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: 36px 40px 40px;
}

.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8,240,228,.12);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.article-title {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.article-content {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.article-content p { margin: 0 0 18px; }
.article-content h2,
.article-content h3,
.article-content h4 { color: #fff; margin-top: 28px; margin-bottom: 14px; line-height: 1.3; }
.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 18px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 12px; margin: 18px 0; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 22px 0;
  color: #d6dceb;
  font-style: italic;
}

.article-share {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 600;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 110px;
}

.sidebar-widget {
  background: linear-gradient(180deg, rgba(23,30,54,.94), rgba(18,24,45,.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 26px 24px;
  margin-bottom: 22px;
}

.sidebar-widget h3 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget li { margin-bottom: 14px; }
.sidebar-widget li:last-child { margin-bottom: 0; }

.sidebar-widget li a {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  transition: color .25s ease;
  display: flex;
  gap: 10px;
}

.sidebar-widget li a:hover { color: var(--accent); }

.sidebar-widget li a::before {
  content: "›";
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* Bouton retour */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 22px;
  transition: color .25s ease;
}

.back-link:hover { color: var(--accent); }
.back-link::before { content: "←"; }

/* ============================================
   PAGES LEGALES (CGV, CP Interco, CP Internet)
   ============================================ */

.section-legal {
  padding: 70px 0 100px;
}

.legal-wrapper {
  max-width: 920px;
  margin-inline: auto;
  background: linear-gradient(180deg, rgba(23,30,54,.94), rgba(18,24,45,.96));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 24px;
  padding: 50px 52px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15.5px;
}

.legal-wrapper .doc-version {
  display: inline-block;
  background: rgba(8,240,228,.12);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.legal-wrapper h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: -0.01em;
}

.legal-wrapper h2:first-of-type { margin-top: 0; }

.legal-wrapper h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 26px 0 12px;
}

.legal-wrapper p { margin: 0 0 14px; text-align: justify; }
.legal-wrapper ul { padding-left: 22px; margin: 0 0 16px; }
.legal-wrapper ul li { margin-bottom: 8px; }
.legal-wrapper strong { color: #e9eaee; }

.legal-wrapper .definition-term {
  font-weight: 700;
  color: var(--accent);
}

.legal-wrapper .company-info {
  background: rgba(8,240,228,.06);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 22px 0;
}

.legal-wrapper .company-info p { margin-bottom: 8px; }
.legal-wrapper .company-info p:last-child { margin-bottom: 0; }

.legal-wrapper .formula {
  text-align: center;
  font-style: italic;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  margin: 18px 0;
  color: #e9eaee;
}

/* Tableaux dans contenu juridique */
.legal-wrapper .table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
}

.legal-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  overflow: hidden;
}

.legal-wrapper table th,
.legal-wrapper table td {
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-wrapper table th {
  background: rgba(8,240,228,.14);
  color: #fff;
  font-weight: 600;
}

.legal-wrapper table tr:nth-child(even) { background-color: rgba(255,255,255,.02); }

/* Lien email dans le bloc société */
.legal-wrapper a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Note de bas / coordonnées */
.legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: #98a2b8;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1180px) {
  .intro-grid,
  .feature-grid,
  .atouts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid--reverse .feature-visual { order: 0; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid--2col { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 720px) {
  .page-hero {
    min-height: 280px;
    padding: 130px 0 60px;
  }
  .approach-grid,
  .techs-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .section-intro,
  .section-approach,
  .section-feature,
  .section-atouts,
  .section-contact,
  .section-news-list,
  .section-article,
  .section-legal {
    padding: 60px 0;
  }
  .article-body { padding: 26px 22px 30px; }
  .legal-wrapper { padding: 32px 22px; }
}
