
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}/*margereset*/

@font-face {
    font-family: 'HomeChristmas';
    src: url('polices/HomeChristmas.woff2') format('woff2'),
         url('polices/HomeChristmas.woff') format('woff'),
         url('polices/HomeChristmas.otf') format('opentype');
}

@font-face {
    font-family: 'KIdDOS-Regular';
    src: url('polices/KIdDOS-Regular.woff2') format('woff2'),
         url('polices/KIdDOS-Regular.woff') format('woff'),
         url('polices/KIdDOS-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'LastChristmas';
    src: url('polices/LastChristmas.woff2') format('woff2'),
         url('polices/LastChristmas.woff') format('woff'),
         url('polices/LastChristmas.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CinzelDecorative-Regular';
    src: url('polices/CinzelDecorative-Regular.woff2') format('woff2'),
         url('polices/CinzelDecorative-Regular.woff') format('woff'),
         url('polices/CinzelDecorative-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'SantasSleighFull Bold';
    src: url('polices/SantasSleighFull-Bold.woff2') format('woff2'),
         url('polices/SantasSleighFull-Bold.woff') format('woff'),
         url('polices/SantasSleighFull-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'stnicholas';
    src: url('polices/stnicholas.woff2') format('woff2'),
         url('polices/stnicholas.woff') format('woff'),
         url('polices/stnicholas.ttf') format('truetype');
}
@font-face {
    font-family: 'alamain1';
    src: url('polices/alamain1.woff2') format('woff2'),
         url('polices/alamain1.woff') format('woff'),
         url('polices/alamain1.ttf') format('truetype');
}



















/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, sans-serif;
    height: 100%;
    width: 100%;
}

/* Menu fixe */
header {
    position: fixed;
    font-family: 'CinzelDecorative-Regular';
    font-size: 25px;
    top: 0;
    width: 100%;
   height: auto;
    background-color: #731224;
    color: #fff;
    padding: 2px 0;
    margin-bottom: 5px;
    text-align: center;
    z-index: 20;
}


header nav a {
    color: #fff;
    margin: 0 15px;
    padding: 0.3%;
    text-decoration: none;
    font-weight: bold;
    align-items: center;
  justify-content: center;
    align-content: center;
}

header nav a:hover {
    color: #ddd;
}

/* Styles de la barre de navigation */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  
  color: #41A664;
}
.nav-container a{
    align-items: center;
}

main{
    height: auto;
    width: 100%;
    margin-top: 1rem;
    
    
}

/* Main Layout using Grid (version Desktop) */
.activity-container {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr; /* 3 columns layout */
    grid-template-areas: 
        "gallery main-section activity-info"; /* Assign areas */
    gap: 20px;
    max-width: 100%;  /* Garantir que tout reste dans la taille de l'écran */
    padding: 20px;
    height: calc(100vh - 60px); /* Subtract header height */
    
   
    padding-top: 5%;
}

/* Gallery Section (left column) */
.gallery {
    width: 100%;
    max-width: 150px;  /* Réduit la taille de la galerie à 200px de large */
    height: 100%;
    overflow:auto; /* Évite la barre de défilement */
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px; /* Espacement entre les images */
   
}

.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    object-fit: cover; /* Assure que l'image couvre bien son espace sans distorsion */
    
}



.gallery img:hover{
    transform: scale(1.05);
}

/* Main Image Section (center column) */
.main-image-section {
    grid-area: main-section;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
    
    
    
}

.main-image-section img,
.main-image-section video {
    width: 100%; /* S'adapte à l'espace disponible */
    height: auto;
    display: block;
}


.main-image-section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    
}
.main-image-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    cursor: pointer; /* L'img principale devient cliquable */
    object-fit: contain; /* L'image s'ajuste bien sans dépasser */
}



/* Activity Info Section (right column) */
.activity-info {
    grid-area: activity-info;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 100%;
    font-family: 'monofonto';
    
}

.activity-description h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
    font-family: 'monofonto';
}

.activity-description p {
    font-size: 15px;
    color: #555;
    font-family:'monofonto';
}

.activity-description mark {
    background-color: #ffe08c;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Buttons */
.action-buttons button {
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: goldenrod;
    color: white;
    transition: background-color 0.2s ease;
}

.action-buttons button:hover {
    background-color: gold;
}

.action-buttons a {
    text-decoration: none;
    color: inherit;
}
.bouton{
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: goldenrod;
    color: white;
    transition: background-color 0.2s ease;
    width: 50%;
}
.bouton:hover {
    background-color: gold;
}


/********************************************************************************************************************************************************************************bouton partage********************************/

.box {
  display: flex;
}

#checkbox {
  width: 65px;
  height: 65px;
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  outline: none;
  background: white;
  position: relative;
}
#checkbox:hover {
  background: rgba(255, 255, 255, .7);
}

