/* Sommaire clair et accessible */
:root {
    --color-primary: #003049;
    --color-secondary: #D62828;
    --color-accent: #F77F00;
    --color-bg: #FDF0D5;
    --color-text: #000000;
    --color-falc-bg: #FFFACD;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header,
footer {
    padding: 2rem;
}

header {
    background-image: url('../../public/images/modeles/livret/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 48, 73, 0.7);
    z-index: 0;
}

header .container {
    position: relative;
    z-index: 1;
}

header .container h1 {
    color: white;
}



/* STYLE GLOBAL */
main {
    padding: 1rem;
}

section {
  display: flex;
  flex-direction: column; 
  max-width: 80%;
  margin: auto; 
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 5rem;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}



section:nth-of-type(odd) {
  background-color: var(--color-bg);
}

section:nth-of-type(even) {
  background-color: #ffffff;
}

section:not(:last-of-type)::after {
  content: "";
  display: block;
  width: 80%;
  height: 3px;
  margin: 3rem auto 0;
  background: linear-gradient(to right, var(--color-accent), transparent);
  border-radius: 10px;
}


 h2 {
  font-size: clamp(18px, 1.8vw, 36px);
  color: var(--color-primary);
  border-bottom: 4px solid var(--color-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
    align-self: flex-start;
    margin-top: 2rem;
}


a:focus, button:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}




.falc {
  background-color: var(--color-falc-bg);
  border-left: 6px solid var(--color-secondary);
  color: var(--color-text);
  padding: 1rem;
  border-radius: 8px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}



/* TITRES CACHES POUR LECTEUR D' ECRAN */
.sr-only { position: absolute; left: -9999px; }
  
  /* Bouton sticky en bas à droite */
  #retour-sommaire {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  


  
/* ACCUEIL */

#accueil .falc {
    background-color: var(--color-falc-bg);
    padding: 1rem;
    border-left: 5px solid var(--color-secondary);
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    width: max-content;
}
#accueil  p,
#accueil .falc 
{
    align-self: flex-start;
}


.cards{
    margin: 2rem auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cards .card {
    width: max-content;
    padding: .5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 1.4vw, 36px);
    background-color: white;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-primary);
    font-weight: bold;
    box-shadow: 0 .2rem .3rem var(--color-primary);
}

.cards .card:hover,
.cards .card:focus {
    border: 2px solid var(--color-accent);
    box-shadow: none;
  }






/* ACTUALITES */

/* === Section Actualités === */

