/* =========================
   VARIABLES
========================= */
:root {
  --primary: #0B6FD6;
  --dark: #1C1C1C;
  --gray: #666666;
  --light: #F2F4F6;
  --border: #DADDE1;
  --white: #FFFFFF;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   GLOBAL
========================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
}


a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 15px;
}

/* =========================
   HEADER
========================= */
header {
  
}

header h1 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
}
.site-header {
  display: grid;
  grid-template-rows: auto auto;
  padding: 5px 0 8px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}


.header-logo {
  display: flex;
  justify-content: center;
}

.site-logo {
  height: 145px; 
  width: auto;
}


.header-inner {
  display: flex;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  display: inline-block;
  padding: 12px 30px;
  font-size: 14px;
}

.main-nav a:hover {
  background: var(--primary);
  color: var(--white);
}

.menu-toggle {
  display: none;
}

/*nav a {
  margin-left: 25px;
  font-size: 14px;
  color: var(--dark);
}

nav a:hover {
  text-decoration: underline;
}*/

.middle {
  background-image: url("../images/fond.png");
  background-size: cover;
  background-position: center;
  padding: 50px 20px;
}

.middle .section {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 6px;

}
.middle form {

  margin-left: auto;
  margin-right: auto;
}


/* =========================
   PAGE HEADER
========================= */
.page-header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
}

.page-header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
  text-align: left;
  font-size: 13px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
  text-align: center;
}

.page-header p {
  color: var(--gray);
  max-width: 750px;
  max-width: 100%;
}
.page-header ul {
  margin-left: 20px;
}

/* =========================
   MAIN CONTENT
========================= */
main {
  max-width: 1200px;
  margin: auto;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 50px 20px;
  margin-top: 5px;
}

.section.light {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.light .depannage {
  text-align:center;
  font-size: 13px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
}

.depannage {
  font-size: 13px;
}
.depannage ul {
  margin-left: 20px;
}



/* =========================
   SERVICES
========================= */
.services {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));*/
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 25px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  
}
.service * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.service h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

.service p {
  font-size: 14px;
  color: var(--gray);
}
.desc  {
  padding-top: 10px;
  font-size: 14px;
}

/* =========================
   CTA
========================= */
.cta {
  background: var(--light);
  text-align: center;
  padding:  0px 0px;
}

.cta h2 {
  font-size: 26px;
  margin-bottom: 15px;

}

.cta p {
  color: var(--gray);
  margin-bottom: 20px;
}

.cta a {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 14px;
}

.cta a:hover {
  background: var(--primary);
  color: var(--white);
}

.error {
	max-width: 1000px;
	padding: 12px 30px;
	margin-bottom: 20px;
	border: 1px solid #d00;
	background-color: rgba(208, 0, 0, 0.05);
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	color: red;
}

.success {
	max-width: 1000px;
	padding: 12px 30px;
	margin-bottom: 20px;
	border: 1px solid #2e9e44;
	background-color: rgba(46, 158, 68, 0.05);
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	color: green;
}


/* =========================
   FORMULAIRE
========================= */
form {
  max-width: 1000px;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
}

textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;

  resize: none;      
  overflow-x: hidden;    /* bloque horizontal */
  box-sizing: border-box;
}


.consent {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gray);
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.consent-line input[type="checkbox"] {
  width: auto;
  margin-top: 3px; 
}

.consent-line label {
  cursor: pointer;
  line-height: 1.4;
}

.consent-text {
  display: block;
  margin-top: 6px;
  color: #888;
  line-height: 1;
}
.consent-text a {
  color: #555;
  text-decoration: underline;
}

.consent-text a:hover,
.consent-text a:focus {
  color: #000;
  text-decoration: none;
}

.contact {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.1em;
    color: #d8f3ff;
    z-index: 2;
}

.contact a {
    color: #d8f3ff;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.contact a:hover {
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 230, 255, 0.8);
}


button {
  padding: 12px 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #095bb0;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row input {
  width: 100%;
}

.form-group {
  width: 100%;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--gray);
}


/* Champ invalide MAIS seulement après interaction */
input:required:invalid:not(:focus):not(:placeholder-shown),
textarea:required:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #d00;
  background-color: rgba(208, 0, 0, 0.05);
}

/* Champ valide UNIQUEMENT après sortie du champ */
input:required:valid:not(:focus):not(:placeholder-shown),
textarea:required:valid:not(:focus):not(:placeholder-shown) {
  border-color: #2e9e44;
  background-color: rgba(46, 158, 68, 0.05);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #000;
  transition: background-color 9999s ease-in-out 0s;
}
input:-webkit-autofill:required:invalid:not(:focus),
textarea:-webkit-autofill:required:invalid:not(:focus) {
  border-color: #d00;
  -webkit-box-shadow: 0 0 0 1000px rgba(208, 0, 0, 0.05) inset;
}
input:-webkit-autofill:required:valid:not(:focus),
textarea:-webkit-autofill:required:valid:not(:focus) {
  border-color: #2e9e44;
  -webkit-box-shadow: 0 0 0 1000px rgba(46, 158, 68, 0.05) inset;
}

.social-bar {
  position: fixed;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 999999;

  background: #fff;
  padding: 12px;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -220px;
}




.social-bar .social {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s;
}

.social-bar .social:hover {
  transform: scale(1.3);
  opacity: 0.85;
}

