/*
Theme Name: Gaudilliere Avocat Vertical
Theme URI: https://www.gaudilliere-avotat.fr/
Author: Ton Nom
Description: Thème WordPress vertical inspiré de gaudilliere-avocat.fr
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gaudilliere-avocat-vertical
*/

/* Structure générale mise à jour pour le footer pleine largeur */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-container {
  max-width: 1286px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wrapper {
  display: flex;
  flex: 1;
  background: transparent;
  gap: 20px;
  margin: 0;
}

.sidebar {
  width: 280px;
  background: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  padding-top: 30px;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 20px;
}

.site-logo {
  margin-bottom: 60px;
}

.sidebar nav {
  width: 78%;
}

/*.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #444;
  font-size: 1.5em;
  cursor: pointer;
  padding: 10px;
}*/

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar nav ul li {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.sidebar nav ul li a {
  display: block;
  color: #444;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0px;
  padding: 5px 18px 5px 36px;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  position: relative;
  z-index: 2;
  text-align: left;
}

.sidebar nav ul li a::before {
  content: '›';
  position: absolute;
  right: 20px;
  top: 7px;
  color: transparent;
  transition: color 0.2s;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1;
}

.sidebar nav ul li a::after {
  content: '';
  display: block;
  height: 1px;
  background: #ececec;
  margin: 10px 0 0 0;
  width: 140px;
  margin-left: 0;
  position: relative;
  z-index: 1;
}

.sidebar nav ul li:last-child a::after {
  display: none;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li.current-menu-item a {
  color: #538135;
}

.sidebar nav ul li a:hover::before,
.sidebar nav ul li.current-menu-item a::before {
  color: #538135;
}

.sidebar nav ul li.current-menu-item a::before {
  color: #538135;
}

.sidebar nav ul li a:hover::before {
  color: #538135;
}

.sidebar nav ul li.current-menu-item a {
  color: #538135 !important;
  font-weight: bold !important;
}

.main-content {
  flex: 1;
  padding: 0;
  min-width: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* TYPOGRAPHIE GLOBALE */
h1 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 5px;
  color: #538135;
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 18px;
}

h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
}

p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #728f91;
}

/* IMAGES RESPONSIVE - CORRECTION MAJEURE */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Images dans les figures WordPress */
.wp-block-image img,
figure img {
  max-width: 100%;
  height: auto;
  width: auto;
}

/* Images dans les colonnes */
.wp-block-columns img {
  max-width: 100%;
  height: auto;
}

/* Images dans le contenu général */
.section img {
  max-width: 100%;
  height: auto;
}

/* RESPONSIVE TYPOGRAPHIE (tablettes et mobile) */
@media (max-width: 768px) {
  h1 {
    font-size: 20px; /* Augmenté de 16px à 20px pour être plus grand que le paragraphe */
    font-weight: 700; /* Maintien du poids pour la hiérarchie visuelle */
  }

  h2 {
    font-size: 24px; /* Ajusté pour mobile */
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 14px; /* Réduit à 14px pour créer une hiérarchie claire */
    line-height: 1.8; /* Améliore la lisibilité */
  }
}

/* Mobiles (600px et moins) - Ajustements supplémentaires */
@media (max-width: 600px) {
  /* ... autres règles existantes ... */

  /* Texte plus lisible sur mobile avec hiérarchie respectée */
  h1 {
    font-size: 18px; /* Plus grand que les paragraphes */
    margin-bottom: 15px;
  }
  
  p {
    font-size: 14px; /* Taille confortable pour la lecture mobile */
    line-height: 1.8;
  }
}



/* Section Hero - Bannière */
.hero {
  background: #2c2c2c;
  color: #fff;
  padding: 0;
  margin: 0 0 20px 0;
  width: 976px;
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  background: #b89c5a;
  color: #fff;
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  margin-top: 20px;
}

.btn:hover {
  background: #fff;
  color: #b89c5a;
}

.section {
  background: #fff;
  padding: 0px 20px;
  width: 936px;
  margin: 0 0 20px 0;
}

.section-title {
  color: #b89c5a;
  text-align: center;
  margin-bottom: 30px;
}

.expertises-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.expertise-block {
  flex: 1 1 250px;
  min-width: 220px;
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
}

/* Footer */
footer {
  background: #f5f5f5;
  color: #222;
  text-align: right;
  padding: 40px 0 20px 0;
  font-size: 0.9em;
  width: 100%;
  max-width: 1286px;
  margin: 0px auto 0 auto;
  box-sizing: border-box;
  margin-bottom: 70px;
}

footer .container {
  text-align: right;
  padding: 0 20px;
}

footer a {
  color: #728f91;
  text-decoration: none;
}

footer p a {
  margin-left: 0px;
  font-weight: normal;
}

.footer-logo {
  background-image: url('https://www.gaudilliere-avocat.fr/wp-content/uploads/2025/08/line.jpg');
  background-repeat: repeat-x;
  background-size: auto;
  background-position: top center;
  height: 5px;
  width: 100%;
  margin-bottom: 5px;
}

/* MEDIA QUERIES RESPONSIVE - CORRECTIONS COMPLÈTES */

/* Tablettes (768px à 900px) */
@media (max-width: 900px) {
  .site-container {
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
  }

  .wrapper {
    flex-direction: column;
    gap: 0;
  }
  
  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: unset;
    padding: 15px 20px;
    position: static;
    margin-bottom: 20px;
  }

  .site-logo {
    margin-bottom: 0;
  }
  
 /* .menu-toggle {
  display: block;
  order: 2;
} */
  
  .sidebar nav {
    width: auto;
  }
  
  .sidebar nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  /*.sidebar nav ul.active {
    display: flex;
  }*/
  
  .sidebar nav ul li {
    width: 100%;
  }
  
  .sidebar nav ul li a {
    padding: 15px 20px;
    border-left: none;
    border-bottom: 1px solid #ececec;
    text-align: center;
    font-size: 14px;
  }
  
  .sidebar nav ul li a::before,
  .sidebar nav ul li a::after {
    display: none;
  }

  /* Hero responsive */
  .hero {
    width: 100%;
    margin: 0 0 20px 0;
  }
  
  .hero img {
    max-height: 250px;
    object-fit: cover;
  }

  /* Section responsive */
  .section {
    width: 100%;
    padding: 20px 15px;
    margin: 0 0 20px 0;
  }

  /* Footer responsive */
  footer {
    max-width: 100%;
    margin: 20px 0 0 0;
  }

  footer .container {
    text-align: center;
    padding: 0 15px;
  }
}

/* Mobiles (600px et moins) */
@media (max-width: 600px) {
  .site-container {
    padding: 0 5px;
  }

  .sidebar {
    padding: 10px 15px;
  }

  .hero img {
    max-height: 200px;
  }
  
  .section {
    padding: 15px 10px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 1em;
  }

  .expertises-list {
    flex-direction: column;
    gap: 20px;
  }

  /* Texte plus lisible sur mobile */
  p {
    font-size: 12px;
    line-height: 1.8;
  }
}



/* Corrections supplémentaires pour les images */
@media (max-width: 768px) {
  /* Toutes les images dans le contenu */
  .main-content img,
  .section img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }

  /* Images dans les figures */
  figure {
    max-width: 100%;
    margin: 0 0 20px 0;
  }

  figure img {
    max-width: 100%;
    width: 100%;
  }
} 

@media (max-width: 900px) {
  .sidebar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 18px;
  }

  .site-logo {
    margin-bottom: 0;
  }

 /* responsive 2 colonnes */
 @media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column !important;
  }

  .wp-block-column {
    width: 100% !important;
  }
}

