/**
 * Straton - Styles personnalisés
 * Ajouts et modifications CSS globales
 */

.home #main-content,
.single-post.post-template-default #main-content {
	margin-top: -92px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   BOUTONS - Hover avec scale
   ========================================== */

/* Tous les boutons Divi */
.et_pb_button, .mobile_nav {
    transition: transform 0.3s ease;
}

/* Hover : scale + ombre */
.et_pb_button:hover, .mobile_nav:hover {
    transform: scale(1.04) !important;
}

.hero-tags-inline {
    display: flex;
	flex-flow: wrap;
	row-gap: 8px;
    column-gap: 16px;
}

.hero-tags-inline .tag {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 12px;
  	font-family: "Candal";
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    line-height: 1.2em;
	flex-shrink: 0;
}

.hero-tags-inline .tag-green {
    background-color: #00B894;
}

.hero-tags-inline .tag-yellow {
    background-color: #FFCE4A;
}

@media (max-width: 980px) {
  .hero-tags-inline {
    justify-content: center;
  }
	
  .hero-tags-inline .tag {
	font-size: 16px;
  }
}

.text-bg-color {
  position: relative;
  color: #fff;
}

.text-bg-color::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  padding-left: 14px;
  padding-right: 14px;
	right: -14px;
  z-index: -1;
  display: inline-block;
  border-radius: 8px;
  background: #00A2FF;
}

.hero-section  .hero-tag {
  	position: absolute;
    font-family: "Candal";
  	width: 124px;
    padding: 6px 16px;
  	text-align: center;
    border-radius: 12px;
    font-size: 20px;
    color: #fff;
  	transform-origin: 100% 50%;
}

