:root {
   --blue: #56739A;
   --blue-light: #eef3fb;
   --accent: #BBD2E1;
   --accent2: #dedede;
   --text: ##424242;
   --muted: #666;
   --bg: #f5f7fa;
   --radius: 10px;
   --wth: 800px
}

* { box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
  }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: calibri;
 max-width: var(--wth);
   margin: 0 auto;


}
.center {
  display: block;
  margin: auto;
}

/* ENTETE */
.wrap {
  max-width: var(--wth);
  margin: 0 auto;
  padding: 0 1.5rem;
}

#header {
  height: 110px;
  background-image: url('../img/banner.png');
  background-repeat: repeat-x;
  background-position: center top;
}

.logos {
  height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;     /* le DIV est centré */
}

#Rlogo,
#Llogo {
  width: 280px;
  height: 100px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center; /* ← le dessin est centré */
}

#Rlogo {
  background-image: url('../img/logo.png');
  background-position: left center;
}

#Llogo {
  height: 70px;
  background-image: url('../img/logo2.png');
  background-position: right center;
}

h2 {
   font-size: 1.3rem;
   color: var(--blue);
   text-align: center;
   letter-spacing: 3px;
}


/* CONTAINER */


.container {
   max-width: var(--wth);
   margin: 0 auto;
   padding: 0 ;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.card {
  transition: box-shadow 0.3s ease;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 0.8rem;
  box-shadow:
  0 -1px 3px rgba(0, 0, 0, 0.15),
  0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 5px;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.30); /* Ombre plus prononc e au hover */
}
.card h2 {
   margin-top: 0;
   font-size: 1rem;
   color: var(--blue);
   margin-bottom: 0rem;
   text-align: left;
   letter-spacing: 0px;
}
.card img {
  vertical-align: middle; /* Aligne verticalement l'image avec le texte */
  width: 30px; 
  margin: 0 2px; 
}

.card p {
  color: var(--muted);
  flex-grow: 1;
  margin-top: 0.5rem;
  margin-bottom: 0rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.tags {
  font-size: 0.9rem;
  color: var(--blue);
  margin: 10px auto;
  padding-top:10px;
  font-style: italic;
  font-weight: 600;
  margin: 0 auto 25px auto;
}

/* LES DIFFERENTS BOUTONS */
.btns {
  width: 80%;
  margin: 0 auto 10px auto;
  display: flex;            
  justify-content: center;  
  gap: 10px;      
}

.btn {
      margin: auto;
      padding: 6px 16px;
      border-radius: 10px;
      background: var(--blue);
      color: white;
      text-decoration: none;
      font-weight: 600;
      text-align: center;
      transition: background-color 0.3s ease;
 display: flex;
  gap: 10px;
}

.btn2 {
  display: flex;
  align-items: center;     /* centre verticalement icône + texte */
  justify-content: center; /* centre horizontalement */
  gap: 6px;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--blue);
  transition: background-color 0.3s ease;
}
.btn2 img {
  vertical-align: middle; /* Aligne verticalement l'image avec le texte */
  width: 24px; 
  height: 24px;
  margin: 0 2px; 
}


.icon {
  font-size: 15px;
}    
    .btn:hover {
      background: var(--accent);
      text-align: center;
      font-size: 0.9rem;
    }
   .btn2:hover {
      font-style: italic;
      text-decoration: underline;
      font-weight: 700;
      background:white;
    }


    /* FOOTER */
footer {
      margin-top: 0;
      padding: 0 0;
      text-align: center;
      font-size: 0.8rem;
 font-style: italic;
      color: var(--muted);
}
.trait {
  border: none;
  height: 1px;
  background-color: #56739A; /* couleur du trait */
  margin: 20px 0 0 0;
}  
/* NAVIGATION */
#main-nav {
  max-width: var(--wth);
  margin: 0 auto;          
  text-align: left;    
  font-size: 0.8em;
  background: var(--white);
  padding: 0rem;
 color: var(--blue);  
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
#main-nav:hover {
      box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* Ombre plus prononc e au hover */
    }
   
#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0px;                    /* moins d espace entre liens */
}

#main-nav ul li a {
  color: var(--blue);           /* couleur discr te (bleu personnalis ) */
  text-decoration: none;
 text-align: center;
  font-style: italic;
  padding: 0px 8px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav img {
    vertical-align: middle; /* Aligne verticalement l'image avec le texte */
    width: 14px; /* taille petite */
    height: 14px;
    margin: 0 4px; 
  }
#main-nav ul li a:hover {
  background-color: rgba(0, 0, 255, 0.1); /* l ger survol bleu clair */
}
