/* ===== Reset minimal ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; /* sections prennent toute la hauteur de l’écran */
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; 
    line-height: 1.45;
    color: #1b2330;
    background: #f6f9f7;
    padding-top: 0;
}

/* ---------------- Header / Navbar ---------------- */
header {
    background: linear-gradient(180deg,#2f6c2f 0%,#245424 100%);
    color: #fff; 
    padding: 2px;
    position: sticky;
    top: 0;
    z-index: 80; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.top-row {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    max-width: 1100px; 
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0px;
}

.brand h1 {
    font-size: 1.1rem; 
    letter-spacing: 0.4px;
}
.brand :hover {
     background-color: rgba(9, 88, 236, 0.823); /* léger effet au survol */
    text-decoration: none;
}

nav {
    
margin-left: auto;
}

nav ul {
    display: flex; 
    gap: 1px; 
    list-style: none;
}

nav a {
    color: #e8f6e8;
    text-decoration: underline;
    padding: 1px 2px 1px 0px;  
    border-radius: 8px; 
  
    display:flexbox;
}

nav a:hover {
     background-color: rgb(242, 19, 19); /* léger effet au survol */
    text-decoration: none;
}

.plateforme h3  {
    font-size: 1.1rem; 
    letter-spacing: 0.4px;
}


.result {
  display: flex;
  justify-content: center;        /* centre le h3 */
  align-items: center;

  padding: 10px 20px;
  border-radius: 8px;
  position: relative;
  margin-top: 5px;
}


.result h3 {
  margin: 0;
  color: white;
  text-align: center;
  flex: 1;                        /* permet au h3 d'occuper tout l'espace central */
}

.result a {
  color: white;                   /* même couleur que le h3 */
  position: absolute;             /* fixé à droite mais dans le même cadre */
  right: 1px;
  padding: 0px 1px;
  border-radius: 5px;
  transition: background 0.3s;
  background-color: #022e0b;      /* cadre commun */
  text-decoration: underline;
  font-size: 0.8em;

}

.result a:hover {
  background-color: rgb(242, 19, 19); /* léger effet au survol */
  text-decoration: none;
}



/* ---------------- Banner ---------------- */
.banner {
    background: #eaf6ea;
    color: #134413;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.95rem;
}

/* ---------------- Hero / Intro ---------------- */
.intro {
    max-width: 1600px; 
    margin: 10px auto; 
    padding: 20px; 
   
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(33,33,33,0.06);
    background-color: rgba(164, 185, 202, 0.9);
}

.intro li {
    font-size: 1rem;
    color: #0f0f12;
    margin: 5px 0; /* marge en haut et en bas */
    line-height: 1.6;
    list-style-type: "☀ ";
    text-align: justify;
    transition: color 0.3s ease;
    letter-spacing: 1px;
     
}

.intro li:hover {
    color: #fa0202;
}

.intro h2 {
    font-size: 1rem; 
    margin-bottom: 10px;
    text-align: justify;
    background: #2f6c2f; 
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(33,33,33,0.06);
    color: #fff;  
    padding: 6px 12px;
}

.intro h3 {
    font-size: 1em;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 2px solid #2e5c1a;
    display:block;
    padding: 6px 12px;
    text-align: center;
    background-color: #2f6c2f;
    border-bottom: 2px solid #2e5c1a;
}

.intro p {
  
    font-size: 1em;
     max-width: 900px;
    margin: auto;
    text-align: justify;
    line-height: 1.6;
    padding: 0 10px;  
}

section#int   ul,li {
    max-width: 95%;
    margin: auto;
    text-align: justify;
    line-height: 1;
    font-size: 1rem;
     padding: 0 10px;  
}
.intro Conclusion {  
    font-size: 1rem;
    color: #02000c;
    margin: 5px 0; /* marge en haut et en bas */
    line-height: 1.6;
    list-style-type: "☀ ";
    text-align: justify;
    transition: color 0.3s ease;
 }     

section#int  ul p {

    max-width: 100%;
    margin: auto;
    text-align: justify;
    font-size: 1rem;
    padding: 0 10px;  
    line-height: 1.8;
    padding: 0 10px;  
    
}

section#int p::before {
    margin-right: 6px;
}
section#int p:hover {
    color: #fefeff;
}





/* ===== Section principale : #plateforme ===== */
/* ===== Section Photo ===== */
section#photo {
 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    background-color: rgba(198, 220, 221, 0.9);
    padding: 30px 2em;

}

section#photo div {
    flex: 1 1 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    padding: 10px;
    text-align: center;
    transition: transform 0.4s ease;
}


section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;

}

/* Texte à l'intérieur de section#photo */
section#photo p {
    text-align: center;
    font-size: 0,1em;
    text-decoration: underline;
    color: tomato;
    margin-bottom: 30px;
}

section#photo  h3 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 2px solid #2e5c1a;
    display:block;
    padding: 6px 12px;
    text-align: center;
    background-color: #2f6c2f;
    border-bottom: 2px solid #2e5c1a;
    border-radius: 15px;
}

