/*
Theme Name: OlistO
Author: Tristan TORNATORE
Author URI: https://revontuli.fr
Description: Thème wordPress pour le site OlistO.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: OlistO
Tags: OlistO
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

.wp-block-post-content h2 {
  font-weight: 700;
}

.icon-column-title {
  margin-top: 0px !important;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

/* Supprimer l'outline par défaut sur tous les liens */
a:focus {
  outline: none !important;
}

/* Ajouter un style de focus subtil pour tous les liens */
a:focus {
  text-decoration: underline;
}

/* Ne pas afficher le soulignement pour les clics de souris */
a:focus:not(:focus-visible) {
  text-decoration: none;
}

/* Garder le soulignement pour la navigation au clavier (accessibilité) */
a:focus-visible {
  text-decoration: underline;
}

.wp-block-post-author__avatar img {
  border-radius: 50% !important;
}

.wp-block-post-author__bio {
  font-size: 12px;
}

/* Styles pour le formulaire Contact Form 7 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  max-width: 1200px;
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.full-width-form {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 12px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-select,
.form-textarea {
  width: 100%;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.submit-button {
  background-color: #f2f875;
  font-weight: 500;
  padding: 16px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  text-transform: none;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #e7ee58;
}

.form-page-contact {
  background-color: #fff;
  padding: 20px 60px !important;
  border: 1px solid #e0e0e0;
}

/* Styles responsifs pour les appareils mobiles */
@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .avis-texte p {
    font-size: 14px !important;
  }
}
