
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;               /* le body suit la hauteur du contenu */
    min-height: 100vh;           /* au moins la hauteur de l'écran */
    margin: 0;
    padding: 0;
}

body {
    background-image: url("Img/fond_degrade_portfolio.png");
    /*background-repeat: no-repeat; */
    background-size: contain;      /* l'image entière est visible */
    /*background-position: top center; */
    background-attachment: fixed;
    /*min-height: 200vh; */
    background-repeat: repeat-x; 
    /*margin: 0; */
     /*background-size: auto 100%;  */
}


.container {
    display: flex;
}

/* Barre jaune */
.sidebar {
    width: 220px;
    min-height: 100vh;
    height: auto;
    background-color: #ffde7b;
    padding: 60px 30px;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;  /* centre le contenu horizontalement */
    align-items:flex-start;       /* centre le contenu verticalement */
    padding: 0;               /* pas de padding global pour toutes les sections */
}

.justifier {
   text-align: justify;
}

.logodubas img {
    position: fixed;
    bottom: 0;
    left: 10px;
    align-content: center;
    width: 200px;
    
}

.credit {
    text-align: center;
    margin-bottom: 0;
    color: #ffffff;
    
}

.sidebar-title {
    font-size: 28px;       /* texte grand */
    font-weight: bold;      /* gras */
    color: #000;            /* texte noir */
    margin-bottom: 40px;    /* espace entre le titre et le menu */
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    transition: opacity 0.2s ease;
}

.sidebar li:hover {
    opacity: 0.6;
}

.sidebar li.active {
    text-decoration: underline;
}


.section {
    display: none;            /* caché par défaut */
    width: 100%;              /* occupe tout l'espace disponible */
}

.section.active {
    display: block;           /* affiché seulement quand actif */
}

/* Centrer le titre */
#travail .travail-title {
    margin-top : 40px;
    text-align: center;   /* centre horizontalement */
    margin-bottom: 30px;  /* espace entre titre et grille */
    font-size: 32px;      /* taille du titre */
    font-weight: bold;
    color: white;         
}

/* Grille de vidéos */
#travail .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    grid-template-rows: repeat(2, auto);   /* 2 lignes */
    gap: 20px;                              /* espace entre vidéos */
    margin-left: 40px;                      /* marge entre sidebar et grille */
    margin-right :40px; 
}

/* Embeds 16/9 */
#travail .video-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;  /* force le ratio 16/9 */
    border: none;
    border-radius: 8px;
    object-fit: cover;     /* remplit bien la frame */
}


/* Conteneur principal en ligne */
.apropos-container {
    display: flex;
    flex-direction: row; /* côte à côte */
    align-items: flex-start; /* aligné en haut */
    gap: 40px; /* espace entre image et texte */
    max-width: 1000px;
    margin: auto;
    padding: 40px;
    flex-wrap: wrap; /* pour petits écrans */
}

.apropos-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffde7b;
    flex-shrink: 0; /* ne se réduit pas */
}

.apropos-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1; /* prend le reste de l’espace */
}

.apropos-info{
display:flex;
flex-direction:column;
gap:20px;
flex:1;
}

.apropos-container{
flex-wrap:wrap;
}
/* Bloc sous image + texte */
.apropos-bottom {
    display: block;       /* un seul bloc vertical */
    max-width: 1000px;
    margin: 20px auto 40px auto; /* centré avec marge haut/bas */
    color: white;
}

.apropos-bottom .apropos-item h2 {
    font-size: 27px;
    font-weight: bold;
    margin-bottom: 10px;
}

.apropos-info .apropos-item h2 {
    font-size: 27px;
    font-weight: bold;
    margin-bottom: 10px;
}

.apropos-bottom .apropos-item p {
    font-size: 16px;
    line-height: 1.5;
}
/* Image ronde */
.apropos-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffde7b;
}

/* Contenu texte à droite */
.apropos-info{
display:flex;
flex-direction:column;
gap:20px;
width:100%;
}

/* Chaque catégorie */
.apropos-item h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.apropos-item p {
    font-size: 16px;
    line-height: 1.5;
    color: white;
}

.Banniere {
    margin-top : 20px;
    width : 50%;
    height: 50%;
    margin-left :25%;
}

/* Responsive pour petits écrans */
@media (max-width: 480px) {
    .Banniere {
        margin-top: 20px;   /* réduit l'espace en haut */
        width: 80%;         /* ajuste la largeur pour écran petit */
        height: auto;       /* conserve le ratio de l'image */
        margin-left: 10%;   /* centre approximativement */
    }
}

.Logo {
    display: block;
    width: 100%;
   
}

/* Responsive : sur petits écrans, empile verticalement */


@media (max-width: 768px) {
    .apropos-container {
        flex-direction: column;
        align-items: center;
    }
    .apropos-info {
        text-align: center;
    }
}

#reseaux {

   margin-top: 200px;
}

/* Titre centré */
.reseaux-title {
    text-align: center;
    color: #fff;
    font-size: 32px;
    margin-bottom: 30px;
}

