/*--------------------------------------------------------------
# Variables CSS (ajouté pour simplifier la maintenance)
# Modifier une couleur ou une police ici la change partout sur le site.
--------------------------------------------------------------*/

:root {
  /* Couleurs de marque */
  --color-primary: #3498db;        /* bleu principal : liens, boutons, accents */
  --color-primary-light: #47b2e4;
  --color-accent: #ff7e54;         /* orange : dégradés boutons/hero */
  --color-accent-light: #ffa587;
  --color-accent-dark: #ff774a;

  /* Textes et fonds */
  --color-text: #313030;           /* texte principal */
  --color-text-soft: #473d3a;      /* texte secondaire un peu plus doux */
  --color-text-muted: #635551;     /* texte atténué (paragraphes, footer) */
  --color-text-light: #afa29e;     /* texte clair sur fond sombre */
  --color-white: #fff;
  --color-border: #ddd;
  --color-border-light: #eee;

  /* Typographie */
  --font-body: "Open Sans", sans-serif;
  --font-heading: "Raleway", sans-serif;
  --font-nav: "Poppins", sans-serif;

  /* Mise en page : hauteur du bandeau de menu, et distance voulue entre le bas de ce bandeau et le haut du
     titre de chaque page ou section (au chargement d'une page comme après un clic sur une ancre/signet) */
  --entete: 80px;
  --ecart-titre: 24px;
  --espace-section: 40px;   /* marge interne haute et basse d'un chapitre : deux chapitres sont séparés de 2 × 40 = 80 px, sur toutes les pages */

  /* Fonds par famille : soins = bleu pâle, aide = pêche, les deux = dégradé des deux */
  --teinte-soin: #eaf3fb;
  --teinte-aide: #fff1e8;
  --teinte-mixte: linear-gradient(90deg, var(--teinte-soin), var(--teinte-aide));
}

/* Famille de la page (classe sur <body>) : couleur du bandeau de titre, de la bande des partenaires
   et du panneau du formulaire de demande. Sans classe : blanc. */

body.famille-soin { --fond-famille: var(--teinte-soin); }

body.famille-aide { --fond-famille: var(--teinte-aide); }

body.famille-mixte,
body.accueil { --fond-famille: var(--teinte-mixte); }

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

html {
  /* Empêche le header fixe (#header, ~80px) de recouvrir le haut
     des sections ciblées par une ancre (#structure, #valeurs, etc.),
     que l'on arrive depuis une autre page, en rechargeant l'URL avec
     un #ancre, ou via les boutons précédent/suivant du navigateur. */
  scroll-padding-top: calc(var(--entete) + var(--ecart-titre) - var(--espace-section));   /* en retirant la marge interne haute d'un chapitre */
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
}

/* Retours à la ligne : titres équilibrés (jamais un mot ou un signe seul sur la dernière ligne) ;
   paragraphes sans ligne orpheline quand le navigateur sait le faire (sinon : comportement habituel).
   Les espaces insécables avant ? ! : ; et dans les « » sont dans le texte même des pages. */

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, li, figcaption {
  text-wrap: pretty;
}

a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/

.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  right: 15px;
  bottom: 15px;
  background: var(--color-primary);
  color: var(--color-white);
  transition: display 0.5s ease-in-out;
  z-index: 99999;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 8px;
  left: 8px;
}

.back-to-top:hover {
  color: var(--color-white);
  background: var(--color-accent-dark);
  transition: background 0.2s ease-in-out;
}

/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/

#topbar {
  background: #39312f;
  font-size: 14px;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
}

#topbar .contact-info ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#topbar .contact-info li {
  display: inline-block;
  padding: 8px 0;
}

#topbar .contact-info li + li {
  margin-left: 18px;
}

#topbar .contact-info a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

#topbar .contact-info a:hover {
  color: var(--color-white);
}

