:root {
    --accent: #81c3c9;
    --accent-hover: #6db1b8;
    --social-hover: #bae7eb;
    --text: #232323;
    --muted: #6e7c96;
    --line: #d6d6d6;
    --panel: #fafafa;
    --chip: #e0f7f9;
}

* {
    box-sizing:border-box
}

section {
    font-family: "Heebo", sans-serif;
}

h2 {
    color: #5a9ba0;
    font-size: 36px;
    font-weight: 600;
    padding-bottom: 7%;
    text-align: center;
    padding-top: 25px;
}

/*--------------------------------------------------------------*/

body {
    margin:0;
    font-family:"Inter", sans-serif;
    background:#fff;
    color:var(--text);
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0px 40px 48px 40px; /* /!\ valeur d'origine : padding: 48px 40px; */
}

/* Grille pour les sections gauche/droite */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

/* Colonne gauche */
.hero {
    font-weight:800;
    font-size:44px;
    line-height:1.1;
    margin:0 0 20px;
}

.lede {
    font-size:15px;
    line-height:1.6;
    color:var(--muted);
    margin:0 0 32px;
    max-width:500px;
}

.contact-item {
    display:flex;
    align-items:center;
    gap:16px;
    background:#f9f9fb;
    padding:18px 20px;
    border-radius:12px;
    margin-bottom:20px;
}

.icon-wrap {
    width:48px;
    height:48px;
    border-radius:10px;
    background:var(--chip);
    display:grid;
    place-items:center;
}

.icon-wrap img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.meta .label {
    display:block;
    font-size:14px;
    color:var(--muted);
}

.meta .value {
    font-weight:700;
    font-size:16px;
}

.meta a {
    text-decoration: underline;
}

/* Reach line */
.reach-line {
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:24px;
    flex-wrap: wrap;
}

.reach {
    font-weight:600;
    margin:0;
    font-size:15px;
}

.socials a {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:38px;
    height:38px;
    background:#f5f5f5;
    border-radius:8px;
    margin-right:8px;
    color:var(--accent);
    font-size:15px;
    transition: all 0.3s ease-out;
}


.socials a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.socials a:hover {
    background: var(--social-hover);
}

/* Colonne droite */
.right {
    background:var(--panel);
    padding:32px;
    border-radius:16px;
}

.form1,
.form2 {
    display: flex;
    gap: 16px;
}

.form1 .field,
.form2 .field {
    flex: 1;
    min-width: 0;
}

.form1 input,
.form2 input {
    width: 100%;
}

.form label {
    display:block;
    font-size:14px;
    font-weight:600;
    margin:14px 0 6px;
}

.form input,
.form textarea {
    width:100%;
    padding:12px 14px;
    font:inherit;
    font-size:14px;
    border:1px solid #ccc;
    border-radius:6px;
    outline:none;
}

.form textarea {
    resize:none;
    height:120px;
}

.lienconfi {
    color: #5a9ba0;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px; /* espace entre la case et le texte */
    margin: 12px 0;
}

.checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #81c3c9;
}

.checkbox-wrap label {
    font-size: 14px;
    cursor: pointer;
}

.captcha-frame {
    margin:16px 0 14px;
}

/* Bouton */
.cta2 {
    display:inline-block;
    padding:12px 28px;
    font-size:15px;
    font-weight:600;
    color:#fff;
    background:var(--accent);
    border:none;
    border-radius:6px; /* moins arrondi */
    cursor:pointer;
    transition:background .2s; 
}

.cta2:hover {
    background: var(--accent-hover);
}

/* Right side confirmation */
.thank-card {
    flex: 1;
    background: #fafafa;
    border-radius: 20px;
    text-align: center;
    padding: 150px 40px; /* essayer 110px 40px, valeur d'origine : 80px 40px */
    box-shadow: inset 0 0 0 1px #f0f0f0;
}

.circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg,rgba(90, 155, 160, 1) 35%, rgba(129, 195, 201, 1) 100%); /* linear-gradient(135deg, #5b21b6, #9333ea); linear-gradient(135deg, #5A9BA0, #81c3c9); */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 32px;
}

.circle img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.thank-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.thank-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 40px;
}

.btn-continue {
    background: #81C3C9;
    border: none;
    padding: 14px 48px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.btn-continue:hover { 
    background: #6eaeb3;
}

/* ---------------------------------- */

/* Responsive */
@media(max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        font-size: 44px;
    }

    .contact-wrapper {
        flex-direction: column;
        height: auto;
    }

    .thank-card { 
        margin-top: 40px;
    }
}

/* Mobile : repasse en colonne */
@media (max-width: 600px) {
  .form1,
  .form2 {
    flex-direction: column;
  }
}

