/* ==========================================================
   MAIN STYLESHEET OPTIMISÉ — Maxence Ducher Portfolio
   ========================================================== */

/* ------------------------------
   1. RESET & BASE TYPOGRAPHIE
   ------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;         /* Standard */
}


html, body {
  height: 100%;
  overflow-y: auto;       /* Scroll uniquement si nécessaire */
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a:hover {
  color: #000;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #222;
  line-height: 1.25;
  margin-bottom: 0.4em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

/* ------------------------------
   2. LAYOUT GLOBAL
   ------------------------------ */
.container {
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-template-rows: auto 1fr auto;  /* fonctionne uniquement sur desktop */
  min-height: auto; 
  max-width: 1440px;
  margin: 0 auto;
}

/* ------------------------------
   3. SIDEBAR
   ------------------------------ */
.sidebar {
  position: fixed;
  top: 0;
  left: max(0px, calc(50% - 720px));
  width: 350px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 40px;
  z-index: 10;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  font-size: 27px;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.logo:hover {
  opacity: 0.7;
}

/* ------------------------------
   4. INTRO
   ------------------------------ */
.intro-text {
  line-height: 1.4;
  margin-bottom: 60px;
  cursor: default;
}

.intro-title {
  font-size: 18px;
  font-weight: 500;
  color: #222;
}

.intro-sub {
  font-size: 14px;
  font-weight: 400;
  color: #747474;
  opacity: 0.9;
  line-height: 1.8;
}

/* ------------------------------
   5. BOUTONS & LIENS IMPORTANTS
   ------------------------------ */
.filter-title,
.about-title {
  display: inline-block;
  background-color: #e7e7e7;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 7px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  letter-spacing: 0.8px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.filter-title:hover,
.about-title:hover {
  background-color: #d1d1d1;
}

.filter-title:active,
.about-title:active {
  background-color: #dedede;
}

  .about-title.is-home-button {
    background-color: #3f3f3f;    /* fond noir */
    color: #fff;               /* texte blanc */

  }

  .about-title.is-home-button:hover {
    background-color: #696969;    /* effet au survol */
    color: #fff;
  }

/* ------------------------------
   6. WORKS FILTER
   ------------------------------ */
.sidebar .works-filter {
  margin-bottom: 0;
}

.works-filter {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.works-filter ul {
  margin: 20px 0 5px 15px;
}

.works-filter a {
  display: inline-block;
  font-size: 14px;
  color: #747474;
  font-weight: 100;
  letter-spacing: 0.3px;
  line-height: 1.4;
  transition: color 0.25s ease;
  margin-bottom: 10px;
}

.works-filter a:hover {
  color: #222;
  font-weight: 600;
}

.works-filter a.active {
  color: #000;
  font-weight: 600;
}

.works-filter ul li a.active::before {
  content: "+ ";
}

/* Animation collapsible */
.collapsible .filter-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  will-change: max-height, opacity;
  transform: translateZ(0);
}

.collapsible.active .filter-list {
  max-height: 400px;
  opacity: 1;
}

.collapsible .filter-list::after {
  content: "";
  display: block;
  height: 0;
  transition: height 0.4s ease;
}

.collapsible.active .filter-list::after {
  height: 25px; /* espace visible uniquement quand la liste est ouverte */
}


/* ------------------------------
   7. LANGUAGE SWITCHER
   ------------------------------ */
.language-switcher {
  display: flex;
  gap: 10px;
  margin-top: 50px;
}

.lang-label {
  font-size: 11px;
  color: #aaa;
  margin-right: 6px;
}

.lang-btn {
  background-color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 9px 9px 9px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #4d4d4d;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background-color: #eeecec;
}

.lang-btn.active {
  background-color: #e7e7e7;
  color: #000;
  font-weight: 700;
}

.language-switcher .lang-btn.active {
    background-color: #e7e7e7;
    color: #4d4d4d;
    font-weight: 700;

    box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.09),
                inset 0 -1px 3px rgba(255, 255, 255, 0.3);
    transform: translateY(1px);
    transition: all 0.15s ease;
  }

  /* léger effet de hover pour contraste */
  .language-switcher .lang-btn:hover:not(.active) {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  }



/* ------------------------------
   8. INTRO MOBILE (masquée sur desktop)
   ------------------------------ */
.intro-mobile {
  display: none;
}

.mobile-menu-trigger,
.mobile-menu-close {
  display: none;
}

/* ------------------------------
   9. GALLERY GRID
   ------------------------------ */

/* Conteneur principal */
.gallery {
  grid-column: 2 / 3;
  padding: 40px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 30px;
  column-gap: 30px;
  align-items: start;
  align-content: start;
}

/* Items */
.gallery-item {
  background-color: #f7f7f7;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;              
  border-radius: 0;                 
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Filtrage JS (masquage) */
.gallery-item.filtered {
  display: none;
  opacity: 1;
  transform: none;
  visibility: hidden;
}

/* Overlay Hover Effect */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  max-width: 80%;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Deux lignes distinctes */
.overlay-category {
  color: #bbbbbb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  opacity: 0.85;
}

.overlay-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
}

/* Effet au survol */
.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item:hover .overlay-text {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   10. FOOTER
   ------------------------------ */

.grid-footer {
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1150px;
  margin-top:50px;       /* Espace entre galerie et footer → à ajuster librement */
  margin-bottom: 20px;    /* Espace bas contrôlable */
  color: #747474;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.4px;
  position: relative;      /* s'assure qu'il se positionne dans le flux normal */
  z-index: 5;              /* au-dessus du fond et sous la sidebar */
  visibility: visible !important;
}

.gallery,
.grid-footer {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ------------------------------
   ABOUT SECTION
   ------------------------------ */

.about-section {
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px 40px;
  max-width: 1150px;
  margin: 0 auto;
}

/* Image à gauche — texte à droite */
.about-image {
  order: 1;
}

.about-text {
  order: 2;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  text-align: justify;          /* ✅ texte justifié */
  text-justify: inter-word; 
}

.about-text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-image img {
  width: 100%;
  height: auto;
  /*border-radius: 6px;*/
  object-fit: cover;
  /*box-shadow: 0 4px 18px rgba(0,0,0,0.08);*/
}


/* ------------------------------
   INFORMATIONS SECTION
   ------------------------------ */

.info-section {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  max-width: 1070px;             /* ✅ même largeur visuelle que la gallery */
  width: 100%;
  margin: 0px auto 60px;
  padding: 0 30px;               /* ✅ mêmes marges latérales que la gallery */
  box-sizing: border-box;
}

.info-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 25px;
}

/* ACCORDÉON STRUCTURE */
.accordion {
  width: 100%;
  border-top: none;
}

.accordion-item {
  border-bottom: 1px solid #d3d3d3;
  cursor: pointer;
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}


.accordion-header {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: #222;
  text-align: left;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease, background 0.3s ease;
}

.accordion-header.active {
  color: #007BFF;
}


.accordion-header:hover {
  background-color: #f0f0f0;
}

.accordion-header::after {
  content: "+";
  font-weight: 500;
  font-size: 28px;
  color: #cecece;
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  transform: rotate(45deg);
  color: #3a3a3a;
  transition: transform 0.3s ease;
}

/* CONTENU */
.accordion-content { 
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 10px;
  transition: max-height 0.2s ease, opacity 0.35s ease, padding 0.3s ease;
}

.accordion-content p {
  padding: 20px 0 50px;
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

.accordion-item.open .accordion-content {
  opacity: 1;
  padding: 10px 10px 20px;
}

/* ------------------------------
   CONTACT SECTION
   ------------------------------ */
.contact-section {
  grid-column: 2 / 3;
  max-width: 1070px;
  width: 100%;
  margin: 20px auto 100px;
  padding: 0 30px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.contact-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #000;
}

.contact-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
  /*max-width: 800px;*/
   text-align: justify;     
  text-justify: inter-word;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 800px;       /* ✅ réduit la largeur du formulaire */
  margin: 0 auto;  
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom:20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #d3d3d3;
  border-radius: 25px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
  border-radius: 12px;
  resize: none;
  margin-bottom: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #8a8a8a;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* Pied du formulaire */
.form-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}


.contact-form button {
  background-color: #e7e7e7;
  color: #222;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 25px;
  padding: 10px 40px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.contact-form button:hover {
  background-color: #d1d1d1;
}

.confirmation-message {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  border-radius: 16px;
  /*box-shadow: 0 0 25px rgba(0,0,0,0.05);*/
  animation: fadeIn 0.5s ease;
}

.confirmation-message h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

.confirmation-message p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center;
}

.confirmation-message.error h3 {
  color: #b62828;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 10px 25px;
  border-radius: 30px;
  background-color: #f4f4f4;
  transition: background-color 0.3s ease;
}

.back-link:hover {
  background-color: #ddd;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-end; /* ✅ aligne les bas des champs */
}

.form-row > input,
.form-row > .email-field {
  flex: 1 1 0;
  min-width: 0;
}


.email-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}


.error-message {
  color: #ff7373;
  font-size: 12px;
  margin-bottom: 6px;
  height: 14px;
  min-height: 15px; 
  line-height: 1;
  transition: opacity 0.3s ease;
  text-align: center;
}


.contact-form input.invalid {
  border: 1px solid #ff7373;
}



/* ==========================================================
   11. MEDIA QUERIES
   ========================================================== */

/* === TABLETTE (≤1200px) === */
@media (max-width: 1200px) and (min-width: 901px) {
  .sidebar {
    width: 350px;
    padding: 25px 30px;
  }

  .logo { font-size: 24px; }

  .intro-title,
  .intro-sub {
    display: block;
  }

  .intro-text {
    text-align: left;
    line-height: 1.5;
    max-width: 90%;
  }

  

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 25px;
    row-gap: 25px;
    padding: 40px 25px;
  }

}

/* === MOBILE (≤900px) === */
@media (max-width: 900px) {

  /* STRUCTURE PRINCIPALE */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding-top: 40px;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  /* INTRO MOBILE */
  .intro-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 10;
  }

  .intro-mobile .logo {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 18px;
    transition: color 0.3s ease;
  }

  .intro-mobile .intro-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    transition: color 0.3s ease;
  }

  .intro-mobile .intro-sub {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    transition: color 0.3s ease;
  }

  /* SIDEBAR */
  .sidebar {
    display: none !important;
  }

  /* BOUTONS MENU MOBILE */
.mobile-menu-trigger,
  .mobile-menu-close {
    display: block;
    position: fixed;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    z-index: 300;
  }

  .mobile-menu-trigger {
    color: #000;
  }

  .mobile-menu-trigger:hover {
    opacity: 0.7;
  }

  .mobile-menu-close {
    display: none;
    color: #fff;
  }

/* ===============================
   MENU MOBILE — VERSION FLUIDE & SCROLLABLE
   =============================== */
.sidebar.menu-open {
  display: flex !important;
  flex-direction: column;
  align-items: center;          /* ✅ centre horizontalement tout le contenu */
  justify-content: flex-start;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 5;
  animation: fadeIn 0.3s ease forwards;
  padding: 40px 20px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  text-align: center;
  padding-bottom: 140px !important;        
  
}

.sidebar.menu-open {
  background-color: rgb(0, 0, 0) !important; /* noir pur */
  transform: translateZ(0);                  /* crée une couche GPU fluide */
}

.sidebar.menu-open .logo,
.sidebar.menu-open .intro-text {
  position: relative;
  text-align: center;
  color: #fff !important;
  display: block !important;
}

.sidebar.menu-open .logo {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;           
  width: 100%;            
}


.sidebar.menu-open .intro-text {
  margin-bottom: 50px;
  text-align: center;         
  width: 100%;   
}

.sidebar.menu-open .intro-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.sidebar.menu-open .intro-sub {
  font-size: 13px;
  color: #ccc;
  line-height: 1.6;
}

.sidebar.menu-open .works-filter {
  width: 100%;
  padding: 0;                /* ✅ enlève tout padding résiduel */
  margin: 0 auto 0px;       /* ✅ centre et espace sous le bouton */
  text-align: center;        /* ✅ force le centrage du contenu interne */
}

.sidebar.menu-open .about-title {
  margin-bottom: 20px;
}

.sidebar.menu-open .language-switcher {
  margin-top: auto;  /* pousse les boutons langues vers le bas du menu */
}

/* Par défaut (menu fermé) : la sidebar est masquée */
.sidebar .logo,
.sidebar .intro-text {
  display: none;
}

/* Quand le menu est ouvert : on affiche ceux de la sidebar */
.sidebar.menu-open .logo,
.sidebar.menu-open .intro-text {
  display: block !important;
}

/* ... mais on masque la version "intro-mobile" (celle du index.html) */
body.menu-open .intro-mobile {
  display: none !important;
}

  .sidebar.menu-open .works-filter,
  .sidebar.menu-open .about-title,
  .sidebar.menu-open .language-switcher {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
  }

  /* BOUTONS PRINCIPAUX (works + about) */
.sidebar.menu-open .works-filter .filter-title,
.sidebar.menu-open .about-title {
  display: flex;
  justify-content: center;    
  align-items: center;
  width: 200px;                
  text-align: center;
  background-color: #fff;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  padding: 10px 0;
  border-radius: 25px;
  margin: 0 auto 20px;          
  transition: background-color 0.3s ease;
}

.sidebar.menu-open .works-filter .filter-title {
  margin: 0 auto;            /* ✅ centre horizontalement le bouton */
  display: inline-flex;      /* ✅ bouton centré sans occuper toute la largeur */
  justify-content: center;
  align-items: center;
}

  .sidebar.menu-open .about-title {
    margin-top: 20px;
  }

  .sidebar.menu-open .works-filter .filter-title:hover,
  .sidebar.menu-open .about-title:hover {
    background-color: #ddd;
  }

  /* LANG SWITCHER */
.sidebar.menu-open .language-switcher {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
  width: 100%;
  text-align: center;
}

.sidebar.menu-open .language-switcher .lang-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #fff;        
  background-color: #fff;       
  color: #000;                  
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar.menu-open .language-switcher .lang-btn:hover {
  background-color: #ddd;
}

.sidebar.menu-open .language-switcher .lang-btn.active {
  background-color: #000;        
  color: #fff;                   
  border-color: #fff;           
}
  /* CHANGEMENT COULEUR INTRO LORS DU MENU */
  body.menu-open .intro-mobile .logo,
  body.menu-open .intro-mobile .intro-title,
  body.menu-open .intro-mobile .intro-sub {
    color: #fff;
  }

  /* VISIBILITÉ DES BOUTONS */
  body.menu-open .mobile-menu-trigger { display: none; }
  body.menu-open .mobile-menu-close { display: block; }

  /* LISTE DES FILTRES (MOBILE) */
  .sidebar.menu-open .works-filter .filter-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    gap: 8px;
  }

    .sidebar.menu-open .works-filter .filter-list li:first-child {
    padding-top: 20px;
  }


  .sidebar.menu-open .works-filter .filter-list a {
    color: #bdbdbd !important;
    font-weight: 400;
    font-size: 16px!important;
    text-align: center;
    transition: opacity 0.3s ease;
  }

  .sidebar.menu-open .works-filter .filter-list a:hover,
  .sidebar.menu-open .works-filter .filter-list a.active {
    opacity: 1;
    font-weight: 600;
    color: #fff!important;
  }


  /* Supprimer les + et – */
  .sidebar.menu-open .works-filter ul li a::before {
    content: none !important;
  }

  .sidebar.menu-open .works-filter ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: center;
    width: 100%;
  }

  
  /* Footer */
  .grid-footer {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 30px;
    justify-content: center;
    text-align: center;
  }

  /* Gallery */
  .gallery {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 20px;
  padding: 20px 34px;   
  width: 100%;
  max-width: 600px;
  grid-column: auto;
  box-sizing: border-box;
}

  .overlay {
    display: none;
  }

  /* Page about */
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0px 30px;   /* ✅ plus de marge latérale */
    gap: 40px;
  }

  .about-image {
    order: 1;
  }

  .about-text {
    order: 2;
    text-align: justify;   /* ✅ centré sur mobile */
    max-width: 100%;
    padding: 0 10px;      /* ✅ léger padding intérieur pour respirer */
  }



  .about-image img {
    max-width: 320px;
    margin: 0 auto;
    /*border-radius: 10px;*/
  }

  /* Page about > partie accordeon */
    .info-section {
    grid-column: auto;
    width: 100%;
    max-width: 700px;
    padding: 50px 34px 0px 34px;          /* ✅ même padding que .gallery mobile */
    margin: 30px auto 40px;   /* ✅ cohérent avec le layout mobile */
  }

  .info-section h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
  }

  .accordion-header {
    font-size: 14px;
    padding: 15px 5px;
  }

  .accordion-content p {
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
  }

  .accordion-item.open {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  }

    /* Page about > message */
    .form-row {
    flex-direction: column; 
    gap: 15px;                    
  }

  .form-row > input,
  .form-row > .email-field {
    width: 100%;                  
  }

  textarea {
    width: 100%;  
     margin-bottom: 25px;                
  }

  .form-footer {
    justify-content: center;      
  }

  .contact-form {
    gap: 5px;
  }
  

}

