/* ═══════════════════════════════════════════
   DesClics INFO — global.css
   Typographie globale, police Tahoma numéros,
   styles page-hero, actus, applicatifs
═══════════════════════════════════════════ */

/* ── TYPOGRAPHIE GLOBALE AMÉLIORÉE ── */
:root {
  --text:   #eef6ff;      /* plus clair qu'avant */
  --muted:  #b8d4e8;      /* gris-bleu plus lisible */
  --muted2: #93b8d0;      /* second niveau */
}

body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

p { color: var(--text2); font-size: 15px; line-height: 1.85; }

h1,h2,h3 { color: var(--text); }

/* Tahoma pour numéros de téléphone et codes dept */
.tahoma {
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.05em;
  letter-spacing: .5px;
}

a.tahoma { color: var(--cyan); text-decoration: none; }
a.tahoma:hover { color: #fff; }

/* ── JS MODALES LÉGALES (open/close via openLegal) ── */
.modal-legal { max-width: 600px !important; max-height: 82vh; overflow-y: auto; }
.modal-legal-title {
  font-family: 'Orbitron', monospace;
  font-size: .95rem;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}
.modal-legal-body { font-size: 15.5px; color: var(--text2); line-height: 1.85; }
.modal-legal-body h4 {
  font-family: 'Orbitron', monospace;
  font-size: .75rem;
  letter-spacing: 1px;
  color: var(--text);
  margin: 1.2rem 0 .4rem;
}
.modal-legal-body p { margin-bottom: .6rem; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 1rem; }
.credits-table th { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted2); }
.credits-table td { padding: .4rem .6rem; border-bottom: 1px solid rgba(0,180,255,.06); color: var(--text2); }

/* ── PAGE HERO (actus, applicatifs) ── */
.page-hero {
  position: relative;
  padding: 6rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(0,180,255,.018) 3px, rgba(0,180,255,.018) 4px);
  pointer-events: none;
}
.page-hero--appli::before { background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(240,165,0,.015) 3px, rgba(240,165,0,.015) 4px); }
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.page-hero-content h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  margin: .8rem 0 1rem;
}
.page-hero-content h1 em { color: var(--cyan); font-style: normal; display: block; }
.page-hero--appli .page-hero-content h1 em { color: #f0a500; }
.page-hero-content p { font-size: 1rem; color: var(--text2); max-width: 580px; margin: 0 auto; }

/* ── SLIDER : ralentir intervalle (géré en JS, classe ajoutée ici pour référence) ── */
/* Le slider page 1 dure 9s, les autres 6s — voir main.js */

/* ── ACTUS ── */
.actus-section { padding: 4rem 2rem; }
.actus-list { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }

.actu-card {
  display: grid;
  grid-template-columns: 100px 160px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
  align-items: stretch;
}
.actu-card:first-child { border-top: 1px solid var(--border); }
.actu-card:hover { background: rgba(0,180,255,.03); }

/* Date en grand à gauche */
.actu-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.actu-jour {
  font-family: 'Orbitron', monospace;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}
.actu-mois {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted2);
  text-transform: uppercase;
  margin: .1rem 0;
}
.actu-annee {
  font-family: Tahoma, sans-serif;
  font-size: 14.5px;
  color: var(--muted2);
}

/* Image article */
.actu-img {
  width: 160px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}
.actu-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  color: var(--border);
  font-size: 1.5rem;
}

/* Corps article */
.actu-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
}
.actu-cat {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.actu-titre {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
  margin: 0;
}
.actu-resume { font-size: 14.5px; color: var(--text2); line-height: 1.7; }
.actu-lire { font-size: 14.5px; color: var(--cyan); font-weight: 600; margin-top: .3rem; letter-spacing: .5px; }

/* Modale article */
.modal-article { max-width: 680px !important; max-height: 85vh; overflow-y: auto; }
.article-modal-img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 1.5rem; border-radius: 2px; }
.article-modal-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.article-modal-cat { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.article-modal-date { font-family: Tahoma, sans-serif; font-size: 14.5px; color: var(--muted2); }
.article-modal-titre { font-family: 'Orbitron', monospace; font-size: 1.1rem; color: var(--text); margin-bottom: 1.2rem; line-height: 1.4; }
.article-modal-body { font-size: 15.5px; color: var(--text2); line-height: 1.85; }
.article-modal-body h4 { font-family: 'Orbitron', monospace; font-size: .8rem; letter-spacing: 1px; color: var(--text); margin: 1rem 0 .4rem; }
.article-modal-body p { margin-bottom: .8rem; }
.article-modal-body strong { color: var(--text); }

/* ── APPLICATIFS ── */
.appli-intro { padding: 4rem 2rem 2rem; }
.appli-intro-text { max-width: 760px; margin: 0 auto; }
.appli-intro-text p { font-size: 15px; color: var(--text2); line-height: 1.85; margin-bottom: 1rem; }
.appli-intro-text strong { color: var(--text); }

.appli-section { padding: 3rem 2rem; border-top: 1px solid var(--border); }
.appli-section--alt { background: var(--bg2); }

.appli-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(240,165,0,.2);
  overflow: hidden;
}
.appli-featured--reverse { direction: rtl; }
.appli-featured--reverse > * { direction: ltr; }