/* -------------------------------- */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: start;
        justify-items: center;
    }

    .hero {
        font-size: 36px;
        text-align: center;
    }

    main {
        padding: 0 30px 40px 30px;
    }

    .right,
    .thank-card {
        width: 100%;
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .form1,
    .form2 {
        flex-direction: column;
        gap: 12px;
    }

    main {
        padding: 0 20px 30px 20px;
    }

    .thank-card {
        padding: 80px 20px;
    }

    .hero {
        font-size: 32px;
        text-align: center;
    }

    .lede {
        text-align: center;
        margin: 0 auto 24px auto;
    }

    .reach-line {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .socials a {
        width: 32px;
        height: 32px;
    }

    .socials a img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        font-size: 28px;
    }

    .lede {
        font-size: 14px;
    }

    .contact-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .icon-wrap {
        width: 40px;
        height: 40px;
    }

    .icon-wrap img {
        width: 20px;
        height: 20px;
    }

    .thank-card {
        padding: 60px 15px;
    }

    .form input,
    .form textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .cta2,
    .btn-continue {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 403px) {
    main {
        padding: 0 12px 16px 12px;
    }

    h2 {
        font-size: 22px;
        padding: 18px 0;
        text-align: center;
    }

    /* Section gauche */
    .hero {
        font-size: 24px;
        line-height: 1.2;
        text-align: center;
    }

    .lede {
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
        margin: 0 auto 12px;
        max-width: 100%;
    }

    /* Grid général */
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: stretch;
    }

    /* Contact items */
    .contact-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        gap: 8px;
        box-sizing: border-box;
    }

    .icon-wrap {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .icon-wrap img {
        width: 16px;
        height: 16px;
    }

    .meta .label {
        font-size: 12px;
    }

    .meta .value {
        font-size: 14px;
    }

    /* Reach line + socials */
    .reach-line {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .socials a {
        width: 28px;
        height: 28px;
    }

    .socials a img {
        width: 16px;
        height: 16px;
    }

    /* Colonne droite */
    .right {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }

    .form1,
    .form2 {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .form input,
    .form textarea {
        width: 100%;
        font-size: 13px;
        padding: 8px 10px;
        box-sizing: border-box;
    }

    .form label {
        font-size: 13px;
        margin: 8px 0 4px;
    }

    .checkbox-wrap {
        gap: 6px;
        margin: 8px 0;
    }

    /* Boutons */
    .cta2,
    .btn-continue {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Right side confirmation */
    .thank-card {
        padding: 50px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .thank-card h2 {
        font-size: 22px;
    }

    .thank-card p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media (max-width: 359px) {

    /* Conteneur principal */
    main {
        padding: 0 8px 12px 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    h2 {
        font-size: 20px;
        padding: 16px 0;
        text-align: center;
    }

    /* Section gauche */
    .hero {
        font-size: 22px;
        line-height: 1.2;
        text-align: center;
    }

    .lede {
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
        margin: 0 auto 10px auto;
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Grille générale */
    .contact-grid {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    /* Contact items */
    .contact-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 6px 8px;
        gap: 6px;
        box-sizing: border-box;
        flex-wrap: wrap;
    }

    .icon-wrap {
        flex: 0 0 auto;
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .icon-wrap img {
        width: 14px;
        height: 14px;
    }

    .meta {
        flex: 1 1 0;
        min-width: 0;
    }

    .meta .label {
        font-size: 11px;
        white-space: normal;
    }

    .meta .value {
        font-size: 13px;
        word-break: break-word;
    }

    /* Reach line + socials */
    .reach-line {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
        margin: 8px 0;
    }

    .reach-line .socials {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .reach-line .reach {
        width: 100%;
        font-size: 12px;
    }

    .socials a {
        width: 24px;
        height: 24px;
    }

    .socials a img {
        width: 14px;
        height: 14px;
    }

    /* Colonne droite */
    .right {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .form1,
    .form2 {
        display: block;
        width: 100%;
        gap: 4px;
    }

    .form input,
    .form textarea {
        width: 100%;
        font-size: 12px;
        padding: 6px 8px;
        box-sizing: border-box;
    }

    .form label {
        font-size: 12px;
        margin: 4px 0 2px 0;
    }

    .checkbox-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin: 4px 0;
    }

    /* Boutons */
    .cta2,
    .btn-continue {
        padding: 6px 12px;
        font-size: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Right side confirmation */
    .thank-card {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 36px 10px;
        box-sizing: border-box;
        text-align: center;
    }

    .thank-card h2 {
        font-size: 20px;
    }

    .thank-card p {
        font-size: 12px;
        margin-bottom: 12px;
        word-break: break-word;
    }
}
