﻿/* Mise en forme des listes à puces dans les cartes service */
.service-card-accueil__description {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
    list-style: disc inside;
    color: #222;
    font-size: 1.08rem;
    line-height: 1.6;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.service-card-accueil__description li {
    margin-bottom: 0.5rem;
    padding-left: 0.2rem;
    font-weight: 400;
    position: relative;
}

.service-card-accueil__description li:last-child {
    margin-bottom: 0;
}

@media (min-width: 700px) {
  .service-card-accueil__description {
    font-size: 1.13rem;
    padding-left: 2rem;
  }
}

/* ===============================
   STYLES POUR HOME.HTML
   Page d'accueil - Styles spécifiques
================================== */

/* --- Section Hero (.accueil-hero et classes associées) --- */
.accueil-hero {
  position: relative;
  height: calc(60vh - 5.5vh);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  overflow: hidden;
  padding-top: calc(var(--spacing-unit) * 6);
  padding-bottom: calc(var(--spacing-unit) * 4);
  background-color: #222222;
}

.accueil-hero__background-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.accueil-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Image temporaire au-dessus des particules (haut de page) */
.accueil-hero__top-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit tout le hero (recadrage possible) */
  /* Remontée visuelle de l'image (~40%) pour afficher plus la partie basse */
  object-position: center 40%;
  z-index: 3; /* au-dessus des particules et de l'overlay de fond */
  opacity: 1;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
  pointer-events: none; /* ne bloque pas les interactions CTA */
  filter: brightness(0.6);
}

.accueil-hero__content-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(var(--spacing-unit));
  padding-left: var(--spacing-unit);
  padding-right: var(--spacing-unit);
  opacity: 0;
}
.accueil-hero__content-container.animate-hero-content-loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.accueil-hero__text-content {
  flex: 1 1 58%;
  margin-bottom: 2rem;
}

.accueil-hero__title {
  font-weight: 700;
  color: #fff;
  margin-bottom: calc(var(--spacing-unit) * 3);
  line-height: 1.15;
  text-shadow: 1px 3px 3px rgba(0,0,0,0.6);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 3rem);
  max-width: 18ch;
  line-height: 1.2; 
}
.accueil-hero__title .highlight {
  color: var(--color-detail);
}

.accueil-hero__subtitle {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 400;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-primary);
  opacity: 0.9;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.accueil-hero__actions {
  margin-top: var(--spacing-unit);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap; /* Empile quand l'espace horizontal est insuffisant */
}
.accueil-hero__actions .btn {
  /* Gestion par gap au lieu des marges droites */
  margin: 0;
  min-width: 180px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.1);
  transform: perspective(1px) translateZ(0);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background-color 0.25s ease-out;
}
.accueil-hero__actions .btn:hover {
    transform: translateY(-3px);
}
/* Quand wrap, chaque bouton reste centré visuellement */
.accueil-hero__actions .btn { flex: 0 1 auto; }

.accueil-hero__secondary-cta {
  border: 3px solid rgba(255,255,255,0.5);
  background-color: transparent;
  color: #fff;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.accueil-hero__secondary-cta:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: #fff;
  color: #fff;
}

/* Classes spÃ©cifiques Ã  l'image dans le hero - utilisÃ©es dans home.html */
.sr-only {
    display: none !important;
}

/* --- Section Courtage (.courtage-bandeau et classes associÃ©es) --- */
.courtage-bandeau {
  background: var(--color-secondary);
  /* Laisser la hauteur s'adapter au contenu pour éviter tout débordement */
  height: auto;
  min-height: 280px;
  position: relative;
  display: flex;
  justify-content: center; /* centrer le contenu */
  align-items: center;
}

.courtage-bandeau::before {
    content: '';
    position: absolute;
  top: 0;
  left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%230b40e0" opacity="0.05"/></svg>');
    opacity: 1;
    z-index: 1;
}