#checkbox::before {
  content: '\f1e0';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'font awesome 5 free';
  font-weight: 700;
  font-size: 1.5rem;
  color: rgb(41, 41, 41);
  transition: all 1.5s;
}
#checkbox:checked::before {
  content: '\f00d';
}
#checkbox:checked ~ .menu {
  width: 264px; /* 4 * 65 + 4 * 1 pour la bordure */
}
.menu {
  width: 0;
   display: flex;
  overflow: hidden;
  transition: all .5s;
    text-decoration: none;
}
.menu a .menuItems i {
  text-decoration: none;
}
.box a{
    text-decoration: none;
}

a {
  text-decoration: none;
}
.menu .menuItems {
  width: 65px;
  height: 65px;
  background: white;
  border-left: 1px solid rgb(165, 165, 165);
  display: flex;
  justify-content: center;
  align-items: center;
    text-decoration: none;
}
.menu .menuItems:hover {
  background: rgba(255, 255, 255, .7);
}
.menu .menuItems i {
  font-size: 1.8rem;
    text-decoration: none;
}
.fa-whatsapp {
  color: #25d366;
}
.fa-instagram {
  color: #c32aa3;
}
.fa-facebook {
  color: #273c75;
}
.fa-twitter {
  color: #1da1f2;
}


/********************************************************************************************************************************************************************************bouton partage********************************/


fixed-actions {
    position: sticky; /* ou position: fixed selon le besoin */
    top: 10px; /* Ajuste la position verticale */
    z-index: 10;
    background: #f9f9f9; /* Ajoute un fond pour un meilleur contraste */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}



/* Comments Section */
.comments-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'monofonto';
}

.comments-section h3 {
    font-size: 15px;
    color: #333;
}

.comments-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comments-section input,
.comments-section textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comments-display {
    max-height: 300px; /* Ajuste la hauteur selon tes besoins */
    overflow-y: scroll; /* Ajoute un défilement vertical */
    padding: 10px;
    background: #f0f0f0; /* Optionnel : amélioration visuelle */
    border: 1px solid #ddd;
    border-radius: 8px;
}

.comments-display .comment {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
}

#see-more-comments {
    align-self: center;
    padding: 8px 16px;
    font-size: 1em;
    background-color: goldenrod;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#see-more-comments:hover {
    background-color: gold;
}















/* Responsiveness pour tablettes */
@media (max-width: 1024px) {
    
    
    main{
        padding-top: 5%;
        height: auto;
        width: 100%;
    }
    /* Réduction des marges/paddings pour ajuster à des écrans plus petits */
    .activity-container {
        grid-template-columns: 20% 30% 50%; /* Passe à une seule colonne */
        grid-template-areas: 
            "gallery main-section main-section"
            "activity-info activity-info activity-info";
        gap: 10px;
        grid-auto-rows: 100vh;
        height: 100%;
        width: 100%;
        
    }

    .gallery {
        flex-direction: column; /* Les images de la galerie s'affichent en ligne */
        width: 100%;
        max-width: 100%;
        overflow-x: auto; /* Ajoute un défilement horizontal si nécessaire */
        justify-content: left;
        align-items: left;
        overflow-y: auto;
    }

    .gallery img {
        max-width: 100%; /* Réduit la taille des images dans la galerie */
        justify-content: left;
        align-items: left;
    }
    
    .main-image-section{
        width: 100%;
        height: 100vh;
        justify-content: start;
        align-items: flex-start;
    }
    
    .main-image-section img{
        max-height: 80%;
        justify-content: start;
        align-items: flex-start;
    }

    .activity-info {
        height: auto; /* Permet au contenu de prendre plus de place si nécessaire */
    }
}

/* Responsiveness pour smartphones */
@media (max-width: 768px) {
    header {
        font-size: 18px; /* Réduit la taille du texte de l'en-tête */
        padding: 5px;
    }
    main{
        padding-top: 10%;
        height: auto;
        width: 100%;
    }

    .activity-container {
        grid-template-columns: 100%; /* Une seule colonne */
        grid-template-areas: 
            "gallery"
            "main-section"
            "activity-info";
        gap: 10px;
        padding: 15px;
        align-items: center;
        justify-items: center;
        height: 100%;
        max-width: 100%;
        width: 100%;
             grid-auto-rows: auto;
        
    }
    
  

   .gallery {
    
    flex-flow: row nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
       max-width: 100%;
    height: auto;
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
    padding: 10px;
    background: #f0f0f0; /* Pour mieux visualiser la div dans le débogage */
}

.gallery img {
    justify-content: center;
    max-width: 30%;
     flex-shrink: 0;     /* Empêche les images de se réduire */
    height: auto;      /* Ajustez la hauteur selon vos besoins */
    object-fit: cover;  /* Remplissage sans déformation */
    border-radius: 5px; /* Coins arrondis pour plus d'esthétique */
    
}
    
    .main-image-section img {
        max-width: 100%; /* Ajuste l'image principale */
        height: auto;
    }
    
    .main-image-section{
        width: 100%;
        height: auto;
       
    }
    .activity-description{
        height: auto;
    }
    
    .main-image-section img{
        max-height: 80%;
       
    }

    .activity-info {
       height: auto;
        font-size: 14px; /* Réduction de la taille du texte */
    }

    .action-buttons button, .bouton {
        font-size: 14px; /* Réduction de la taille des boutons */
        padding: 5px 10px;
    }
}


















