/**
 * Avis — formulaire « Nos Conseils »
 * Styles du bloc histoire + invitation dépliante (voir conseils-form.php).
 */

.cg-bloc {
  max-width: 1000px;
  margin: 3.4rem auto 4rem;
  color: #333
}

.cg-grille {
  display: flex;
  gap: 3.2rem;
  align-items: flex-start
}

.cg-histoire {
  flex: 1;
  padding-top: .4rem
}

.cg-mot {
  flex: 0 0 43%;
  background: #FAF5F2;
  padding: 2.1rem 1.8rem;
  border-radius: 2px
}

.cg-nom {
  font-family: var(--brand-font-heading);
  font-size: 1.24rem;
  line-height: 1.78;
  color: #2e2a28;
  margin: 0 0 1.2rem
}

.cg-nom em {
  font-style: italic;
  opacity: .85
}

.cg-marque {
  font-family: var(--brand-font-heading);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-style: normal;
}

.cg-txt {
  font-family: var(--brand-font-body);
  font-size: .9rem;
  line-height: 1.95;
  color: #5a524e;
  margin: 0 0 .9rem;
  text-align: justify;
}

.cg-lien {
  margin: 1.6rem 0 0
}

.cg-lien a {
  font-family: var(--brand-font-heading);
  font-size: .94rem;
  color: #8E473D;
  text-decoration: none;
  border-bottom: 1px solid #D9BDB4;
  padding-bottom: 3px;
  transition: border-color .2s
}

.cg-lien a:hover {
  border-color: #8E473D
}

.cg-details summary {
  list-style: none;
  cursor: pointer;
  text-align: center
}

.cg-details summary::-webkit-details-marker {
  display: none
}

.cg-invite-t {
  display: block;
  font-family: var(--brand-font-heading);
  font-size: 1.12rem;
  line-height: 1.45;
  color: #2e2a28;
  margin: 0 0 .6rem
}

.cg-t-ouvert {
  display: none
}

.cg-details[open] .cg-t-ferme {
  display: none
}

.cg-details[open] .cg-t-ouvert {
  display: inline
}

.cg-devise {
  display: block;
  font-family: var(--brand-font-heading);
  font-style: italic;
  font-size: .92rem;
  line-height: 1.5;
  color: #8E473D;
  margin: 0 0 .9rem
}

.cg-invite-p {
  display: block;
  font-family: var(--brand-font-body);
  font-size: .84rem;
  line-height: 1.8;
  color: #6b625e;
  margin: 0 0 1.2rem
}

.cg-btn {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid #B2594D;
  color: #8E473D;
  font-family: var(--brand-font-body);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: all .2s
}

.cg-details summary:hover .cg-btn {
  background: #B2594D;
  color: #fff
}

/* Une fois ouvert : ne reste que le titre */
.cg-details[open] summary .cg-btn,
.cg-details[open] summary .cg-devise,
.cg-details[open] summary .cg-invite-p {
  display: none !important
}

.cg-details[open] summary .cg-invite-t {
  margin-bottom: 1.2rem
}

.cg-erreur {
  font-family: var(--brand-font-body);
  font-size: .8rem;
  line-height: 1.6;
  color: #8E473D;
  background: #F5E4DF;
  border-left: 2px solid #B2594D;
  padding: .7rem .9rem;
  margin: 0 0 1.2rem;
  text-align: left
}

.cg-erreur.cg-vide {
  display: none
}

.cg-succes-p {
  font-family: var(--brand-font-body);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0F6E56;
  margin: 0 0 .9rem;
  text-align: center
}

.cg-mot textarea,
.cg-mot input[type=text],
.cg-mot input[type=email],
.cg-mot input[type=search] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #DBC8C0;
  background: none;
  padding: 0 0 7px;
  font-family: var(--brand-font-body);
  font-size: .86rem;
  color: #333;
  border-radius: 0;
  box-sizing: border-box;
  margin: 0 0 .9rem;
  -webkit-appearance: none;
  line-height: 1.5
}

