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

:root {
    /* Nouvelle palette de couleurs claires */
    --primary-white: #161616;
    --cream: #faf8f3;
    --light-cream: #f9f6f0;
    --soft-gray: #f5f5f5;
    --medium-gray: #e8e8e8;
    --text-gray: #4a4a4a;
    --text-dark: #2c2c2c;
    
    /* Couleurs dorées */
    --gold-primary: #dcb20a; /*Couleur Logo*/
    --gold-light: #dcb20a;
    --gold-dark: #dcb20a;
    
    /* Couleurs d'accent claires */
    --light-blue: #f0f8ff;
    --soft-blue: #e6f3ff;
    --accent-blue: #87ceeb;
    
    /* Couleurs d'ombre douces */
    --soft-shadow: rgba(0, 0, 0, 0.1);
    --medium-shadow: rgba(0, 0, 0, 0.15);
}

@font-face {
    font-family: 'montserrat';
    src: url('fonts/Montserrat-Regular.ttf');
}

@font-face {
    font-family: 'Open';
    src: url('fonts/OpenSans-Regular.ttf');
}

@font-face {
    font-family: 'PoetsenOne';
    src: url('fonts/PoetsenOne-Regular.ttf');
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf');
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato/Lato-Regular.ttf');
}

body {
    font-family: 'Lato', sans-serif;
}

.title {
    font-family: 'PlayfairDisplay', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PlayfairDisplay', serif;
}

/*HEADER*/
header {
    background-color: var(--primary-white);
    display: flex; 
    align-items: center; 
    position: fixed;
    width: 100%;
    justify-content: space-between;
    padding: 15px 30px;
    border-bottom: 3px solid var(--gold-primary);
    box-shadow: 0 2px 10px var(--soft-shadow);
    z-index: 1000;
}

header img {
    height: 60px;
    width: 70px;
    padding: 5px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px; 
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-white);
    background-color: var(--gold-primary); 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--soft-shadow);
}

/* BADGE DE COMPTEUR DE MESSAGES */
.messages-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--gold-primary);
    color: var(--primary-white);
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px var(--soft-shadow);
    border: 2px solid var(--primary-white);
    z-index: 10;
}

/* Style pour les liens avec position relative pour le badge */
#messagesTab, #dropdownMessagesLink {
    position: relative;
}

/*DROPDOWN BURGER*/
.burger i {
    color: var(--gold-primary);
    background-color: var(--primary-white);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
}

.burger i:hover {
    background-color: var(--gold-primary);
    color: var(--primary-white);
}

.dropdownburger {
    position: fixed;
    top: 0px;
    left: -300px;
    width: 250px;
    height: 100%;
    z-index: 999;
    background-color: var(--primary-white);
    box-shadow: 2px 0 15px var(--soft-shadow);
    transition: left 0.3s ease;
    border-right: 3px solid var(--gold-primary);
}

.dropdownburger-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    max-height: 100vh;
    /* Styles personnalisés pour la scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--primary-white);
}

/* Styles pour la scrollbar du dropdown burger */
.dropdownburger-content::-webkit-scrollbar {
    width: 6px;
}

.dropdownburger-content::-webkit-scrollbar-track {
    background: var(--primary-white);

}

.dropdownburger-content::-webkit-scrollbar-thumb {
    background: var(--gold-primary);

}

.dropdownburger-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.dropdownburger-content a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 auto;
}

.dropdownburger-content img {
    margin: 0 auto;
    height: 85px;
    width: auto;
}

.dropdown-divider {
    background-color: var(--gold-primary);
    height: 2px;
    width: 100px;
    margin: 15px auto;
    border-radius: 1px;
}

.dropdownburger.open {
    left: 0;
}

.dd-card {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 12px;
    margin: 8px 0;
    background-color: var(--light-cream);
    border-radius: 10px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.dd-card:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-primary);
    transform: translateX(5px);
}

.dd-card:hover a {
    color: var(--primary-white);
    font-weight: 500;
}