.instagram { background: #E1306C; }
.facebook { background: #1877F2; }
.phone { background: #25D366; }

/* =========================
   BLOC PRINCIPAL
   ========================= */
.cookie-banner {
  position: fixed;
  /*bottom: 20px;
  left: 20px;*/
  bottom: 20px;
  left: 20px;
  max-width: 300px;
  max-height: 200px; /* 👈 clé */
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  z-index: 9999;
  display: none;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* =========================
   ACTIONS
   ========================= */
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* =========================
   BOUTONS – ÉTAT NEUTRE
   ========================= */
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              opacity 0.2s ease;
}

/* Taille bouton Accepter */
.cookie-banner .btn-primary {
  padding: 12px 26px;
  font-size: 12px;
  font-weight: 600;
}

/* Taille bouton Refuser (légèrement plus discret) */
.cookie-banner .btn-secondary {
  padding: 10px 22px;
  font-size: 8px;
  opacity: 0.9;
}

/* =========================
   HOVER / FOCUS
   ========================= */

/* Accepter → vert */
.cookie-banner .btn-primary:hover,
.cookie-banner .btn-primary:focus {
  background-color: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
}

/* Refuser → rouge */
.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus {
  background-color: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

/* =========================
   LIEN DÉTAILS
   ========================= */
.cookie-details {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.cookie-details a {
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.9;
}

.cookie-text {
  overflow-y: auto;
  /*max-height: 50px;*/
  margin-bottom: 10px;
  line-height: 1.4;
}

.cookie-text::-webkit-scrollbar {
  width: 4px;
}

.cookie-text::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
}

.cookie-text:focus {
  outline: none;
}

/* =========================
   MODE PERSONNALISATION COOKIES
========================= */



.cookie-options {
  margin-top: 0px;
  font-size: 12px;
  display: none;
}

.cookie-scroll {
  overflow-y: auto;        /* scroll interne */
  padding-top: 10px;       /* 👈 espace titre */
  padding-bottom: 10px;    /* 👈 espace bouton */
  max-height: 350px; /* ajustable */
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-option small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
}

.cookie-option input[type="checkbox"] {
  transform: scale(1.2);
}

.cookie-option.disabled {
  opacity: 0.6;
}

.cookie-actions.full {
  flex-direction: column;
  gap: 8px;
}

.cookie-note {
  font-size: 10px;
  margin-top: 10px;
  opacity: 0.8;
  text-align: center;
}
/* =========================
   CORRECTION MODE PERSONNALISER
========================= */

.cookie-banner.expanded {
  bottom: 20px;
  overflow: hidden;
  position: fixed;
  left: 20px;
  max-width: 420px;
  padding: 20px;
  max-height: calc(100vh - 30px);
}

.cookie-banner.expanded .cookie-text {
  max-height: none;
}

.cookie-banner:not(.expanded) .cookie-options {
  display: none;
}
.cookie-title {
  font-size: 18px;
  margin-bottom: 10px;
  /*margin-top: -17px;*/
  text-align: center;
}

.cookie-intro {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 15px;
  text-align: center;
}

.cookie-global-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.cookie-category-text p {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 5px;
}

.cookie-category-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-allow {
  background: #2ecc71;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
}

.btn-deny {
  background: #e74c3c;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
}

.always-on {
  font-size: 11px;
  opacity: 0.7;
}

.cookie-category.disabled {
  opacity: 0.6;
}
/* =========================
   SWITCH MODE SIMPLE / PERSONNALISATION
========================= */

/* Par défaut : on voit le bandeau simple */
.cookie-simple {
  display: block;
}

/* Quand on personnalise : on cache le bandeau simple */
.cookie-banner.expanded .cookie-simple {
  display: none;
}

/* Il n’apparaît qu’en mode expanded */
.cookie-banner.expanded .cookie-options {
  display: block;
}
.cookie-category-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.cookie-category-actions button .checkbox {
  font-size: 14px;
}

.cookie-category-actions button.active {
  opacity: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}


/* =========================
   MENTIONS LÉGALES
========================= */
.mentions {
    font-size: 0.7rem;
    line-height: 1.6;
}

.mentions p,
.mentions li {
    max-width: 900px;
    /*margin-left: auto;
    margin-right: auto;*/
	text-align: left;
}

.mentions h1 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
	text-align: center;
}

.mentions h2 {
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.recaptcha-wrapper {
  max-width: 100%;
  overflow: hidden;
}
/* =========================
   FOOTER
========================= */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}
footer a:hover {
  text-decoration: underline;
}
/* =========================
   FOOTER – NOUVEAU STYLE
========================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
  font-size: 13px;
  color: var(--gray);
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.footer-title {
  display: block;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.footer-text {
  font-size: 14px;
}

/*.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}*/
.footer-bottom {
  position: relative;                 /* clé */
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;             /* centre le texte */
  align-items: center;
  text-align: center;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =========================
   RETOUR EN HAUT – CLEAN
========================= */
.back-to-top {
  display: none; /* caché au chargement */
  position: fixed;
  bottom: 20px;        /* distance du bas de l'écran */
  right: 20px;         /* distance du bord droit */
  z-index: 9999;

  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  border-radius: 50%;

  font-size: 24px;
  color: var(--gray);
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);

  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-icon i {
  font-size: 30px;
  color: var(--gray);
}