.hero-section .tag-orange { background-color: #F0932B; top: -16px; }
.hero-section .tag-green  { background-color: #00B894; }
.hero-section .tag-yellow { background-color: #FFCE4A; top: 16px; }

.hero-section .tag-orange { transform: rotate(12deg); }
.hero-section .tag-green  { transform: rotate(-5deg); }
.hero-section .tag-yellow { transform: rotate(-20deg); }

@media (max-width: 980px) {	
	.hero-tag-wrapper .et_pb_code_inner {
		display: flex;
    	justify-content: center;
    	flex-wrap: wrap;
    	column-gap: 8px;
    	row-gap: 8px;
	}
	
	.hero-section  .hero-tag {
		position: relative;
		width: auto;
		font-size: 14px;
		padding: 2px 12px;
	}
	
	  .hero-section .tag-orange { top: 0px; }
	  .hero-section .tag-yellow { top: 0px; }

	  .hero-section .tag-orange { transform: rotate(0deg); }
	  .hero-section .tag-green  { transform: rotate(0deg); }
	  .hero-section .tag-yellow { transform: rotate(0deg); }
}

@media (max-width: 768px) {
   .hero-section .hero-section__title .text-bg-color::after {
  	padding-left: 7px;
  	padding-right: 7px;
    right: -7px;
  }
}

.note-badge {
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.note-score {
  font-size: 96px;
  font-weight: bold;
  color: white;
  font-family: 'Candal', sans-serif;
  line-height: 1;
}

.note-outof {
  font-size: 28px;
  vertical-align: super;
  margin-left: 4px;
}

.note-avis {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
  color: white;
}

.background-gradient-overlay {
	content: "";
    position: absolute;	
  	width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  	z-index: 0 !important;
  	background-image: linear-gradient(180deg, rgba(0, 59, 99, 0) 0%, rgba(0, 59, 99, 0) 0%, rgba(0, 59, 99, 0.7) 100%);
}

.hero-arc {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.hero-arc-svg {
    width: 100%;
    height: 440px;
}

.hero-arc-text {
  	font-family: "Candal";
    font-size: 32px;
    font-weight: 700;
    fill: #003B63;
    letter-spacing: 0;
}

@media (max-width: 980px) {
   .hero-arc-svg {
      width: 100%;
      height: 400px;
  }
}

@media (max-width: 768px) {
    .hero-arc-svg {
      width: 100%;
      height: 370px;
  }
  
   .hero-arc-text {
      font-size: 64px;
  }
}

.accommodation-slider-navigation {
	position: absolute !important;
	top: 50%;
	margin-top: 0 !important;
	width: 100%;
	display: flex !important;
	justify-content: space-between !important;
	padding-right: 30px;
	padding-left: 30px;
	transform: translateY(-50%);
}

@media (max-width: 768px) {
  	.accommodation-slider-navigation {
		padding-right: 15px;
		padding-left: 15px;
	}
	
	.accommodation-slider-navigation .nav-arrow {
		width: 48px !important;
		height: 48px !important;
	}
}

/* ============================================
   CSS pour la gestion des espacements du contenu d'article
   Version avec espacements minimaux
   ============================================ */

/* Conteneur principal de l'article */
.et_pb_post_content {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* Espacements pour les titres */
.et_pb_post_content h1,
.et_pb_post_content h2,
.et_pb_post_content h3,
.et_pb_post_content h4,
.et_pb_post_content h5,
.et_pb_post_content h6 {
  margin-top: 1em;
  margin-bottom: 0.3em;
  line-height: 1.3;
  font-weight: 700;
}

/* Premier titre n'a pas de marge supérieure */
.et_pb_post_content > h1:first-child,
.et_pb_post_content > h2:first-child,
.et_pb_post_content > h3:first-child,
.et_pb_post_content > h4:first-child,
.et_pb_post_content > h5:first-child,
.et_pb_post_content > h6:first-child {
  margin-top: 0;
}

/* Espacements spécifiques par niveau de titre */
.et_pb_post_content h1 {
  font-size: 2.5em;
  margin-top: 0.8em;
  margin-bottom: 0.3em;
}

.et_pb_post_content h2 {
  font-size: 2em;
  margin-top: 1em;
  margin-bottom: 0.3em;
}

.et_pb_post_content h3 {
  font-size: 1.5em;
  margin-top: 0.9em;
  margin-bottom: 0.3em;
}

.et_pb_post_content h4 {
  font-size: 1.25em;
  margin-top: 0.8em;
  margin-bottom: 0.3em;
}

/* Paragraphes */
.et_pb_post_content p {
  margin-bottom: 0.6em;
  margin-top: 0;
}

/* Dernier paragraphe sans marge inférieure */
.et_pb_post_content p:last-child {
  margin-bottom: 0;
}

/* Listes */
.et_pb_post_content ul,
.et_pb_post_content ol {
  margin-top: 0.5em;
  margin-bottom: 0.6em;
  padding-left: 2em;
}

.et_pb_post_content ul ul,
.et_pb_post_content ol ol,
.et_pb_post_content ul ol,
.et_pb_post_content ol ul {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.et_pb_post_content li {
  margin-bottom: 0.3em;
}

.et_pb_post_content li:last-child {
  margin-bottom: 0;
}

/* Images */
.et_pb_post_content img {
  max-width: 100%;
  height: auto;
  margin: 0.6em 0;
  display: block;
}

.et_pb_post_content figure {
  margin: 0.8em 0;
}

.et_pb_post_content figcaption {
  margin-top: 0.3em;
  font-size: 0.9em;
  font-style: italic;
  color: #666;
  text-align: center;
}

/* Citations */
.et_pb_post_content blockquote {
  margin: 0.8em 0;
  padding: 0.8em 1.2em;
  border-left: 4px solid #ddd;
  background-color: #f9f9f9;
  font-style: italic;
}

.et_pb_post_content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.et_pb_post_content pre {
  margin: 0.6em 0;
  padding: 0.8em;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow-x: auto;
}

.et_pb_post_content code {
  padding: 0.2em 0.4em;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.et_pb_post_content pre code {
  padding: 0;
  background-color: transparent;
}

/* Tableaux */
.et_pb_post_content table {
  width: 100%;
  margin: 0.8em 0;
  border-collapse: collapse;
}

.et_pb_post_content th,
.et_pb_post_content td {
  padding: 0.6em 0.8em;
  border: 1px solid #ddd;
  text-align: left;
}

.et_pb_post_content th {
  background-color: #f5f5f5;
  font-weight: 700;
}

/* Séparateurs */
.et_pb_post_content hr {
  margin: 1.2em 0;
  border: none;
  border-top: 2px solid #ddd;
}

/* Liens */
.et_pb_post_content a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.et_pb_post_content a:hover {
  color: #004499;
  text-decoration: underline;
}

/* Éléments après les titres */
.et_pb_post_content h1 + p,
.et_pb_post_content h2 + p,
.et_pb_post_content h3 + p,
.et_pb_post_content h4 + p,
.et_pb_post_content h5 + p,
.et_pb_post_content h6 + p {
  margin-top: 0;
}

/* Strong et emphasis */
.et_pb_post_content strong {
  font-weight: 700;
}

.et_pb_post_content em {
  font-style: italic;
}

/* Boutons et appels à l'action */
.et_pb_post_content .et_pb_button {
  margin: 0.6em 0;
}

/* Classes WordPress par défaut */
.et_pb_post_content .alignleft {
  float: left;
  margin: 0.3em 1em 0.6em 0;
}

.et_pb_post_content .alignright {
  float: right;
  margin: 0.3em 0 0.6em 1em;
}

.et_pb_post_content .aligncenter {
  display: block;
  margin: 0.6em auto;
}

/* Clearfix pour les flottants */
.et_pb_post_content::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .et_pb_post_content {
    font-size: 15px;
  }
  
  .et_pb_post_content h1 {
    font-size: 2em;
  }
  
  .et_pb_post_content h2 {
    font-size: 1.75em;
  }
  
  .et_pb_post_content h3 {
    font-size: 1.4em;
  }
  
  .et_pb_post_content ul,
  .et_pb_post_content ol {
    padding-left: 1.5em;
  }
  
  .et_pb_post_content blockquote {
    padding: 0.6em 1em;
  }
  
  .et_pb_post_content .alignleft,
  .et_pb_post_content .alignright {
    float: none;
    display: block;
    margin: 0.6em auto;
  }
}

/* Espacement pour les sections Divi imbriquées */
.et_pb_post_content .et_pb_section {
  margin: 0.8em 0;
}

.et_pb_post_content .et_pb_row {
  margin-bottom: 0.6em;
}