/* ==========================================================
   RedactiWest – styles des pages en blocs natifs (sans Divi)
   Chargé automatiquement par le plugin « RedactiWest – Pages en blocs »
   Couleurs : vert #66bea8 · rose #e7365f · titres #707070 · texte #666666
   ========================================================== */

/* ---------- Base ---------- */
.rw-page {
  font-family: "Open Sans", Arial, sans-serif;
  color: #666666;
  font-size: 14px;
  line-height: 1.7;
}
/* Largeurs reprises de l'original :
   - sections standard : 90 % de l'écran (max 1920 px)
   - titres de section et liens villes : 1080 px
   - intro, engagements, FAQ : toute la largeur */
.rw-page > * {
  width: 90%; max-width: 1920px;
  margin: 50px auto 0;
}
.rw-page > .rw-section-title,
.rw-page > .rw-villes { max-width: 1080px; }
/* Avis Google (Trustindex) : 1280 px max, comme l'original */
.rw-page > .ti-widget.ti-goog {
  width: 90%; max-width: 1280px;
  margin-left: auto; margin-right: auto;
}
/* Hauteur réservée avant l'affichage des avis (évite que la page saute) */
.rw-page > .ti-widget.ti-goog { min-height: 240px; }
@media (max-width: 767px) {
  .rw-page > .ti-widget.ti-goog { min-height: 480px; }
}
.rw-page > .alignfull { width: 100%; max-width: none; }
.rw-page > .alignfull + .alignfull { margin-top: 0; }
.rw-page p { padding-bottom: 0; }

