/* === GLOBAL RESETS & DEFAULTS === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 17px;
  line-height: 1.7;
  color: #3C4043;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #1E2439;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 { /* Pour la page d'accueil */
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

h2 { /* Pour le sous-titre du hero page d'accueil et H2 généraux */
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  text-align: center;
}

.section-title { /* Classe pour les titres de section (typiquement H2) */
    text-transform: uppercase;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    font-size: clamp(22px, 4vw, 30px); 
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #F5A623;
    margin: 10px auto 0;
}

h3 { 
  font-size: 20px;
  font-weight: 600;
  color: #1E2439;
  margin-bottom: 15px;
}

p {
  margin-bottom: 1.2em;
  color: #3C4043;
}
p strong {
    font-weight: 600;
    color: #1E2439;
}

a {
  color: #F5A623;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover {
  color: #d18c14;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

ul { /* Style global pour les listes non ordonnées */
  list-style: none;
  padding-left: 0;
}
li {
    margin-bottom: 0.5em;
}

.button-primary {
  display: inline-block;
  background-color: #F5A623;
  color: #ffffff !important; /* Assurer que le texte est blanc */
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.button-primary:hover {
  background-color: #d18c14;
  color: #ffffff !important;
  text-decoration: none;
}
.button-large {
    padding: 14px 32px;
    font-size: 17px;
}
.button-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #1E2439 !important; 
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #d0d0d0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.button-secondary:hover {
  background-color: #f8f9fa; 
  border-color: #1E2439;
  color: #1E2439 !important;
}


/* === HEADER === */
#header {
  background-color: #ffffff;
  padding: 0;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
}
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-container img {
  height: 50px; 
}
#header nav ul { 
  display: flex;
  gap: 22px;
  align-items: center; /* Aligner verticalement les items du menu */
}
#header nav li a {
  color: #3C4043;
  font-weight: 500;
  font-size: 15px;
  padding: 5px 0;
  position: relative;
  white-space: nowrap; /* Empêcher le texte des liens de nav de passer à la ligne */
}
#header nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #F5A623;
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}
#header nav li a:hover::after {
    width: 100%;
    left: 0;
}
#header nav li a:hover {
    color: #F5A623;
}
#header nav ul li.mobile-cta-item {
  display: none; 
}
#mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #1E2439;
  cursor: pointer;
}

/* === SECTIONS PADDING & STRUCTURE === */
section {
  padding-top: 70px;
  padding-bottom: 70px;
}
section:nth-child(even):not(.tarifs-section):not(.contact-form-section):not(.faq-section):not(.guide-page-section) {
    /* Ajusté pour ne pas affecter le fond de .guide-page-section si elle est paire et non explicitement colorée */
    background-color: #f8f9fa;
}
.hero-section {
    padding-top: 40px;
}
.separator {
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  margin: 40px auto;
}

/* === HERO SECTION (index.html) === */
.hero-section h2 { /* Cible le H2 spécifique sous le H1 de la section hero */
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  color: #5F6368;
  margin-bottom: 30px;
  margin-top: 5px;
  text-transform: none; /* Assurer qu'il n'est pas en majuscule si H2 général l'est */
}
.hero-image-container {
  margin-top: 30px;
  margin-bottom: 30px;
}
.hero-image {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-description {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-description p {
  font-size: 18px;
  line-height: 1.8;
}

/* === LOGEMENT SECTION (index.html) === */
.logement-section > .container > p:first-of-type {
  text-align:center; 
  max-width: 700px; 
  margin-left:auto; 
  margin-right:auto;
  margin-bottom: 40px;
}
/* -- 5 Équipements Clés -- */
.equipements-cles-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 0; /* Géré par le paragraphe d'intro ou le titre H3 */
  margin-bottom: 20px;
}
.equipement-cle-item {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  flex: 0 1 190px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.equipement-cle-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.equipement-cle-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 15px auto;
}
.equipement-cle-item p {
  font-size: 14px;
  line-height: 1.45;
  color: #1E2439;
  margin-bottom: 0;
  font-weight: 600;
}
/* -- Grille Détaillée des Équipements -- */
.logement-section .equipements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px 30px;
  margin-top: 20px;
}
.equipement-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 16px;
  color: #3C4043;
  border-bottom: 1px solid #f0f0f0;
}
.equipement-item:last-child { /* Ne fonctionne que si c'est le dernier de son conteneur, pas par colonne */
    /* Pour enlever la bordure du dernier item de chaque colonne, c'est plus complexe avec grid simple */
}
.logement-section .equipements-grid .equipement-item:nth-last-child(-n+2) { 
    /* Cible les 2 derniers items s'il y a 2 colonnes et un nombre pair d'items */
    /* Ou les X derniers items si X colonnes. Pas une solution parfaite. */
    /* border-bottom: none; */
}
.equipement-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  flex-shrink: 0;
}
.equipement-icon img {
  width: 24px;
  height: 24px;
}
.equipement-item.equipement-hidden {
  display: none !important;
}