/* Container des réseaux sociaux */
.reseaux-container {
    display: flex;
    justify-content: center;  /* centre tous les items horizontalement */
    gap: 40px;                /* espace entre chaque réseau */
    margin-bottom: 30px;
    flex-wrap: wrap;          /* responsive */
}

/* Chaque réseau avec son texte dessous */
.reseau-item {
    display: flex;
    flex-direction: column;   /* image au dessus, texte dessous */
    align-items: center;      /* centre horizontalement */
    color: #fff;
}

/* Logo */
.reseau-item img { 
    width: 80px; 
    height: 80px; 
    object-fit: cover;
    margin-bottom: 10px; 
    cursor: pointer; 
    transition: transform 0.2s; 
}

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

/* Pseudo */
.reseau-item p {
    margin: 0;
    font-size: 14px;
    color: #fff;
    text-align: center;
}

/* Contact direct (email et téléphone) */
.contact-info {
    text-align: center;
    margin-top: 20px;
    color: #fff;
}

.contact-info a {
    color: #fff;
    text-decoration: underline;
}

/* Responsive sidebar pour petits écrans */
@media (max-width: 768px) {
  /* Sidebar fixe sur toute la hauteur souhaitée */
.container {
    display: flex;
}

/* Sidebar fixe */
.sidebar {
    width: 220px;
    height: 1000px;      /* ta hauteur fixe */
    background-color: #ffde7b;
    padding: 60px 30px;
    flex-shrink: 0;      /* empêche la sidebar de se réduire */
}
    .sidebar li {
        font-size: 14px;      /* police réduite */
        margin-bottom: 30px;  /* plus d’espace entre les items */
        padding: 5px 10px;    /* un peu de padding pour cliquer facilement */
    }

    .sidebar ul {
        gap: 15px;            /* espace horizontal si menu en ligne */
    }
}

    /* Rectangle vertical en dessous disparaît */
    .sidebar::after {
        display: none;
    }




@media (max-width: 768px) {
    .apropos-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .apropos-img {
        width: 180px;
        height: 180px;
    }

    .apropos-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #travail .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 480px) {
    #travail .video-grid {
        grid-template-columns: 1fr; /* 1 vidéo par ligne */
        gap: 10px;
        margin-left: 10px;
        margin-right: 10px;
    }
}


@media (max-width: 768px) {
    .reseaux-container {
        flex-wrap: wrap;  /* permet aux icônes de passer à la ligne */
        gap: 20px;
    }

    .reseau-item img {
        width: 60px;
        height: 60px;
    }

    .reseaux-title {
        font-size: 24px;
    }
}

/* Sous-titres des catégories dans « Mon travail » */
#travail .travail-subtitle {
    text-align: center;
    color: white;
    font-size: 26px;
    margin: 35px 40px 25px;
    font-weight: bold;
}

#travail .reels-title {
    margin-top: 55px;
}

/* Grille des Reels Instagram */
#travail .reel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0 40px 50px;
    align-items: start;
}

#travail .reel-grid .instagram-media {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Responsive : Reels Instagram */
@media (max-width: 768px) {
    #travail .travail-subtitle {
        font-size: 24px;
        margin-left: 20px;
        margin-right: 20px;
    }

    #travail .reel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 480px) {
    #travail .travail-subtitle {
        font-size: 21px;
        margin-left: 10px;
        margin-right: 10px;
    }

    #travail .reel-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
}

#tarifs {
    padding: 40px 20px 60px;
}

.tarifs-title {
    text-align: center;
    color: #fff;
    font-size: 38px;
    margin-bottom: 35px;
}

.tarifs-card {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.tarif-item {
    background: rgba(255, 221, 111, 0.75);
    border: 1px solid rgba(255, 238, 153, 0.65);
    border-radius: 24px;
    padding: 30px 24px;
    text-align: left;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    box-shadow: 0 18px 32px rgba(0,0,0,0.12);
}

.tarif-item h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.tarif-item p {
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
}

.tarif-item p.price {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 24px auto 0;
    line-height: 1.2;
}

.tarif-item .small {
    font-size: 18px;
    color: #fff;
    margin-top: 10px;
}

.tarif-item:nth-child(3) p:first-of-type {
    font-size: 15px;
}

.diffusions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}
.diffusion-item {
    background: rgba(255, 226, 126, 0.75);
    border: 1px solid rgba(255, 238, 153, 0.55);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diffusion-item h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 12px;
}

.diffusion-item p {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

.tarifs-offres {
    text-align: center;
    margin-top: 10px;
}

.tarifs-offres h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 24px;
}

.offres-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    justify-items: center;
}

.offre-item {
    background: rgba(255, 229, 148, 0.75);
    border: 1px solid rgba(255, 214, 90, 0.6);
    border-radius: 24px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.offre-item p {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.offre-item strong {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .tarifs-grid,
    .diffusions-grid,
    .offres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tarifs-grid,
    .diffusions-grid,
    .offres-grid {
        grid-template-columns: 1fr;
    }

    .tarifs-card {
        padding: 30px 20px;
    }
}
