/* style.css - Pascal Girerd */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f7;
    color: #333;
}

header {
    background-color: #145C59;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    position: relative;
}

header .header-subtitle {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    color: white;
}

header .logo-header {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    height: 120px;
    }

nav {
    background-color: #1A7A76;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0;
}

nav a {
    display:inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    background-color: #145C59;
   color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav a.active {
    background-color: #145C59;
    color: #ffffff;
    text-decoration: none;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

footer {
    text-align: center;
    background-color: #1A7A76;
    color: white;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
}

h1, h2 {
    color: #1A7A76;
.illustration {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}
}
/* --- Bannière d'accueil --- */
.hero-banner {
    position: relative;
    text-align: center;
    color: white;
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
}

.banniere img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    filter: brightness(70%);
}

.hero-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-text h2 {
    font-size: 2.2rem;        /* un peu plus petit pour tout faire tenir */
    margin: 0;
    white-space: nowrap;      /* empêche le retour à la ligne */
    overflow: hidden; 
}

.hero-text p {
    font-size: 1.2rem;
}
header h1 {
    color: white;
}
.about {
    .about {
    padding: 1.5rem 1rem 3rem; /* haut réduit à 1.5rem comme les prestations */
    background-color: #F9F9F7;
    margin-top: 0;
}

}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-image img {
    width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    color: #1A7A76;
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align:justify;
}

@media (max-width: 600px) {
    header .logo-header {
        height: 50px;
        right: 1rem;
    }
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;           /* espace entre bannière et icônes */
    padding-left: 5rem;  /* petit décalage vers la droite */
    padding-right: 0; /* limite l’espace à droite */
    margin-top: 0.4rem;
    margin-bottom: 2rem;
}



.hero-banner {
    flex: 1;
    position: relative;
    margin-left: 1rem;
}

.social-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: #f9f9f7; /* même fond que ta page */
    padding: 1rem;
}

.social-side img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-side img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
header {
    background-color: #145C59;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    position: relative;
}

header .logo-header {
    position: absolute;
    top: 50%;
    right: 10rem;
    transform: translateY(-50%);
    height: 120px;
}

header .logo-left {
    position: absolute;
    top: 50%;
    left: 10rem;
    transform: translateY(-50%);
    height: 120px;  /* même taille que le logo droit pour alignement */
}
.contact-container {
    display: flex;
    gap: 2rem;          /* espace entre les deux colonnes */
    max-width: 1000px;
    margin: 2rem auto;
}

.contact-info {
    flex: 1;             /* occupe une part égale */
    background-color: #F9F9F7;
    padding: 1rem;
    border-radius: 8px;
}

.contact-form {
    flex: 1;             /* occupe l’autre moitié */
    background-color: #F9F9F7;
    padding: 1rem;
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form button {
    background-color: #1A7A76;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.contact-form button:hover {
    background-color: #145C59;
}

/* Responsive : une colonne sur petit écran */
@media (max-width: 800px) {
    .contact-container {
        flex-direction: column;
    }
}
.contact-info .icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0.5rem;
}
.contact-info .tel-note {
    font-size: 1.1rem;             /* texte plus grand */
    color: #1A7A76;               /* même couleur que ton titre "Contactez-moi" */
    font-weight: 600;             /* un peu plus visible */
    margin-left: 2.3px;            /* aligné avec le téléphone */
    margin-top: 0.7rem;           /* espace sous le numéro */
    text-transform: none;         /* garde ton texte normal */
    text-align: center; 
}

.contact-info .decor-line {
    display: block;
    margin: 0.6rem auto 1rem auto;   /* espace autour de l’image, alignée au texte */
    width: 150px;                 /* tu peux ajuster selon ton image */
    height: auto;
    opacity: 0.85;                 /* légère transparence pour l’élégance */
}
/* === Page Thématiques === */
.thematiques {
    text-align: center;
    padding: 1.5rem 1rem 3rem; 
    margin-top: 0; 
}

.thematiques h2 {
    color: #1A7A76;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.thematiques .intro-text {
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.theme-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.theme-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.theme-card h3 {
    color: #145C59;
    font-size: 1.4rem;
    margin: 1rem 0 0.5rem;
}

.theme-card p {
    font-size: 1rem;
    color: #444;
    padding: 0 1rem 1.5rem;
    line-height: 1.5;
}
/* --- Correction espacement haut page Thématiques --- */
main {
    margin-top: 0;
    padding-top: 0;
}

.thematiques {
    text-align: center;
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
    background-color: #F9F9F7;
}

.thematiques h2 {
    margin-top: 0 !important;
    padding-top: 0;
}
.treks {
    padding: 1.5rem 1rem;
    background-color: #F9F9F7;
    text-align: center;
}

.treks h2 {
    color: #1A7A76;
    margin-top: 0;   
    margin-bottom: 1rem;
}

.treks .intro-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.treks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    justify-items: center;
}