.appli-feat-visual {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appli-feat-visual--karaoke {
  background: linear-gradient(135deg, #1a0a2e 0%, #0d0520 40%, #200a35 100%);
}
.appli-feat-visual--photo {
  background: linear-gradient(135deg, #0a1a2e 0%, #05102a 40%, #0a2035 100%);
}
.appli-feat-overlay { position: absolute; inset: 0; background: rgba(4,8,15,.25); }
.appli-feat-icon { position: relative; z-index: 1; font-size: 5rem; filter: drop-shadow(0 0 20px rgba(240,165,0,.5)); }

.appli-feat-content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.appli-tag { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: .8rem; }
.appli-feat-content h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: #f0a500;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.appli-feat-content p { font-size: 15.5px; color: var(--text2); line-height: 1.8; margin-bottom: 1rem; }

.appli-list { list-style: none; margin-bottom: 1.5rem; }
.appli-list li { font-size: 14.5px; color: var(--text2); padding: .35rem 0 .35rem 1rem; border-bottom: 1px solid rgba(240,165,0,.08); position: relative; }
.appli-list li::before { content: '›'; color: #f0a500; position: absolute; left: 0; font-size: 1rem; }

.appli-feat-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Bloc LNE */
.appli-lne { padding: 4rem 2rem; background: rgba(240,165,0,.04); border-top: 1px solid rgba(240,165,0,.2); border-bottom: 1px solid rgba(240,165,0,.2); }
.lne-inner { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.lne-content h2 { font-family: 'Orbitron', monospace; font-size: 1.3rem; color: #f0a500; margin: .8rem 0 .8rem; }
.lne-content p { font-size: 15.5px; color: var(--text2); line-height: 1.8; }
.lne-icons { display: flex; align-items: center; gap: 1rem; }
.lne-icon { font-size: 3rem; }
.lne-plus { font-family: 'Orbitron', monospace; font-size: 2rem; color: rgba(240,165,0,.4); }

/* Section custom */
.appli-custom { padding: 4rem 2rem; }
.appli-custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 860px; margin: 0 auto; }
.custom-card { border: 1px solid rgba(240,165,0,.2); padding: 1.8rem 1.5rem; background: rgba(240,165,0,.03); }
.custom-ico { font-size: 2rem; display: block; margin-bottom: .8rem; }
.custom-card h3 { font-family: 'Orbitron', monospace; font-size: .85rem; color: #f0a500; letter-spacing: 1px; margin-bottom: .6rem; }
.custom-card p { font-size: 14.5px; color: var(--text2); line-height: 1.75; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .appli-featured { grid-template-columns: 1fr; }
  .appli-featured--reverse { direction: ltr; }
  .appli-feat-visual { min-height: 220px; }
  .lne-inner { grid-template-columns: 1fr; }
  .lne-icons { justify-content: center; }
}

@media (max-width: 768px) {
  .actu-card { grid-template-columns: 80px 1fr; }
  .actu-img { display: none; }
  .actu-jour { font-size: 2rem; }
  .actu-body { padding: 1rem 1.2rem; }
}

@media (max-width: 480px) {
  .actu-card { grid-template-columns: 1fr; }
  .actu-date { flex-direction: row; gap: .8rem; padding: 1rem 1.2rem; border-right: none; border-bottom: 1px solid var(--border); justify-content: flex-start; }
  .actu-jour { font-size: 1.8rem; }
}
