@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --accent-primary: #4a667f;      /* Slate blue discret et sophistiqué pour accents */
    --accent-secondary: #5f7a94;   /* Pour hover */
    --text-dark: #333333;           /* Pour texte */
    --bg-color: #ffffff;            /* Fond général */
    --section-bg: #ffffff;          /* Sections blanc pur */
    --nav-bg: rgba(190, 195, 205, 0.25);   /* Barre de navigation */
    --nav-text: #ffffff;            /* Texte nav blanc */
    --nav-hover: #4a667f;           /* Hover en accent */
    --footer-bg: #333333;           /* Footer gris anthracite */
    --footer-text: #ffffff;         /* Texte footer blanc */
    --button-bg: var(--accent-primary);
    --button-text: #ffffff;
    --button-hover: rgb(151, 89, 31);
    --font-headings: 'Lora', serif;   /* Pour titres, nom, accroches */
    --font-body: 'Inter', sans-serif; /* Pour paragraphes, menus, boutons */
}

a {
  color: var(--accent-primary);
}

a:hover {
   color: var(--button-hover);
}


/* Bandeau rouge avertissement consultation */
#warning-footer {
    background-color: rgba(107, 1, 1, 0.92); /* rouge sombre légèrement translucide */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 0.9em;
    position: fixed;       /* sticky */
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2); /* léger relief */
    transition: transform 0.3s ease;        /* pour animation fermeture */
    font-family: var(--font-body);          
}

#warning-page-article-unique {
     display: block;              /* s’assure qu’il prend toute la largeur */
    background-color: #333333;
    color: #fff;
    text-align: center;
    padding: 10px;               /* padding standard pour texte */
    font-size: 0.8em;
    font-family: var(--font-body);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* optionnel pour relief */
    margin-top: 96px;            /* repousse le bandeau sous la navbar */
}

/* Bouton X */
#close-footer {
    cursor: pointer;
    margin-left: 15px;
    font-weight: normal;
    font-size: 1em;
    color: var(--footer-text);              
}

/* Mobile responsive : texte plus petit, padding réduit */
@media screen and (max-width: 767px) {
    #warning-footer {
        font-size: 0.85em;
        padding: 8px 0;
    }
}



h1, h2, h3, h4, .title {
    font-family: var(--font-headings);
    font-weight: 600;
}

/* RESET BASIQUE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

/* Bandeau de navigation */
#top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 10px 0;
    z-index: 1000;
}

#top-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

#top-nav a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

#top-nav a:hover {
    color: var(--nav-hover);
}




/* BARRE DE NAVIGATION TOP */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: (--nav-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Conteneur interne pour flex titre + menu */
#top-nav .nav-inner {
    display: flex;
    align-items: center;   /* centre vertical du nav */
    max-width: 1200px;
    margin: 0 auto;      /* centre le bloc */
    justify-content: space-between;
    color:rgb(0, 0, 0);
    padding: 0px 15px 0px;
}

/* Titre à gauche */
#top-nav .site-title {
    font-size: 1.80em;
    font-family: 'Lora', serif;
    display: flex;
    flex-direction: column; /* nom au-dessus, sous-titre en dessous */
    line-height: 1.1;      /* réduit l’espacement vertical */
}

#top-nav .site-title .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.6em;
    font-weight: normal;
    margin: 0;
}

.subtitle {
    font-size: 2rem;
    color: var(--accent-primary);
}


/* Menu desktop */
#top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

#top-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s;
}

#top-nav a:hover {
    color: var(--accent-primary);
}

/* Bouton hamburger - caché sur desktop */
#top-nav .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    #top-nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        position: absolute;
        right: 20px;
        top: 60px; /* Ajuste selon hauteur nav */
        padding: 10px;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    #top-nav ul.show {
        display: flex;
    }

    #top-nav .menu-toggle {
        display: block;
    }
}

 

/* HEADER = HERO SECTION */
.hero {
    padding: 100px 20px 25px;  /* espace haut/bas */
    text-align: left;
    background-color: var(--bg-color);
    min-height: auto;
    display: flex;
    justify-content: center;     /* centre le container horizontalement */
}