.actualites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;   
  }
  
  .actualite {
  background-color: white;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 48%;
  max-width: 48%;
  box-sizing: border-box;
  }
  
  .actualite-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
  }
  
  .falc-text {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .falc {
    background-color: var(--color-falc-bg);
    padding: 1rem;
    border-left: 6px solid var(--color-secondary);
    border-radius: 8px;
    position: relative;
  }
  

  .falc-image {
    flex: 1 1 300px;
    max-width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
  }
  
  .falc-image img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .falc-image img:hover {
    transform: scale(1.02);
  }
  


  .falc-image figcaption {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
  }



  /* BOUTON ACTIONS FALC */
  .falc-actions button,
.falc-image button {
  background-color: var(--color-secondary);
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.falc-actions button:hover,
.falc-image button:hover {
  background-color: #b91c1c;
}







/* EVENEMENT */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .timeline-event {
    background-color: white;
    border-left: 6px solid var(--color-primary);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
  }
  
  .event-date {
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 1rem;
  }
  
  .event-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
  }
  
  .event-image {
    flex: 1 1 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .event-image img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .event-image img:hover {
    transform: scale(1.02);
  }
  
  .event-image button {
    margin-top: 0.5rem;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .event-image button:hover {
    background-color: #b91c1c;
  }
  
  .event-info {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .falc {
    background-color: var(--color-falc-bg);
    border-left: 4px solid var(--color-accent);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .falc-actions button {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
  }
  
  .event-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  
  .event-icons img.picto {
    width: 40px;
    height: 40px;
  }
  
  .event-icons button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0.6rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .event-icons button:hover {
    background-color: #001f2e;
  }
  
  .event-link {
    font-weight: bold;
    color: var(--color-accent);
    text-decoration: none;
  }
  


/* RECETTE */
.recette-falc {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .etape {
    background-color: var(--color-falc-bg);
    border-left: 6px solid var(--color-secondary);
    padding: 1rem;
    border-radius: 8px;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
  }
  
  .etape img {
    max-width: 80px;
    margin-bottom: 0.5rem;
  }
  
  .etape button {
    margin-top: 0.5rem;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
  }
  
  .recette-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
  }
  
  .recette-actions button,
  .recette-actions a {
    background-color: var(--color-accent);
    color: white;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
  }
  
  .recette-actions button:hover,
  .recette-actions a:hover {
    background-color: #c75e00;
  }
  
  @media print {
    header, footer, .atelier-video, .recette-actions {
      display: none;
    }
    body {
      background: white;
      color: black;
    }
    .etape {
      border: 1px solid #aaa;
    }
  }
  


/* VIDEO ATTELIER CREPE */
  .video-crepes {
    width: 300px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Optionnel : centrer la vidéo */
  .atelier-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
  }






  /* SECTION BIEN-ETRE */

  .bien-etre-cartes {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
  }
  
  .carte-bien-etre {
    background-color: var(--color-falc-bg);
    border-left: 6px solid var(--color-secondary);
    padding: 1rem;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .carte-bien-etre:hover {
    transform: scale(1.02);
  }
  
  .carte-bien-etre img {
    width: 60px;
    margin-bottom: 0.5rem;
  }
  
  .carte-bien-etre p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  

  
  .respiration, .ambiance-sonore, .atelier-video {
    margin-top: 3rem;
    text-align: center;
  }
  
  .video-snoezelen {
    width: 300px;
    max-width: 100%;
    border-radius: 10px;
    margin-top: 1rem;
  }
  



/* PAROLES DES RESIDENTS */

.temoignages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
  }
  
  .temoignage {
    background-color: var(--color-falc-bg);
    border-left: 6px solid var(--color-accent);
    border-radius: 12px;
    padding: 1.5rem;
    width: 260px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
  }
  
  .temoignage:hover {
    transform: scale(1.02);
  }
  
  .temoignage img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 100px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  .temoignage button {
    background-color: var(--color-secondary);
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .temoignage button:hover {
    background-color: #b91c1c;
  }
  
  






/* SECTION INFOS FAMILLES */
.faq-familles {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
  }
  
  .faq-item {
    background-color: var(--color-falc-bg);
    border-left: 6px solid var(--color-primary);
    padding: 1rem;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .faq-item img {
    width: 60px;
    margin-bottom: 1rem;
  }
  
  .faq-item p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .telechargements {
    margin-top: 2rem;
    text-align: center;
  }
  
  .telechargements ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .telechargements li {
    margin: 1rem 0;
  }
  
  .telechargements a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: bold;
  }
  
  .formulaire-contact {
    background-color: white;
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .formulaire-contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .formulaire-contact label {
    font-weight: bold;
    text-align: left;
  }
  
  .formulaire-contact input,
  .formulaire-contact textarea {
    padding: 0.6rem;
    border: 2px solid var(--color-secondary);
    border-radius: 6px;
    font-size: 1rem;
  }
  
  .formulaire-contact button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .formulaire-contact button:hover {
    background-color: #c75e00;
  }
  





/* GALERIE */
.galerie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
  }
  
  .galerie-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    position: relative;
  }
  
  .galerie-item img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .galerie-item button {
    margin-top: 0.5rem;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .galerie-item button:hover {
    background-color: #b91c1c;
  }
  
  .video-foyer {
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
  }
  








/* PLANNING */


  .planning {
    text-align: center;
    margin-top: 2rem;
  }
  
  .planning-image {
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }
  
  .actions-planning {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .actions-planning a {
    background-color: var(--color-accent);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
  }
  
  .actions-planning a:hover {
    background-color: #c75e00;
  }
  




  /* Mention ia pour les photos  */
  .mention-ia {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
  }


  /* info-bulle pour les images */
  .image-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .badge-ia {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 48, 73, 0.85); /* couleur primaire semi-transparente */
    color: white;
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: help;
    z-index: 10;
  }
  
  /* === Modal Image plein écran === */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  
  .modal-content.image-fullscreen {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .modal-content.image-fullscreen img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
  }
  
  .modal-content.image-fullscreen p {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-align: center;
    max-width: 90%;
  }

  


  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
}

.modal-content h3 {
    color: var(--color-secondary);
}




/* FOOTER */
footer {
  background-color: var(--color-primary);
  text-align: center;
  color: white;
}






/* BREAKPOINTS */
@media screen and (max-width: 1024px) {
  .actualite {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .event-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    text-align: center;
  }

  .event-image img {
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 0;
    overflow-x: hidden;
  }

  section {
    max-width: 95%;
    padding: 1rem;
  }

  .actualite {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .actualites-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .falc {
    width: 100%;
    margin: auto;
  }

  .cards {
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    width: 100%;
    text-align: center;
  }


  .timeline {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .timeline-event {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .event-content {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .event-image, .event-info, .event-date {
    width: 90%;
    box-sizing: border-box;
  }
  .event-image, .event-info, .event-date {
    max-width: 90%;
    height: auto;
  }

  .bien-etre-cartes,
  .temoignages-list,
  .faq-familles,
  .galerie-grid {
    flex-direction: column;
    align-items: center;
  }

  .carte-bien-etre,
  .temoignage,
  .faq-item,
  .galerie-item {
    width: 90%;
  }

  .recette-falc {
    flex-direction: column;
    align-items: center;
  }

  .etape {
    width: 90%;
  }

  .planning-image {
    max-width: 100%;
  }
}