.trek-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    padding-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trek-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.trek-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trek-card h3 {
    color: #145C59;
    margin: 1rem 0 0.5rem;
}

.trek-card p {
    padding: 0 1rem 1.5rem;
    line-height: 1.4;
}
@media (max-width: 700px) {
    .treks-grid {
        grid-template-columns: 1fr; /* une seule colonne sur smartphone */
    }
}
.trek-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.trek-info .icon {
    width: 18px;
    height: 18px;
    margin-right: 0.3rem;
    vertical-align: middle;
    stroke: #1A7A76; /* couleur principale du site */
    fill: #1A7A76; 
}
.rando-ete {
    background-color: #F9F9F7;
    padding: 1.5rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 0;
}

.rando-ete h2 {
    color: #1A7A76;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rando-ete .intro-text {
    max-width: 1000px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
}

.rando-text {
    flex: 1;
    line-height: 1.6;
}

.rando-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.contact-invite {
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
}

.contact-invite a {
    color: #145C59;
    text-decoration: none;
}

.contact-invite a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rando-section {
        flex-direction: column;
        text-align: center;
    }

    .rando-section:nth-child(even) {
        flex-direction: column;
    }

    .rando-image img {
        max-width: 90%;
    }
}
.rando-hiver {
    background-color: #F9F9F7;
    padding: 1.5rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 0;
}

.rando-hiver h2 {
    color: #1A7A76;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rando-hiver .intro-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
}
/* === Harmonisation globale des titres h2 sur toutes les pages === */
main section h2,
.about h2,
.thematiques h2,
.treks h2,
.rando-ete h2,
.rando-hiver h2 {
    color: #1A7A76;
    font-size: 1.6rem;       /* même taille que sur "Qui suis-je" */
    font-weight: 700;
    text-align: center;
    margin-top: 0;           /* supprime les écarts sous le menu */
    padding-top: 1.5rem;     /* espace identique juste sous le bandeau */
    margin-bottom: 1.5rem;   /* espace régulier en dessous du titre */
}
/* === Ajustement des titres non centrés === */
.about h2,
.contact-info h2 {
    text-align: left;
    padding-left: 0;  /* aligne le titre avec le texte en dessous */
}
/* === Mise en page textes centrés + galeries 4-5 photos === */
.rando-section {
  text-align: center;
  margin-bottom: 3rem;
}