/* Conteneur du contenu (texte + image) */
.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1400px;          /* limite largeur totale */
    width: 100%;                /* pour que padding fonctionne sur petits écrans */
    padding: 0 20px;            /* marges gauche/droite */
    box-sizing: border-box;     /* inclut le padding dans la largeur */
}

/* Texte */
.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    font-size: 1.1em;
}

.notice {
    font-style: italic;
    margin-top: 20px;
}

a

.hero-text a {
    color: var(--accent-primary);
}

/* Image */
.hero img {
    flex: 1;
    min-width: 250px;
    max-width: 470px;           /* limite largeur image */
    width: 100%;
    height: auto;
    border-radius: 8px;          /* optionnel, arrondt les angles */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}


.hero-text h1 {
    font-size: 1.15rem;
    font-family:var(--font-body);
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-text p {
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 520px;
    hyphens: auto; /* active la césure pour éviter les gros espaces */
}



.hero-subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--accent-secondary);
}


/* Responsive mobile */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 1.2rem;
    }
    .hero {
        padding: 120px 20px 80px;
    }
    section {
    scroll-margin-top: 45px; /* ajustement de l'ancre sur mobile pour que le titre apparaisse */
    }
}


/* SECTIONS EN GENERAL */
section {
    padding: 30px 0px;
    background-color: var(--section-bg);
    scroll-margin-top: 60px; /* pour décaler l'ancre et afficher le titre */
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;   
}

.section-inner h1 {
    text-align: center;
}

section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

section h3 {
    font-size: 1.5em;
    margin-top: 15px;

    color: var(--accent-secondary);
}

section p, section ul {
    margin-bottom: 15px;
}


/* SECTION ABOUT */
#about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10 10px;
}

#about ul {
  margin-left: 1rem;
  padding-left: 1.5rem;
}

#about li {
    font-size: 0.9em;
}

/* SECTION CONTACT */
#contact {
    max-width: 1100px;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 0 10px;
    text-align: left;
    background-color: var(--bg-color);
}

.contact-image img {
    width: 100%;       /* prend la largeur du conteneur */
    height: auto;      /* garde les proportions */
    display: block;    /* supprime les petits espaces sous l’image */
}

@media (max-width: 768px) {
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }

    .contact-image {
        flex: 0 0 auto;      /* ne force plus de largeur fixe */
        max-width: 90%;      /* limite l'image à 90% du conteneur parent */
        margin: 0 auto;      /* centre horizontalement */
    }

        .contact-image img {
        width: 100%;         /* prend toute la largeur du conteneur limité */
        height: auto;
        display: block;
    }

    #contact {
        margin-bottom: 0;
        padding-bottom: 20px;
    }
}

#contact a {
  text-decoration: underline;
}

#contact h2 {
    margin-bottom: 20px;
}

/* Conteneur texte + image */
.contact-content {
    display: flex;
    gap: 30px;                /* espace entre texte et image */
    align-items: center;      /* centre verticalement texte et image*/  
}

/* Texte */
.contact-text {
    flex: 1;                  /* prend l’espace disponible */
}

/* Image */
.contact-image {
    flex: 0 0 auto;          /* largeur fixe max */
    width: 100%;
    max-width: 400px; /* ne dépasse jamais la largeur de son conteneur */
    height: auto;    /* garde les proportions */
    display: block;  /* évite les petits décalages */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* SECTION REFLEXIONS */
#reflexions {
    background-color: #f0f4f8 /* contraste net mais élégant */
}

.articles-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap; /* mobile-friendly */
}

.articles-container article {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33% - 20px); /* 3 colonnes sur desktop */
  background-color: var(--section-bg);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.articles-container article a {
  margin-top: auto;
  text-align: center;
}

.articles-container img {
    width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}


.articles-container article h3 {
  margin-top: 10px;
  font-size: 1.1em;
}

.articles-container article p {
  font-size: 0.9em;
  margin: 8px 0;
}