#topbar .contact-info i {
  color: var(--color-primary);
  padding-right: 4px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
  height: 80px;
  transition: all 0.5s;
  z-index: 997;
  transition: all 0.5s;
  padding: 5px 0;
  background: var(--color-white);
}

#header.header-scrolled {
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}

#header .logo h1 {
  font-size: 28px;
  margin: 0;
  padding: 8px 0;
  line-height: 1;
  font-weight: 700;
  font-family: var(--font-body);
}

#header .logo h1 a, #header .logo h1 a:hover {
  color: var(--color-text-muted);
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 70px;
}

#main {
  z-index: 3;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* Desktop Navigation */

.nav-menu, .nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
  float: left;
}

.nav-menu a {
  display: block;
  position: relative;
  color: var(--color-text-muted);
  padding: 25px 15px;
  transition: 0.3s;
  font-size: 14px;
  font-family: var(--font-nav);
}

.nav-menu a:hover, .nav-menu .active > a, .nav-menu li:hover > a {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-menu .drop-down ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 30px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  padding: 10px 0;
  background: var(--color-white);
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: ease all 0.3s;
  border-radius: 8px;
}

.nav-menu .drop-down:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.nav-menu .drop-down li {
  min-width: 180px;
  position: relative;
}

.nav-menu .drop-down ul a {
  padding: 10px 20px;
  white-space: nowrap;           /* un libellé de sous-menu tient toujours sur une seule ligne */
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  color: lightne(var(--color-text-soft), 10);
}

.nav-menu .drop-down ul a:hover, .nav-menu .drop-down ul .active > a, .nav-menu .drop-down ul li:hover > a {
  color: var(--color-primary);
}

.nav-menu .drop-down > a:after {
  content: "\ea99";
  font-family: IcoFont;
  padding-left: 5px;
}

.nav-menu .drop-down .drop-down ul {
  top: 0;
  left: calc(100% - 30px);
}

.nav-menu .drop-down .drop-down:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
}

.nav-menu .drop-down .drop-down > a {
  padding-right: 35px;
}

.nav-menu .drop-down .drop-down > a:after {
  content: "\eaa0";
  font-family: IcoFont;
  position: absolute;
  right: 15px;
}

@media (max-width: 1366px) {
.nav-menu .drop-down .drop-down ul {
    left: -90%;
  }

.nav-menu .drop-down .drop-down:hover > ul {
    left: -100%;
  }

.nav-menu .drop-down .drop-down > a:after {
    content: "\ea9d";
  }
}

/* Sous-menu aligné sur le bord DROIT de son titre (« Nos services », dernier menu de la barre) : il s'étend
   vers la gauche, donc ne dépasse jamais à droite de l'écran (sinon barre de défilement horizontale). */

.nav-menu .drop-down-droite > ul {
  left: auto;
  right: 0;
  width: max-content;
}

/* Mobile Navigation */

.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 20px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  color: var(--color-primary);
}

.mobile-nav {
  position: fixed;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  overflow-y: auto;
  background: var(--color-white);
  transition: ease-in-out 0.2s;
  opacity: 0;
  visibility: hidden;
  border-radius: 10px;
  padding: 10px 0;
}

.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: block;
  position: relative;
  color: var(--color-text-soft);
  padding: 10px 20px;
  font-weight: 500;
  outline: none;
}

.mobile-nav a:hover, .mobile-nav .active > a, .mobile-nav li:hover > a {
  color: var(--color-primary);
  text-decoration: none;
}

.mobile-nav .drop-down > a:after {
  content: "\ea99";
  font-family: IcoFont;
  padding-left: 10px;
  position: absolute;
  right: 15px;
}

.mobile-nav .active.drop-down > a:after {
  content: "\eaa1";
}

.mobile-nav .drop-down > a {
  padding-right: 35px;
}

.mobile-nav .drop-down ul {
  display: none;
  overflow: hidden;
}

.mobile-nav .drop-down li {
  padding-left: 20px;
}

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(43, 37, 35, 0.6);
  overflow: hidden;
  display: none;
  transition: ease-in-out 0.2s;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