/* === GALLERIE PHOTOS SECTION (index.html) === */
.gallery-section > .container > p:first-of-type {
  text-align:center; 
  max-width: 700px; 
  margin-left:auto; 
  margin-right:auto;
  margin-bottom: 30px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* === TARIFS SECTION (index.html) === */
.tarifs-section { background-color: #f0f4f8; }
.tarifs-section > .container > p:first-of-type { text-align:center; max-width: 700px; margin-left:auto; margin-right:auto; margin-bottom: 30px; }
.tarifs-grid { display: grid; gap: 25px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 1075px; margin-left: auto; margin-right: auto; justify-content: center; margin-top: 30px; margin-bottom: 30px; }
.tarif-item { background-color: #ffffff; padding: 25px 20px; border: 2px solid #F5A623; border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.07); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.tarif-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.tarif-item h3 { font-size: 18px; font-weight: 700; color: #1E2439; margin-bottom: 10px; }
.tarif-item .period { font-size: 14px; color: #5F6368; margin-bottom: 15px; min-height: 42px; line-height: 1.4; }
.tarif-item .price-line { font-size: 18px; color: #3C4043; font-weight: 500; margin-top: auto; margin-bottom: 0; }
.tarif-item .price-line .price-intro { display: block; font-size: 14px; font-weight: 500; color: #5F6368; margin-bottom: -5px; line-height: 1.2; }
.tarif-item .price-amount { font-size: 30px; font-weight: 800; color: #F5A623; display: inline-block; margin-right: 3px; }
.tarif-item-highlight { border-color: #1E2439; background-color: #fffbea; transform: scale(1.05); z-index: 1; position: relative; }
.tarif-item-highlight:hover { transform: translateY(-5px) scale(1.07); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.tarif-item-highlight .price-amount { color: #F5A623; font-size: 30px; }
.tarif-item-highlight::before { content: 'POPULAIRE'; position: absolute; top: -10px; right: -10px; background-color: #1E2439; color: #ffffff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* transform: rotate(7deg); */ }
.tarifs-notes { text-align: center; font-size: 16px; color: #3C4043; margin-top: 40px; line-height: 1.6; max-width: 700px; margin-left: auto; margin-right: auto; }

/* === RESERVATION SECTION (index.html) === */
.reservation-section > .container > p:first-of-type { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 25px; }
.calendar-placeholder { border: 1px solid #d1d5db; padding: 15px; text-align: center; margin: 30px auto; background-color: #fdfdfd; border-radius: 8px; max-width: 750px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.calendar-placeholder iframe { display: block; width: 100%; max-width: 100%; height: 600px; min-height: 400px; border: none; margin-top: 20px; }
.reservation-action { text-align: center; margin-top: 30px; }
.paiement-securise-info { margin-top: 15px; font-size: 15px; color: #5F6368; }
.paiement-securise-info svg { vertical-align: middle; margin-right: 5px; width: 16px; height: 16px; fill: currentColor; }

/* === TEMOIGNAGES SECTION (index.html) === */
.temoignages-section > .container > p:first-of-type { max-width: 750px; margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 40px; font-size: 1.05em; line-height: 1.7; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; justify-content: center; }
.testimonial { background-color: #ffffff; padding: 30px 25px; border-radius: 8px; box-shadow: 0 6px 25px rgba(0,0,0,0.07); display: flex; flex-direction: column; text-align: left; }
.testimonial .quote { font-size: 16px; line-height: 1.75; color: #3C4043; margin-bottom: 25px; flex-grow: 1; font-style: italic; position: relative; padding-left: 40px; }
.testimonial .quote::before { content: '“'; font-family: Georgia, serif; font-size: 45px; color: #F5A623; position: absolute; left: 0px; top: -15px; line-height: 1; }
.testimonial footer.testimonial-author { display: flex; align-items: center; justify-content: flex-start; margin-top: auto; padding-top: 15px; font-size: 15px; }
.testimonial footer.testimonial-author::before { content: ""; }
.testimonial-author .author-icon { display: inline-block; width: 28px; height: 28px; margin-right: 10px; background-size: contain; background-repeat: no-repeat; background-position: center; vertical-align: middle; flex-shrink: 0; }
.testimonial-author .icon-famille { background-image: url('../images/icons/famille-icon.webp'); } /* Adaptez les chemins des icônes */
.testimonial-author .icon-couple { background-image: url('../images/icons/couple-icon.webp'); }
.testimonial-author .icon-homme { background-image: url('../images/icons/homme-icon.webp'); }
.testimonial-author .icon-femme { background-image: url('../images/icons/femme-icon.webp'); }
.testimonial-author .author-name { font-weight: 600; color: #1E2439; margin-right: 5px; }
.testimonial-author .author-date { font-size: 0.9em; color: #5F6368; }

/* === FAQ SECTION (index.html) === */
.faq-section { background-color: #f8f9fa; }
.faq-section > .container > p:first-of-type { text-align:center; max-width: 700px; margin-left:auto; margin-right:auto; margin-bottom: 30px; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item details { background-color: #ffffff; border: 1px solid #eaeaea; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.04); }
.faq-item summary { padding: 18px 25px; font-weight: 600; font-size: 17px; color: #1E2439; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '▼'; font-size: 12px; color: #F5A623; transform: rotate(0deg); transition: transform 0.3s ease; }
.faq-item details[open] summary { background-color: #fdfaf2; border-bottom: 1px solid #f0e5cf; }
.faq-item details[open] summary::after { transform: rotate(180deg); }
.faq-item details p { padding: 0px 25px 20px 25px; font-size: 16px; line-height: 1.7; color: #3C4043; margin-bottom: 0; }

/* === CONTACT FORM SECTION (index.html) === */
.contact-form-section { background-color: #1E2439; color: #ffffff; }
.contact-form-section .section-title, .contact-form-section .section-title::after { color: #ffffff; }
.contact-form-section .section-title::after { background-color: #F5A623; }
.contact-form-section > .container > p:first-of-type { max-width: 650px; margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 30px; color: #e0e0e0; font-size: 18px; }
.contact-action { text-align: center; margin-bottom: 20px; }
.contact-email-info { text-align: center; font-size: 16px; color: #f0f0f0; }
.contact-email-info a { color: #F5A623; font-weight: 500; }
.contact-email-info a:hover { color: #ffffff; }

/* === STYLES SPÉCIFIQUES POUR LA PAGE vacances-a-torrevieja.html === */
.guide-page-section .hero-activites h1 { 
  text-transform: uppercase;
  /* Styles du h1 de la page guide, si différents du H1 principal */
  font-size: clamp(30px, 5vw, 42px) !important; /* Important pour surcharger le H1 général */
  margin-bottom: 15px;
}
.guide-page-section .hero-activites h2 {
  font-size: clamp(20px, 3.5vw, 28px) !important; /* Important pour surcharger */
  color: #5F6368; 
  font-weight: 500;
  text-transform: none; /* Assurer qu'il n'est pas en majuscule */
}
.guide-page-section > .container > p:first-of-type { /* Paragraphe introductif général de la page guide */
  text-align: center; 
  max-width: 850px; 
  margin-left: auto; 
  margin-right: auto; 
  margin-bottom: 15px; 
  font-size: 1.15em;
  line-height: 1.8;
}
.guide-page-section .section-title { /* Pour les H2 titres de section DANS la page guide */
  margin-top: 15px; 
  font-size: clamp(24px, 4vw, 32px); /* Taille spécifique */
}
.guide-page-section h3 {
  font-size: clamp(20px, 3vw, 24px);
  margin-top: 15px;
  margin-bottom: 15px;
  color: #1E2439;
}
.guide-page-section ul { /* Styles pour les listes à puces dans la page guide */
  list-style: disc; 
  padding-left: 25px; 
  margin-bottom: 1.2em;
}
.guide-page-section ul li {
  margin-bottom: 0.6em;
  color: #3C4043; 
}
/* Styles pour la section Excursions dans le guide */
#guide-excursions .gallery-grid div { 
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
#guide-excursions .gallery-grid div img { margin-bottom: 10px; }
#guide-excursions .gallery-grid h4 { font-size: 1.1em; color: #1E2439; margin-bottom: 5px; }
#guide-excursions .gallery-grid p { font-size: 0.9em; line-height: 1.5; margin-bottom: 0; }
/* Styles pour la section des suggestions de restaurants */
.restaurant-suggestions h4 { font-size: 1.2em; color: #1E2439; margin-top: 25px; margin-bottom: 15px; border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; }
.restaurant-suggestions ul { list-style: none; padding-left: 0; }
.restaurant-suggestions ul li { margin-bottom: 20px; padding-left: 0; line-height: 1.6; }
.restaurant-suggestions ul li strong { font-weight: 700; color: #1E2439; display: block; margin-bottom: 3px; }
.restaurant-suggestions ul li small { font-size: 0.9em; color: #5F6368; display: block; margin-top: 5px; }
.restaurant-suggestions ul li a { color: #F5A623; text-decoration: underline; }
.restaurant-suggestions ul li a:hover { color: #d18c14; }
.image-focus-container { text-align: center; margin: 30px auto; }
.image-focus-container img { display: block; max-width: 850px; margin-left: auto; margin-right: auto; border-radius: 8px; box-shadow: 0 6px 15px rgba(0,0,0,0.1); }


/* === FOOTER === */
footer {
  background-color: #f8f9fa;
  padding: 50px 0 30px;
  text-align: center;
  font-size: 15px;
  color: #5F6368;
  border-top: 1px solid #eaeaea;
}
.footer-logo img {
  height: 45px;
  margin-bottom: 20px;
  border-radius:0;
}
.footer-nav {
  margin-bottom: 20px;
}
.footer-nav a {
  color: #5F6368;
  margin: 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}
.footer-nav a:hover {
  color: #F5A623;
}
.copyright {
  font-size: 14px;
  color: #70757a;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 991px) { /* Tablettes */
  #header nav { display: none; position: absolute; top: 80px; left: 0; right: 0; width: 100%; background-color: #ffffff; flex-direction: column; padding: 15px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); border-top: 1px solid #eaeaea; }
  #header nav.active { display: flex; }
  #header nav ul { flex-direction: column; align-items: center; gap: 0; }
  #header nav li { width: 100%; text-align: center; }
  #header nav li a { display: block; padding: 12px 20px; width: 100%; white-space: nowrap; }
  #header nav li a::after { display: none; }
  #mobile-menu-toggle { display: block; }
  .header-cta { display: none; }
  #header nav ul li.mobile-cta-item { display: block; margin-top: 15px; padding-bottom: 10px; }
  #header nav ul li.mobile-cta-item a.button-primary { display: inline-block; width: auto; padding: 10px 25px; }

  .equipements-cles-wrapper { gap: 15px; }
  .equipement-cle-item { flex-basis: calc(33.333% - 15px); } 
}

@media (max-width: 767px) { /* Mobiles */
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  .guide-page-section h1.section-title { font-size: clamp(26px, 4.8vw, 32px); }
  h2.section-title, .guide-page-section h2.section-title { font-size: 24px; margin-bottom: 30px; }
  h3, .guide-page-section h3 { font-size: 18px; }
  section { padding-top: 50px; padding-bottom: 50px; }
  .hero-section { padding-top: 30px; }
  .hero-image-container { margin-top: 20px; margin-bottom: 25px; }
  .hero-image { max-width: 95%; }

  .equipements-cles-wrapper { gap: 15px; }
  .equipement-cle-item { flex-basis: calc(50% - 10px); padding: 15px 10px; }
  .equipement-cle-icon { width: 36px; height: 36px; margin-bottom: 8px; }
  .equipement-cle-item p { font-size: 13px; }
  .logement-section .equipements-grid { grid-template-columns: 1fr; gap: 8px 0; }
  .equipement-item { padding: 8px 0; font-size: 15px; }
  .equipement-icon img { width: 18px; height: 18px; }

  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .gallery-grid img { height: 180px; }
  .tarifs-grid { grid-template-columns: 1fr; max-width: 100%; }
  .tarif-item-highlight { transform: scale(1); }
  .tarif-item-highlight:hover { transform: scale(1); }
  .tarif-item-highlight::before { font-size: 9px; padding: 2px 6px; top: -8px; right: -8px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial .quote { padding-left: 30px; }
  .testimonial .quote::before { font-size: 35px; left: 0px; top: -10px;}
  .testimonial footer.testimonial-author { justify-content: center; }
  .faq-item summary { font-size: 16px; padding: 15px 20px; }
  .faq-item details p { font-size: 15px; padding: 0 20px 15px 20px; }
  .button-primary { padding: 10px 20px; font-size: 15px;}
  .button-large { padding: 12px 24px; font-size: 16px;}
  .calendar-placeholder { padding: 10px; margin-left: 0; margin-right: 0; }
  .calendar-placeholder iframe { height: 450px; min-height: 350px; margin-top: 15px; }
}

@media (max-width: 480px) { /* Très petits écrans */
    .equipements-cles-wrapper {
        /* S'assurer qu'ils ne sont pas trop écrasés si le gap est grand */
        /* gap: 10px; */ /* Optionnel: réduire le gap encore plus */
    }
    .equipement-cle-item {
        flex-basis: 100%; 
        max-width: 280px; 
    }
}
