/* ------------ Base ------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-page: #0b1020;
  --bg-elevated: #0f172a;
  --bg-soft: #111827;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #020617 100%);
  color: var(--text-main);
}

/* Structure principale */

.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Bande supérieure */

.top-bar {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.06), transparent);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.top-bar-tag {
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
}

.top-bar-text {
  opacity: .9;
}

/* En-tête & hero */

.site-header {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 55%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(to bottom, #020617, #020617);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-header-small {
  padding-bottom: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 2.8rem 0 2.4rem;
}

.hero-compact {
  grid-template-columns: minmax(0, 1fr);
}

.hero-text {
  position: relative;
}

.hero-kicker {
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .5rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 .6rem;
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}

.meta-item {
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .65rem;
  color: var(--text-soft);
  display: block;
}

.meta-value {
  font-weight: 500;
}

/* Photo hero */

.hero-photo-wrapper {
  display: flex;
  justify-content: center;
}

.hero-photo-card {
  position: relative; /* important pour le drapeau */
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.96));
  border-radius: 24px;
  padding: .9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  max-width: 320px;
  width: 100%;
}

.hero-photo {
  width: 100%;
  border-radius: 18px;
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.7);
}

.hero-photo-caption {
  padding-top: .7rem;
  text-align: center;
  font-size: .85rem;
}

.hero-photo-caption p {
  margin: 0;
  font-weight: 600;
}

.hero-photo-caption span {
  color: var(--text-muted);
  font-size: .8rem;
}
/* Carte portrait à droite du hero */

.portrait-card {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
  border-radius: 24px;
  padding: 1.2rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  min-width: 320px;
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.portrait-chip {
  align-self: flex-start;
  padding: .25rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: .9rem;
  color: var(--text-main);
}

.portrait-flag-row {
  margin: .4rem 0 .3rem;
  display: flex;
  justify-content: center;
}

.portrait-flag {
  width: 140px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  display: block;
}

.portrait-name {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.portrait-role {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
}


/* Drapeau superposé sur la photo */

.flag-overlay {
  position: absolute;
  top: 42%;                 /* légèrement sous le titre */
  right: 25px;              /* proche du texte de droite */
  transform: translateY(-50%);

  width: 120px;             /* taille équilibrée */
  height: 80px;

  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 0 10px rgba(0,0,0,0.35);
}

.flag-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Navigation secondaire */

.sub-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.90));
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.sub-nav-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .6rem 0;
  overflow-x: auto;
}

.sub-nav-inner a {
  font-size: .9rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: .35rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.sub-nav-inner a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease-out, box-shadow .12s ease-out, background .12s, border-color .12s;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent-strong), var(--accent));
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.6);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Corps de page */

.page {
  padding: 2.2rem 0 3rem;
}

.section {
  margin-bottom: 2.3rem;
}

.section-header h2 {
  margin: 0 0 .35rem;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Cartes */

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.card-soft {
  background: var(--bg-soft);
}

.card-list {
  padding-top: 1.2rem;
}

/* Timeline */

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: .5rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: .8;
}

.timeline-item {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 1.4rem;
}

.timeline-dot {
  position: absolute;
  left: -.2rem;
  top: .65rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
}

.timeline-content h3 {
  margin: .15rem 0 .25rem;
  font-size: 1.05rem;
}

.timeline-date {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-soft);
}

/* Grille 2 colonnes */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.6rem;
}

/* Listes d’hommage */

.quote-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: .95rem;
}

.quote-list li + li {
  margin-top: .4rem;
}

.signature {
  margin-top: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
}

.hint {
  font-size: .86rem;
  color: var(--text-soft);
}

/* Articles & pensées */

.press-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}

.press-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.press-list li:last-child {
  border-bottom: none;
}

.pill {
  align-self: flex-start;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.press-note {
  font-size: .86rem;
  color: var(--text-soft);
}

/* Liens inline */

.link-inline {
  color: var(--accent);
  text-decoration: none;
}

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

/* Galerie */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.98);
  margin-top: auto;
}

.footer-inner {
  padding: 1.4rem 0 1.8rem;
  text-align: center;
  font-size: .86rem;
  color: var(--text-soft);
}

.footer-note {
  margin-top: .3rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.2rem;
  }

  .hero-photo-wrapper {
    order: -1;
    margin-bottom: 1.5rem;
  }

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

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-nav-inner {
    padding-bottom: .7rem;
  }

  .card {
    padding: 1.3rem 1.3rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: .35rem;
  }

  .timeline-item {
    padding-left: 1.1rem;
  }
}


/* Améliorations pour l’arabe et les citations */

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Pour les paragraphes de type "citation" */
p.quote {
  border-right: 3px solid rgba(0,0,0,0.15);
  padding-right: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  line-height: 1.9;
}

/* Signatures et textes fins en bas d’article */
p.signature {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}



/* Ajustement boutons (optionnel si déjà défini) */
.btn {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
}

/* Un peu plus d’espace dans les sections */
.section {
  margin-block: 3rem;
}


body {
  background-image: url("images/Drapeau-Algerie.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Bloc des titres de sections */
.section-header {
  display: inline-block;          /* pour que le fond ne prenne pas toute la largeur */
  background: rgba(0, 0, 0, 0.7); /* fond sombre et transparent */
  padding: 0.75rem 1.5rem;
  border-radius: 999px;           /* effet pastille arrondie */
  margin-bottom: 1.5rem;
}

/* Couleur du texte dans les titres */
.section-header h2,
.section-header p {
  color: #f9fafb;                 /* blanc légèrement cassé (lisible) */
  margin: 0;
}

.site-header {
  background: #07182E; /* bleu foncé du thème */
  position: relative;
  z-index: 10;
}

.top-bar {
  background: #004225 !important; /* vert uniforme */
  position: relative;
  z-index: 11;
}


/* Conteneur de la photo dans la carte */
.portrait-flag-row {
  width: 100%;
  aspect-ratio: 1 / 1;   /* ou 4/3, à ajuster selon la forme que tu veux */
  overflow: hidden;      /* tout ce qui dépasse est coupé */
  border-radius: 12px;   /* optionnel : arrondir l'image */
}

/* L'image elle-même */
.portrait-flag {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* remplit tout le cadre, sans bandes blanches */
  object-position: center;/* tu peux mettre "top" si tu veux cadrer plus haut */
}
