/*
Theme Name: DhraagiOffice-VTC
Theme URI: https://dhraagicab.fr/dhraagioffice-vtc
Author: Xavier LALIZEL
Author URI: https://dhraagicab.fr/
Description: Un thème WordPress moderne et minimaliste conçu spécifiquement pour les exploitants VTC.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dhraagioffice-vtc

/* ---------------------------------------------------------- */
/* 1. Général et Réinitialisation des styles                 */
/* ---------------------------------------------------------- */

html {
    box-sizing: border-box;
    font-size: 16px;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #ffffff; /* Couleur de fond par défaut */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------- */
/* 2. Structure principale et Conteneur                      */
/* ---------------------------------------------------------- */

#site-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* ---------------------------------------------------------- */
/* 3. Responsive Design avec Media Queries                   */
/* ---------------------------------------------------------- */

/* Pour les tablettes (largeur d'écran >= 768px) */
@media (min-width: 768px) {
    #site-content {
        padding: 40px;
    }
}

/* Pour les ordinateurs de bureau (largeur d'écran >= 1024px) */
@media (min-width: 1024px) {
    #site-content {
        max-width: 1200px;
    }
}

/* ---------------------------------------------------------- */
/* 4. Menu de Navigation                                     */
/* ---------------------------------------------------------- */

.site-header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}



.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    padding: 10px 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
}

/* Style du bouton "hamburger" (icône 3 lignes) */
.menu-toggle {
    display: block; /* Affiche le bouton sur mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 10px;
}

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin-bottom: 5px;
    transition: all 0.2s ease-in-out;
}

/* Pour les ordinateurs (largeur d'écran >= 768px) */
@media (min-width: 768px) {
    .site-header {
        position: fixed; /* Le menu reste fixe */
        width: 100%;
    }

    .main-navigation {
        display: block; /* Affiche le menu sur ordinateur */
        width: auto;
    }

    .main-navigation ul {
        display: flex;
    }

    .main-navigation li {
        padding: 0 15px;
    }

    .menu-toggle {
        display: none; /* Cache le bouton hamburger sur ordinateur */
    }
}

/*----------------------------------------------------------- */
/* 4. Style des box suggestion de autocomplete                                 */
/*----------------------------------------------------------- */

.suggestions {
  position: relative;
  z-index: 99;
}
.suggestions ul {
  margin: 0; padding: 0; background: #b6b2b2; border: 1px solid #aaa; list-style: none; max-height: 180px; overflow-y: auto;
}
.suggestions li {
  padding: 6px 10px; cursor: pointer; font-weight: normal; font-size: 14px;
}
.suggestions li:hover { background: #e3e9f3; }
#map-itineraire, .mapboxgl-map {
  min-height: 350px !important; height: 350px !important;
  width: 100% !important; max-width: 100vw; position: relative !important; z-index: 10;
}


/* ---------------------------------------------------------- */
/* 4. Map itinéraire                                    */
/* ---------------------------------------------------------- */
#map-itineraire, .mapboxgl-map {
    min-height: 350px !important;
    height: 350px !important;
}

.main-navigation a {
    text-decoration: none;
    /* La couleur sera maintenant définie par functions.php */
    font-size: 1.1em;
    padding: 10px 0;
}

/* ---------------------------------------------------------- */
/* 4. couleur des box d'autocomplétion                                  */
/* ---------------------------------------------------------- */
.suggestions {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc;
    position: absolute;
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  
  .suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .suggestions li {
    padding: 8px 12px;
    cursor: pointer;
    background-color: #ffffff;
    color: #000000;
  }
  
  .suggestions li:hover {
    background-color: #f0f0f0;
  }
  /* ---------------------------------------------------------- */
/* 4. couleur du bouton envoyer du formulaire                              */
/* ---------------------------------------------------------- */
  .wpcf7 input[type="submit"] {
    background-color: #444444; /* Couleur de fond (à adapter) */
    color: #ffffff; /* Couleur du texte */
    padding: 24px 48px;
    border: none;
    border-radius: 4px;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #7100e2; /* Couleur au survol */
}

/* ---------------------------------------------------------- */
/* 5. Pied de page et Copyright                               */
/* ---------------------------------------------------------- */
.site-footer-menu {
    text-align: center;
    margin-bottom: 1em;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.footer-menu li {
    display: inline;
    margin: 0 1em;
}

.footer-menu a {
    text-decoration: none;
    color: inherit;
}


/* ---------------------------------------------------------- */
/* 5. boutons dans l'entete, contact et reseaux sociaux                            */
/* ---------------------------------------------------------- */
.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
}

.contact-icons {
    display: flex;
    gap: 0.5em;
    font-size: 1.2em;
}

.contact-icon {
    color: var(--accent-color, #7202e2);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-icon:hover {
    color: #fff;
}

/*----------------------------------------------------------*/
/* Ajustements pour les téléphones                          */
/*----------------------------------------------------------*/
@media (max-width: 767px) {
    /* Cache la description du site et les icônes de contact sur mobile */
    .site-description, .contact-icons {
        display: none;
    }

    /* Réduit l'espacement pour que l'en-tête soit plus compact */
    .site-header.fixed-header {
        padding: 10px;
    }

    /* Ajuste la taille du logo si nécessaire */
    .site-branding img {
        height: 30px !important;
    }
     /* Réduit l'espacement vertical des éléments de menu */
     .main-navigation ul li {
        padding: 4px 0; /* Ajustez cette valeur (8px) si nécessaire */
    }
     /* Cache le menu par défaut */
     .main-navigation {
         display: none;
    }
    
     /* Affiche le menu quand il est actif */
     .main-navigation.active {
         display: block;
    }
    
     /* Le bouton "burger" est toujours visible pour ouvrir le menu */
     .menu-toggle {
         display: block;
    }
    
      /* Masque le bouton "burger" quand le menu est ouvert (optionnel, mais recommandé) */
     .menu-toggle.active {
         display: none;
    }
    
}

span.wpcf7-list-item { display: block; }

/*Centrer l'image dans les services*/
.service-thumbnail {
    text-align: center;
    margin: 20px 0;
}

.service-thumbnail img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
  .menu-toggle { position: relative; z-index: 10000; pointer-events: auto; }
  .main-navigation { pointer-events: none; }           /* nav fermée = non cliquable */
  .main-navigation.active { pointer-events: auto; }    /* nav ouverte = cliquable */
}

 