/* Effet au survol des blocs */
section#photo div:hover {
    transform: scale(1.05);
}


/* ===== Responsive pour petits écrans ===== */
@media (max-width: 768px) {
    section#photo div {
        flex: 1 1 80%;                   /* Les blocs prennent 80% de la largeur */
        max-width: none;                  /* Supprime la limite pour plus de fluidité */
    }

    section#photo {
        flex-direction: column;           /* Contenu empilé verticalement */
        gap: auto;                        /* Réduit l’espace entre éléments */
    }
}



/* ---------------- SECTION DOCTORAT ---------------- */
section#doctorat {
    display: block;
    max-width: 1400px;
    margin: 5px auto;
    padding: 10 10px;
    text-align: center;
    background-color: #d7d8cf;
    color: #fff;
}

#doctorat h2 {
    font-size: 1em;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 2px solid #2e5c1a;
    display: inline-block;
    padding: 6px 12px;
    text-align: center;
    background-color: #2f6c2f;
    border-bottom: 2px solid #2e5c1a;
}

/* Paragraphes et liens */
/* Paragraphes et liens dans la section #doctorat */
#doctorat p,          /* Sélectionne tous les paragraphes <p> */
#doctorat a {         /* et tous les liens <a> à l'intérieur de #doctorat */ 
    display: inline-block; /* Rend les éléments en ligne mais pouvant avoir largeur/hauteur et padding */ 
    font-size: 0.8em;      /* Taille du texte réduite à 80% de la taille par défaut */ 
    background-color: #2f6c2f; /* Fond vert moyen pour mettre en valeur les textes */ 
    color: #fff;           /* Texte blanc pour contraste avec le fond */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); /* Ombre portée sous l’élément pour effet de profondeur */
    margin-bottom: 35px;   /* Espace sous chaque élément pour les séparer verticalement */
    padding: 6px 12px;     /* Espace interne : 6px haut/bas, 12px gauche/droite */
    border-radius: 6px;    /* Angles arrondis pour un aspect plus doux */
    text-align: center;    /* Centre le texte à l’intérieur de l’élément */
    border-bottom: 2px solid #2e5c1a; /* Bordure inférieure verte foncée pour souligner l’élément */
}

/* ---------------- Cartes des documents ---------------- */
.docs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    background-color: #2f6c2f; 
    padding-top: 1em;
     
   
}

.doc-item {
    background-color: rgba(4,14,22,0.72);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    width: 300px;
    height: 250px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
 
}

.doc-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(244, 2, 2, 0.6);
}

.doc-item h3 {
    margin-bottom: 10px;
    color: #b8f1a0;
}

.doc-item a,
.doc-item button {
    display: inline-block;
    margin-top: 2px;
    padding: 2px 14px;
    background-color: #2f6c2f;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;

}

.doc-item a:hover,
.doc-item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    background-color: rgb(242, 19, 19); /* léger effet au survol */
    text-decoration: none;
}

.doc-item video {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* ---------------- Modal Viewer ---------------- */
#viewer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#viewer.open {
    opacity: 1;
    pointer-events: auto;
}

#viewer-content {
    background: #fff;
    border-radius: 12px;
    width: 80%;
    max-width: 900px;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#viewer.open #viewer-content {
    transform: scale(1);
}

#viewer-header {
    background: #2f6c2f;
    color: #fff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#viewer-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

#viewer-header button:hover {
    transform: scale(1.2);
    color: #ffd700;
}

#viewer-body {
    flex: 1;
    background: #000;
    padding: 0;
}

/* ---------------- Section Contact ---------------- */
section#contact {
    padding: 0.1em;
    background-color: #d7d8cf;
}

section#contact h2 {
    font-size: 2em;
    text-align: center;
    text-decoration: underline;
}

section#contact  a {
  text-decoration: none;
  color: white;                   /* même couleur que le h3 */
  position: absolute;             /* fixé à droite mais dans le même cadre */
  right: 1px;
  font-size: 0.8em;
  padding: 0px 1px;
  border-radius: 5px;
  transition: background 0.3s;
    background-color: #00020a;      /* cadre commun */
    text-decoration: underline;
}

section#contact  a:hover {
  background-color: rgb(242, 19, 19); /* léger effet au survol */
  text-decoration: none;
}

section#contact form {
    height: 500px;
    width: 70%;
    max-width: 500px;
    margin: 1em auto;
    text-align: center;
    font-size: 16px;
    background-color: #a6ff00;
    padding: 2px;
    border-radius: 25px;
    box-shadow: 25px 8px 25px 14px rgba(0,0,0,0.5);
}

section#contact input,
section#contact p,
section#contact textarea,
section#contact button {
    border: none;
    width: 90%;
    max-width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

textarea {
    padding: 3px;
}

.form-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-envoi, .btn-lire {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    background-color: #2f6c2f;
    color: #fff;
    border: none;
    transition: background 0.3s, transform 0.2s;
    min-width: 100px;
}

.btn-envoi:hover, .btn-lire:hover {
    background-color: #45a145;
    transform: translateY(-1px);
}