.rando-text {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.rando-text h3 {
  color: #145C59;
  margin-bottom: 0.5rem;
}

/* --- Galerie multi-images --- */
.rando-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.rando-gallery img {
  flex: 1 1 calc(20% - 1rem); /* 5 images sur une ligne */
  max-width: calc(20% - 1rem);
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rando-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Version mobile --- */
@media (max-width: 900px) {
  .rando-gallery img {
    flex: 1 1 calc(45% - 1rem); /* 2 images par ligne */
    max-width: calc(45% - 1rem);
  }
}

@media (max-width: 500px) {
  .rando-gallery img {
    flex: 1 1 100%; /* 1 image par ligne */
    max-width: 100%;
    height: auto;
  }
}
/* --- Encadrés pour les sections demi-journée, journée et refuge --- */
.rando-card {
  background-color: #E7F4F3; /* vert clair doux */
  border: 1px solid #1A7A76; /* fine bordure verte */
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 0.8rem 1.5rem 1.5rem 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  transition: none !important;
  transform: none !important;
}

.rando-card:hover {
  transform: none !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important; /* même ombre au survol */
}

.rando-card h3 {
  color: #145C59;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  margin-top: 0;
}

.rando-card p {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
  margin-top: 0;
  margin-bottom: 0.8rem;
}
/* --- Fixe définitivement les cadres texte (ne bougent plus du tout) --- */
.rando-card {
  background-color: #E7F4F3; /* vert clair doux */
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  transition: none !important;
  transform: none !important;
}

.rando-card:hover {
  transform: none !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important; /* identique à l'état normal */
}
/* === Effet Lightbox === */
.lightbox {
  display: none; /* masquée par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox .close:hover {
  color: #1A7A76;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* --- Traits fins uniquement sur certaines pages --- */
.page-rando-ete h2::before,
.page-rando-ete h2::after,
.page-rando-hiver h2::before,
.page-rando-hiver h2::after,
.page-treks h2::before,
.page-treks h2::after,
.page-thematiques h2::before,
.page-thematiques h2::after {
    content: "";
    display: inline-block;
    width: 50px;           /* longueur du trait */
    height: 2px;           /* épaisseur du trait */
    background-color: #1A7A76;  /* couleur du thème */
    vertical-align: middle;
    margin: 0 2rem;        /* espace entre le texte et le trait */
    border-radius: 2px;
    opacity: 0.7;
}
/* ==================== MOBILE & TABLETTE ==================== */
@media (max-width: 900px) {

  /* --- Header logos et titre --- */
  header .logo-left,
  header .logo-header {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  header .logo-left {
    left: 1rem;
    height: 50px; /* réduit sur mobile */
  }

  header .logo-header {
    right: 1rem;
    height: 60px; /* réduit sur mobile */
  }

  header h1 {
    font-size: 1.6rem; /* titre plus petit */
    margin: 0.5rem 0 0.2rem 0;
  }

  header .header-subtitle {
    font-size: 1rem;
    margin-top: 0.2rem;
  }

  /* --- Navigation verticale --- */
  nav {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.3rem 0;
  }
  nav a {
    padding: 0.5rem 0;
  }

  /* --- Section héro (bannière + réseaux) --- */
  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-banner {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
    white-space: normal; /* permet retour à la ligne */
  }

  .social-side {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .social-side img {
    width: 40px;
    height: 40px;
  }

  /* --- Galeries photos --- */
  .rando-gallery img {
    flex: 1 1 calc(45% - 1rem); /* 2 images par ligne sur tablette */
    max-width: calc(45% - 1rem);
    height: 150px;
  }

  /* --- Cartes texte --- */
  .rando-card {
    max-width: 90%;
    padding: 1rem;
  }

  /* --- Sections demi-journée/journée/refuge --- */
  .rando-section {
    flex-direction: column;
    text-align: center;
  }

  /* --- Lightbox --- */
  .lightbox-content {
    max-width: 95%;
    max-height: 80%;
  }

  .lightbox .close {
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
  }

  /* --- Page qui suis-je, prestations, thématiques, treks --- */
  main section, .about, .thematiques, .treks, .rando-ete, .rando-hiver {
    padding-left: 1rem;
    padding-right: 1rem;
  }

}

/* --- Version très petite écran ≤ 500px --- */
@media (max-width: 500px) {
  .rando-gallery img {
    flex: 1 1 100%;
    max-width: 100%;
    height: auto;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .rando-card {
    padding: 0.8rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  header .header-subtitle {
    font-size: 0.9rem;
  }

  .social-side img {
    width: 35px;
    height: 35px;
  }
}
/* ============================= */
/* 🌄 Menu responsive universel  */
/* ============================= */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: #F9F9F7; /* couleur identique au reste du site */
    padding: 0.8rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 0;
    margin: 0;
    font-size: 1rem;
    color: #145C59;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  nav a:hover,
  nav a.active {
    background-color: #E2EFED;
    color: #1A7A76;
  }

  /* Pour éviter que le menu soit collé au contenu suivant */
  main {
    margin-top: 1rem;
  }
}

/* ============================= */
/* 🖼 Ajustement des en-têtes    */
/* ============================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header img.logo-left,
  header img.logo-header {
    width: 70px;
    margin: 0.3rem 0;
  }

  header h1 {
    font-size: 1.6rem;
    margin: 0.2rem 0;
  }

  .header-subtitle {
    font-size: 0.9rem;
  }
}
/* ============================= */
/* 🌄 MENU MOBILE AVEC BOUTON ☰  */
/* ============================= */

/* Par défaut : bouton masqué, menu horizontal */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #145C59;
  margin: 0.5rem auto;
}

/* --- Mode mobile --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    text-align: center;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #F9F9F7;
    width: 100%;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    color: #145C59;
    text-decoration: none;
    border-bottom: 1px solid #eee;
  }

  nav a:hover,
  nav a.active {
    background-color: #E2EFED;
    color: #1A7A76;
  }

  header {
    text-align: center;
  }

  header img.logo-left,
  header img.logo-header {
    width: 70px;
  }

  header h1 {
    font-size: 1.6rem;
    margin: 0.2rem 0;
  }

  .header-subtitle {
    font-size: 0.9rem;
  }
}
/* ============================= */
/* ✅ Correctif menu mobile bloqué (été/hiver) */
/* ============================= */
@media (max-width: 768px) {
  body.page-rando-ete nav,
  body.page-rando-hiver nav {
    display: none; /* masqué par défaut */
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #F9F9F7;
    width: 100%;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
  }

  body.page-rando-ete nav.active,
  body.page-rando-hiver nav.active {
    display: flex !important; /* affiché quand menu actif */
  }

  body.page-rando-ete nav a,
  body.page-rando-hiver nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    color: #145C59;
    text-decoration: none;
    border-bottom: 1px solid #eee;
  }

  body.page-rando-ete nav a:hover,
  body.page-rando-ete nav a.active,
  body.page-rando-hiver nav a:hover,
  body.page-rando-hiver nav a.active {
    background-color: #E2EFED;
    color: #1A7A76;
  }
}
/* ============================= */
/* ✅ Ajustement image bannière mobile */
/* ============================= */
@media (max-width: 768px) {
  .hero-image {
    height: auto;
    max-height: 50vh;
    object-fit: contain;
  }
}
@media (max-width: 700px) {
  .about-container {
    flex-direction: column-reverse; /* inverse l’ordre : le texte au-dessus, la photo en dessous */
  }

  .about-image {
    text-align: center; /* centre la photo */
    margin-top: 1rem; /* petit espace entre texte et image */
  }
}