.courtage-simple {
  position: relative;
  z-index: 1; /* au-dessus du canvas (z-index:0) */
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.courtage-simple__title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.4;
    font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.courtage-sub__title {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--color-text-subtle);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    opacity: 0.8;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.courtage-simple__title .highlight {
    color: var(--color-detail);
    font-weight: 700;
}

.courtage-simple .btn {
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(11, 64, 224, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Section Services (.services-bandeau et classes associÃ©es) --- */
.services-bandeau {
  background-color: var(--body-bg);
}

/* Titres de section en noir (ex: "Nos services") pour la home */
.section-title { color: #000000; }

/* Titres de section en noir (ex: "Nos services") pour la home */
.section-title { color: var(--color-text); }

.services-grid-accueil {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 2);
}

.service-card-accueil {
  background-color: #ffffff;
  box-shadow: var(--shadow-light);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 280px;
}
.service-card-accueil:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(var(--color-detail-rgb), 1);
}

.service-card-accueil__icon {
  width: 100%;
  height: 200px;
  max-width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.service-card-accueil__content {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1.5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-accueil__content .btn {
  margin-top: auto;
  align-self: stretch;
  padding: 10px 0;
}

.service-card-accueil__title {
  font-size: 1.4rem;
  color: var(--color-tertiary);
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
  line-height: 1.3;
}

.service-card-accueil__description {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  flex-grow: 1;
}

.service-card-accueil .btn {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  min-width: 160px;
}

/* --- Section RÃ©alisations et Avis (.realisations-avis-bandeau et classes associÃ©es) --- */
.realisations-avis-bandeau {
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.realisations-avis-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .realisations-avis-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-items: start;
    }
}

/* Colonne RÃ©alisations */
.realisations-colonne {
    display: flex;
    flex-direction: column;
}

.realisations-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: calc(var(--spacing-unit) * 1);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius-base);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.gallery-item figure {
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: calc(var(--spacing-unit) * 0.5);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.gallery-item__category {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Colonne Avis */
.avis-colonne {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1.5);
}

.avis-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 1);
}

.avis-item {
  background-color: #fff;
  padding: calc(var(--spacing-unit)*0.75) calc(var(--spacing-unit) * 1.75);
  border-radius: var(--border-radius-base) 0 var(--border-radius-base) 0;
  box-shadow: var(--shadow-light);
  border-left: 5px solid var(--accent-color);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avis-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.avis-item__rating {
  color: var(--color-detail);
  font-size: 1.05rem;
}

.avis-item__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.avis-item__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avis-item__text {
  /* Laisser le texte occuper l'espace restant et s'adapter */
  flex: 1 1 0;
  min-width: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    font-style: italic;
}

.avis-item__auteur {
  /* Ne pas rétrécir la zone auteur pour qu'elle garde la priorité */
  flex: 0 0 auto;
  flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    text-align: left;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.avis-item__nom {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.avis-item__profession {
    font-style: normal;
    color: var(--color-text-subtle);
    font-size: 0.8rem;
}

/* Lien Google Reviews */
.google-reviews-link {
  width: auto; /* éviter les retours à la ligne */
  max-width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
  justify-content: center;
    gap: calc(var(--spacing-unit) * 0.5);
  padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 1.25);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-base);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
  white-space: nowrap; /* une seule ligne */
}

.google-reviews-link:hover {
    background-color: var(--color-detail);
    color: #fff;
    border-color: var(--color-detail);
}

.google-reviews-link__logo {
    width: 20px;
    height: 20px;
}

/* Colonne FAQ */
.faq-colonne {
  grid-row: 1 / span 2;
  grid-column: 2;
  height: 100%;
}

/* Titre "FAQ" centré et légèrement agrandi (moins grand qu'un titre de section) */
.faq-colonne > h3 {
  text-align: center;
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.85rem 0;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.faq-item {
  background-color: var(--color-primary);
  border: 1px solid rgba(var(--color-detail-rgb), 0.1);
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: var(--shadow-medium);
  border-color: rgba(var(--color-detail-rgb), 1);
}

.faq-item--active {
  border-color: var(--color-detail);
  box-shadow: 0 0 0 2px rgba(var(--color-detail-rgb), 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background-color: rgba(var(--color-detail-rgb), 0.02);
}

.faq-question h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-tertiary);
  line-height: 1.4;
  flex: 1;
  padding-right: 1rem;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--color-detail);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: inline-block; /* nécessaire pour la rotation */
}

.faq-item--active .faq-arrow {
  transform: rotate(180deg);
}

/* Mobile: garder une flèche ▶ qui pivote à 90° quand ouvert (desktop inchangé) */
@media (max-width: 991px) {
  .faq-arrow { position: relative; color: transparent; }
  /* Annule la rotation appliquée au parent en desktop */
  .faq-item--active .faq-arrow { transform: none !important; }
  .faq-arrow::before { content: '▶'; color: var(--color-detail); display: inline-block; transition: transform 0.3s ease; }
  .faq-item--active .faq-arrow::before { transform: rotate(90deg); }
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: justify;
}

.faq-answer p {
  margin: 0;
  padding: 0.5rem 1rem 0.5rem;
  color: var(--color-text-subtle);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Bouton CTA FAQ */
.faq-cta {
  text-align: center;
}

.faq-cta .btn {
  min-width: 200px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Bouton avec icÃ´ne */
.btn--with-icon {
    display: inline-flex;
    align-items: center;
}
.btn--with-icon .btn__icon {
    margin-left: 0.7em;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.2em;
}
.btn--with-icon:hover .btn__icon {
    transform: translateX(5px);
}

/* Section Logos Clients */
.confiance-clients {
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: var(--spacing-unit);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.confiance-clients__title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: calc(var(--spacing-unit));
    font-weight: 600;
}

.confiance-clients__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
    flex-wrap: wrap;
}

.confiance-clients__logo {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 1);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.confiance-clients__logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.confiance-clients__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.confiance-clients__logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Section CTA Final */
.cta-bandeau-final {
  background: var(--color-tertiary);
  color: var(--text-on-accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bandeau-final .container {
  padding-top: calc(var(--spacing-unit) * 4.5);
  padding-bottom: calc(var(--spacing-unit) * 4.5);
  position: relative;
  z-index: 2;
}

.cta-bandeau-final__title {
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.cta-bandeau-final__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  margin-bottom: calc(var(--spacing-unit) * 2.5);
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e8f0;
}

.cta-bandeau-final__actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Empiler les CTA finaux en mobile (comme dans le hero) */
@media (max-width: 768px) {
  .cta-bandeau-final__actions { display: grid; grid-template-columns: 1fr; gap: 0.75rem; justify-items: center; }
  .cta-bandeau-final__actions .btn { width: 100%; max-width: 420px; }
}

.btn--final-cta {
  border-width: 2px;
  border: 3px solid rgba(255,255,255,0.5);
  background-color: transparent;
  color: #fff;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.25s ease-out;
}
.btn--final-cta:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

.btn--cta-accent {
  background-color: var(--color-detail);
  color: #fff;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.8);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  transition: transform 0.25s ease-out, background-color 0.25s ease-out
}

.btn--cta-accent:hover,
.btn--cta-accent:focus {
  background-color: transparent;
  color: #fff;
  border-color: var(--color-detail);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* Media queries pour les sections home.html */
@media (max-width: 1200px) {
  .services-grid-accueil {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid-accueil {
    grid-template-columns: 1fr;
    gap: 0.6rem; /* moins d'espace autour des vignettes */
    margin-top: calc(var(--spacing-unit) * 1); /* un peu moins haut */
  }

  .service-card-accueil {
    min-height: 260px;
    padding: 0; /* enlever le padding autour de la carte sur téléphone */
  }

  /* Sur mobile : image plus grande et mieux cadrée en haut de carte */
  .service-card-accueil__icon {
    width: 100%;
    height: clamp(200px, 40vh, 320px);
    object-fit: cover;
    object-position: center; /* Ajustez si besoin: center 40% par ex. */
    border-radius: 12px 12px 0 0;
    display: block;
  }

  .service-card-accueil__title {
    font-size: 1.3rem;
  }

  .service-card-accueil__description {
    font-size: 0.9rem;
  }

  .service-card-accueil .btn {
    width: 100%;
    text-align: center;
  }

  .service-card-accueil__content { padding: 0.9rem 1rem; } /* réduire légèrement le padding interne */
  .service-card-accueil__content .btn {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
  /* Boutons du hero en pleine largeur pour très petits écrans */
  .accueil-hero__actions .btn { width: 100%; max-width: 420px; }
  /* Réduire légèrement les espacements pour gagner de la place sur petits écrans */
  .courtage-simple { padding: 14px; }
  .courtage-simple__title { margin-bottom: calc(var(--spacing-unit) * 1.25); }
  .courtage-sub__title { margin-bottom: calc(var(--spacing-unit) * 1.1); }

  /* Logos: réduire l'espacement sur mobile */
  .confiance-clients__logos { gap: calc(var(--spacing-unit) * 1.25); }
}

/* Téléphone étroit: 2 colonnes pour les logos clients, espacement réduit */
@media (max-width: 560px) {
  .confiance-clients__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; justify-items: center; }
  .confiance-clients__logo { width: 100%; height: clamp(56px, 20vw, 84px); padding: 0.4rem; }
}

/* Palier tablette: empiler les boutons du hero plus tôt si l'espace est juste */
@media (max-width: 992px) {
  .accueil-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
  }
}


@media (max-width: 991px) {
  .faq-colonne {
    grid-column: 1;
    grid-row: auto;
    margin-top: 2rem;
  }
  
  .faq-question h4 {
    font-size: 0.95rem;
  }
  
  .faq-answer p {
    font-size: 0.9rem;
  }

  .faq-cta {
    margin-top: 1.5rem;
  }
  
  .faq-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

.faq-container {
  background-color: var(--color-secondary);
}