/* ---------- Intro (hero) ---------- */
.rw-page .rw-hero {
  margin-top: 0; padding: 50px 0; min-height: 0;
  /* l'intro reste sous le menu déroulant de l'en-tête */
  position: relative; z-index: 0;
}
.rw-hero .wp-block-cover__inner-container { width: 90%; max-width: 1920px; margin: 0 auto; }
.rw-hero-panel {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 25px 30px;
}
.rw-kicker { font-size: 20px; color: #707070; margin: 0; }
.rw-page .rw-h1 { font-size: 35px; line-height: 1.1; font-weight: 600; color: #707070; margin: 0; padding: 0; }
.rw-subtitle { font-size: 25px; line-height: 1.1; font-weight: 600; color: #707070; margin: 10px 0 15px; }
.rw-hero-panel p { color: #666666; }
.rw-portrait img { border-radius: 10px; }
.rw-hero .wp-block-buttons { gap: 15px; margin-top: 20px; }

/* ---------- Boutons ---------- */
.is-style-rw-rose .wp-block-button__link {
  background: #e7365f; color: #ffffff;
  border: 2px solid #ffffff; border-radius: 30px;
  font-size: 20px; font-weight: 500;
  padding: 6px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.is-style-rw-vert .wp-block-button__link {
  background: #66bea8; color: #ffffff;
  border-radius: 20px; font-size: 20px;
  padding: 6px 24px;
}
.is-style-rw-rose .wp-block-button__link:hover,
.is-style-rw-vert .wp-block-button__link:hover { color: #ffffff; opacity: 0.9; }

/* Icônes des boutons (enveloppe / caméra) */
.rw-ico-mail .wp-block-button__link::after,
.rw-ico-video .wp-block-button__link::after {
  content: ""; display: inline-block;
  width: 20px; height: 20px; margin-left: 10px;
  vertical-align: -3px;
  background-repeat: no-repeat; background-size: contain;
}
.rw-ico-mail .wp-block-button__link::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M2 5h20v14H2z' fill='none'/%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4.2-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}
.rw-ico-video .wp-block-button__link::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 10.5V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3.5l4 4v-11z'/%3E%3C/svg%3E");
}

/* ---------- Titres de section centrés (trait vert) ---------- */
.rw-page .rw-section-title {
  font-size: 26px; font-weight: 600; color: #707070;
  margin-top: 70px; margin-bottom: 30px; padding-bottom: 18px; position: relative;
}
.rw-page .rw-section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 60%; max-width: 640px; height: 2px;
  transform: translateX(-50%); background: #66bea8;
}

/* ---------- Grilles de cartes ---------- */
.rw-page .rw-card {
  border-radius: 10px; overflow: hidden;
  min-height: 0; padding: 15px;
  background-color: #eaeaea;
  align-items: flex-start;
}
.rw-card .wp-block-cover__inner-container { width: 100%; }
/* Encadré du titre : blanc translucide + soulignement vert */
.rw-page .rw-card h3 {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 11px 10px 0 0;
  border-bottom: 3px solid #66bea8;
  padding: 10px 10px 10px; margin: 30px 0 10px;
  text-align: center; font-size: 23px; font-weight: 600; line-height: 1.2;
  color: #66bea8;
}
.rw-card h3 a { color: inherit; text-decoration: none; }
/* Toute la carte est cliquable : le lien du titre couvre la carte entière */
.rw-page .rw-card { position: relative; padding: 0; align-items: stretch; }
.rw-page .rw-card .wp-block-cover__inner-container { padding: 15px; }
.rw-card h3 a::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
}
.rw-page .rw-card:has(h3 a) { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.rw-page .rw-card:has(h3 a):hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
/* Encadré du texte */
.rw-page .rw-card p {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 10px 10px;
  padding: 10px; margin: -10px 0 30px;
  color: #707070; font-size: 14px;
}

/* ---------- Engagements (image pleine moitié d'écran) ---------- */
.rw-page .rw-engagement { align-items: stretch; }
.rw-engagement .wp-block-media-text__media { height: 100%; min-height: 420px; }
.rw-engagement .wp-block-media-text__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.rw-engagement .wp-block-media-text__content { padding: 40px 30px; align-self: center; }
.rw-page .rw-engagement h3,
.rw-page .rw-titre-souligne {
  font-size: 22px; font-weight: 500; color: #333333; line-height: 1.3;
  text-align: center;
  border-bottom: 3px solid #66bea8;
  padding: 0 18px 10px; margin-bottom: 25px;
}
.rw-engagement .wp-block-buttons { justify-content: center; margin-top: 25px; }

/* ---------- Paragraphe zone d'intervention ---------- */
.rw-intro-zone { text-align: justify; }

/* ---------- FAQ (accordéons + image) ---------- */
.rw-page .rw-faq { gap: 0; align-items: stretch; }
.rw-faq-texte { padding: 0 20px 50px; }
.rw-page .rw-titre-souligne { text-align: left; }
.rw-toggle { background: #f4f4f4; padding: 20px; margin: 0 0 20px; }
.rw-toggle[open] { background: #ffffff; }
.rw-toggle summary {
  font-size: 19px; color: #666666; cursor: pointer;
  list-style: none; position: relative; padding-right: 30px;
}
.rw-toggle[open] summary { color: #333333; margin-bottom: 15px; }
.rw-toggle summary::-webkit-details-marker { display: none; }
.rw-toggle summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 22px; color: #999999;
}
.rw-toggle[open] summary::after { content: "–"; }
.rw-toggle ul { padding-left: 20px; }
.rw-faq-image .wp-block-image { height: 100%; margin: 0; }
.rw-faq-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Dégradés blancs sur les images (comme l'original) ---------- */
.rw-hero::after,
.rw-engagement .wp-block-media-text__media::after,
.rw-faq-image::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  pointer-events: none; z-index: 1;
}
.rw-engagement .wp-block-media-text__media,
.rw-faq-image { position: relative; }
.rw-hero .wp-block-cover__inner-container { z-index: 2; }

/* Intro : la moitié droite de la photo s'éclaircit vers le blanc */
.rw-hero::after {
  right: 0; width: 50%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}
/* Image à gauche : fondu vers le texte, à droite */
.rw-engagement .wp-block-media-text__media::after {
  right: 0; width: 50%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}
/* Image à droite : fondu depuis le texte, à gauche */
.rw-engagement.has-media-on-the-right .wp-block-media-text__media::after,
.rw-faq-image::after {
  left: 0; right: auto; width: 30%;
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

/* ---------- Liens villes ---------- */
.rw-villes a { color: #66bea8; }

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
  .rw-engagement .wp-block-media-text__media { min-height: 250px; }
  .rw-faq-image { display: none; }
}