#hero {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 40px 0 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
 }

/*
@media (min-width: 1024px) {
  #hero {
    background-attachment: fixed;
  }
}
*/

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--color-white);
}

#hero h2 {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 50px;
  font-size: 24px;
}

#hero .btn-get-started {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px 11px 28px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px 0 0 0;
  color: var(--color-white);
  background: var(--color-primary-light);
}

#hero .btn-get-started:hover {
  background: #209dd8;
}

#hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@media (max-width: 1200px) {
#hero {
    text-align: center;
  }

#hero .animated {
    -webkit-animation: none;
    animation: none;
  }

#hero .hero-img {
    text-align: center;
  }

#hero .hero-img img {
    width: 50%;
  }
}

@media (max-width: 768px) {
#hero h1 {
    font-size: 28px;
    line-height: 36px;
	text-align: center;
  }

#hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

#hero .hero-img img {
    width: 70%;
  }
}

@media (max-width: 575px) {
#hero .hero-img img {
    width: 80%;
  }

#hero .btn-get-started {
    font-size: 16px;
    padding: 10px 24px 11px 24px;
  }
}

@-webkit-keyframes up-down {
  0% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes up-down {
  0% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(-10px);
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/

section {
  padding: var(--espace-section) 0;
  overflow: hidden;
}

/* Pas de marge parasite en bas d'un chapitre : l'espace entre deux chapitres ne vient que de --espace-section */

section > .container > :last-child {
  margin-bottom: 0;
}

section > .container > .section-title:last-child {
  padding-bottom: 0;
}

/* Galerie : la dernière rangée de vignettes n'ajoute pas ses 30 px de marge basse */

#photo .portfolio-container {
  margin-bottom: -30px;
}

/* Pages intérieures (toutes sauf l'accueil, repérée par <body class="accueil">) :
   le titre se place à --ecart-titre sous le bandeau du menu (60 px de base). */

body:not(.accueil) #main > section:first-child {
  padding-top: var(--ecart-titre);
}

/* Fonds de section : soins, aide, ou les deux (à poser sur une <section>) */

.fond-soin { background: var(--teinte-soin); }

.fond-aide { background: var(--teinte-aide); }

.fond-mixte { background: var(--teinte-mixte); }

/* Texte à ne jamais couper en fin de ligne (numéro de téléphone, adresse e-mail) */

.insecable { white-space: nowrap; }

/* Haut d'une page institutionnelle : bandeau « les deux familles » qui s'estompe en blanc */

.fond-mixte-haut {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #fff 240px), var(--teinte-mixte);
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h1,
.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 0;
  font-family: var(--font-nav);
  color: var(--color-text-muted);
}

.section-title p {
  text-align: justify;	
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/

@-webkit-keyframes pulsate-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

@keyframes pulsate-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Clients
.clients .owl-item img {
  width: 75%;
  opacity: 0.5;
  transition: ease-in-out 0.3s;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
--------------------------------------------------------------*/

.clients .owl-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.clients .owl-item img {
  width: 75%;
  transition: ease-in-out 0.3s;
}

.clients .owl-item img:hover {
  -webkit-filter: none;
  filter: none;
  opacity: 1;
}

.clients .owl-nav, .clients .owl-dots {
  margin-top: 5px;
  text-align: center;
}

.clients .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-border) !important;
}

.clients .owl-dot.active {
  background-color: var(--color-primary) !important;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/

.services .icon {
  position: absolute;
  top: -36px;
  left: calc(50% - 36px);
  transition: 0.2s;
  border-radius: 50%;
  border: 6px solid var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 72px;
  height: 72px;
  background: var(--color-primary);
}

.services .icon i {
  color: var(--color-white);
  font-size: 24px;
}

.services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
  text-transform: uppercase;
}

.services .title a {
  color: #343a40;
}