.more-articles {
  text-align: right;
  margin-top: 10px;
}

.more-articles a {
    font-size: 0.9em;
    text-decoration: underline;
}

/* Survol des images dans le conteneurs des articles "Réflexions" */
.article-image-link {
  position: relative;
  display: block;
  text-decoration: none;
}

.article-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 4px;
  z-index: 2;
  box-sizing: border-box;    /* IMPORTANT pour ne pas dépasser */
  padding: 0;                /* enlever tout padding éventuel */
}

.article-image-link:hover .article-overlay {
  opacity: 1;
}

.article-image-link:focus-visible .article-overlay {
  opacity: 1;
}

.article-image-link:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

@media (hover: none) {
  .article-overlay {
    opacity: 1;
  }
}


/* BOUTONS */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.button:hover {
    background-color: var(--button-hover);
    color: var(--button-text);
}



/* PAGE GENERALE DES ARTICLES */
/* Wrapper général pour les sections */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* S'arranger pour que le body de la page des articles soit plus proche du bandeau gris */
#articles {
    padding-top: 5px;
}

/* Liste des articles */
.articles-list {
  display: flex;
  flex-wrap: wrap;          /* responsive */
  gap: 20px;
  justify-content: space-between;
}

/* Carte article */
.article-card {
  background-color: #fff;
  flex: 1 1 calc(50% - 20px);  /* 2 colonnes sur grand écran */
  min-width: 280px;             /* pour mobile */
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Image article */
.article-card img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9; /* tu peux adapter */
}

/* Titres */
.article-card h2 {
  font-size: 1.25em;
  margin: 15px;
  color: var(--accent-primary);
}

/* Aperçu texte */
.article-card p {
  margin: 0 15px 15px;
  color: var(--text-dark);
  flex-grow: 1;
}

/* Bouton “Lire la suite” */
.article-card .read-more {
  margin: 0 15px 15px;
  color: var(--button-text);
  background-color: var(--button-bg);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  display: inline-block;
  transition: background 0.2s ease;
}

.article-card .read-more:hover {
  background-color: var(--button-hover);
}


/* FOOTER */
.site-footer {
    background-color: var(--footer-bg);  /* couleur pleine largeur */
    color: var(--footer-text);
    padding: 20px 0;                     /* padding vertical */
    width: 100%;                          /* obligatoire pour full width */
}

.footer-content {
    font-size: 0.9em;
    max-width: 1100px;                   /* même largeur que les sections */
    margin: 0 auto;                       /* centre le contenu */
    padding: 0 20px;                      /* padding horizontal uniforme */
    text-align: center;                    /* centré si tu veux */
}



/* Page des articles rédigés ! */
section.article-redige {
    padding: 10px 10px; /* même hauteur que le header */
    background-color: va    r(--section-bg);
     max-width: 1100px;
    margin: 0 auto;
}

/* Décalage ancre pour le header fixe */
.article-redige h1 {
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 20px;
 }

.article-redige h2 {
    font-size: 1.5em;
    text-align: left;
    color :rgb(0, 0, 0);
    margin-top: 1em;
    margin-bottom: -0.05em;
    font-style:italic;
 }

.article-redige a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.article-redige ul {
  margin-left: 1rem;
  padding-left: 1.5rem;
}

.article-redige a:hover {
 color: var(--button-hover);
}
.article-redige p {
  margin: 0 0 1.2em;
}

.article-redige img {
    display: block;           /* transforme l'image en bloc pour que margin fonctionne */
    margin: 0 auto;           /* centre horizontalement */
    min-height: 200px;
    max-height: 300px;         /* limite la largeur */            /* responsive */        /* conserve le ratio */
    border-radius: 8px;       /* optionnel */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;        /* utile si tu recadres l'image via width/height */
}


/* Mobile responsive : texte plus petit, padding réduit */
@media (max-width: 768px) {
  .article-redige {
    padding: 10px 10px;
  }
}


.retrait p {
  margin-left: 1.5em;
}