.cg-mot textarea {
  height: 3rem;
  min-height: 3rem;
  resize: vertical;
  overflow: auto
}

.cg-mot input[type=text],
.cg-mot input[type=email] {
  height: auto !important;
  min-height: 0 !important
}

.cg-mot textarea:focus,
.cg-mot input:focus {
  outline: 0;
  border-bottom-color: #B2594D
}

.cg-mot ::placeholder {
  color: #b0a19b
}

.cg-lab {
  font-family: var(--brand-font-body);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8E473D;
  margin: 1.2rem 0 .3rem
}

.cg-hint {
  font-family: var(--brand-font-body);
  font-size: .82rem;
  font-style: italic;
  line-height: 1.7;
  color: #8a8178;
  margin: 0 0 .8rem
}

.cg-recherche {
  font-size: .8rem !important;
  margin-bottom: .6rem !important
}

.cg-etoiles {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin-top: .35rem
}

.cg-etoiles input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.cg-etoiles label {
  font-size: 1.35rem;
  color: #E3D6CF;
  cursor: pointer;
  padding: 0 3px 0 0;
  line-height: 1;
  transition: color .15s;
  margin: 0
}

.cg-etoiles input:checked~label,
.cg-etoiles label:hover,
.cg-etoiles label:hover~label {
  color: var(--theme-palette-color-11, #efbd5f)
}

.cg-etoiles input:focus-visible+label {
  outline: 1px solid #8E473D;
  outline-offset: 2px
}

.cg-liste {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 2rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 5px;
  align-content: start
}

.cg-liste::-webkit-scrollbar {
  width: 3px
}

.cg-liste::-webkit-scrollbar-thumb {
  background: #DBC8C0;
  border-radius: 3px
}

.cg-item {
  display: block;
  margin: 0;
  cursor: pointer;
  position: relative
}

.cg-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.cg-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 1px solid #EDE3DE;
  border-radius: 2px;
  background: #fff;
  transition: border-color .2s
}

.cg-item input:checked+img {
  border-color: #B2594D;
  border-width: 2px
}

.cg-item input:focus-visible+img {
  outline: 1px solid #8E473D;
  outline-offset: 2px
}

.cg-mention {
  font-family: var(--brand-font-body);
  font-size: .66rem;
  color: #a89890;
  margin: -.45rem 0 0
}

.cg-news {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1.2rem 0 0;
  cursor: pointer;
  font-family: var(--brand-font-body);
  font-size: .78rem;
  line-height: 1.6;
  color: #6b625e
}

.cg-news input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: .15rem 0 0;
  accent-color: #B2594D;
  cursor: pointer
}

/* Turnstile invisible (plugin Simple Cloudflare Turnstile) : aucun espace visible */
.cg-mot .cg-turnstile-box {
  height: 0;
  overflow: hidden
}

.cg-envoi {
  text-align: center;
  margin: 1.4rem 0 0
}

.cg-mot button {
  padding: 12px 30px;
  border: 0;
  background: #B2594D;
  color: #fff;
  font-family: var(--brand-font-body);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s
}

.cg-mot button:hover {
  background: #8E473D
}

.cg-mot button:disabled {
  background: #D9BDB4;
  cursor: default
}

.cg-hp {
  position: absolute;
  left: -9999px
}

@media(max-width:820px) {
  .cg-bloc {
    padding: 0 1.4rem;
    margin: 2rem auto 2.6rem
  }

  .cg-grille {
    flex-direction: column;
    gap: 1.8rem
  }

  .cg-histoire {
    padding-top: 0
  }

  .cg-mot {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 1.8rem 1.4rem
  }

  .cg-nom {
    font-size: 1.06rem;
    line-height: 1.7;
    margin-bottom: 1rem
  }

  .cg-lien {
    margin-top: 1.2rem
  }

  .cg-btn {
    display: block;
    text-align: center
  }
}