/* =========================
   RESET & GLOBAL
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* =========================
   VARIABLES
========================= */
:root {
  --clr-primary: #0052cc;
  --clr-primary-light: #2670fc;
  --clr-secondary: #f5a623;
  --clr-accent: #fd7e14;

  --clr-bg: #f5f8fa;
  --clr-card: #ffffff;
  --clr-muted: #64748b;
  --clr-text: #1e293b;
  --clr-text-light: #334155;

  --clr-hero-overlay: rgba(0,0,0,0.4);
  --clr-bio-bg: #fafafa;
  --clr-footer-bg: #002663;
  --clr-footer-text: #e1e5eb;
  --clr-footer-muted: #cbd2db;

  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;

  --radius: 8px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  --transition: 0.3s ease;
}

/* =========================
   CONTAINER GLOBAL
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  color: var(--clr-text);
}

p, li, label {
  color: var(--clr-text-light);
  font-size: 1rem;
}

/* ======================================================
   HEADER
====================================================== */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--clr-card);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: background var(--transition), padding var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: var(--sp-lg);
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--sp-xs) 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--clr-primary);
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}
.main-nav a:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 4px;
}

/* Search bar */
.search-form {
  flex: 0 0 auto;
  position: relative;
}
.search-input {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}
.search-form::before {
  content: "\1F50D"; /* 🔍 Unicode loupe */
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

/* Hamburger Menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-sm);
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--clr-text-light);
  transition: background var(--transition), transform var(--transition);
}
.hamburger:hover span {
  background: var(--clr-primary);
}

/* =========================
   HERO SECTION
========================= */
/* =========================
   HERO CARD STYLE
========================= */
.hero-card {
   display: flex;
  justify-content: center;
  padding: 4rem 1rem;
  border-radius: 20px; /* arrondi complet */
  overflow: hidden;    /* important pour que tout contenu reste à l'intérieur */
  background: var(--clr-card);
  box-shadow: var(--shadow-lg);
}

.profile {
  display: flex;
  align-items: center;
  background: var(--clr-card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  position: relative;
}

/* Colonne gauche */
.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-primary);
}

.tag {
  background: var(--clr-primary-light);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Colonne droite */
.profile-right h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.profile-right h1 span {
  color: var(--clr-primary);
}

.profile-right p {
  font-size: 1rem;
  color: var(--clr-text-light);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clr-primary-light);
}

.btn-outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
}