/*HOME - HERO SECTION*/
main {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-cream) 100%);
    padding: 120px 40px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-family: 'PlayfairDisplay', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-white);
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 60px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--primary-white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--soft-shadow);
    border: 2px solid var(--gold-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--medium-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold-primary);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.hero-cta {
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    background: var(--gold-primary);
    color: var(--primary-white);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--soft-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--medium-shadow);
}

/*ABOUT*/
.section-about {
    background: var(--primary-white);
    padding: 80px 40px;
    color: #fff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.section-about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.about-intro {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.team-member {
    display: flex;
    align-items: center;
    background: var(--light-cream);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--medium-shadow);
}

.team-member:nth-child(even) {
    flex-direction: row-reverse;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-primary);
    margin: 0 30px;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.member-role {
    font-size: 1rem;
    color: var(--gold-primary);
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.about-mission {
    background: var(--cream);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.mission-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.mission-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* SERVICES */
.section-services {
    background: var(--light-cream);
    padding: 80px 40px;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.section-services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--medium-shadow);
    border-color: var(--gold-primary);
}

.service-icon {
    background: transparent;
    color: #dcb20a;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #dcb20a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(233, 197, 103, 0.3);
}

.service-title {
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 12px 0;
    color: #fff;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* PORTFOLIO */
.section-portfolio {
    background: var(--light-cream);
    padding: 80px 40px;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-portfolio h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-portfolio h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 2px;
}

#addNewProject {
    color: var(--gold-primary);
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

#addNewProject:hover {
    color: var(--gold-dark);
    transform: scale(1.1);
}

.portfolio-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--medium-gray);
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--medium-shadow);
    border-color: var(--gold-primary);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-bottom: 1px solid var(--medium-gray);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 25px;
}

.portfolio-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.portfolio-content a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gold-primary);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.portfolio-content a:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 197, 103, 0.3);
}

.edit-btn {
    background: var(--accent-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background: var(--gold-primary);
    transform: scale(1.1);
}

/* Style de la modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.modal-content {
    background: var(--primary-white);
    margin: 5% auto;
    padding: 40px;
    border: 3px solid var(--gold-primary);
    width: 80%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--medium-shadow);
    position: relative;
    overflow-y: auto;
    max-height: 85vh;
    /* Styles personnalisés pour la scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--primary-white);
}

/* Styles pour la scrollbar de la modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--primary-white);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
    border: 2px solid var(--primary-white);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.close {
    color: var(--text-gray);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--gold-primary);
    text-decoration: none;
}

#logoutBtnCard, #adminLink {
    display: none; /* caché par défaut */
  }
  
  #logoutBtnCard[style="display: block;"], #adminLink[style="display: block;"] {
    display: block; /* visible lorsque l'utilisateur est connecté */
  }

  .message p {
    word-wrap: break-word;  /* Permet de couper les mots très longs */
    overflow-wrap: break-word;  /* Alternative moderne pour word-wrap */
    white-space: normal;  /* Autorise le retour à la ligne */
    max-width: 100%;  /* S'assure que le texte ne dépasse pas la largeur du conteneur */
    margin: 10px 0;  /* Ajoute de l'espace autour des paragraphes */
    color: #fff;
  }
  
  .message {
    width: 100%;  /* Utilise toute la largeur disponible */
    word-break: break-word;  /* Assure que les mots très longs soient coupés */
    padding: 15px 0;  /* Ajoute de l'espace au-dessus et en-dessous de chaque message */
  }

  /* Style pour la ligne de séparation entre les messages */
  .message hr {
    margin: 20px 0;  /* Ajoute de l'espace autour de la ligne */
    border: none;
    border-top: 1px solid #e0e0e0;
    opacity: 0.6;
  }

  /* Retire la ligne de séparation du dernier message */
  .message:last-child hr {
    display: none;
  }

  /* Style pour le nom et l'email */
  .message strong {
    color: #fff;
    font-size: 14px;
  }

  .message em {
    color: #fff;
    font-size: 13px;
  }

  /* Style pour la date */
  .message small {
    color: #fff;
    font-size: 12px;
    margin-top: 10px;
    display: block;
  }