.services .description {
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Values
--------------------------------------------------------------*/

.values .card {
  border: 0;
  padding: 0px 20px 20px 20px;
  position: relative;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.values .card-body {
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 30px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  transition: ease-in-out 0.4s;
  border-radius: 5px;
}

.values .card-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
}

.values .card-title a {
  color: var(--color-text-soft);
}

.values .card-text {
  color: #4b4949;
}

.values .card:hover .card-body {
  background: var(--color-primary);
}

.values .card:hover .card-title, .values .card:hover .card-title a, .values .card:hover .card-text {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/

.Portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 35px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  padding: 2px 15px;
}

.Portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 20px 12px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 50px;
}

.Portfolio #portfolio-flters li:hover, .Portfolio #portfolio-flters li.filter-active {
  color: var(--color-primary);
  background: #fff1ed;
}

.Portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.Portfolio .portfolio-item {
  margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/

.team .member {
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
  border-radius: 5px;
  background: var(--color-white);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.team .member .member-img {
  position: relative;
  overflow: hidden;
}

.team .member .social {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: ease-in-out 0.3s;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
}

.team .member .social a {
  transition: color 0.3s;
  color: var(--color-text-soft);
  margin: 0 10px;
  padding-top: 8px;
  display: inline-block;
}

.team .member .social a:hover {
  color: var(--color-primary);
}

.team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

.team .member .member-info {
  padding: 25px 15px;
}

.team .member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: var(--color-text-soft);
 }

.team .member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #989595;
}

.team .member .member-info p {
  font-style: italic;
  font-size: 14px;
  line-height: 26px;
  color: #656262;
}

.team .member:hover .social {
  opacity: 1;
}

/*--------------------------------------------------------------
# Pricing
--------------------------------------------------------------*/

.pricing h3 {
  font-weight: 400;
  margin: -20px -20px 20px -20px;
  padding: 20px 15px;
  font-size: 16px;
  font-weight: 600;
  color: #656262;
  background: #f8f8f8;
}

.pricing h4 {
  font-size: 36px;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-nav);
  margin-bottom: 20px;
}

.pricing h4 sup {
  font-size: 20px;
  top: -15px;
  left: -3px;
}

.pricing h4 span {
  color: #bababa;
  font-size: 16px;
  font-weight: 300;
}

.pricing ul {
  padding: 0;
  list-style: none;
  color: var(--color-text);
  text-align: center;
  line-height: 20px;
  font-size: 14px;
}

.pricing ul li {
  padding-bottom: 16px;
}

.pricing ul i {
  color: var(--color-primary);
  font-size: 18px;
  padding-right: 4px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
  color: var(--color-text);
  font-size: 14px;
  background: var(--color-white);
}

#footer .footer-top {
  padding: 0;
  background: var(--fond-famille, #fff);
}

#footer .footer-top h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-text);
  position: relative;
  padding-bottom: 12px;
}

/* Pied de page : le nom de l'association sur une ligne, puis l'adresse, l'e-mail et le téléphone ensemble
   sur la suivante. Chaque coordonnée est insécable. Sur téléphone (< 576 px), une coordonnée par ligne,
   sans les tirets de séparation. */

#footer .copyright .pied-nom,
#footer .copyright .pied-coordonnees {
  display: block;
}

@media (max-width: 575.98px) {
#footer .copyright .pied-coordonnees > * {
    display: block;
  }

#footer .copyright .pied-coordonnees > .pied-sep {
    display: none;
  }
}

#footer .credits {
  padding-top: 5px;
  font-size: 13px;
  color: var(--color-text);
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

/* Page Services, section « Services d'aide à domicile… » : la grille de vignettes suit de près le titre
   (le composant ajoutait 40 px de marge haute, qui s'additionnaient aux 50 px habituels sous un titre :
   90 px au total, contre 30 px maintenant). */

#soinsdomicile .section-title,
#aidedomicile .section-title {
  padding-bottom: 10px;
}

#aidedomicile aidedomicile-wc {
  --cartes-marge-haute: 0px;
}
