/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Hero : complément SEO du H1, affiché sous le titre */
.tc-h1-seo {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.4;
  color: #CCDDC1;
}

@media (max-width: 767px) {
  .tc-h1-seo {
    font-size: 17px;
  }
}

/* Hero : mot-clé mis en valeur */
.tc-mot-cle {
  color: #DFC664;
  font-weight: 700;
}

/* Où acheter : « votre libraire » mis en valeur */
.tc-libraire {
  color: #0F6E56;
}

/* En-tête : fin du logo texte */
.tc-logo-titre {
  color: #1CA4A2;
}

/* Défilement doux vers les ancres du menu */
html {
  scroll-behavior: smooth;
}




/* =========================================================
   Article des commentaires (bloc .tc-commentaires)
   ========================================================= */

.tc-commentaires {
  font-family: 'DM Sans', sans-serif;
  color: #4D4631;
}

/* Titres générés par WordPress (« Partager votre ressenti », nombre de commentaires) */
.tc-commentaires .comment-reply-title,
.tc-commentaires .comments-title,
.tc-commentaires h2,
.tc-commentaires h3 {
  font-family: 'Bree Serif', serif;
  font-weight: 400;
  font-size: 24px;
  color: #273124;
  margin: 0 0 16px;
}

.tc-commentaires .comment-notes,
.tc-commentaires .comment-awaiting-moderation {
  font-size: 14px;
  color: #4D4631;
}

.tc-commentaires .comment-awaiting-moderation {
  font-style: italic;
  color: #0F6E56;
}

/* Champs du formulaire */
.tc-commentaires label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #273124;
  margin-bottom: 6px;
}

.tc-commentaires input[type="text"],
.tc-commentaires input[type="email"],
.tc-commentaires input[type="url"],
.tc-commentaires textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CCDDC1;
  border-radius: 6px;
  background: #FBF9F1;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #273124;
}

.tc-commentaires input:focus,
.tc-commentaires textarea:focus {
  outline: 2px solid #1CA4A2;
  outline-offset: 1px;
  border-color: #1CA4A2;
}

/* Case de mémorisation : case et texte sur la même ligne */
.tc-commentaires .comment-form-cookies-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tc-commentaires .comment-form-cookies-consent label {
  display: inline;
  font-weight: 400;
  margin: 0;
}

.tc-commentaires .comment-form-cookies-consent input {
  margin-top: 4px;
  accent-color: #0F6E56;
}

/* Bouton d'envoi */
.tc-commentaires .form-submit .submit,
.tc-commentaires input[type="submit"] {
  background: #0F6E56;
  color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  padding: 14px 26px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tc-commentaires .form-submit .submit:hover,
.tc-commentaires input[type="submit"]:hover {
  background: #273124;
}

/* Liste des commentaires publiés */
.tc-commentaires .comment-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.tc-commentaires .comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid #CCDDC1;
}

.tc-commentaires .comment-author .fn,
.tc-commentaires .comment-author .fn a {
  font-family: 'Bree Serif', serif;
  font-style: normal;
  color: #0F6E56;
}

.tc-commentaires .comment-metadata,
.tc-commentaires .comment-metadata a {
  font-size: 13px;
  color: #4D4631;
}

/* Prénom / e-mail / site web sur une ligne (une colonne sur mobile) */
.tc-commentaires .comment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
}

.tc-commentaires .comment-form > * {
  grid-column: 1 / -1;
}

.tc-commentaires .comment-form > .comment-form-author,
.tc-commentaires .comment-form > .comment-form-email,
.tc-commentaires .comment-form > .comment-form-url {
  grid-column: auto;
}

@media (max-width: 767px) {
  .tc-commentaires .comment-form {
    grid-template-columns: 1fr;
  }
}

/* Couleur des liens (remplace le rose par défaut de Hello Elementor) */
a {
  color: #0F6E56;
}

a:hover,
a:focus {
  color: #273124;
}



/* =========================================================
   Théa Casian – AJOUTS pour le formulaire de contact (Contact Form 7)
   À coller À LA FIN du style.css du thème enfant (sans rien remplacer)
   ========================================================= */

/* Le formulaire dans une carte blanche, comme celui des commentaires */
.wpcf7 {
  max-width: 720px;
}

.wpcf7 form.wpcf7-form {
  background: #FFFFFF;
  border: 1px solid #CCDDC1;
  border-radius: 8px;
  padding: 40px;
  font-family: 'DM Sans', sans-serif;
  color: #4D4631;
}

.wpcf7 form.wpcf7-form > p {
  margin: 0 0 20px;
}

/* Libellés */
.wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #273124;
  line-height: 1.4;
}

.wpcf7 label br {
  content: "";
  display: block;
  margin-bottom: 6px;
}

/* Champs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #CCDDC1;
  border-radius: 6px;
  background: #FBF9F1;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #273124;
  transition: border-color .2s, box-shadow .2s;
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #1CA4A2;
  box-shadow: 0 0 0 3px rgba(28, 164, 162, .2);
}

/* Case d'acceptation (RGPD) */
.wpcf7 .wpcf7-acceptance label,
.wpcf7 .wpcf7-checkbox label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.wpcf7 input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #0F6E56;
}

/* Bouton d'envoi */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  background: #0F6E56;
  color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus,
.wpcf7 .wpcf7-submit:hover {
  background: #273124;
}

.wpcf7 input[type="submit"]:disabled {
  opacity: .6;
  cursor: wait;
}

/* Petite roue de chargement à côté du bouton */
.wpcf7 .wpcf7-spinner {
  vertical-align: middle;
  margin-left: 12px;
}

/* Erreurs sous les champs */
.wpcf7 .wpcf7-not-valid {
  border-color: #B4462B;
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  color: #B4462B;
}

/* Message global après envoi */
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 0;
  border-left: 4px solid #CCDDC1;
  border-radius: 4px;
  background: #FBF9F1;
  font-size: 15px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-left-color: #0F6E56;
  background: #E9F3EC;
  color: #0F6E56;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-left-color: #B4462B;
  background: #FBEDE8;
  color: #8A3420;
}

/* Mobile */
@media (max-width: 767px) {
  .wpcf7 form.wpcf7-form {
    padding: 24px 20px;
  }
}