/* FOOTER */
footer {
    background: var(--primary-white);
    color: #fff;
    padding: 60px 40px 40px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    border-top: 3px solid var(--gold-primary);
}

footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gold-primary);
    font-weight: 600;
}

footer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #fff;
}

footer a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

.reseaux .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.reseaux .social-links a {
    font-size: 1.3rem;
    background: transparent;
    color: #dcb20a;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #dcb20a;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 197, 103, 0.3);
    text-decoration: none;
}

.reseaux .social-links a:hover {
    background: rgba(220, 178, 10, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 197, 103, 0.4);
}

.contacts p {
    margin: 8px 0;
}

.contacts a {
    font-weight: 500;
}

.contacts a:hover {
    color: var(--gold-dark);
}

/* Style spécifique pour le bouton "Formulaire de contact" */
#openPopup {
    display: inline-block;
    padding: 12px 24px;
    background: #dcb20a;
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#openPopup:hover {
    background: var(--gold-dark);
    color: var(--primary-white);
    transform: translateY(-2px);
}

/*FORMULAIRE*/
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: var(--primary-white);
    color: #fff;
    border: 3px solid var(--gold-primary);
    padding: 35px;
    width: 520px;
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 15px 35px var(--medium-shadow);
    overflow-y: auto;
    /* Styles personnalisés pour la scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--primary-white);
}

/* Styles pour la scrollbar dans les navigateurs WebKit (Chrome, Safari, Edge) */
.popup-content::-webkit-scrollbar {
    width: 12px; /* Plus large pour permettre plus de "padding" */
}

.popup-content::-webkit-scrollbar-track {
    background: var(--primary-white);
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
    border: 3px solid var(--primary-white); /* "Padding" plus important */
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--gold-primary);
}

.popup-content h2 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 18px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

input, textarea {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    border: 2px solid var(--gold-primary); 
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 197, 103, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 200px;
}

button {
    margin-top: 30px;
    padding: 16px 35px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--primary-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 197, 103, 0.3);
}

/*RESPONSIVE*/

