/* Styles de base et réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #f0f4f8;
    overflow-x: hidden;
}

/* En-tête Fixe et Transparent */
.fixed-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 119, 182, 0.8);
    color: #fff;
    padding: 10px 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav .logo img {
    height: 60px;
}

nav .nav-links {
    display: flex;
    list-style: none;
}

nav .nav-links li {
    margin: 0 15px;
}

nav .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.client-button {
    display: flex;
    align-items: center;
}

.client-button a {
    color: #fff;
    font-size: 30px;
    text-decoration: none;
}

.client-button span {
    color: #fff;
    margin-left: 5px;
}

:root{
  --brand-navy: #123b77;      /* bleu profond (texte/accents sombres) */
  --brand-teal: #22b8b5;      /* turquoise (cta/accents) */
  --brand-violet: #6f5ad1;    /* pointe de violet */
  --text-on-dark: #ffffff;
  --text-on-light: #0b1020;
  --overlay-1: rgba(18, 59, 119, 0.55);  /* navy 55% */
  --overlay-2: rgba(111, 90, 209, 0.35); /* violet 35% */
}

/* Bannière Principale */
.hero-section{
  /* image + dégradé overlay en une seule propriété (meilleure perf/peinture) */
  background:
    linear-gradient( to bottom right, var(--overlay-1), var(--overlay-2) ),
    url('background.jpg') center/cover no-repeat;
  color: var(--text-on-dark);
  text-align: center;
  display: grid;
  place-items: center;
  padding-block: clamp(64px, 8vh, 120px);
  padding-inline: 20px;
  min-height: 72vh;           /* évite le 100vh qui “coupe” sur mobile avec la barre d’URL */
  position: relative;
  overflow: hidden;
}

.hero-content{
  max-width: 980px;           /* meilleure lisibilité sur grands écrans */
  margin-inline: auto;
}

.hero-content h1, .hero-content p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-eyebrow{
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .95;
  margin-bottom: .35rem;
  font-size: clamp(0.95rem, 1.2vw + .4rem, 1.15rem);
  color: #dfe9ff;
}

.hero-content h1{
  font-size: clamp(1.8rem, 3.5vw + 1rem, 3.2rem);
  line-height: 1.15;
  margin: 0 0 clamp(12px, 1.2vw, 18px);
  text-wrap: balance;
}

.hero-content p{
  font-size: clamp(1.03rem, 1.1vw + .7rem, 1.25rem);
  line-height: 1.6;
  margin: 0 0 clamp(24px, 2.4vw, 40px);
  color: #eef4ff;
}

/* Ombre bien visible sur les textes */
.hero-content h1,
.hero-content p,
.hero-eyebrow{
  text-shadow:
    0 4px 24px rgba(0,0,0,.45),
    0 1px 2px rgba(0,0,0,.35);
}

/* Bouton d'appel à l'action */
.cta-button{
  display: inline-block;
  background: var(--brand-teal);
  color: var(--text-on-dark);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(34,184,181,.25);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.cta-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(34,184,181,.32);
  background: #1aa7a5; /* un ton plus sombre au survol */
}

.cta-button:focus-visible{
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(111,90,209,.35);
}

/* Variante “fond sombre” si tu veux inverser plus tard
.cta-button.is-ghost{
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.8);
}
*/

/* Réduction des animations si l’utilisateur préfère moins de mouvements */
@media (prefers-reduced-motion: reduce){
  .animate__animated{
    animation: none !important;
    transition: none !important;
  }
}

/* Conteneur standard pour limiter la largeur et centrer */
.container{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section présentation */
.presentation-section{
  background: #f6f9fc; /* plus clair que #f0f4f8 pour créer une vraie section */
  padding: 56px 0 64px;
  border-top: 1px solid rgba(18,59,119,.08);
  border-bottom: 1px solid rgba(18,59,119,.06);
}

.presentation-section h2{
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2rem);
  color: var(--brand-navy);
  text-align: center;
  margin-bottom: 22px;
}

.presentation-section .lead p{
  font-size: clamp(1.05rem, .9rem + .5vw, 1.15rem);
  line-height: 1.85;
  color: #2a2f36;
  margin-bottom: 18px;
  text-align: justify;
}

.presentation-section .body p{
  font-size: 1.02rem;
  line-height: 1.9;
  color: #2f3440;
  margin-bottom: 18px;
  text-align: justify;
}

/* CTA Association : visible, respirant, cohérent */
.cta-wrap{
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.association-button{
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-navy));
  box-shadow: 0 10px 24px rgba(18,59,119,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.association-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18,59,119,.30);
  filter: brightness(1.03);
}

.association-button:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(111,90,209,.35);
}

/* petits écrans */
@media (max-width: 560px){
  .presentation-section{ padding: 44px 0 52px; }
  .association-button{ padding: 12px 20px; font-size: .95rem; }
}

/* Services Grid */
.services-home-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #e9f7fd;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hover-effect i {
    font-size: 40px;
    color: #0077b6;
    margin-bottom: 15px;
}

/* Témoignages Simplifiés */
.testimonials-section {
    padding: 50px 20px;
    background-color: #f7f9fa;
    text-align: center;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: left;
}

.testimonial-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.testimonial-card h4 {
    margin-top: 15px;
    color: #0077b6;
    font-weight: bold;
}

/* Section Actualités */
.news-section {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.news-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.news-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: left;
}

.news-link {
    color: #0077b6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.news-link:hover {
    color: #005f86;
}

/* Styles pour la boîte modale (popup) */
.popup {
    display: none; /* Masqué par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
}

.popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-content h2 {
    color: #0077b6;
}


/* Footer */
footer {
    background-color: #0077b6;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links a, .footer-social a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.footer-social a {
    font-size: 20px;
}

.footer-links a:hover, .footer-social a:hover {
    color: #cfe1f5;
}

/** Style du Bouton Association **/
.association-button {
  margin-top: 30px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-navy));
  box-shadow: 0 6px 14px rgba(18, 59, 119, 0.25);
}

.association-button:hover {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-violet));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(18, 59, 119, 0.35);
}