/* Responsive */
@media (max-width: 768px) {
.hero {
    flex-direction: column;
    text-align: center;
  }

  /* Forcer le décalage de l’image */
  .hero img, 
  .hero-img, 
  .profile img, 
  .profile-left img {
    margin-top: 3.5rem !important;
    display: block;
  }

  .profile {
    flex-direction: column;
    text-align: center;
  }

  .profile-right h1 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.bio-subtext {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333; /* adapte selon ta palette */
  line-height: 1.6;
}

/* =========================
   ARTICLES
========================= */
.article-teasers {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 teasers par ligne */
  gap: 20px;
}

/* Style des cartes teaser */
.teaser-card {
  background: #f9f9f9;
  padding: 20px;
  border-left: 4px solid #d61c59;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.teaser-card h3 a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #222;
  text-decoration: none;
  transition: color 0.3s;
}

.teaser-card h3 a:hover {
  color: #d61c59;
}

.teaser-card p {
  margin: 10px 0 15px;
  color: #555;
  line-height: 1.6;
}

.teaser-card .read-more {
  color: #0052cc;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.teaser-card .read-more:hover {
  text-decoration: underline;
}

/* Responsive mobile : 1 teaser par ligne */
@media (max-width: 768px) {
  .article-teasers {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ARTICLE DETAIL
========================= */

/* Conteneur global article */
article {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;            /* base plus grande */
  line-height: 2;               /* bonne lisibilité */
  color: #2c2c2c;
  max-width: 820px;             /* largeur réduite pour concentrer la lecture */
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* Titres */
article h1, article h2, article h3 {
  font-family: 'Playfair Display', serif;
  margin: 2rem 0 1rem;
  line-height: 1.3;
  color: #111;
}

/* Paragraphes stylés */
article p {
  position: relative;
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  font-size: 1.25rem;            /* taille augmentée */
  line-height: 1.9;
  color: #333;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article p:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Citations */
article blockquote {
  font-style: italic;
  background: #f9f9f9;
  border-left: 4px solid var(--clr-primary);
  padding: 1.2rem 1.6rem;
  margin: 2.5rem 0;
  border-radius: 6px;
  font-size: 1.3rem;             /* lisible */
  line-height: 2;
  color: #444;
}

/* Listes */
article ul, article ol {
  margin: 2rem 0 2rem 2rem;
  padding-left: 1rem;
}
article li {
  margin: 0.8rem 0;
  line-height: 1.9;
  font-size: 1.2rem;             /* liste plus grande */
}

/* Images */
article img {
  margin: 2.5rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 100%;
  display: block;
}

/* Couleurs alternées des paragraphes */
article p:nth-of-type(1) {
  border-left: 5px solid #2A9D8F;
  background: linear-gradient(90deg, #e6f9f6, #ffffff);
}
article p:nth-of-type(2) {
  border-left: 5px solid #E76F51;
  background: linear-gradient(90deg, #fff1ec, #ffffff);
}
article p:nth-of-type(3) {
  border-left: 5px solid #264653;
  background: linear-gradient(90deg, #edf3f9, #ffffff);
}
article p:nth-of-type(4) {
  border-left: 5px solid #8A2BE2;
  background: linear-gradient(90deg, #f3eaff, #ffffff);
}
article p:nth-of-type(5) {
  border-left: 5px solid #F4A261;
  background: linear-gradient(90deg, #fff5eb, #ffffff);
}
article p:nth-of-type(6) {
  border-left: 5px solid #d61c59;
  background: linear-gradient(90deg, #ffeaf1, #ffffff);
}
article p:nth-of-type(odd) {
  border-left: 5px solid #0052cc;
  background: linear-gradient(90deg, #eef4ff, #ffffff);
}
article p:nth-of-type(even) {
  border-left: 5px solid #2A9D8F;
  background: linear-gradient(90deg, #e6f9f6, #ffffff);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background-color: var(--clr-footer-bg);
  color: var(--clr-footer-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.site-footer .container {
  padding: 2rem 1rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--clr-footer-text);
}

.footer-col p {
  font-size: 0.95rem;
  color: var(--clr-footer-muted);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: var(--clr-footer-text);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col ul li a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.footer-bottom p { font-size: 0.85rem; color: var(--clr-footer-muted); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* =========================
   MEDIA QUERIES
========================= */
/* MOBILE MENU STYLING */
@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem; /* moins que desktop */
    gap: 1.5rem;     /* réduit le vide vertical */
  }

  .profile-left .avatar {
    width: 120px;   /* réduit l'image pour mobile */
    height: 120px;
    border-width: 3px;
  }

  .profile-right h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .profile-right p {
    max-width: 100%;  /* occupe toute la largeur dispo */
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 80%;       /* boutons plus larges et faciles à cliquer */
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }

  /* Structure du header */
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Barre de recherche */
  .search-form {
    width: 100%;
    margin-left: auto;
  }
.search-form {
    width: 100%;
    display: flex;
    justify-content: center; /* centre le champ */
  }

  .search-input {
    width: 60%;      /* ← change la largeur ici (par ex. 70% ou 60%) */
    max-width: 300px; /* limite si écran un peu grand */
    font-size: 0.85rem;
  }
  /* Hamburger menu */
  .hamburger {
    display: flex;
    z-index: 2100;
    cursor: pointer;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--clr-text-light);
    margin-bottom: 4px;
    transition: all 0.3s ease;
  }

  /* MENU MOBILE PARTIEL + STYLÉ (Glassmorphism) */
 .main-nav {
    position: fixed;
    top: 0;
    right: -80%;         /* caché hors écran */
    width: 80%;
    height: 100%;
   background:#ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    z-index: 2000;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .main-nav ul li a {
    color: #6f6ec9;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    width: 80%;
    text-align: center;
    background: rgba(255,255,255,0.1);
    transition: transform 0.3s, background 0.3s;
  }

  .main-nav ul li a:hover,
  .main-nav ul li a:focus {
    transform: scale(1.05);
    background: rgba(255,255,255,0.3);
  }
}
  /* HERO section */
  .hero {
    flex-direction: column;
    text-align: center;
    margin-top: 64px;
  }

  .hero-text, .hero-image {
    flex: 1 1 100%;
  }

  .hero-image img {
    max-width: 200px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }


/* Ajustement extrême petits écrans */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }
}





/* Desktop : place la recherche à droite */
@media (min-width: 769px) {
  .header-inner {
    justify-content: flex-start;   /* évite le space-between */
    gap: var(--sp-lg);
  }

  /* Ordre visuel : logo/hamburger -> nav -> recherche */
  .header-top  { order: 1; }
  .main-nav    { order: 2; margin-left: var(--sp-lg); }
  .search-form { order: 3; margin-left: auto; } /* pousse à droite */
}


/* =========================
   STYLE PERSO
========================= */
/* Bold uniquement dans le header */
.site-header,
.site-header a,
.site-header button,
.site-header .search-input {
  font-weight: 700;
}
.highlight mark {
  background-color: yellow;
  color: black;
}

/* =========================
   IMAGE GALLERY
========================= */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}
.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}
.image-card img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(10%);
}
.image-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.image-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px 15px;
  font-size: 0.9rem;
  line-height: 1.4;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-card:hover figcaption {
  opacity: 1;
}


/* =========================
   TABLE STYLING
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--clr-text-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}

table thead {
  background-color: var(--clr-primary);
  color: #fff;
  text-align: left;
}

table thead th {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

table tbody tr:last-child {
  border-bottom: none;
}

table tbody tr:hover {
  background-color: #f5f5f5;
}

table tbody td {
  padding: 0.75rem 1rem;
}

/* Responsive tables for mobile */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  table thead {
    display: none;
  }

  table tbody tr {
    margin-bottom: 1rem;
    background: var(--clr-card);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
  }

  table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }

  table tbody td:last-child {
    border-bottom: none;
  }

  table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--clr-text);
  }
}

/* Optional: highlight specific columns */
table tbody td strong {
  color: var(--clr-primary);
}
.name-highlight{
  color: #B22234; /* Rouge du drapeau américain */
  font-weight: bold;
}