/* Desktop large screens */
@media screen and (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Tablette */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    /*HEADER*/
    .burger i {
        display: block;
    }
    nav {
        display: none;
    }
    
    /*HERO SECTION*/
    main {
        padding: 100px 30px 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin: 40px 0;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    /*ABOUT SECTION*/
    .section-about {
        padding: 60px 30px;
    }

    .section-about h2 {
        font-size: 2rem;
    }
    
    .about-intro {
        font-size: 1.1rem;
        margin-bottom: 40px;
        color: #fff;
    }
    
    .about-team {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .team-member {
        padding: 25px;
    }
    
    .team-member:nth-child(even) {
        flex-direction: row; /* Garde le même sens sur tablette */
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
        margin: 0 25px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .about-mission {
        padding: 30px;
    }
    
    /*SERVICES SECTION*/
    .section-services {
        padding: 60px 30px;
    }
    
    .section-services h2 {
        font-size: 2rem;
    }
    
    .services-intro {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    /*PORTFOLIO SECTION*/
    .section-portfolio {
        padding: 60px 30px;
    }
    
    .section-portfolio h2 {
        font-size: 2rem;
    }
    
    .portfolio-intro {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .portfolio-item img {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 25px;
    }
    
    /*FOOTER*/
    footer {
        padding: 40px 30px 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .reseaux, .contacts {
        margin-bottom: 20px;
    }
    
    /*MODALES ET FORMULAIRES*/
    .popup-content, .modal-content {
        width: 85%;
        max-width: 500px;
        padding: 30px;
        margin: 5% auto;
        max-height: 90vh;
    }
}
/* Mobile */
@media screen and (max-width: 767px) {
    /*HEADER*/
    .burger i {
        display: block;
    }
    nav {
        display: none;
    }
    
    header {
        padding: 10px 20px;
    }
    
    header img {
        height: 50px;
        width: 60px;
    }
    
    /*DROPDOWN MOBILE*/
    .dropdownburger {
        width: 280px;
    }
    
    /*HERO SECTION*/
    main {
        padding: 80px 20px 40px;
        min-height: auto;
    }
    
    .hero-container {
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    /*ABOUT SECTION*/
    .section-about {
        padding: 50px 20px;
    }
    
    .section-about h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .about-intro {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .about-team {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .team-member {
        flex-direction: column !important;
        text-align: center;
        padding: 25px 20px;
    }
    
    .member-photo {
        width: 90px;
        height: 90px;
        margin: 0 0 20px 0;
    }

    .member-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .member-role {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .member-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .about-mission {
        padding: 25px 20px;
    }
    
    .mission-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .mission-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /*SERVICES SECTION*/
    .section-services {
        padding: 50px 20px;
    }
    
    .section-services h2 {
        font-size: 1.8rem;
    }
    
    .services-intro {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 10px 0;
        padding-left: 20px;
    }
    
    /*PORTFOLIO SECTION*/
    .section-portfolio {
        padding: 50px 20px;
    }
    
    .section-portfolio h2 {
        font-size: 1.8rem;
    }
    
    .portfolio-intro {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .portfolio-item img {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-content h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .portfolio-links {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .portfolio-content a {
        text-align: center;
        padding: 12px 20px;
    }
    
    .edit-btn {
        align-self: center;
        margin-top: 10px;
    }
    
    /*FOOTER*/
    footer {
        padding: 40px 20px 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    
    footer h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    .reseaux .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .reseaux .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contacts p {
        margin: 6px 0;
    }
    
    /*MODALES ET FORMULAIRES*/
    .popup-content, .modal-content {
        width: 95%;
        padding: 25px;
        margin: 3% auto;
        border-radius: 15px;
        max-height: 95vh;
    }
    
    .popup-content h2, .modal-content h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .close, .close-btn {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    label {
        font-size: 0.9rem;
        margin-top: 12px;
    }
    
    input, textarea {
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    button {
        padding: 12px 25px;
        font-size: 0.9rem;
        margin-top: 20px;
        border-radius: 20px;
    }
    
    /*MESSAGES BADGE MOBILE*/
    .messages-badge {
        top: 6px;
        right: 6px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        padding: 2px 5px;
    }
}
/* Très petits écrans */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
    
    .section-about h2,
    .section-services h2,
    .section-portfolio h2 {
        font-size: 1.6rem;
    }
    
    .team-member {
        padding: 20px 15px;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .portfolio-content {
        padding: 15px;
    }
    
    .popup-content, .modal-content {
        padding: 20px;
        width: 98%;
    }
}

@media screen and (max-width: 330px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-container {
        padding: 20px 10px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-about,
    .section-services,
    .section-portfolio {
        padding: 40px 15px;
    }
    
    .team-member,
    .service-card {
        padding: 15px;
    }
    
    .about-mission {
        padding: 20px 15px;
    }
    
    .portfolio-content {
        padding: 12px;
    }
}

/* Règles supplémentaires pour améliorer le responsive */

/* Assure que les images ne débordent jamais */
img {
    max-width: 100%;
    height: auto;
}

/* Évite le débordement horizontal */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Améliore l'affichage des grilles sur petits écrans */
@media screen and (max-width: 500px) {
    .hero-stats,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    
    .about-team {
        grid-template-columns: 1fr !important;
    }
}

/* Optimisations pour les tablettes en mode portrait */
@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Améliorations pour l'accessibilité et la navigation tactile */
@media (hover: none) and (pointer: coarse) {
    /* Écrans tactiles */
    .cta-button,
    .portfolio-content a,
    button {
        min-height: 44px; /* Taille minimum pour les éléments tactiles */
    }
    
    .service-card:hover,
    .team-member:hover,
    .portfolio-item:hover,
    .stat-card:hover {
        transform: none; /* Désactive les effets hover sur tactile */
    }
}

/* Règles pour l'impression */
@media print {
    header,
    .burger,
    .dropdownburger,
    .cta-button,
    .edit-btn,
    footer {
        display: none !important;
    }
    
    main,
    .section-about,
    .section-services,
    .section-portfolio {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}
