/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */


.et_pb_accordion_item{
	margin-bottom:2% !important;
}

.et_pb_blurb:hover h4.et_pb_module_header{
	color:#d80e0e;
}
.menu-item-45 > a,
.page-item-31 > a {
  background-color: #d80e0e;
  color: #fff !important;
  padding: 15px 20px !important;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
	font-weight:600;
}

.et-fixed-header #top-menu .page-item-31.current-menu-item > a,
.et-fixed-header #top-menu .page-item-31.current_page_item > a,
.et-fixed-header #top-menu .menu-item-45.current-menu-item > a,
.et-fixed-header #top-menu .menu-item-45.current_page_item > a {
  color: #ffffff !important;
}

.red-title{
	color:#D80E0E;
}
.gray-title{
	color:#5B5758;
	display:block;
}

/*@media (max-width: 1455px) {
    #et_mobile_nav_menu {
        display: block;
    }
	#top-menu-nav {
		display: none;
	}
}*/
@media (max-width: 420px) {
    .mobile-break {
        display: block;
    }
}

.la-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 10px 0 24px;
}

.la-toolbar label {
  font-weight: 600;
  margin-right: 4px;
}

.la-toolbar select,
.la-toolbar input {
  padding: 6px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  min-height: 38px;
  background: #fff;
}

.la-toolbar input#la-search {
  width: 240px;
  max-width: 50vw;
}

.la-btn {
  display: inline-block;
  background: #d80e0e; /* remplacé bleu par rouge */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: .2s;
}

.la-btn:hover {
  background: #a10b0b; /* rouge foncé pour hover */
}

#la-reset {
  background: #e9e9e9;
  color: #333;
}

#la-reset:hover {
  background: #d5d5d5;
}

#la-search-btn {
  background: #d80e0e;
  color: #fff;
}

#la-search-btn:hover {
  background: #a10b0b;
}

.la-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.la-card {
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}

.la-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.la-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.la-noimg {
  height: 200px;
  background: #f3f3f3;
}

.la-body {
  padding: 16px;
}

.la-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.la-excerpt {
  color: #4a4a4a;
  font-size: 14px;
  min-height: 60px;
  line-height: 1.55;
}

.la-btn {
/*   margin-top: 10px; */
}

.la-loading {
  opacity: .5;
  pointer-events: none;
}

#la-pagination {
  text-align: center;
  margin-top: 22px;
}

#la-pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 6px;
}

#la-pagination li a,
#la-pagination li span {
  display: block;
  padding: 7px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}

#la-pagination li span.current {
  background: #d80e0e;
  color: #fff;
  border-color: #d80e0e;
}

/**/

/* ====== CF7 Styles for .formstyle (sans variables) ====== */

/* Wrapper form */
.formstyle  .wpcf7 form {
  background: #fff;
  color: #1d1d1f;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* Titres de section */
.formstyle   .formu {
  margin: 22px 0 12px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: #0f172a;
  position: relative;
}
.formstyle   .formu::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, #d80e0e, transparent);
  border-radius: 3px;
}

/* Grille responsive pour .column* (1/2, 1/3, etc.) */
.formstyle  .column { box-sizing: border-box; padding: 6px; }
.formstyle .one { width: 100%; }
.formstyle .one-second { width: 50%; }
.formstyle .two-fifth { width: 40%; }
.formstyle .one-fifth { width: 20%; }
.formstyle .one-third { width: 33.333%; }

/* Conteneur flex */
.formstyle .wpcf7-form {
  display: flex;
  flex-wrap: wrap;
  margin-left: -6px;
  margin-right: -6px;
}

/* Utilitaires */
.formstyle .noesp { margin-top: 10px; }
.formstyle .siz0 p { margin: 0; font-size: 12px; color: #666; padding-bottom: 0 !important; }

/* Champs - inputs / selects / textarea */
.formstyle input[type="text"],
.formstyle input[type="email"],
.formstyle input[type="tel"],
.formstyle input[type="number"],
.formstyle select,
.formstyle textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.formstyle textarea { min-height: 120px; resize: vertical; }

.formstyle input:focus,
.formstyle select:focus,
.formstyle textarea:focus {
  border-color: #94d5d0;
  box-shadow: 0 0 0 3px rgba(148,213,208,.35);
}

/* Labels / spans */
.formstyle span,
.formstyle label { color: #444; font-size: 14px; }

/* Ligne "Adresse :" (span direct dans le form) */
.formstyle > span {
  display: block;
  margin: 8px 6px 0;
  font-weight: 600;
}

/* Radios/Checkbox CF7 */
.formstyle .wpcf7-list-item { margin: 0 12px 8px 0; }
.formstyle .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.formstyle input[type="checkbox"],
.formstyle input[type="radio"] {
  accent-color: #d80e0e;
}

/* Champ fichier (CV) */
.formstyle input[type="file"] {
  display: block;
  width: 100%;
  border: 1px dashed #e6e6e6;
  border-radius: 10px;
  padding: 14px;
  background: #fafafa;
  cursor: pointer;
}
.formstyle input[type="file"]:hover { border-color: #d80e0e; }

/* Bouton submit */
.formstyle input[type="submit"],
.formstyle .wpcf7-submit {
  appearance: none;
  border: none;
  border-radius: 14px !important;
  padding: 13px 30px !important;
  background: #d80e0e;         /* rouge principal */
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 18px rgba(216,14,14,.25);
	    border: 0 !important;
}
.formstyle .aligncenter .wpcf7-submit { margin-top: 8px; }
.formstyle .wpcf7-submit:hover { background: #b50c0c; } /* hover plus foncé */
.formstyle .wpcf7-submit:active { transform: translateY(1px); }

/* États d’erreur CF7 */
.formstyle .wpcf7-not-valid {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 3px rgba(211,47,47,.12) !important;
}
.formstyle .wpcf7-not-valid-tip {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 6px;
}
.formstyle .wpcf7-response-output {
  margin-top: 14px;
  border-radius: 10px !important;
  border-width: 1px !important;
  font-size: 14px;
}

/* Messages succès/erreur */
.formstyle .wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a !important;
  background: #ecfdf5;
  color: #065f46;
}
.formstyle .wpcf7 form.invalid .wpcf7-response-output,
.formstyle .wpcf7 form.failed .wpcf7-response-output {
  border-color: #d32f2f !important;
  background: #ffebee;
  color: #b71c1c;
}

/* Alignements utilitaires */
.formstyle .aligncenter { text-align: center; }

/* Responsif */
@media (max-width: 991px) {
.formstyle .one-second,
.formstyle .two-fifth,
.formstyle .one-fifth,
.formstyle .one-third { width: 100%; }
}

/* Espacement entre champs */
.formstyle .column input,
.formstyle .column select,
.formstyle .column textarea { margin-top: 6px; }

/* Tes règles extra (garde-les si besoin) */
h3.formu { display: block !important; width: 100%; }
.formstyle br { display: none !important; }
.formstyle p { display: block !important; width: 100%; }
